ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSessionObjectListGUIFactory Class Reference

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

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 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.

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

Referenced by ilObjSessionGUI\showJoinRequestButton().

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.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
+ Here is the call graph for this function:
+ Here is the caller 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: