4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   24                $this->folder = $a_folder;
 
   26                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   31                $this->
addColumn($this->lng->txt(
"language"));
 
   32                $this->
addColumn($this->lng->txt(
"status"));
 
   33                $this->
addColumn($this->lng->txt(
"users"));
 
   34                $this->
addColumn($this->lng->txt(
"last_refresh"));
 
   35                $this->
addColumn($this->lng->txt(
"last_change"));
 
   41                $this->
setRowTemplate(
"tpl.lang_list_row_extended.html", 
"Services/Language");
 
   49                $this->
addMultiCommand(
"confirmUninstallChanges", $lng->txt(
"lang_uninstall_changes"));
 
   50                $this->
addMultiCommand(
"setSystemLanguage", $lng->txt(
"setSystemLanguage"));
 
   51                $this->
addMultiCommand(
"setUserLanguage", $lng->txt(
"setUserLanguage"));
 
   64                        $data[] = array_merge(
$l, array(
"key" => $k));
 
   85                        $status = 
"<span class=\"small\"> (".$lng->txt($a_set[
"status"]).
")</span>";
 
   89                switch ($a_set[
"info"])
 
   91                        case "file_not_found":
 
   92                                $remark = 
"<span class=\"smallred\"> ".$lng->txt($a_set[
"info"]).
"</span>";
 
  103                if(
$ilSetting->get(
"lang_translate_". $a_set[
'key'], 
false))
 
  105                        $remark .= $remark ? 
'<br />' : 
'';
 
  106                        $remark .= 
"<span class=\"smallgreen\"> ".$lng->txt(
'language_translation_enabled').
"</span>";
 
  109                if ($a_set[
"desc"] != 
"not_installed")
 
  111                        $this->tpl->setVariable(
"LAST_REFRESH",
 
  115                        $this->tpl->setVariable(
"LAST_CHANGE",
 
  122                if ($rbacsystem->checkAccess(
"write",$this->folder->getRefId()))
 
  124                                if (substr($a_set[
"description"],0,9) == 
"installed")
 
  126                                        $ilCtrl->setParameterByClass(
"ilobjlanguageextgui", 
"obj_id", $a_set[
"obj_id"]);
 
  127                                        $url = 
$ilCtrl->getLinkTargetByClass(
"ilobjlanguageextgui", 
"");
 
  128                                        $a_set[
"name"] = 
'<a href="'.$url.
'">'.$a_set[
"name"].
'</a>';
 
  132                $this->tpl->setVariable(
"VAL_LANGUAGE", $a_set[
"name"].$status);
 
  133                $this->tpl->setVariable(
"VAL_STATUS", 
$lng->txt($a_set[
"desc"]).
"<br/>".$remark);
 
  134                $this->tpl->setVariable(
"OBJ_ID", $a_set[
"obj_id"]);
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_folder)
Constructor.
getItems()
Get language data.
static countUsers($a_lang)
Count number of users that use a language.
static _getLastLocalChange($a_key)
get the date of the last local change
setEnableHeader($a_enableheader)
Set Enable Header.
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.
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.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
static stableSortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false)