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);
Taxonomy node <-> item assignment.
static getUsageOfObject($a_obj_id, $a_include_titles=false)
Get usage of object.
getSelectableTaxonomies()
Get selectable taxonomies for current object.
initTaxNodeAssignment($a_tax_id)
Init tax node assignment.
__construct($a_md_rbac_id, $a_md_obj_id, $a_md_obj_type)
Constructor.
Create styles array
The data for the language used.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=NULL)
Lookup a container setting.
updateFromMDForm()
Import settings from MD (quick edit) form.
addToMDForm(ilPropertyFormGUI $a_form)
Add taxonomy selector to MD (quick edit) form.