ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilLMMultiSrt.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
14 public function __construct($a_lm)
15 {
16 $this->lm = $a_lm;
17 }
18
24 public function getUploadDir()
25 {
26 return ilUtil::getDataDir() . "/lm_data" .
27 "/lm_" . $this->lm->getId() . "/srt_tmp";
28 }
29
36 public function getMobIds()
37 {
38 // add mob information to items
39 // all pages
40 $pages = ilLMPageObject::getPageList($this->lm->getId());
41 $mobs = array();
42 foreach ($pages as $page) {
43 // all media objects
44 $pg_mobs = ilObjMediaObject::_getMobsOfObject("lm:pg", $page["obj_id"], 0, "");
45 foreach ($pg_mobs as $k => $pg_mob) {
46 $mobs[$k] = $pg_mob;
47 }
48 }
49 return $mobs;
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
Handler class for multi srt upload in learning modules.
getUploadDir()
Get directory for multi srt upload.
static getPageList($lm_id)
static
static _getMobsOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-")
get mobs of object
static getDataDir()
get data directory (outside webspace)
$mobs
Definition: imgupload.php:54
Interface ilMobMultiSrtInt.