ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
This class methods for maintain history enties for objects. More...
Static Public Member Functions | |
static | _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. More... | |
static | _getEntriesForObject ($a_obj_id, $a_obj_type="") |
get all history entries for an object More... | |
static | _compareHistArray ($a, $b) |
static | _removeEntriesForObject ($a_obj_id) |
remove all history entries for an object More... | |
static | _copyEntriesForObject ($a_src_id, $a_dst_id) |
copy all history entries for an object More... | |
static | _getEntryByHistoryID ($a_hist_entry_id) |
returns a single history entry More... | |
static | _removeEntryByHistoryID ($a_hist_entry_id) |
Removes a single entry from the history. More... | |
static | _changeUserId ($a_hist_entry_id, $new_user_id) |
Changes the user id of the specified history entry. More... | |
This class methods for maintain history enties for objects.
Definition at line 10 of file class.ilHistory.php.
|
static |
Changes the user id of the specified history entry.
int | $a_hist_entry_id | The history entry to change the user id. |
int | $new_user_id | The new user id. |
Definition at line 301 of file class.ilHistory.php.
References $DIC, $ilDB, and array.
Referenced by ilObjFile\rollback().
|
static |
Definition at line 185 of file class.ilHistory.php.
|
static |
copy all history entries for an object
integer | $a_src_id | source object id |
integer | $a_dst_id | destination object id |
Definition at line 220 of file class.ilHistory.php.
References $DIC, $id, $ilDB, $r, $row, array, and ilUtil\now().
Referenced by ilObjFile\doCloneObject().
|
static |
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 ilHistoryTableGUI.
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 31 of file class.ilHistory.php.
References $DIC, $id, $ilDB, $ilUser, $key, ilObject\_lookupType(), array, and ilUtil\now().
Referenced by ilLinkResourceItems\add(), ilPageEditorGUI\addChangeComment(), ilObjFile\addFileVersion(), ilObjContentObjectGUI\confirmedDelete(), ilLMObject\create(), ilObjFileDAV\createNewVersion(), ilObjFile\createProperties(), ilLinkResourceItems\delete(), ilObjContentObject\executeDragDrop(), ilObjFile\replaceFile(), ilObjFile\rollback(), ilLinkResourceItems\update(), ilFileXMLParser\updateFileContents(), and ilLMPageObjectGUI\updateHistory().
|
static |
get all history entries for an object
int | $a_obj_id | object id |
Definition at line 128 of file class.ilHistory.php.
References $DIC, $ilDB, $query, ilObject\_lookupType(), and array.
Referenced by ilECSFileSettings\buildJson(), ilHistoryTableGUI\getDataFromDb(), ilObjFile\getVersions(), ilObjFile\rollback(), and ilFileXMLWriter\start().
|
static |
returns a single history entry
Definition at line 266 of file class.ilHistory.php.
References $DIC, $ilDB, and $r.
Referenced by ilObjFile\determineFileSize(), ilObjFile\getFile(), and ilObjFile\getSpecificVersion().
|
static |
remove all history entries for an object
int | $a_obj_id | object id |
Definition at line 200 of file class.ilHistory.php.
References $DIC, $ilDB, and $r.
Referenced by ilObjFile\deleteVersions(), ilObjBibliographic\doDelete(), and ilObjFile\doDelete().
|
static |
Removes a single entry from the history.
int | $a_hist_entry_id | The id of the entry to remove. |
Definition at line 284 of file class.ilHistory.php.
Referenced by ilObjFile\deleteVersions().