5 require_once
"./Services/Container/classes/class.ilContainer.php";
27 public function __construct($a_id = 0, $a_call_by_reference =
true)
31 $this->db = $DIC->database();
32 $this->app_event_handler = $DIC[
"ilAppEventHandler"];
33 $this->log = $DIC[
"ilLog"];
34 $this->
user = $DIC->user();
36 parent::__construct($a_id, $a_call_by_reference);
45 public function delete()
51 if (!parent::delete()) {
56 include_once(
'./Services/User/classes/class.ilObjUserFolder.php');
60 include_once
"Services/Taxonomy/classes/class.ilObjTaxonomy.php";
68 $ilAppEventHandler->raise(
71 array(
'object' => $this,
72 'obj_id' => $this->
getId())
86 public function cloneObject($a_target_id, $a_copy_id = 0, $a_omit_tree =
false)
88 $new_obj = parent::cloneObject($a_target_id, $a_copy_id, $a_omit_tree);
95 parent::cloneDependencies($a_target_id, $a_copy_id);
100 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
102 if (
sizeof($all_tax)) {
103 include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
106 $mappings = $cwo->getMappings();
108 foreach ($all_tax as $old_tax_id) {
112 $new_tax = $old_tax->cloneObject(0, 0,
true);
113 $tax_map = $old_tax->getNodeMapping();
119 foreach ($mappings as $old_ref_id => $new_ref_id) {
120 if ($old_ref_id != $new_ref_id) {
126 $assignmts = $tax_ass->getAssignmentsOfItem($old_obj_id);
127 if (
sizeof($assignmts)) {
129 foreach ($assignmts as $a) {
130 if ($tax_map[$a[
"node_id"]]) {
131 $new_tax_ass->
addAssignment($tax_map[$a[
"node_id"]], $new_obj_id);
148 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
static _updateUserFolderAssignment($a_old_id, $a_new_id)
Update user folder assignment Typically called after deleting a category with local user accounts...
addAssignment($a_node_id, $a_item_id, $a_order_nr=0)
Add assignment.
Taxonomy node <-> item assignment.
static getUsageOfObject($a_obj_id, $a_include_titles=false)
Get usage of object.
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone course (no member data)
static addAdditionalSubItemInformation(array &$a_item)
Parse item data for list entries.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
addAdditionalSubItemInformation(&$a_item_data)
Add additional information to sub item, e.g.
getId()
get object id public
cloneDependencies($a_target_id, $a_copy_id)
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
static saveUsage($a_tax_id, $a_obj_id)
Save Usage.
const USER_FOLDER_ID
Class ilObjUserFolder.