ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
14 {
15  function &_getListGUIByType($a_type)
16  {
17  global $objDefinition;
18 
19  $class = $objDefinition->getClassName($a_type);
20  $location = $objDefinition->getLocation($a_type);
21  $full_class = "ilObj".$class."ListGUI";
22  if(@include_once($location."/class.".$full_class.".php"))
23  {
24  return new $full_class();
25  }
26 
27  include_once './Services/Object/classes/class.ilObjectListGUI.php';
28  return new ilObjectListGUI($a_type);
29  }
30 
31 } // END class.ilObjectListGUIFactory
32 ?>