AttributeCaseLog finalized (history, easy migration of AttributeText, wiki formatting)

SVN:trunk[1173]
This commit is contained in:
Romain Quetiez
2011-04-04 14:15:33 +00:00
parent 0c084c0b17
commit 6ff5b499b0
11 changed files with 292 additions and 222 deletions

View File

@@ -177,6 +177,18 @@ abstract class CMDBObject extends DBObject
$oMyChangeOp->Set("prevdata", $original);
$iId = $oMyChangeOp->DBInsertNoReload();
}
elseif ($oAttDef instanceOf AttributeCaseLog)
{
$oMyChangeOp = MetaModel::NewObject("CMDBChangeOpSetAttributeScalar");
$oMyChangeOp->Set("change", $oChange->GetKey());
$oMyChangeOp->Set("objclass", get_class($this));
$oMyChangeOp->Set("objkey", $this->GetKey());
$oMyChangeOp->Set("attcode", $sAttCode);
$oMyChangeOp->Set("oldvalue", '');
$oMyChangeOp->Set("newvalue", $value->GetLatestEntry());
$iId = $oMyChangeOp->DBInsertNoReload();
}
elseif ($oAttDef instanceOf AttributeText)
{
// Data blobs