ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLuceneSearchObjectListGUIFactory Class Reference

List GUI factory for lucene search results. More...

+ Collaboration diagram for ilLuceneSearchObjectListGUIFactory:

Static Public Member Functions

static factory ($a_type)
 Get list gui by type This method caches all the returned list guis.

Static Private Attributes

static $item_list_gui = array()

Detailed Description

List GUI factory for lucene search results.

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

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

Member Function Documentation

static ilLuceneSearchObjectListGUIFactory::factory (   $a_type)
static

Get list gui by type This method caches all the returned list guis.

Parameters
string$a_typeobject type
Returns
object item_list_gui

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

References $_SESSION, $ilLog, $item_list_gui, $location, and ilObjectListGUI\DETAILS_SEARCH.

Referenced by ilSearchResultTableGUI\fillRow().

{
global $objDefinition,$ilLog;
if(isset(self::$item_list_gui[$a_type]))
{
return self::$item_list_gui[$a_type];
}
if(!$a_type) {
return self::$item_list_gui[$a_type] = $item_list_gui;
}
$class = $objDefinition->getClassName($a_type);
$location = $objDefinition->getLocation($a_type);
$full_class = "ilObj".$class."ListGUI";
include_once($location."/class.".$full_class.".php");
$item_list_gui = new $full_class();
$item_list_gui->enableDelete(true);
$item_list_gui->enableCut(true);
$item_list_gui->enableSubscribe(true);
$item_list_gui->enablePayment(false);
$item_list_gui->enableLink(true);
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(true);
$item_list_gui->enableSearchFragments(true);
$item_list_gui->enableRelevance(false);
if($_SESSION["il_cont_admin_panel"])
{
$item_list_gui->enableCheckbox(false);
}
return self::$item_list_gui[$a_type] = $item_list_gui;
}

+ Here is the caller graph for this function:

Field Documentation

ilLuceneSearchObjectListGUIFactory::$item_list_gui = array()
staticprivate

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

Referenced by factory().


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