ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSessionObjectListGUIFactory Class Reference

List GUI factory for session materials in session objects More...

+ Collaboration diagram for ilSessionObjectListGUIFactory:

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 session materials in session objects

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

Definition at line 31 of file class.ilSessionObjectListGUIFactory.php.

Member Function Documentation

static ilSessionObjectListGUIFactory::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 42 of file class.ilSessionObjectListGUIFactory.php.

References $ilCtrl, $ilLog, $item_list_gui, and $location.

Referenced by ilObjSessionGUI\infoScreen().

{
global $objDefinition,$ilLog,$ilCtrl;
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(false);
$item_list_gui->enableCut(false);
$item_list_gui->enableCopy(false);
$item_list_gui->enableSubscribe(true);
$item_list_gui->enableIcon(true);
$item_list_gui->enablePayment(true);
$item_list_gui->enableLink(false);
$item_list_gui->enablePath(false);
$item_list_gui->enableLinkedPath(false);
$item_list_gui->enableSearchFragments(false);
$item_list_gui->enableRelevance(false);
$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

ilSessionObjectListGUIFactory::$item_list_gui = array()
staticprivate

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

Referenced by factory().


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