ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilLMMultiSrtConfirmationTable2GUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
17  protected $mob;
18 
22  public function __construct($a_parent_obj, $a_parent_cmd)
23  {
24  global $ilCtrl, $lng, $ilAccess, $lng, $ilUser;
25 
26  $this->multi_srt = $a_parent_obj->multi_srt;
27  $lng->loadLanguageModule("meta");
28 
29  $this->setId("mob_msrt_upload");
30  parent::__construct($a_parent_obj, $a_parent_cmd);
31  $this->setLimit(9999);
32  $this->setData($this->multi_srt->getMultiSrtFiles());
33  $this->setTitle($lng->txt("cont_multi_srt_files"));
34 
35  $this->addColumn($this->lng->txt("filename"));
36  $this->addColumn($this->lng->txt("language"));
37  $this->addColumn($this->lng->txt("mob"));
38 
39  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
40  $this->setRowTemplate("tpl.multi_srt_confirmation_row.html", "Modules/LearningModule");
41 
42  $this->addCommandButton("saveMultiSrt", $lng->txt("save"));
43  $this->addCommandButton("cancelMultiSrt", $lng->txt("cancel"));
44  }
45 
49  protected function fillRow($a_set)
50  {
51  global $lng;
52 
53  if ($a_set["lang"] != "")
54  {
55  $language = $lng->txt("meta_l_".$a_set["lang"]);
56  $this->tpl->setVariable("LANGUAGE", $language);
57  }
58  if ($a_set["mob"] != "")
59  {
60  $this->tpl->setVariable("MEDIA_OBJECT", $a_set["mob_title"]);
61  }
62  else
63  {
64  $this->tpl->setVariable("MEDIA_OBJECT", "-");
65  }
66  $this->tpl->setVariable("FILENAME", $a_set["filename"]);
67  }
68 
69 }
70 ?>
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
List srt files from zip file for upload confirmation.
setId($a_val)
Set id.
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
$ilUser
Definition: imgupload.php:18
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:17
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)