4 include_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"));
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"]);
static countUsers($a_lang)
Count number of users that use a language.
fillRow($a_set)
Fill table row.
getItems()
Get language data.
static stableSortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false)
Sort an aray using a stable sort algorithm, which preveserves the sequence of array elements which h...
addMultiCommand($a_cmd, $a_text)
Add Command button.
static formatDate(ilDateTime $date)
Format a date public.
__construct($a_parent_obj, $a_parent_cmd, $a_folder)
Constructor.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.
static _getLastLocalChange($a_key)
get the date of the last local change
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.
setLimit($a_limit=0, $a_default_limit=0)