18 declare(strict_types=1);
    30     public function __construct(
object $a_parent_obj, 
string $a_parent_cmd = 
"")
    35         $this->
setId(
'ecs_server_list');
    37         $this->
access = $DIC->access();
    38         $this->ui_factory = $DIC->ui()->factory();
    39         $this->ui_renderer = $DIC->ui()->renderer();
    47         $this->
setTitle($this->
lng->txt(
'ecs_available_ecs'));
    48         $this->
setRowTemplate(
'tpl.ecs_server_row.html', 
'components/ILIAS/WebServices/ECS');
    50         $this->
addColumn($this->
lng->txt(
'ecs_tbl_active'), 
'', 
'1%');
    53         if ($this->
access->checkAccess(
'write', 
'', (
int) $_REQUEST[
"ref_id"])) {
    62     protected function fillRow(array $a_set): void
    65         $this->
ctrl->setParameterByClass(
'ilecsmappingsettingsgui', 
'server_id', $a_set[
'server_id']);
    67         if ($a_set[
'active']) {
    69             $this->tpl->setVariable(
'TXT_OK', $this->
lng->txt(
'ecs_activated'));
    72             $this->tpl->setVariable(
'TXT_OK', $this->
lng->txt(
'ecs_inactivated'));
    77         $this->tpl->setVariable(
'LINK_EDIT', $this->
ctrl->getLinkTarget($this->getParentObject(), 
'edit'));
    78         $this->tpl->setVariable(
'TXT_SRV_ADDR', $this->
lng->txt(
'ecs_server_addr'));
    83             $this->tpl->setVariable(
'VAL_DESC', $this->
lng->txt(
'ecs_not_configured'));
    88             $this->tpl->setVariable(
'TXT_CERT_VALID', $this->
lng->txt(
'ecs_cert_valid_until'));
    94                 $this->tpl->setCurrentBlock(
'invalid');
    97                 $this->tpl->setCurrentBlock(
'valid');
   100             $this->tpl->parseCurrentBlock();
   103         if ($this->
access->checkAccess(
'write', 
'', (
int) $_REQUEST[
"ref_id"])) {
   108                 $items[] = [$this->
lng->txt(
'ecs_deactivate'), $this->
ctrl->getLinkTarget($this->
getParentObject(), 
'deactivate')];
   110                 $items[] = [$this->
lng->txt(
'ecs_activate'), $this->
ctrl->getLinkTarget($this->
getParentObject(), 
'activate')];
   117             $this->tpl->setCurrentBlock(
"actions");
   119             foreach ($items as $item) {
   120                 $render_items[] = $this->ui_factory->button()->shy(...$item);
   122             $this->tpl->setVariable(
   124                 $this->ui_renderer->render($this->ui_factory->dropdown()->standard($render_items)->withLabel($this->
lng->txt(
'actions')))
   126             $this->tpl->parseCurrentBlock();
   138             $tmp[
'server_id'] = 
$server->getServerId();
   139             $tmp[
'active'] = 
$server->isEnabled();
 
ILIAS UI Renderer $ui_renderer
 
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ilObjUser $user=null,)
 
__construct(object $a_parent_obj, string $a_parent_cmd="")
 
static _before(ilDateTime $start, ilDateTime $end, string $a_compare_field='', string $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets. 
 
parse(ilECSServerSettings $servers)
Parse available servers. 
 
fillRow(array $a_set)
Fill row. 
 
Collection of ECS settings. 
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template. 
 
static getInstanceByServerId(int $a_server_id)
Get singleton instance per server. 
 
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
getServers(int $server_type)
Get servers The function must be called with ALL_SERVER, ACTIVE_SERVER or INACTIVE_SERVER. 
 
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
 
ILIAS UI Factory $ui_factory
 
__construct(Container $dic, ilPlugin $plugin)
 
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)