ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4include_once './Services/Object/classes/class.ilObjectListGUI.php';
5
15{
16 public static function _getListGUIByType(
17 $type,
19 ) {
20 global $DIC;
21
22 $objDefinition = $DIC["objDefinition"];
23
24 $class = $objDefinition->getClassName($type);
25 $full_class = "ilObj" . $class . "ListGUI";
26 if (class_exists($full_class)) {
27 return new $full_class($context);
28 }
29
30 // php7-todo JL: throw exception instead?
31 return new ilObjectListGUI($context);
32 }
33} // END class.ilObjectListGUIFactory
An exception for terminatinating execution or to throw for unit testing.
Class ilObjectListGUIFactory.
static _getListGUIByType( $type, $context=ilObjectListGUI::CONTEXT_REPOSITORY)
Class ilObjectListGUI.
global $DIC
Definition: goto.php:24
$type
$context
Definition: webdav.php:26