ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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, and $location.

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

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

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