mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
NEW! Archiving data. Archiving is a soft delete. It can be undone. Enter the archive mode to see all the data including archives (everything is read-only in that mode). Archiving must be enabled per class (data model). Archiving is achieved by the mean of the API DBObject::Archive (or Unarchive).
SVN:trunk[4692]
This commit is contained in:
@@ -725,7 +725,7 @@ EOF
|
||||
$val = $sDefault;
|
||||
}
|
||||
}
|
||||
return "'".$val."'";
|
||||
return "'".str_replace("'", "\\'", $val)."'";
|
||||
}
|
||||
|
||||
protected function GetMandatoryPropString($oNode, $sTag)
|
||||
@@ -989,6 +989,11 @@ EOF
|
||||
$aClassParams['indexes'] = var_export($aIndexes, true);
|
||||
}
|
||||
|
||||
if ($oArchive = $oProperties->GetOptionalElement('archive'))
|
||||
{
|
||||
$bEnabled = $this->GetPropBoolean($oArchive, 'enabled', false);
|
||||
$aClassParams['archive'] = $bEnabled;
|
||||
}
|
||||
|
||||
// Finalize class params declaration
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user