ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilObjectListGUIFactory.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once './Services/Object/classes/class.ilObjectListGUI.php';
5 
15 {
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  }
32 
33 } // END class.ilObjectListGUIFactory
34 ?>
$location
Definition: buildRTE.php:44
$a_type
Definition: workflow.php:93
Class ilObjectListGUI.
static _getListGUIByType($a_type, $a_context=ilObjectListGUI::CONTEXT_REPOSITORY)
Class ilObjectListGUIFactory.