ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
5 include_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 }
static _getMobsOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-")
get mobs of object
if(!array_key_exists('StateId', $_REQUEST)) $id
static getAllMobIds($a_id)
Interface ilMobMultiSrtInt.
static getIdsForType($a_id, $a_type)
Get all ids for type.
Handler class for multi srt upload in learning modules.
$mobs
static getDataDir()
get data directory (outside webspace)
getUploadDir()
Get directory for multi srt upload.