4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 public function __construct($a_server_id,$a_mid,$a_parent_obj, $a_parent_cmd)
32 $this->server_id = $a_server_id;
36 $this->
setId(
'ecs_node_mapping_table');
40 $this->
setTitle($this->lng->txt(
'ecs_cms_directory_trees_tbl'));
41 $this->
addColumn($this->lng->txt(
'title'),
'',
"80%");
42 $this->
addColumn($this->lng->txt(
'actions'),
'',
"20%");
43 $this->
setRowTemplate(
"tpl.ecs_node_mapping_tree_table_row.html",
"Services/WebServices/ECS");
78 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'term']);
82 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
84 $this->tpl->setVariable(
'TXT_STATUS',$this->lng->txt(
'status'));
88 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
90 $list->setSelectionHeaderClass(
'small');
91 $list->setItemLinkClass(
'small');
92 $list->setId(
'actl_'.$a_set[
'id']);
93 $list->setListTitle($this->lng->txt(
'actions'));
96 $this->tpl->setVariable(
'EDIT_TITLE',$this->ctrl->getLinkTarget($this->getParentObject(),
'dInitEditTree'));
98 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'dInitEditTree'));
100 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
105 $this->lng->txt(
'ecs_cms_tree_synchronize'),
111 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'dConfirmDeleteTree'));
112 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
122 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
123 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
124 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
133 $data[$counter][
'id'] = $tree_id;
138 $data[$counter][
'title'] = $node->
getTitle();