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

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

+ Inheritance diagram for ilLMMultiSrt:
+ Collaboration diagram for ilLMMultiSrt:

Public Member Functions

 __construct ($a_lm)
 
 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.ilLMMultiSrt.php.

Constructor & Destructor Documentation

◆ __construct()

ilLMMultiSrt::__construct (   $a_lm)

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

17  {
18  $this->lm = $a_lm;
19  }

Member Function Documentation

◆ getMobIds()

ilLMMultiSrt::getMobIds ( )
Parameters

Implements ilMobMultiSrtInt.

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

References $mobs, ilObjMediaObject\_getMobsOfObject(), and ilLMPageObject\getPageList().

39  {
40  // add mob information to items
41  // all pages
42  include_once("./Modules/LearningModule/classes/class.ilLMPageObject.php");
43  include_once("./Services/MediaObjects/classes/class.ilObjMediaObject.php");
44  $pages = ilLMPageObject::getPageList($this->lm->getId());
45  $mobs = array();
46  foreach ($pages as $page) {
47  // all media objects
48  $pg_mobs = ilObjMediaObject::_getMobsOfObject("lm:pg", $page["obj_id"], 0, "");
49  foreach ($pg_mobs as $k => $pg_mob) {
50  $mobs[$k] = $pg_mob;
51  }
52  }
53  return $mobs;
54  }
static _getMobsOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_lang="-")
get mobs of object
$mobs
static getPageList($lm_id)
static
+ Here is the call graph for this function:

◆ getUploadDir()

ilLMMultiSrt::getUploadDir ( )

Get directory for multi srt upload.

Returns
string diretory

Implements ilMobMultiSrtInt.

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

References ilUtil\getDataDir().

27  {
28  return ilUtil::getDataDir() . "/lm_data" .
29  "/lm_" . $this->lm->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: