ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilMobMultiSrtConfirmationTable2GUI.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
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
16{
20 protected $ctrl;
21
22 protected $mob;
23
27 public function __construct($a_parent_obj, $a_parent_cmd)
28 {
29 global $DIC;
30
31 $ilCtrl = $DIC->ctrl();
32 $lng = $DIC->language();
33
34 $this->lng = $lng;
35 $this->ctrl = $ilCtrl;
36
37 $this->multi_srt = $a_parent_obj->multi_srt;
38 $this->lng->loadLanguageModule("meta");
39
40 $this->setId("mob_msrt_upload");
41 parent::__construct($a_parent_obj, $a_parent_cmd);
42 $this->setLimit(9999);
43 $this->setData($this->multi_srt->getMultiSrtFiles());
44 $this->setTitle($this->lng->txt("cont_multi_srt_files"));
45
46 $this->addColumn($this->lng->txt("filename"));
47 $this->addColumn($this->lng->txt("language"));
48 $this->addColumn($this->lng->txt("mob"));
49
50 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
51 $this->setRowTemplate("tpl.mob_multi_srt_confirmation_row.html", "Services/MediaObjects");
52
53 $this->addCommandButton("saveMultiSrt", $this->lng->txt("save"));
54 $this->addCommandButton("cancelMultiSrt", $this->lng->txt("cancel"));
55 }
56
60 protected function fillRow($a_set)
61 {
63
64 if ($a_set["lang"] != "") {
65 $language = $lng->txt("meta_l_" . $a_set["lang"]);
66 $this->tpl->setVariable("LANGUAGE", $language);
67 }
68 if ($a_set["mob"] != "") {
69 $this->tpl->setVariable("MEDIA_OBJECT", $a_set["mob_title"]);
70 } else {
71 $this->tpl->setVariable("MEDIA_OBJECT", "-");
72 }
73 $this->tpl->setVariable("FILENAME", $a_set["filename"]);
74 }
75}
An exception for terminatinating execution or to throw for unit testing.
List srt files from zip file for upload confirmation.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Class ilTable2GUI.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
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.
setId($a_val)
Set id.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
global $ilCtrl
Definition: ilias.php:18
global $DIC
Definition: saml.php:7