ILIAS
Release_3_10_x_branch Revision 61812
|
This class methods for maintain history enties for objects. More...
Public Member Functions | |
_createEntry ($a_obj_id, $a_action, $a_info_params="", $a_obj_type="", $a_user_comment="", $a_update_last=false) | |
Creates a new history entry for an object. | |
_getEntriesForObject ($a_obj_id, $a_obj_type="") | |
get all history entries for an object | |
_compareHistArray ($a, $b) | |
_removeEntriesForObject ($a_obj_id) | |
remove all history entries for an object | |
_copyEntriesForObject ($a_src_id, $a_dst_id) | |
copy all history entries for an object | |
_getEntryByHistoryID ($a_hist_entry_id) | |
returns a single history entry |
This class methods for maintain history enties for objects.
Definition at line 30 of file class.ilHistory.php.
ilHistory::_compareHistArray | ( | $a, | |
$b | |||
) |
Definition at line 181 of file class.ilHistory.php.
ilHistory::_copyEntriesForObject | ( | $a_src_id, | |
$a_dst_id | |||
) |
copy all history entries for an object
integer | $a_src_id | source object id |
integer | $a_dst_id | destination object id |
Definition at line 214 of file class.ilHistory.php.
References DB_FETCHMODE_OBJECT.
Referenced by ilObjFile\cloneObject().
ilHistory::_createEntry | ( | $a_obj_id, | |
$a_action, | |||
$a_info_params = "" , |
|||
$a_obj_type = "" , |
|||
$a_user_comment = "" , |
|||
$a_update_last = false |
|||
) |
Creates a new history entry for an object.
The information text parameters have to be separated by comma. The information text has to be stored in a langage variable "hist_<object_type>_<action>". This text can contain placeholders %1, %2, ... for each parameter. The placehoders are replaced by the parameters in ilHistoryGUI->getHistoryTable().
Please note that the object type must be specified, if the object is not derived from ilObject.
int | $a_obj_id | object id |
string | $a_action | action |
string | $a_info_params | information text parameters, separated by comma or as an array |
string | $a_obj_type | object type (must only be set, if object is not in object_data table) |
string | $a_user_comment | user comment |
Definition at line 51 of file class.ilHistory.php.
References ilObject\_lookupType(), and DB_FETCHMODE_ASSOC.
Referenced by ilLinkResourceItems\add(), ilPageEditorGUI\addChangeComment(), ilObjContentObjectGUI\confirmedDelete(), ilLMObject\create(), ilObjFileDAV\createNewVersion(), ilObjFile\createProperties(), ilStructureObjectGUI\cutPage(), ilLinkResourceItems\delete(), ilObjContentObject\executeDragDrop(), ilStructureObjectGUI\pastePage(), ilObjFile\replaceFile(), ilLinkResourceItems\update(), ilFileXMLParser\updateFileContents(), and ilLMPageObjectGUI\updateHistory().
ilHistory::_getEntriesForObject | ( | $a_obj_id, | |
$a_obj_type = "" |
|||
) |
get all history entries for an object
int | $a_obj_id | object id |
Definition at line 123 of file class.ilHistory.php.
References ilObject\_lookupType(), and DB_FETCHMODE_ASSOC.
Referenced by ilHistoryGUI\getHistoryTable(), ilHistoryGUI\getVersionsTable(), and ilFileXMLWriter\start().
ilHistory::_getEntryByHistoryID | ( | $a_hist_entry_id | ) |
returns a single history entry
Definition at line 245 of file class.ilHistory.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilObjFile\determineFileSize(), ilObjFile\getFile(), and ilObjFile\sendFile().
ilHistory::_removeEntriesForObject | ( | $a_obj_id | ) |
remove all history entries for an object
int | $a_obj_id | object id |
Definition at line 197 of file class.ilHistory.php.
Referenced by ilObjFile\delete().