ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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  function __construct($a_parent_obj, $a_parent_cmd, $a_mob)
21  {
22  global $ilCtrl, $lng, $ilAccess, $lng;
23 
24  $this->mob = $a_mob;
25  parent::__construct($a_parent_obj, $a_parent_cmd);
26  $this->setData($a_mob->getSrtFiles());
27  $this->setTitle($lng->txt("mob_subtitle_files"));
28 
29  $this->addColumn("", "", 1);
30  $this->addColumn($this->lng->txt("mob_file"));
31  $this->addColumn($this->lng->txt("mob_language"));
32 
33  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
34  $this->setRowTemplate("tpl.srt_files_row.html", "Services/MediaObjects");
35 
36  $this->addMultiCommand("confirmSrtDeletion", $lng->txt("delete"));
37  //$this->addCommandButton("", $lng->txt(""));
38  }
39 
43  protected function fillRow($a_set)
44  {
45  global $lng;
46 
47  $this->tpl->setVariable("FILE_NAME", $a_set["full_path"]);
48  $this->tpl->setVariable("LANGUAGE", $lng->txt("meta_l_".$a_set["language"]));
49  $this->tpl->setVariable("LANG_KEY", $a_set["language"]);
50  }
51 
52 }
53 ?>