|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilRepUtil:Public Member Functions | |
| __construct () | |
| deleteObjectType (string $a_type) | |
Static Public Member Functions | |
| static | deleteObjects (int $a_cur_ref_id, array $a_ids) |
| Delete objects. More... | |
| static | removeObjectsFromSystem (array $a_ref_ids, bool $a_from_recovery_folder=false) |
| remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method More... | |
| static | restoreObjects (int $a_cur_ref_id, array $a_ref_ids) |
| Move objects from trash back to repository. More... | |
Protected Member Functions | |
| findTypeInTrash (string $a_type) | |
| getObjectTypeId (string $a_type) | |
Protected Attributes | |
| ilDBInterface | $db |
| ilTree | $tree |
| ilSetting | $settings |
Static Private Member Functions | |
| static | removeDeletedNodes (int $a_node_id, array $a_checked, bool $a_delete_objects, array &$a_affected_ids) |
| Remove already deleted objects within the objects in trash. More... | |
| static | insertSavedNodes (int $a_source_id, int $a_dest_id, int $a_tree_id, array &$a_affected_ids) |
| Recursive method to insert all saved nodes of the clipboard. 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 Repository Utilities (application layer, put GUI related stuff into ilRepositoryTrashGUI)
Definition at line 24 of file class.ilRepUtil.php.
| ilRepUtil::__construct | ( | ) |
Definition at line 30 of file class.ilRepUtil.php.
References $DIC, and ILIAS\Repository\settings().
Here is the call graph for this function:
|
static |
Delete objects.
Move them to trash (if trash feature is enabled).
| int | $a_cur_ref_id | |
| int[] | $a_ids ref ids |
| ilRepositoryException |
Definition at line 46 of file class.ilRepUtil.php.
References $DIC.
Referenced by ilFileVersionsGUI\confirmDeleteFile().
Here is the caller graph for this function:| ilRepUtil::deleteObjectType | ( | string | $a_type | ) |
Definition at line 410 of file class.ilRepUtil.php.
References $db, $ilDB, $ilSetting, $settings, $tree, ilObjRepositorySettings\deleteObjectType(), findTypeInTrash(), ilTree\getNodeData(), getObjectTypeId(), ilTree\getSubTree(), and ROOT_FOLDER_ID.
Here is the call graph for this function:
|
protected |
Definition at line 377 of file class.ilRepUtil.php.
References $db, $ilDB, and $res.
Referenced by deleteObjectType().
Here is the caller graph for this function:
|
protected |
Definition at line 397 of file class.ilRepUtil.php.
Referenced by deleteObjectType().
Here is the caller graph for this function:
|
staticprivate |
Recursive method to insert all saved nodes of the clipboard.
Definition at line 329 of file class.ilRepUtil.php.
References $DIC, Vendor\Package\$e, $GLOBALS, ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), ilTree\insertNodeFromTrash(), and ilTree\POS_LAST_NODE.
Here is the call graph for this function:
|
staticprivate |
Remove already deleted objects within the objects in trash.
Definition at line 183 of file class.ilRepUtil.php.
References $DIC, $ilDB, $log, $q, $r, ilObjectFactory\getInstanceByRefId(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:
|
static |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
| int[] | $a_ref_ids | |
| bool | $a_from_recovery_folder |
| ilDatabaseException | |
| ilInvalidTreeStructureException | |
| ilObjectNotFoundException | |
| ilRepositoryException |
Definition at line 64 of file class.ilRepUtil.php.
References $DIC, $id, $log, ilChangeEvent\_recordWriteEvent(), ilTree\deleteTree(), ilObjectFactory\getInstanceByRefId(), ilTree\getNodeData(), ilTree\getSubTree(), and ilTree\lookupTreesForNode().
Referenced by ilObjEmployeeTalkGUI\confirmedDeleteObject(), ilObjOrgUnitGUI\confirmedDeleteObject(), and ilRepositoryTrashGUI\removeObjectsFromSystem().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Move objects from trash back to repository.
| int | $a_cur_ref_id | |
| int[] | $a_ref_ids |
Definition at line 254 of file class.ilRepUtil.php.
References $DIC, Vendor\Package\$e, $id, $lng, ilChangeEvent\_catchupWriteEvents(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilChangeEvent\_recordWriteEvent(), ilObjectFactory\getInstanceByRefId(), ilTree\getParentId(), and ilTree\lookupTreesForNode().
Referenced by ilRepositoryTrashGUI\doRestoreToNewLocation(), and ilRepositoryTrashGUI\restoreObjects().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 26 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 27 of file class.ilRepUtil.php.
Referenced by deleteObjectType().