ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilLuceneSubItemListGUIFactory Class Reference

List Gui factory for subitems (forum threads, lm pages...) More...

+ Collaboration diagram for ilLuceneSubItemListGUIFactory:

Static Public Member Functions

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

Static Private Attributes

static $instances = array()
 

Detailed Description

List Gui factory for subitems (forum threads, lm pages...)

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

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

Member Function Documentation

◆ getInstanceByType()

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

get instance by type

Parameters
string$a_typeObject type
Returns

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

45 {
46 global $objDefinition;
47
48 if (isset(self::$instances[$a_type])) {
49 return self::$instances[$a_type];
50 }
51
52 $class = $objDefinition->getClassName($a_type);
53 $location = $objDefinition->getLocation($a_type);
54 $full_class = "ilObj" . $class . "SubItemListGUI";
55 if (@include_once($location . "/class." . $full_class . ".php")) {
56 return self::$instances[$a_type] = new $full_class($a_cmd_class);
57 } else {
58 include_once './Services/Object/classes/class.ilObjectSubItemListGUI.php';
59 return self::$instances[$a_type] = new ilObjectSubItemListGUI($a_cmd_class);
60 }
61 }
$location
Definition: buildRTE.php:44
Default implementation of a sub item list gui.
$a_type
Definition: workflow.php:92

References $a_type, and $location.

Referenced by ilSearchResultPresentation\appendSubItems().

+ Here is the caller graph for this function:

Field Documentation

◆ $instances

ilLuceneSubItemListGUIFactory::$instances = array()
staticprivate

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


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