ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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. More...
 

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

◆ factory()

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, $a_type, $ilLog, $item_list_gui, $location, and ilObjectListGUI\DETAILS_SEARCH.

Referenced by ilSearchResultTableGUI\fillRow().

45  {
46  global $objDefinition,$ilLog;
47 
48  if (isset(self::$item_list_gui[$a_type])) {
49  return self::$item_list_gui[$a_type];
50  }
51 
52  if (!$a_type) {
53  return self::$item_list_gui[$a_type] = $item_list_gui;
54  }
55 
56  $class = $objDefinition->getClassName($a_type);
57  $location = $objDefinition->getLocation($a_type);
58 
59  $full_class = "ilObj" . $class . "ListGUI";
60 
61  include_once($location . "/class." . $full_class . ".php");
62  $item_list_gui = new $full_class();
63 
65  $item_list_gui->enableDelete(true);
66  $item_list_gui->enableCut(true);
67  $item_list_gui->enableSubscribe(true);
68  $item_list_gui->enableLink(true);
69  $item_list_gui->enablePath(false);
70  $item_list_gui->enableLinkedPath(true);
71  $item_list_gui->enableSearchFragments(true);
72  $item_list_gui->enableRelevance(false);
73  if ($_SESSION["il_cont_admin_panel"]) {
74  $item_list_gui->enableCheckbox(false);
75  }
76 
77  return self::$item_list_gui[$a_type] = $item_list_gui;
78  }
$_SESSION["AccountId"]
$location
Definition: buildRTE.php:44
$a_type
Definition: workflow.php:92
+ Here is the caller graph for this function:

Field Documentation

◆ $item_list_gui

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: