4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
24 public function __construct($a_server_id, $a_mid, $a_parent_obj, $a_parent_cmd)
31 $this->server_id = $a_server_id;
35 $this->
setId(
'ecs_node_mapping_table');
37 parent::__construct($a_parent_obj, $a_parent_cmd);
39 $this->
setTitle($this->lng->txt(
'ecs_cms_directory_trees_tbl'));
40 $this->
addColumn($this->lng->txt(
'title'),
'',
"80%");
41 $this->
addColumn($this->lng->txt(
'actions'),
'',
"20%");
42 $this->
setRowTemplate(
"tpl.ecs_node_mapping_tree_table_row.html",
"Services/WebServices/ECS");
76 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'term']);
78 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
80 $this->tpl->setVariable(
'TXT_STATUS', $this->lng->txt(
'status'));
84 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
86 $list->setSelectionHeaderClass(
'small');
87 $list->setItemLinkClass(
'small');
88 $list->setId(
'actl_' . $a_set[
'id']);
89 $list->setListTitle($this->lng->txt(
'actions'));
92 $this->tpl->setVariable(
'EDIT_TITLE', $this->ctrl->getLinkTarget($this->getParentObject(),
'dInitEditTree'));
94 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'dInitEditTree'));
96 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
100 $this->lng->txt(
'ecs_cms_tree_synchronize'),
106 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'dConfirmDeleteTree'));
107 $this->tpl->setVariable(
'ACTIONS',
$list->getHTML());
117 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
118 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
119 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
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.
Create styles array
The data for the language used.
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)