ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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).
int | current ref id |
int[] | array of ref(!) ids to be deleted |
Definition at line 49 of file class.ilRepUtil.php.
References $DIC, $ilSetting, $lng, $log, $tree, ilECSObjectSettings\_handleDelete(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilSession\clear(), and removeObjectsFromSystem().
Referenced by ilObjCloudGUI\afterServiceAuth(), ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilRepUtilGUI\deleteObjects(), and deleteObjectType().
ilRepUtil::deleteObjectType | ( | $a_type | ) |
Definition at line 506 of file class.ilRepUtil.php.
References $db, $ilDB, $ilSetting, $settings, $tree, deleteObjects(), ilObjRepositorySettings\deleteObjectType(), findTypeInTrash(), getObjectTypeId(), and ROOT_FOLDER_ID.
|
protected |
Definition at line 475 of file class.ilRepUtil.php.
References $db, $ilDB, and $res.
Referenced by deleteObjectType().
|
protected |
Definition at line 494 of file class.ilRepUtil.php.
Referenced by deleteObjectType().
|
staticprivate |
Recursive method to insert all saved nodes of the clipboard.
Definition at line 428 of file class.ilRepUtil.php.
References $DIC, Vendor\Package\$e, $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 283 of file class.ilRepUtil.php.
References $DIC, $ilDB, $log, $tree, 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 175 of file class.ilRepUtil.php.
References $DIC, $ilUser, $log, $tree, ilChangeEvent\_recordWriteEvent(), ilObjectFactory\getInstanceByRefId(), ilTree\lookupTreesForNode(), and removeDeletedNodes().
Referenced by ilObjOrgUnitGUI\confirmedDeleteObject(), deleteObjects(), and ilRepUtilGUI\removeObjectsFromSystem().
|
static |
Move objects from trash back to repository.
int | $a_cur_ref_id | |
int[] | $a_ref_ids |
Definition at line 352 of file class.ilRepUtil.php.
References $DIC, Vendor\Package\$e, $ilUser, $lng, $tree, ilChangeEvent\_catchupWriteEvents(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilChangeEvent\_recordWriteEvent(), ilObjectFactory\getInstanceByRefId(), insertSavedNodes(), and ilTree\lookupTreesForNode().
Referenced by ilRepUtilGUI\doRestoreToNewLocation(), and 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().