ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLMMultiSrt Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

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

Protected Attributes

ilObjLearningModule $lm
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handler class for multi srt upload in learning modules

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilLMMultiSrt::__construct ( ilObjLearningModule  $a_lm)

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

28  {
29  $this->lm = $a_lm;
30  }

Member Function Documentation

◆ getMobIds()

ilLMMultiSrt::getMobIds ( )
Returns
int[] target media objects ids

Implements ilMobMultiSrtInt.

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

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

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

◆ getUploadDir()

ilLMMultiSrt::getUploadDir ( )

Get directory for multi srt upload.

Implements ilMobMultiSrtInt.

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

References ilFileUtils\getDataDir().

35  : string
36  {
37  return ilFileUtils::getDataDir() . "/lm_data" .
38  "/lm_" . $this->lm->getId() . "/srt_tmp";
39  }
static getDataDir()
get data directory (outside webspace)
+ Here is the call graph for this function:

Field Documentation

◆ $lm

ilObjLearningModule ilLMMultiSrt::$lm
protected

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


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