ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Repository Utilities (application layer, put GUI related stuff into ilRepUtilGUI) More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
deleteObjectType ($a_type) | |
Static Public Member Functions | |
static | deleteObjects ($a_cur_ref_id, $a_ids) |
Delete objects. More... | |
static | removeObjectsFromSystem ($a_ref_ids, $a_from_recovery_folder=false) |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method More... | |
static | restoreObjects ($a_cur_ref_id, $a_ref_ids) |
Move objects from trash back to repository. More... | |
Protected Member Functions | |
findTypeInTrash ($a_type) | |
getObjectTypeId ($a_type) | |
Protected Attributes | |
$db | |
$tree | |
$settings | |
Static Private Member Functions | |
static | removeDeletedNodes ( $a_node_id, $a_checked, $a_delete_objects, &$a_affected_ids) |
Remove already deleted objects within the objects in trash. More... | |
static | insertSavedNodes ($a_source_id, $a_dest_id, $a_tree_id, &$a_affected_ids) |
Recursive method to insert all saved nodes of the clipboard. More... | |
Repository Utilities (application layer, put GUI related stuff into ilRepUtilGUI)
Definition at line 13 of file class.ilRepUtil.php.
ilRepUtil::__construct | ( | ) |
Constructor.
Definition at line 34 of file class.ilRepUtil.php.
References $DIC, and settings().
|
static |
Delete objects.
Move them to trash (if trash feature is enabled).
integer | current ref id |
array | array of ref(!) ids to be deleted |
Definition at line 50 of file class.ilRepUtil.php.
References $DIC, $id, $ilLog, $ilSetting, $key, $lng, $log, $tree, ilECSObjectSettings\_handleDelete(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), array, ilSession\clear(), ilObjectFactory\getInstanceByObjId(), ilUtil\removeItemFromDesktops(), and removeObjectsFromSystem().
Referenced by ilObjCloudGUI\afterServiceAuth(), ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilRepUtilGUI\deleteObjects(), and deleteObjectType().
ilRepUtil::deleteObjectType | ( | $a_type | ) |
Definition at line 519 of file class.ilRepUtil.php.
References $a_type, $db, $ilDB, $ilSetting, $row, $settings, $tree, array, deleteObjects(), ilObjRepositorySettings\deleteObjectType(), findTypeInTrash(), and getObjectTypeId().
|
protected |
Definition at line 488 of file class.ilRepUtil.php.
References $a_type, $db, $ilDB, $res, $row, and array.
Referenced by deleteObjectType().
|
protected |
Definition at line 507 of file class.ilRepUtil.php.
References $a_type, $db, $ilDB, and $row.
Referenced by deleteObjectType().
|
staticprivate |
Recursive method to insert all saved nodes of the clipboard.
Definition at line 441 of file class.ilRepUtil.php.
References $DIC, $factory, $GLOBALS, $tree, ilLoggerFactory\getLogger(), and IL_LAST_NODE.
Referenced by restoreObjects().
|
staticprivate |
Remove already deleted objects within the objects in trash.
Definition at line 304 of file class.ilRepUtil.php.
References $DIC, $ilDB, $ilLog, $log, $r, $row, $tree, array, and ilObjectFactory\getInstanceByRefId().
Referenced by removeObjectsFromSystem().
|
static |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
public
Definition at line 202 of file class.ilRepUtil.php.
References $DIC, $id, $ilLog, $ilUser, $log, $tree, ilChangeEvent\_recordWriteEvent(), array, ilObjectFactory\getInstanceByRefId(), and removeDeletedNodes().
Referenced by deleteObjects(), and ilRepUtilGUI\removeObjectsFromSystem().
|
static |
Move objects from trash back to repository.
Definition at line 367 of file class.ilRepUtil.php.
References $DIC, $id, $ilUser, $lng, $tree, ilChangeEvent\_catchupWriteEvents(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilChangeEvent\_recordWriteEvent(), array, ilObjectFactory\getInstanceByRefId(), and insertSavedNodes().
Referenced by ilRepUtilGUI\restoreObjects().
|
protected |
Definition at line 18 of file class.ilRepUtil.php.
Referenced by deleteObjectType(), findTypeInTrash(), and getObjectTypeId().
|
protected |
Definition at line 28 of file class.ilRepUtil.php.
Referenced by deleteObjectType().
|
protected |
Definition at line 23 of file class.ilRepUtil.php.
Referenced by deleteObjects(), deleteObjectType(), insertSavedNodes(), removeDeletedNodes(), removeObjectsFromSystem(), and restoreObjects().