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');
22 parent::__construct($a_parent_obj, $a_parent_cmd);
31 $this->
setTitle($this->lng->txt(
'ecs_available_ecs'));
32 $this->
setRowTemplate(
'tpl.ecs_server_row.html',
'Services/WebServices/ECS');
34 $this->
addColumn($this->lng->txt(
'ecs_tbl_active'),
'',
'1%');
35 $this->
addColumn($this->lng->txt(
'title'),
'',
'80%');
37 if ($ilAccess->checkAccess(
'write',
'', $_REQUEST[
"ref_id"])) {
38 $this->
addColumn($this->lng->txt(
'actions'),
'',
'19%');
51 $ilCtrl->setParameter($this->
getParentObject(),
'server_id', $set[
'server_id']);
52 $ilCtrl->setParameterByClass(
'ilecsmappingsettingsgui',
'server_id', $set[
'server_id']);
56 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_activated'));
59 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'ecs_inactivated'));
63 $this->tpl->setVariable(
'LINK_EDIT', $ilCtrl->getLinkTarget($this->getParentObject(),
'edit'));
64 $this->tpl->setVariable(
'TXT_SRV_ADDR', $this->lng->txt(
'ecs_server_addr'));
69 $this->tpl->setVariable(
'VAL_DESC', $this->lng->txt(
'ecs_not_configured'));
74 $this->tpl->setVariable(
'TXT_CERT_VALID', $this->lng->txt(
'ecs_cert_valid_until'));
80 $this->tpl->setCurrentBlock(
'invalid');
82 $this->tpl->parseCurrentBlock();
84 $this->tpl->setCurrentBlock(
'valid');
86 $this->tpl->parseCurrentBlock();
90 if ($ilAccess->checkAccess(
'write',
'', $_REQUEST[
"ref_id"])) {
92 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
94 $list->setSelectionHeaderClass(
'small');
95 $list->setItemLinkClass(
'small');
96 $list->setId(
'actl_' . $set[
'server_id']);
97 $list->setListTitle($this->lng->txt(
'actions'));
100 $list->addItem($this->lng->txt(
'ecs_deactivate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'deactivate'));
102 $list->addItem($this->lng->txt(
'ecs_activate'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'activate'));
105 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'edit'));
106 $list->addItem($this->lng->txt(
'copy'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'cp'));
107 $list->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'delete'));
109 $this->tpl->setCurrentBlock(
"actions");
110 $this->tpl->setVariable(
'ACTIONS',
$list->getHTML());
111 $this->tpl->parseCurrentBlock();
124 $tmp[
'server_id'] =
$server->getServerId();
125 $tmp[
'active'] =
$server->isEnabled();
if(isset($_REQUEST['delete'])) $list
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
static _before(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets.
parse(ilECSServerSettings $servers)
Parse available servers.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
fillRow($set)
Fill row int $counter.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Collection of ECS settings.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
__construct($a_parent_obj, $a_parent_cmd="")
Constructor.
Description of ilECSServerTableGUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
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.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.