ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilLPCollectionOfMediaObjects.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once "Services/Tracking/classes/collection/class.ilLPCollection.php";
5 
16 {
17  protected static $possible_items = array();
18 
19  public function getPossibleItems()
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  }
38 
39 
40  //
41  // TABLE GUI
42  //
43 
44  public function getTableGUIData($a_parent_ref_id)
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  }
62 }
63 
64 ?>
Class ilObjMediaCast.
Create styles array
The data for the language used.
LP collection base class.
isAssignedEntry($a_item_id)