3 declare(strict_types=1);
29 bool $a_call_by_reference =
true 33 $this->tree = $DIC->repositoryTree();
34 $this->
lng = $DIC->language();
35 $this->rbacsystem = $DIC->rbac()->system();
36 $this->
access = $DIC->access();
39 $this->
lng->loadLanguageModule(
'fold');
44 $this->folder_tree = $a_tree;
49 $new_obj = parent::cloneObject($target_id, $copy_id, $omit_tree);
53 $obj_settings->cloneSettings($new_obj->getId());
63 if (!is_object($this->folder_tree)) {
64 $this->folder_tree = &
$tree;
72 $this->folder_tree->insertNode($this->
getId(), $parent_ref_id);
78 parent::cloneDependencies($target_id, $copy_id);
88 $possible_view_modes = [
96 if ($container_grp_ref_id) {
98 if (in_array($grp_view_mode, $possible_view_modes)) {
99 return $grp_view_mode;
103 if ($container_crs_ref_id) {
105 if (in_array($crs_view_mode, $possible_view_modes)) {
106 return $crs_view_mode;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
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)