46 $lng = $DIC->language();
47 $ilToolbar = $DIC->toolbar();
53 include_once(
"./Services/MediaObjects/classes/class.ilMobMultiSrtUpload.php");
55 $this->toolbar = $ilToolbar;
63 $cmd = $this->ctrl->getCmd(
"uploadMultipleSubtitleFileForm");
65 if (in_array($cmd,
array(
"uploadMultipleSubtitleFileForm",
"uploadMultipleSubtitleFile",
"showMultiSubtitleConfirmationTable",
"cancelMultiSrt",
"saveMultiSrt"))) {
78 $this->toolbar->setFormAction($this->ctrl->getFormAction($this),
true);
79 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
80 $fi =
new ilFileInputGUI($this->lng->txt(
"cont_subtitle_file") .
" (.zip)",
"subtitle_file");
82 $this->toolbar->addInputItem($fi,
true);
84 $this->toolbar->addFormButton($this->lng->txt(
"upload"),
"uploadMultipleSubtitleFile");
94 $this->ctrl->redirect($this,
"showMultiSubtitleConfirmationTable");
97 $this->ctrl->redirect($this,
"uploadMultipleSubtitleFileForm");
106 include_once(
"./Services/MediaObjects/classes/class.ilMobMultiSrtConfirmationTable2GUI.php");
108 $this->tpl->setContent(
$tab->getHTML());
116 $this->multi_srt->clearMultiSrtDirectory();
117 $this->ctrl->redirect($this,
"uploadMultipleSubtitleFileForm");
125 $cnt = $this->multi_srt->moveMultiSrtFiles();
126 $this->multi_srt->clearMultiSrtDirectory();
129 $this->ctrl->redirect($this,
"uploadMultipleSubtitleFileForm");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
showMultiSubtitleConfirmationTable()
List of srt files in zip file.
Interface ilMobMultiSrtInt.
Base exception class for learning modules.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
executeCommand()
Execute command.
List srt files from zip file for upload confirmation.
Upload SRT files to a set of media objects.
cancelMultiSrt()
Cancel Multi Feedback.
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashesArray($a_arr, $a_strip_html=true, $a_allow="")
Strip slashes from array.
Handler class for multi srt upload.
__construct(ilMobMultiSrtInt $a_multi_srt)
Constructor.
uploadMultipleSubtitleFile()
Upload multiple subtitles.
saveMultiSrt()
Save selected srt files as new srt files.
uploadMultipleSubtitleFileForm()
Upload multiple stubtitles.