ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
50 return self::$instances[$a_type];
51 }
52
53 $class = $objDefinition->getClassName($a_type);
54 $location = $objDefinition->getLocation($a_type);
55 $full_class = "ilObj".$class."SubItemListGUI";
56 if(@include_once($location."/class.".$full_class.".php"))
57 {
58 return self::$instances[$a_type] = new $full_class($a_cmd_class);
59 }
60 else
61 {
62 include_once './Services/Object/classes/class.ilObjectSubItemListGUI.php';
63 return self::$instances[$a_type] = new ilObjectSubItemListGUI($a_cmd_class);
64 }
65 }
$location
Definition: buildRTE.php:44
Default implementation of a sub item list gui.

References $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: