ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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.

References $a_type, $DIC, and $location.

Referenced by ilSearchResultPresentation\appendSubItems().

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