ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMepMultiSrt 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 ilMepMultiSrt:
+ Collaboration diagram for ilMepMultiSrt:

Public Member Functions

 __construct (ilObjMediaPool $a_mep)
 
 getUploadDir ()
 Get directory for multi srt upload. More...
 
 getMobIds ()
 Get all mob ids of pool (incl mobs in snippet pages) More...
 

Protected Attributes

ilObjMediaPool $mep
 

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 24 of file class.ilMepMultiSrt.php.

Constructor & Destructor Documentation

◆ __construct()

ilMepMultiSrt::__construct ( ilObjMediaPool  $a_mep)

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

29  {
30  $this->mep = $a_mep;
31  }

Member Function Documentation

◆ getMobIds()

ilMepMultiSrt::getMobIds ( )

Get all mob ids of pool (incl mobs in snippet pages)

Returns
int[]

Implements ilMobMultiSrtInt.

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

References $id, ilObjMediaObject\_getMobsOfObject(), ilObjMediaPool\getAllMobIds(), ilMediaPoolItem\getIdsForType(), and ILIAS\Repository\int().

46  : array
47  {
48  $mobs = array();
49 
50  foreach (ilObjMediaPool::getAllMobIds($this->mep->getId()) as $id) {
51  $mobs[$id] = $id;
52  }
53  $pages = ilMediaPoolItem::getIdsForType($this->mep->getId(), "pg");
54  foreach ($pages as $p) {
55  // all media objects
56  $pg_mobs = ilObjMediaObject::_getMobsOfObject("mep:pg", $p, 0, "");
57  foreach ($pg_mobs as $k => $pg_mob) {
58  $mobs[(int) $pg_mob] = (int) $pg_mob;
59  }
60  }
61 
62  return $mobs;
63  }
static getAllMobIds(int $a_id)
static _getMobsOfObject(string $a_type, int $a_id, int $a_usage_hist_nr=0, string $a_lang="-")
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static getIdsForType(int $a_id, string $a_type)
Get all ids for type.
+ Here is the call graph for this function:

◆ getUploadDir()

ilMepMultiSrt::getUploadDir ( )

Get directory for multi srt upload.

Implements ilMobMultiSrtInt.

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

References ilFileUtils\getDataDir().

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

Field Documentation

◆ $mep

ilObjMediaPool ilMepMultiSrt::$mep
protected

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


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