ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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

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

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 $location.

Referenced by ilSearchResultPresentation\appendSubItems().

{
global $objDefinition;
if(isset(self::$instances[$a_type]))
{
return self::$instances[$a_type];
}
$class = $objDefinition->getClassName($a_type);
$location = $objDefinition->getLocation($a_type);
$full_class = "ilObj".$class."SubItemListGUI";
if(@include_once($location."/class.".$full_class.".php"))
{
return self::$instances[$a_type] = new $full_class($a_cmd_class);
}
else
{
include_once './Services/Object/classes/class.ilObjectSubItemListGUI.php';
return self::$instances[$a_type] = new ilObjectSubItemListGUI($a_cmd_class);
}
}

+ Here is the caller graph for this function:

Field Documentation

ilLuceneSubItemListGUIFactory::$instances = array()
staticprivate

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


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