ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Handler class for multi srt upload in learning modules. More...
Public Member Functions | |
__construct (ilObjLearningModule $a_lm) | |
Construcotr. More... | |
getMultiSrtUploadDir () | |
Get directory for multi srt upload. More... | |
uploadMultipleSubtitleFile ($a_file) | |
Upload multi srt file. More... | |
clearMultiSrtDirectory () | |
Clear multi feedback directory. More... | |
getMultiSrtFiles () | |
Get all srt files of srt multi upload. More... | |
moveMultiSrtFiles () | |
Move all srt files that could be mapped to media objects. More... | |
Protected Attributes | |
$lm | |
Handler class for multi srt upload in learning modules.
Definition at line 12 of file class.ilLMMultiSrt.php.
ilLMMultiSrt::__construct | ( | ilObjLearningModule | $a_lm | ) |
Construcotr.
ilObjLearningModule | $a_lm | learning module |
Definition at line 21 of file class.ilLMMultiSrt.php.
ilLMMultiSrt::clearMultiSrtDirectory | ( | ) |
Clear multi feedback directory.
Definition at line 64 of file class.ilLMMultiSrt.php.
References ilUtil\delDir(), and getMultiSrtUploadDir().
ilLMMultiSrt::getMultiSrtFiles | ( | ) |
Get all srt files of srt multi upload.
Definition at line 72 of file class.ilLMMultiSrt.php.
References $files, $l, $lang, $mobs, ilObjMediaObject\_getMobsOfObject(), ilMDLanguageItem\_getPossibleLanguageCodes(), array, ilUtil\getDir(), getMultiSrtUploadDir(), and ilLMPageObject\getPageList().
Referenced by moveMultiSrtFiles().
ilLMMultiSrt::getMultiSrtUploadDir | ( | ) |
Get directory for multi srt upload.
Definition at line 31 of file class.ilLMMultiSrt.php.
References ilUtil\getDataDir().
Referenced by clearMultiSrtDirectory(), getMultiSrtFiles(), moveMultiSrtFiles(), and uploadMultipleSubtitleFile().
ilLMMultiSrt::moveMultiSrtFiles | ( | ) |
Move all srt files that could be mapped to media objects.
Definition at line 152 of file class.ilLMMultiSrt.php.
References getMultiSrtFiles(), and getMultiSrtUploadDir().
ilLMMultiSrt::uploadMultipleSubtitleFile | ( | $a_file | ) |
Upload multi srt file.
array | $a_file | file info array |
ilLMException |
Definition at line 44 of file class.ilLMMultiSrt.php.
References $ilUser, $lng, ilUtil\delDir(), getMultiSrtUploadDir(), ilUtil\makeDirParents(), ilUtil\moveUploadedFile(), and ilUtil\unzip().
|
protected |
Definition at line 14 of file class.ilLMMultiSrt.php.