ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilLPCollectionOfMediaObjects Class Reference

LP collection of media objects. More...

+ Inheritance diagram for ilLPCollectionOfMediaObjects:
+ Collaboration diagram for ilLPCollectionOfMediaObjects:

Public Member Functions

 getPossibleItems ()
 
 getTableGUIData ($a_parent_ref_id)
 
- Public Member Functions inherited from ilLPCollection
 __construct ($a_obj_id, $a_mode)
 
 hasSelectableItems ()
 
 cloneCollection ($a_target_id, $a_copy_id)
 
 getItems ()
 
 delete ()
 
 isAssignedEntry ($a_item_id)
 
 deactivateEntries (array $a_item_ids)
 
 activateEntries (array $a_item_ids)
 

Static Protected Attributes

static $possible_items = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from ilLPCollection
static getInstanceByMode ($a_obj_id, $a_mode)
 
static getCollectionModes ()
 
- Protected Member Functions inherited from ilLPCollection
 read ($a_obj_id)
 
 validateEntry ($a_item_id)
 
 addEntry ($a_item_id)
 
 deleteEntry ($a_item_id)
 
- Protected Attributes inherited from ilLPCollection
 $obj_id
 
 $mode
 
 $items
 

Detailed Description

LP collection of media objects.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id
class.ilLPCollections.php 40326 2013-03-05 11:39:24Z jluetzen

Definition at line 15 of file class.ilLPCollectionOfMediaObjects.php.

Member Function Documentation

◆ getPossibleItems()

ilLPCollectionOfMediaObjects::getPossibleItems ( )

Definition at line 19 of file class.ilLPCollectionOfMediaObjects.php.

References ilLPCollection\$items, ilLPCollection\$obj_id, and array.

Referenced by getTableGUIData().

20  {
21  if(!isset(self::$possible_items[$this->obj_id]))
22  {
23  $items = array();
24 
25  include_once "Modules/MediaCast/classes/class.ilObjMediaCast.php";
26  $cast = new ilObjMediaCast($this->obj_id, false);
27 
28  foreach($cast->getSortedItemsArray() as $item)
29  {
30  $items[$item["mob_id"]] = array("title"=>$item["title"]);
31  }
32 
33  self::$possible_items[$this->obj_id] = $items;
34  }
35 
36  return self::$possible_items[$this->obj_id];
37  }
Class ilObjMediaCast.
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getTableGUIData()

ilLPCollectionOfMediaObjects::getTableGUIData (   $a_parent_ref_id)

Definition at line 44 of file class.ilLPCollectionOfMediaObjects.php.

References $data, array, getPossibleItems(), and ilLPCollection\isAssignedEntry().

45  {
46  $data = array();
47 
48  foreach($this->getPossibleItems() as $mob_id => $item)
49  {
50  $tmp = array();
51  $tmp['id'] = $mob_id;
52  $tmp['ref_id'] = 0;
53  $tmp['type'] = 'mob';
54  $tmp['title'] = $item['title'];
55  $tmp['status'] = $this->isAssignedEntry($mob_id);
56 
57  $data[] = $tmp;
58  }
59 
60  return $data;
61  }
Create styles array
The data for the language used.
isAssignedEntry($a_item_id)
+ Here is the call graph for this function:

Field Documentation

◆ $possible_items

ilLPCollectionOfMediaObjects::$possible_items = array()
staticprotected

Definition at line 17 of file class.ilLPCollectionOfMediaObjects.php.


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