ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMultiSrtConfirmationTable2GUI.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->mob = $a_parent_obj->object;
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->mob->getMultiSrtFiles());
33  $this->setTitle($lng->txt("mob_multi_srt_files"));
34  $this->setSelectAllCheckbox("file");
35 
36  $this->addColumn("", "", "1px", true);
37  $this->addColumn($this->lng->txt("filename"), "filename");
38  $this->addColumn($this->lng->txt("language"), "language");
39 
40  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
41  $this->setRowTemplate("tpl.multi_srt_confirmation_row.html", "Services/MediaObjects");
42 
43  $this->addCommandButton("saveMultiSrt", $lng->txt("save"));
44  $this->addCommandButton("cancelMultiSrt", $lng->txt("cancel"));
45  }
46 
50  protected function fillRow($a_set)
51  {
52  global $lng;
53 
54  if ($a_set["lang"] != "")
55  {
56  $this->tpl->setCurrentBlock("cb");
57  $language = $lng->txt("meta_l_".$a_set["lang"]);
58  $this->tpl->setVariable("LANGUAGE", $language);
59  $this->tpl->setVariable("POST_FILE", ilUtil::prepareFormOutput($a_set["filename"]));
60  $this->tpl->parseCurrentBlock();
61  }
62  $this->tpl->setVariable("FILENAME", $a_set["filename"]);
63  }
64 
65 }
66 ?>
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
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.
List srt files from zip file for upload confirmation.
Class ilTable2GUI.
$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
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all 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.
setLimit($a_limit=0, $a_default_limit=0)