ILIAS  release_7 Revision v7.30-3-g800a261c036
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 ()
 
 getUploadDir ()
 
 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

return

Implements ilMobMultiSrtInt.

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

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 getIdsForType($a_id, $a_type)
Get all ids for type.
static _getMobsOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-")
get mobs of object
static getAllMobIds($a_id)
$mobs
Definition: imgupload.php:54

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

+ 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.

27 {
28 return ilUtil::getDataDir() . "/mep_data" .
29 "/mep_" . $this->mep->getId() . "/srt_tmp";
30 }
static getDataDir()
get data directory (outside webspace)

References ilUtil\getDataDir().

+ Here is the call graph for this function:

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