4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   21    public function __construct($a_parent_obj, $a_parent_cmd, $a_folder)
 
   24        $ilAccess = 
$DIC->access();
 
   26        $this->folder = $a_folder;
 
   28        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   31        if ($ilAccess->checkAccess(
'write', 
'', $this->folder->getRefId())) {
 
   34        $this->
addColumn($this->lng->txt(
"language"));
 
   35        $this->
addColumn($this->lng->txt(
"status"));
 
   36        $this->
addColumn($this->lng->txt(
"users"));
 
   37        $this->
addColumn($this->lng->txt(
"last_refresh"));
 
   38        $this->
addColumn($this->lng->txt(
"last_change"));
 
   41        $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
 
   42        $this->
setRowTemplate(
"tpl.lang_list_row_extended.html", 
"Services/Language");
 
   46        if ($ilAccess->checkAccess(
'write', 
'', $this->folder->getRefId())) {
 
   48            $this->
addMultiCommand(
"confirmRefreshSelected", $this->lng->txt(
"refresh"));
 
   50            $this->
addMultiCommand(
"installLocal", $this->lng->txt(
"install_local"));
 
   51            $this->
addMultiCommand(
"confirmUninstall", $this->lng->txt(
"uninstall"));
 
   52            $this->
addMultiCommand(
"confirmUninstallChanges", $this->lng->txt(
"lang_uninstall_changes"));
 
   53            $this->
addMultiCommand(
"setSystemLanguage", $this->lng->txt(
"setSystemLanguage"));
 
   54            $this->
addMultiCommand(
"setUserLanguage", $this->lng->txt(
"setUserLanguage"));
 
   68            $data[] = array_merge(
$l, array(
"key" => $k));
 
   86        $ilAccess = 
$DIC->access();
 
   89        if ($a_set[
"status"]) {
 
   90            $status = 
"<span class=\"small\"> (" . $this->lng->txt($a_set[
"status"]) . 
")</span>";
 
   94        switch ($a_set[
"info"]) {
 
   95            case "file_not_found":
 
   96                $remark = 
"<span class=\"smallred\"> " . $this->lng->txt($a_set[
"info"]) . 
"</span>";
 
  107        if (
$ilSetting->get(
"lang_translate_" . $a_set[
'key'], 
false)) {
 
  108            $remark .= $remark ? 
'<br />' : 
'';
 
  109            $remark .= 
"<span class=\"smallgreen\"> " . $this->lng->txt(
'language_translation_enabled') . 
"</span>";
 
  112        if ($a_set[
"desc"] != 
"not_installed") {
 
  113            $this->tpl->setVariable(
 
  119            $this->tpl->setVariable(
 
  128        if ($ilAccess->checkAccess(
"write", 
"", $this->folder->getRefId())) {
 
  129            if (substr($a_set[
"description"], 0, 9) == 
"installed") {
 
  130                $this->ctrl->setParameterByClass(
"ilobjlanguageextgui", 
"obj_id", $a_set[
"obj_id"]);
 
  131                $url = $this->ctrl->getLinkTargetByClass(
"ilobjlanguageextgui", 
"");
 
  132                $a_set[
"name"] = 
'<a href="' . 
$url . 
'">' . $a_set[
"name"] . 
'</a>';
 
  136        $this->tpl->setVariable(
"VAL_LANGUAGE", $a_set[
"name"] . $status);
 
  137        $this->tpl->setVariable(
"VAL_STATUS", $this->lng->txt($a_set[
"desc"]) . 
"<br/>" . $remark);
 
  139        if ($ilAccess->checkAccess(
'write', 
'', $this->folder->getRefId())) {
 
  140            $this->tpl->setVariable(
"OBJ_ID", $a_set[
"obj_id"]);
 
An exception for terminatinating execution or to throw for unit testing.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
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.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
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.
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.
disable($a_module_name)
diesables particular modules of table
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 ha...