4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   24        parent::__construct(
null, 
"");
 
   25        $this->
setTitle($lng->txt(
"clients"));
 
   27        $this->setup = $a_setup;
 
   29        $this->
addColumn($this->lng->txt(
""), 
"", 
"1");
 
   30        $this->
addColumn($this->lng->txt(
"name"), 
"");
 
   31        $this->
addColumn($this->lng->txt(
"id"), 
"");
 
   32        $this->
addColumn($this->lng->txt(
"login"), 
"");
 
   33        $this->
addColumn($this->lng->txt(
"details"), 
"");
 
   34        $this->
addColumn($this->lng->txt(
"status"), 
"");
 
   35        $this->
addColumn($this->lng->txt(
"access"), 
"");
 
   48        $this->
addMultiCommand(
"changedefault", $lng->txt(
"set_default_client"));
 
   62        $clientlist = 
new ilClientList($this->setup->db_connections);
 
   63        $list = $clientlist->getClients();
 
   67            $status_arr = $this->setup->getStatus(
$client);
 
   68            if (!$status_arr[
"db"][
"status"]) {
 
   70                    "<a href=\"setup.php?cmd=db&client_id=" . 
$key . 
"&back=clientlist\">" .
 
   71                    $status_arr[
"db"][
"comment"] . 
"</a>";
 
   72            } elseif (!$status_arr[
"finish"][
"status"]) {
 
   73                $status = 
$lng->txt(
"setup_not_finished");
 
   75                $status = 
"<font color=\"green\"><strong>OK</strong></font>";
 
   78            if ($status_arr[
"access"][
"status"]) {
 
   84            if (
$key == $this->setup->default_client) {
 
   90            if ($status_arr[
"finish"][
"status"] and $status_arr[
"access"][
"status"]) {
 
   91                $login = 
"<a href=\"../login.php?client_id=" . 
$key . 
"\">Login</a>";
 
   96            $access_html = 
"<a href=\"setup.php?cmd=changeaccess&client_id=" . 
$key . 
"&back=clientlist\">" . $this->lng->txt($access) . 
"</a>";
 
   98            $client_name = (
$client->getName()) ? 
$client->getName() : 
"<" . 
$lng->txt(
"no_client_name") . 
">";
 
  102                "default" => 
"<input type=\"radio\" name=\"form[default]\" value=\"" . 
$key . 
"\"" . 
$default . 
"/>",
 
  103                "name" => $client_name,
 
  104                "desc" => 
$client->getDescription(),
 
  107                "details" => 
"<a href=\"setup.php?cmd=view&client_id=" . 
$key . 
"\">Details</a>",
 
  109                "access_html" => $access_html
 
  123        $this->tpl->setVariable(
"DEF_RADIO", $a_set[
"default"]);
 
  124        $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
 
  125        $this->tpl->setVariable(
"DESC", $a_set[
"desc"]);
 
  126        $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
  127        $this->tpl->setVariable(
"LOGIN", $a_set[
"login"]);
 
  128        $this->tpl->setVariable(
"DETAILS", $a_set[
"details"]);
 
  129        $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);
 
  130        $this->tpl->setVariable(
"ACCESS", $a_set[
"access_html"]);
 
An exception for terminatinating execution or to throw for unit testing.
fillRow($a_set)
Fill table row.
__construct($a_setup)
Constructor.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
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.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
disable($a_module_name)
diesables particular modules of table
if($_SERVER['argc']< 4) $client
if(isset($_REQUEST['delete'])) $list