ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | _createEntry (int $a_obj_id, string $a_action, array $a_info_params=[], string $a_obj_type="", string $a_user_comment="", bool $a_update_last=false) |
Creates a new history entry for an object. More... | |
static | _getEntriesForObject (int $a_obj_id, string $a_obj_type="") |
get all history entries for an object More... | |
static | _compareHistArray (array $a, array $b) |
static | _removeEntriesForObject (int $a_obj_id) |
remove all history entries for an object More... | |
static | _copyEntriesForObject (int $a_src_id, int $a_dst_id) |
copy all history entries for an object More... | |
static | _getEntryByHistoryID (int $a_hist_entry_id) |
returns a single history entry More... | |
static | _removeEntryByHistoryID (int $a_hist_entry_id) |
Removes a single entry from the history. More... | |
static | _changeUserId (int $a_hist_entry_id, int $new_user_id) |
Changes the user id of the specified history entry. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This class methods for maintain history enties for objects
Definition at line 24 of file class.ilHistory.php.
|
static |
Changes the user id of the specified history entry.
Definition at line 250 of file class.ilHistory.php.
|
static |
Definition at line 167 of file class.ilHistory.php.
References Vendor\Package\$a, and Vendor\Package\$b.
Referenced by HistCompareTest\testCompare(), HistCompareTest\testCompare2(), and HistCompareTest\testCompare3().
|
static |
copy all history entries for an object
Definition at line 192 of file class.ilHistory.php.
References $DIC, $id, $ilDB, $q, and ilUtil\now().
|
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 | |
array | $a_info_params | information parameters |
string | $a_obj_type | object type (must only be set, if object is not in object_data table) |
string | $a_user_comment | |
bool | $a_update_last |
Definition at line 42 of file class.ilHistory.php.
References ilObject\_lookupType().
Referenced by ilObjContentObjectGUI\confirmedDelete().
|
static |
get all history entries for an object
int | $a_obj_id | |
string | $a_obj_type |
Definition at line 111 of file class.ilHistory.php.
References ilObject\_lookupType().
Referenced by ilECSFileSettings\buildJson(), and ilHistoryTableGUI\getDataFromDb().
|
static |
returns a single history entry
Definition at line 220 of file class.ilHistory.php.
|
static |
remove all history entries for an object
Definition at line 178 of file class.ilHistory.php.
References $DIC, $ilDB, and $q.
Referenced by ilObjCmiXapi\doDelete(), ilObjFile\doDelete(), ilObjBibliographic\doDelete(), and ilFileXMLParser\setFileContents().
|
static |
Removes a single entry from the history.
Definition at line 236 of file class.ilHistory.php.