ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 $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->enablePayment(true);
69 $item_list_gui->enableLink(false);
70 $item_list_gui->enablePath(false);
71 $item_list_gui->enableLinkedPath(false);
72 $item_list_gui->enableSearchFragments(false);
73 $item_list_gui->enableRelevance(false);
74 $item_list_gui->enableCheckbox(false);
75 return self::$item_list_gui[$a_type] = $item_list_gui;
76 }
$location
Definition: buildRTE.php:44
global $ilCtrl
Definition: ilias.php:18

References $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: