ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilObjectListGUIFactory Class Reference

Class ilObjectListGUIFactory. More...

+ Collaboration diagram for ilObjectListGUIFactory:

Static Public Member Functions

static _getListGUIByType ($a_type, $a_context=ilObjectListGUI::CONTEXT_REPOSITORY)
 

Detailed Description

Member Function Documentation

◆ _getListGUIByType()

static ilObjectListGUIFactory::_getListGUIByType (   $a_type,
  $a_context = ilObjectListGUI::CONTEXT_REPOSITORY 
)
static

Definition at line 16 of file class.ilObjectListGUIFactory.php.

References $a_type, $DIC, and $location.

Referenced by ilContainerGUI\getAsynchItemListObject(), ilContainerContentGUI\getItemGUI(), ilCommonActionDispatcherGUI\initHeaderAction(), ilObjectGUI\setTitleAndDescription(), and ilContainerGUI\setTitleAndDescription().

17  {
18  global $DIC;
19 
20  $objDefinition = $DIC["objDefinition"];
21 
22  $class = $objDefinition->getClassName($a_type);
23  $location = $objDefinition->getLocation($a_type);
24  $full_class = "ilObj" . $class . "ListGUI";
25  if (file_exists($location . "/class." . $full_class . ".php")) {
26  include_once($location . "/class." . $full_class . ".php");
27  return new $full_class($a_context);
28  }
29 
30  // php7-todo JL: throw exception instead?
31  return new ilObjectListGUI($a_context);
32  }
global $DIC
Definition: saml.php:7
$location
Definition: buildRTE.php:44
$a_type
Definition: workflow.php:92
Class ilObjectListGUI.
+ Here is the caller graph for this function:

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