ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMepMultiSrt Class Reference

Handler class for multi srt upload in learning modules. More...

+ Inheritance diagram for ilMepMultiSrt:
+ Collaboration diagram for ilMepMultiSrt:

Public Member Functions

 __construct ($a_mep)
 
 getUploadDir ()
 Get directory for multi srt upload. More...
 
 getMobIds ()
 

Detailed Description

Handler class for multi srt upload in learning modules.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilMepMultiSrt.php.

Constructor & Destructor Documentation

◆ __construct()

ilMepMultiSrt::__construct (   $a_mep)

Definition at line 16 of file class.ilMepMultiSrt.php.

17  {
18  $this->mep = $a_mep;
19  }

Member Function Documentation

◆ getMobIds()

ilMepMultiSrt::getMobIds ( )
Parameters

Implements ilMobMultiSrtInt.

Definition at line 38 of file class.ilMepMultiSrt.php.

References $id, $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaPool\getAllMobIds(), and ilMediaPoolItem\getIdsForType().

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  }
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)
static getIdsForType($a_id, $a_type)
Get all ids for type.
$mobs
+ Here is the call graph for this function:

◆ getUploadDir()

ilMepMultiSrt::getUploadDir ( )

Get directory for multi srt upload.

Returns
string diretory

Implements ilMobMultiSrtInt.

Definition at line 26 of file class.ilMepMultiSrt.php.

References ilUtil\getDataDir().

27  {
28  return ilUtil::getDataDir() . "/mep_data" .
29  "/mep_" . $this->mep->getId() . "/srt_tmp";
30  }
static getDataDir()
get data directory (outside webspace)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: