5include_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'));
 
   23        $this->
setRowTemplate(
'tpl.ldap_server_row.html', 
'Services/LDAP');
 
   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';
 
   46        if ($a_set[
'active']) {
 
   48            $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'active'));
 
   51            $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'inactive'));
 
   54        $this->tpl->setVariable(
'VAL_TITLE', $a_set[
"name"]);
 
   58        $this->tpl->setVariable(
'VAL_USER', 
$user);
 
   61        $this->tpl->setVariable(
'EDIT_LINK', 
$ilCtrl->getLinkTarget($this->getParentObject(), 
'editServerSettings'));
 
   65        include_once 
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
   67        $list->setSelectionHeaderClass(
'small');
 
   68        $list->setItemLinkClass(
'small');
 
   69        $list->setId(
'actl_' . $a_set[
'server_id']);
 
   70        $list->setListTitle($this->lng->txt(
'actions'));
 
   71        $list->addItem($this->lng->txt(
'edit'), 
'', 
$ilCtrl->getLinkTarget($this->getParentObject(), 
'editServerSettings'));
 
   73        if ($a_set[
'active']) {
 
   75                $this->lng->txt(
'deactivate'),
 
   77                $ilCtrl->getLinkTarget($this->getParentObject(), 
'deactivateServer')
 
   81                $this->lng->txt(
'activate'),
 
   83                $ilCtrl->getLinkTarget($this->getParentObject(), 
'activateServer')
 
   88            $this->lng->txt(
'delete'),
 
   90            $ilCtrl->getLinkTarget($this->getParentObject(), 
'confirmDeleteServerSettings')
 
   93        $this->tpl->setVariable(
'ACTIONS', 
$list->getHTML());
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
ilTable2GUI constructor.
fillRow($a_set)
Standard Version of Fill Row.
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.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(isset($_REQUEST['delete'])) $list