ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSessionObjectListGUIFactory Class Reference

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

+ Collaboration diagram for ilSessionObjectListGUIFactory:

Static Public Member Functions

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

Static Private Attributes

static array $item_list_gui = []
 

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 30 of file class.ilSessionObjectListGUIFactory.php.

Member Function Documentation

◆ factory()

static ilSessionObjectListGUIFactory::factory ( string  $a_type)
static

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

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

39 {
40 global $DIC;
41
42 $objDefinition = $DIC['objDefinition'];
43
44 if (isset(self::$item_list_gui[$a_type])) {
45 return self::$item_list_gui[$a_type];
46 }
47
48 if (!$a_type) {
49 return null;
50 }
51
52 try {
54 } catch (ilObjectException $e) {
55 return null;
56 }
57 if (!$item_list_gui instanceof ilObjectListGUI) {
58 return null;
59 }
60 $item_list_gui->enableTimings(false);
61 $item_list_gui->enableDelete(false);
62 $item_list_gui->enableCut(false);
63 $item_list_gui->enableCopy(false);
64 $item_list_gui->enableSubscribe(true);
65 $item_list_gui->enableIcon(true);
66 $item_list_gui->enableLink(false);
67 $item_list_gui->enablePath(false);
68 $item_list_gui->enableLinkedPath(false);
69 $item_list_gui->enableSearchFragments(false);
70 $item_list_gui->enableCheckbox(false);
71 return self::$item_list_gui[$a_type] = $item_list_gui;
72 }
Base exception class for object service.
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
global $DIC
Definition: shib_login.php:26

References $DIC, Vendor\Package\$e, $item_list_gui, and ilObjectListGUIFactory\_getListGUIByType().

+ Here is the call graph for this function:

Field Documentation

◆ $item_list_gui

array ilSessionObjectListGUIFactory::$item_list_gui = []
staticprivate

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

Referenced by factory().


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