5 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
16 public function __construct($a_parent_obj, $a_parent_cmd =
"", $a_template_context =
"")
18 parent::__construct($a_parent_obj, $a_parent_cmd, $a_template_context);
20 $this->
setId(
'ldap_server_list');
22 $this->
setTitle($this->lng->txt(
'ldap_servers'));
25 $this->
addColumn($this->lng->txt(
'active'),
'',
'1%');
26 $this->
addColumn($this->lng->txt(
'title'),
'',
'80%');
27 $this->
addColumn($this->lng->txt(
'user'),
"",
"4%");
28 $this->
addColumn($this->lng->txt(
'actions'),
'',
'15%');
35 include_once
'./Services/LDAP/classes/class.ilLDAPServer.php';
47 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'active'));
52 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'inactive'));
55 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
"name"]);
59 $this->tpl->setVariable(
'VAL_USER',$user);
61 $ilCtrl->setParameter($this->
getParentObject(),
'ldap_server_id',$a_set[
'server_id']);
62 $this->tpl->setVariable(
'EDIT_LINK',$ilCtrl->getLinkTarget($this->getParentObject(),
'editServerSettings'));
66 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
68 $list->setSelectionHeaderClass(
'small');
69 $list->setItemLinkClass(
'small');
70 $list->setId(
'actl_'.$a_set[
'server_id']);
71 $list->setListTitle($this->lng->txt(
'actions'));
72 $list->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'editServerSettings'));
76 $list->addItem($this->lng->txt(
'deactivate'),
'',
81 $list->addItem($this->lng->txt(
'activate'),
'',
85 $list->addItem($this->lng->txt(
'delete'),
'',
86 $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteServerSettings'));
88 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
static _getAllServer()
Get list of all configured servers.
static _getExternalAccountsByAuthMode($a_auth_mode, $a_read_auth_default=false)
Get list of external account by authentication method Note: If login == ext_account for two user with...
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.