ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
48  return self::$item_list_gui[$a_type];
49  }
50 
51  if(!$a_type) {
52  return self::$item_list_gui[$a_type] = $item_list_gui;
53  }
54 
55  $class = $objDefinition->getClassName($a_type);
56  $location = $objDefinition->getLocation($a_type);
57 
58  $full_class = "ilObj".$class."ListGUI";
59 
60  include_once($location."/class.".$full_class.".php");
61  $item_list_gui = new $full_class();
62 
63  $item_list_gui->enableDelete(false);
64  $item_list_gui->enableCut(false);
65  $item_list_gui->enableCopy(false);
66  $item_list_gui->enableSubscribe(true);
67  $item_list_gui->enableIcon(true);
68  $item_list_gui->enableLink(false);
69  $item_list_gui->enablePath(false);
70  $item_list_gui->enableLinkedPath(false);
71  $item_list_gui->enableSearchFragments(false);
72  $item_list_gui->enableRelevance(false);
73  $item_list_gui->enableCheckbox(false);
74  return self::$item_list_gui[$a_type] = $item_list_gui;
75  }
$location
Definition: buildRTE.php:44
global $ilCtrl
Definition: ilias.php:18
$a_type
Definition: workflow.php:93
+ 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: