ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSessionObjectListGUIFactory Class Reference

List GUI factory for session materials in session objects More...

+ Collaboration diagram for ilSessionObjectListGUIFactory:

Static Public Member Functions

static factory ($a_type)
 Get list gui by type This method caches all the returned list guis. More...
 

Static Private Attributes

static $item_list_gui = array()
 

Detailed Description

List GUI factory for session materials in session objects

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om $Id$

Definition at line 31 of file class.ilSessionObjectListGUIFactory.php.

Member Function Documentation

◆ factory()

static ilSessionObjectListGUIFactory::factory (   $a_type)
static

Get list gui by type This method caches all the returned list guis.

Parameters
string$a_typeobject type
Returns
object item_list_gui

Definition at line 42 of file class.ilSessionObjectListGUIFactory.php.

References $a_type, $ilCtrl, $ilLog, $item_list_gui, and $location.

Referenced by ilObjSessionGUI\infoScreen().

43  {
44  global $objDefinition,$ilLog,$ilCtrl;
45 
46  if (isset(self::$item_list_gui[$a_type])) {
47  return self::$item_list_gui[$a_type];
48  }
49 
50  if (!$a_type) {
51  return self::$item_list_gui[$a_type] = $item_list_gui;
52  }
53 
54  $class = $objDefinition->getClassName($a_type);
55  $location = $objDefinition->getLocation($a_type);
56 
57  $full_class = "ilObj" . $class . "ListGUI";
58 
59  include_once($location . "/class." . $full_class . ".php");
60  $item_list_gui = new $full_class();
61 
62  $item_list_gui->enableDelete(false);
63  $item_list_gui->enableCut(false);
64  $item_list_gui->enableCopy(false);
65  $item_list_gui->enableSubscribe(true);
66  $item_list_gui->enableIcon(true);
67  $item_list_gui->enableLink(false);
68  $item_list_gui->enablePath(false);
69  $item_list_gui->enableLinkedPath(false);
70  $item_list_gui->enableSearchFragments(false);
71  $item_list_gui->enableRelevance(false);
72  $item_list_gui->enableCheckbox(false);
73  return self::$item_list_gui[$a_type] = $item_list_gui;
74  }
$location
Definition: buildRTE.php:44
global $ilCtrl
Definition: ilias.php:18
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

Field Documentation

◆ $item_list_gui

ilSessionObjectListGUIFactory::$item_list_gui = array()
staticprivate

Definition at line 33 of file class.ilSessionObjectListGUIFactory.php.

Referenced by factory().


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