19 declare(strict_types=1);
32 bool $a_call_by_reference =
true 36 $this->tree = $DIC->repositoryTree();
37 $this->
lng = $DIC->language();
38 $this->rbacsystem = $DIC->rbac()->system();
39 $this->
access = $DIC->access();
42 $this->
lng->loadLanguageModule(
'fold');
47 $this->folder_tree = $a_tree;
52 $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
56 $obj_settings->cloneSettings($new_obj->getId());
66 if (!is_object($this->folder_tree)) {
67 $this->folder_tree = &
$tree;
75 $this->folder_tree->insertNode($this->
getId(), $parent_ref_id);
81 parent::cloneDependencies($target_id, $copy_id);
91 $possible_view_modes = [
99 if ($container_grp_ref_id) {
101 if (in_array($grp_view_mode, $possible_view_modes)) {
102 return $grp_view_mode;
106 if ($container_crs_ref_id) {
108 if (in_array($crs_view_mode, $possible_view_modes)) {
109 return $crs_view_mode;
putInTree(int $parent_ref_id)
withReferences()
determines whether objects are referenced or not (got ref ids or not)
static cloneDependencies(int $ref_id, int $target_id, int $copy_id)
setOrderType(int $a_value)
setFolderTree(ilTree $a_tree)
static _lookupObjId(int $ref_id)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static _lookupSortMode(int $a_obj_id)
checkForParentType(int $a_ref_id, string $a_type, bool $a_exclude_source_check=false)
Check for parent type e.g check if a folder (ref_id 3) is in a parent course obj => checkForParentTyp...
static _lookupViewMode(int $a_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
cloneDependencies(int $target_id, int $copy_id)
addAdditionalSubItemInformation(array &$object)
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
insertNode(int $a_node_id, int $a_parent_id, int $a_pos=self::POS_LAST_NODE, bool $a_reset_deletion_date=false)
insert new node with node_id under parent node with parent_id
static addAdditionalSubItemInformation(array &$item)
Parse item data for list entries.
__construct(Container $dic, ilPlugin $plugin)
__construct(int $a_id=0, bool $a_call_by_reference=true)
static lookupViewMode($a_obj_id)