ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSessionObjectListGUIFactory Class Reference

@classDescription 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

@classDescription List GUI factory for session materials in session objects

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om @id $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.

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

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

Referenced by ilObjSessionGUI\infoScreen().

+ 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: