ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilLMMultiSrt.php
Go to the documentation of this file.
1
<?php
2
23
class
ilLMMultiSrt
implements
ilMobMultiSrtInt
24
{
25
protected
ilObjLearningModule
$lm
;
26
27
public
function
__construct
(
ilObjLearningModule
$a_lm)
28
{
29
$this->lm = $a_lm;
30
}
31
35
public
function
getUploadDir
(): string
36
{
37
return
ilFileUtils::getDataDir
() .
"/lm_data"
.
38
"/lm_"
. $this->lm->getId() .
"/srt_tmp"
;
39
}
40
41
public
function
getMobIds
(): array
42
{
43
// add mob information to items
44
// all pages
45
$pages =
ilLMPageObject::getPageList
($this->lm->getId());
46
$mobs
= array();
47
foreach
($pages as $page) {
48
// all media objects
49
$pg_mobs =
ilObjMediaObject::_getMobsOfObject
(
"lm:pg"
, $page[
"obj_id"
], 0,
""
);
50
foreach
($pg_mobs as $k => $pg_mob) {
51
$mobs[$k] = $pg_mob;
52
}
53
}
54
return
$mobs
;
55
}
56
}
ilObjLearningModule
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObjLearningModule.php:22
$mobs
$mobs
Definition:
imgupload.php:70
ilLMMultiSrt\$lm
ilObjLearningModule $lm
Definition:
class.ilLMMultiSrt.php:25
ilMobMultiSrtInt
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilMobMultiSrtInt.php:23
ilLMMultiSrt\getMobIds
getMobIds()
Definition:
class.ilLMMultiSrt.php:41
ilLMMultiSrt\__construct
__construct(ilObjLearningModule $a_lm)
Definition:
class.ilLMMultiSrt.php:27
ilFileUtils\getDataDir
static getDataDir()
get data directory (outside webspace)
Definition:
class.ilFileUtils.php:358
ilObjMediaObject\_getMobsOfObject
static _getMobsOfObject(string $a_type, int $a_id, int $a_usage_hist_nr=0, string $a_lang="-")
Definition:
class.ilObjMediaObject.php:814
ilLMPageObject\getPageList
static getPageList(int $lm_id)
Definition:
class.ilLMPageObject.php:301
ilLMMultiSrt\getUploadDir
getUploadDir()
Get directory for multi srt upload.
Definition:
class.ilLMMultiSrt.php:35
ilLMMultiSrt
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilLMMultiSrt.php:23
Modules
LearningModule
classes
class.ilLMMultiSrt.php
Generated on Sun Aug 31 2025 22:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)