- Fixed bug with change tracking of TEXT attributes

- Log any email notification (successful or not)
- Class selection always made through a Combo box
- Automatic creation of indexes for external keys
- New trigger: on object creation
- Application log: added a status string
- Added documentation to the WSDL (+ anyType replaced by string)
- SOAP: improved handling of enumeration attributes
- SOAP: returned logs to mention the name of the parameter as advertised in the WSDL file (different than the name of the attribute in Itop)
- Finalized SOAP tests
- Added a SOAP client example

SVN:trunk[246]
This commit is contained in:
Romain Quetiez
2010-01-13 13:30:08 +00:00
parent 89fa70d755
commit 8964b13a2e
16 changed files with 554 additions and 117 deletions

View File

@@ -497,6 +497,17 @@ abstract class DBObject
}
}
}
elseif ($oAtt->IsWritable() && $oAtt->IsScalar())
{
$aValues = $oAtt->GetAllowedValues();
if (count($aValues) > 0)
{
if (!array_key_exists($toCheck, $aValues))
{
return false;
}
}
}
return true;
}
@@ -690,9 +701,19 @@ abstract class DBObject
}
$this->DBWriteLinks();
// Reload to update the external attributes
$this->m_bIsInDB = true;
// Activate any existing trigger
$sClass = get_class($this);
$oSet = new DBObjectSet(new DBObjectSearch('TriggerOnObjectCreate'));
while ($oTrigger = $oSet->Fetch())
{
if (MetaModel::IsParentClass($oTrigger->Get('target_class'), $sClass))
{
$oTrigger->DoActivate($this->ToArgs('this'));
}
}
return $this->m_iKey;
}
@@ -849,6 +870,8 @@ abstract class DBObject
$aScalarArgs = array();
$aScalarArgs[$sArgName] = $this->GetKey();
$aScalarArgs[$sArgName.'->id'] = $this->GetKey();
$aScalarArgs[$sArgName.'->hyperlink()'] = $this->GetHyperlink();
$aScalarArgs[$sArgName.'->name()'] = $this->GetName();
$sClass = get_class($this);
foreach(MetaModel::ListAttributeDefs($sClass) as $sAttCode => $oAttDef)