ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMepMultiSrt.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
5include_once("./Services/MediaObjects/interfaces/interface.ilMobMultiSrtInt.php");
6
15{
16 public function __construct($a_mep)
17 {
18 $this->mep = $a_mep;
19 }
20
26 public function getUploadDir()
27 {
28 return ilUtil::getDataDir() . "/mep_data" .
29 "/mep_" . $this->mep->getId() . "/srt_tmp";
30 }
31
38 public function getMobIds()
39 {
40 $mobs = array();
41
42 foreach (ilObjMediaPool::getAllMobIds($this->mep->getId()) as $id) {
43 $mobs[$id] = $id;
44 }
45 $pages = ilMediaPoolItem::getIdsForType($this->mep->getId(), "pg");
46 foreach ($pages as $p) {
47 // all media objects
48 $pg_mobs = ilObjMediaObject::_getMobsOfObject("mep:pg", $p, 0, "");
49 foreach ($pg_mobs as $k => $pg_mob) {
50 $mobs[$k] = $pg_mob;
51 }
52 }
53
54 return $mobs;
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
static getIdsForType($a_id, $a_type)
Get all ids for type.
Handler class for multi srt upload in learning modules.
getUploadDir()
Get directory for multi srt upload.
static _getMobsOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-")
get mobs of object
static getAllMobIds($a_id)
static getDataDir()
get data directory (outside webspace)
if(!array_key_exists('StateId', $_REQUEST)) $id
Interface ilMobMultiSrtInt.
$mobs