4 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
22 $this->
setId(
"sess_materials_".$a_parent_obj->object->getId());
26 $this->parent_ref_id = $tree->getParentId($a_parent_obj->object->getRefId());
30 $this->
setRowTemplate(
"tpl.session_materials_row.html",
"Modules/Session");
33 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj,$a_parent_cmd));
37 $this->
addColumn($lng->txt(
"crs_materials"),
"object",
"90%" );
38 $this->
addColumn($lng->txt(
"status"),
"active", 5);
47 global $tree, $objDefinition;
50 $nodes = $tree->getSubTree($tree->getNodeData($this->parent_ref_id));
53 foreach($nodes as $node)
56 if ($node[
'child'] == $this->parent_ref_id ||
57 $objDefinition->isSideBlock($node[
'type']) ||
58 in_array($node[
'type'], array(
'sess',
'itgr',
'rolf')))
63 if($node[
'type'] ==
'rolf')
68 $node[
"sorthash"] = (int)(!in_array($node[
'ref_id'],$this->
getMaterialItems())).$node[
"title"];
82 $this->tpl->setVariable(
'IMG_ALT',$this->lng->txt(
'obj_'.$a_set[
'type']));
84 $this->tpl->setVariable(
"VAL_POSTNAME",
"items");
85 $this->tpl->setVariable(
"VAL_ID",$a_set[
'ref_id']);
89 $this->tpl->setVariable(
"VAL_CHECKED",
"checked");
92 $this->tpl->setVariable(
"COLL_TITLE",$a_set[
'title']);
94 if(strlen($a_set[
'description']))
96 $this->tpl->setVariable(
"COLL_DESC",$a_set[
'description']);
98 $this->tpl->setVariable(
"ASSIGNED_IMG_OK",in_array($a_set[
'ref_id'],$this->
getMaterialItems()) ?
101 $this->tpl->setVariable(
"ASSIGNED_STATUS",$this->lng->txt(
'event_material_assigned'));
103 include_once(
'./Services/Tree/classes/class.ilPathGUI.php');
105 $path->enableDisplayCut(
true);
106 $path->enableTextOnly(
false);
107 $this->tpl->setVariable(
"COLL_PATH",
$path->getPath($this->getContainerRefId(), $a_set[
'ref_id']));
116 $this->material_items = $a_set;
134 $this->container_ref_id = $a_set;