ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMobMultiSrtConfirmationTable2GUI.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function __construct(
29 object $a_parent_obj,
30 string $a_parent_cmd
31 ) {
32 global $DIC;
33
34 $ilCtrl = $DIC->ctrl();
35 $lng = $DIC->language();
36
37 $this->lng = $lng;
38 $this->ctrl = $ilCtrl;
39
40 $this->multi_srt = $a_parent_obj->multi_srt;
41 $this->lng->loadLanguageModule("meta");
42
43 $this->setId("mob_msrt_upload");
44 parent::__construct($a_parent_obj, $a_parent_cmd);
45 $this->setLimit(9999);
46 $this->setData($this->multi_srt->getMultiSrtFiles());
47 $this->setTitle($this->lng->txt("cont_multi_srt_files"));
48
49 $this->addColumn($this->lng->txt("filename"));
50 $this->addColumn($this->lng->txt("language"));
51 $this->addColumn($this->lng->txt("mob"));
52
53 $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
54 $this->setRowTemplate("tpl.mob_multi_srt_confirmation_row.html", "components/ILIAS/MediaObjects");
55
56 $this->addCommandButton("saveMultiSrt", $this->lng->txt("save"));
57 $this->addCommandButton("cancelMultiSrt", $this->lng->txt("cancel"));
58 }
59
60 protected function fillRow(array $a_set): void
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}
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd)
fillRow(array $a_set)
Standard Version of Fill Row.
Handler class for multi srt upload.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setLimit(int $a_limit=0, int $a_default_limit=0)
set max.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
setData(array $a_data)
Set table data.
ilLanguage $lng
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26