ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilSessionObjectListGUIFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 29 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 37 of file class.ilSessionObjectListGUIFactory.php.

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

Referenced by ilObjSessionGUI\showJoinRequestButton().

38  {
39  global $DIC;
40 
41  $objDefinition = $DIC['objDefinition'];
42 
43  if (isset(self::$item_list_gui[$a_type])) {
44  return self::$item_list_gui[$a_type];
45  }
46 
47  if (!$a_type) {
48  return null;
49  }
50 
51  try {
53  } catch (ilObjectException $e) {
54  return null;
55  }
56  if (!$item_list_gui instanceof ilObjectListGUI) {
57  return null;
58  }
59  $item_list_gui->enableDelete(false);
60  $item_list_gui->enableCut(false);
61  $item_list_gui->enableCopy(false);
62  $item_list_gui->enableSubscribe(true);
63  $item_list_gui->enableIcon(true);
64  $item_list_gui->enableLink(false);
65  $item_list_gui->enablePath(false);
66  $item_list_gui->enableLinkedPath(false);
67  $item_list_gui->enableSearchFragments(false);
68  $item_list_gui->enableRelevance(false);
69  $item_list_gui->enableCheckbox(false);
70  return self::$item_list_gui[$a_type] = $item_list_gui;
71  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
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 31 of file class.ilSessionObjectListGUIFactory.php.

Referenced by factory().


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