18declare(strict_types=1);
33 public function __construct(
int $a_server_id,
int $a_mid, ?
object $a_parent_obj,
string $a_parent_cmd)
35 $this->server_id = $a_server_id;
39 $this->
setId(
'ecs_node_mapping_table');
43 $this->
setTitle($this->
lng->txt(
'ecs_cms_directory_trees_tbl'));
46 $this->
setRowTemplate(
"tpl.ecs_node_mapping_tree_table_row.html",
"Services/WebServices/ECS");
71 protected function fillRow(array $a_set): void
75 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'term']);
77 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
79 $this->tpl->setVariable(
'TXT_STATUS', $this->
lng->txt(
'status'));
84 $list->setSelectionHeaderClass(
'small');
85 $list->setItemLinkClass(
'small');
86 $list->setId(
'actl_' . $a_set[
'id']);
87 $list->setListTitle($this->
lng->txt(
'actions'));
90 $this->tpl->setVariable(
'EDIT_TITLE', $this->
ctrl->getLinkTarget($this->getParentObject(),
'dInitEditTree'));
92 $list->addItem($this->
lng->txt(
'edit'),
'', $this->ctrl->getLinkTarget($this->getParentObject(),
'dInitEditTree'));
97 $this->
lng->txt(
'ecs_cms_tree_synchronize'),
99 $this->ctrl->getLinkTarget($this->getParentObject(),
'dSynchronizeTree')
103 $list->addItem($this->
lng->txt(
'delete'),
'', $this->ctrl->getLinkTarget($this->getParentObject(),
'dConfirmDeleteTree'));
104 $this->tpl->setVariable(
'ACTIONS', $list->getHTML());
120 $data[$counter][
'id'] = $tree_id;
126 $data[$counter][
'title'] = $node->getTitle();
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static lookupTreeIds(int $a_server_id, int $a_mid)
static lookupTopTerm(int $a_server_id, int $a_mid, int $a_tree_id)
Lookup term (highest term in cms tree)
static mappingStatusToString(int $a_status)
Get mapping status as string.
static lookupMappingStatus(int $a_server_id, int $a_mid, int $a_tree_id)
Lookup mapping status.
static getInstanceByServerMid(int $a_server_id, int $a_mid)
Get instance.
parse()
Parse campusconnect.
__construct(int $a_server_id, int $a_mid, ?object $a_parent_obj, string $a_parent_cmd)
Table gui constructor.
fillRow(array $a_set)
Fill row.
static getInstanceByServerId(int $a_server_id)
Get singleton instance per server.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setEnableHeader(bool $a_enableheader)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc