ILIAS  release_8 Revision v8.23
ilLuceneSubItemListGUIFactory 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 ilLuceneSubItemListGUIFactory:

Static Public Member Functions

static getInstanceByType (string $a_type, object $a_cmd_class)
 get instance by type More...
 

Static Private Attributes

static array $instances = []
 

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 subitems (forum threads, lm pages...)

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 26 of file class.ilLuceneSubItemListGUIFactory.php.

Member Function Documentation

◆ getInstanceByType()

static ilLuceneSubItemListGUIFactory::getInstanceByType ( string  $a_type,
object  $a_cmd_class 
)
static

get instance by type

Definition at line 33 of file class.ilLuceneSubItemListGUIFactory.php.

References $DIC, and $location.

Referenced by ilSearchResultPresentation\appendSubItems().

34  {
35  global $DIC;
36 
37  $objDefinition = $DIC['objDefinition'];
38 
39  if (isset(self::$instances[$a_type])) {
40  return self::$instances[$a_type];
41  }
42 
43  $class = $objDefinition->getClassName($a_type);
44  $location = $objDefinition->getLocation($a_type);
45  $full_class = "ilObj" . $class . "SubItemListGUI";
46  if (@include_once($location . "/class." . $full_class . ".php")) {
47  return self::$instances[$a_type] = new $full_class(get_class($a_cmd_class));
48  } else {
49  return self::$instances[$a_type] = new ilObjectSubItemListGUI(get_class($a_cmd_class));
50  }
51  }
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: buildRTE.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

Field Documentation

◆ $instances

array ilLuceneSubItemListGUIFactory::$instances = []
staticprivate

Definition at line 28 of file class.ilLuceneSubItemListGUIFactory.php.


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