4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_server_id, $a_mid, $a_parent_obj, $a_parent_cmd)
34 $this->server_id = $a_server_id;
38 $this->
setId(
'ecs_node_mapping_table');
40 parent::__construct($a_parent_obj, $a_parent_cmd);
42 $this->
setTitle($this->lng->txt(
'ecs_cms_directory_trees_tbl'));
43 $this->
addColumn($this->lng->txt(
'title'),
'',
"80%");
44 $this->
addColumn($this->lng->txt(
'actions'),
'',
"20%");
45 $this->
setRowTemplate(
"tpl.ecs_node_mapping_tree_table_row.html",
"Services/WebServices/ECS");
81 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'term']);
83 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
85 $this->tpl->setVariable(
'TXT_STATUS', $this->lng->txt(
'status'));
89 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
91 $list->setSelectionHeaderClass(
'small');
92 $list->setItemLinkClass(
'small');
93 $list->setId(
'actl_' . $a_set[
'id']);
94 $list->setListTitle($this->lng->txt(
'actions'));
97 $this->tpl->setVariable(
'EDIT_TITLE', $this->ctrl->getLinkTarget($this->getParentObject(),
'dInitEditTree'));
101 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
105 $this->lng->txt(
'ecs_cms_tree_synchronize'),
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';
132 $data[$counter][
'id'] = $tree_id;
138 $data[$counter][
'title'] = $node->
getTitle();
if(isset($_REQUEST['delete'])) $list
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
static getInstanceByServerMid($a_server_id, $a_mid)
Get instance.
static lookupMappingStatus($a_server_id, $a_mid, $a_tree_id)
Lookup mapping status.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static mappingStatusToString($a_status)
Get mapping status as string.
static lookupTopTerm($a_server_id, $a_mid, $a_tree_id)
Lookup term (highest term in cms tree) <type> $ilDB.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
parse()
Parse campusconnect.
User interface class for advanced drop-down selection lists.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
__construct($a_server_id, $a_mid, $a_parent_obj, $a_parent_cmd)
Table gui constructor <type> $lng <type> $ilCtrl.
setEnableHeader($a_enableheader)
Set Enable Header.
static lookupTreeIds($a_server_id, $a_mid)