26 public function __construct($a_md_rbac_id, $a_md_obj_id, $a_md_obj_type)
28 $this->md_rbac_id = $a_md_rbac_id;
29 $this->md_obj_id = $a_md_obj_id;
30 $this->md_obj_type = $a_md_obj_type;
40 global $objDefinition, $tree;
42 if($objDefinition->isRBACObject($this->md_obj_type))
49 foreach($tree->getPathFull((
int)
$_REQUEST[
"ref_id"]) as $node)
52 if($node[
"type"] ==
"cat")
54 include_once
"Services/Object/classes/class.ilObjectServiceSettingsGUI.php";
55 include_once
"Services/Container/classes/class.ilContainer.php";
62 include_once
"Services/Taxonomy/classes/class.ilObjTaxonomy.php";
87 include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
99 if(is_array($tax_ids))
101 include_once
"Services/Taxonomy/classes/class.ilTaxSelectInputGUI.php";
102 foreach($tax_ids as $tax_id)
107 foreach($ta->getAssignmentsOfItem($this->md_obj_id) as $ass)
109 $node_ids[] = $ass[
"node_id"];
113 $tax_sel->setValue($node_ids);
125 if(is_array($tax_ids))
127 include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
129 foreach($tax_ids as $tax_id)
134 $ta->deleteAssignmentsOfItem($this->md_obj_id);
137 if(is_array(
$_POST[
"md_tax_".$tax_id]))
139 foreach(
$_POST[
"md_tax_".$tax_id] as $node_id)
141 $ta->addAssignment($node_id, $this->md_obj_id);