4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
19 public function __construct($a_parent_obj, $a_parent_cmd =
"")
21 $this->
setId(
'ecs_server_list');
30 $this->
setTitle($this->lng->txt(
'ecs_available_ecs'));
31 $this->
setRowTemplate(
'tpl.ecs_server_row.html',
'Services/WebServices/ECS');
33 $this->
addColumn($this->lng->txt(
'ecs_tbl_active'),
'',
'1%');
34 $this->
addColumn($this->lng->txt(
'title'),
'',
'80%');
35 $this->
addColumn($this->lng->txt(
'actions'),
'',
'19%');
47 $ilCtrl->setParameter($this->
getParentObject(),
'server_id',$set[
'server_id']);
48 $ilCtrl->setParameterByClass(
'ilecsmappingsettingsgui',
'server_id',$set[
'server_id']);
53 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_activated'));
58 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_inactivated'));
62 $this->tpl->setVariable(
'LINK_EDIT', $ilCtrl->getLinkTarget($this->getParentObject(),
'edit'));
63 $this->tpl->setVariable(
'TXT_SRV_ADDR', $this->lng->txt(
'ecs_server_addr'));
71 $this->tpl->setVariable(
'VAL_DESC', $this->lng->txt(
'ecs_not_configured'));
77 $this->tpl->setVariable(
'TXT_CERT_VALID', $this->lng->txt(
'ecs_cert_valid_until'));
82 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
84 $list->setId(
'actl_'.$set[
'server_id']);
85 $list->setListTitle($this->lng->txt(
'actions'));
89 $list->addItem($this->lng->txt(
'ecs_deactivate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'deactivate'));
93 $list->addItem($this->lng->txt(
'ecs_activate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'activate'));
96 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'edit'));
98 $this->lng->txt(
'ecs_dir_alloc_set'),
100 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'dSettings')
103 $this->lng->txt(
'ecs_crs_alloc_set'),
105 $ilCtrl->getLinkTargetByClass(
'ilecsmappingsettingsgui',
'cSettings')
107 $list->addItem($this->lng->txt(
'copy'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'cp'));
108 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'delete'));
109 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
123 $tmp[
'server_id'] =
$server->getServerId();
124 $tmp[
'active'] =
$server->isEnabled();