ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMobSubtitleTableGUI.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
16 {
20  protected $ctrl;
21 
25  protected $access;
26 
30  public function __construct($a_parent_obj, $a_parent_cmd, $a_mob)
31  {
32  global $DIC;
33 
34  $this->ctrl = $DIC->ctrl();
35  $this->lng = $DIC->language();
36  $this->access = $DIC->access();
37  $ilCtrl = $DIC->ctrl();
38  $lng = $DIC->language();
39  $ilAccess = $DIC->access();
40  $lng = $DIC->language();
41 
42  $this->mob = $a_mob;
43  parent::__construct($a_parent_obj, $a_parent_cmd);
44  $this->setData($a_mob->getSrtFiles());
45  $this->setTitle($lng->txt("mob_subtitle_files"));
46 
47  $this->addColumn("", "", 1);
48  $this->addColumn($this->lng->txt("mob_file"));
49  $this->addColumn($this->lng->txt("mob_language"));
50 
51  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
52  $this->setRowTemplate("tpl.srt_files_row.html", "Services/MediaObjects");
53 
54  $this->addMultiCommand("confirmSrtDeletion", $lng->txt("delete"));
55  //$this->addCommandButton("", $lng->txt(""));
56  }
57 
61  protected function fillRow($a_set)
62  {
63  $lng = $this->lng;
64 
65  $this->tpl->setVariable("FILE_NAME", $a_set["full_path"]);
66  $this->tpl->setVariable("LANGUAGE", $lng->txt("meta_l_" . $a_set["language"]));
67  $this->tpl->setVariable("LANG_KEY", $a_set["language"]);
68  }
69 }
TableGUI class for subtitle list.
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Fill table row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
__construct($a_parent_obj, $a_parent_cmd, $a_mob)
Constructor.