ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjectListGUIFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public static function _getListGUIByType(
27 string $type,
30 global $DIC;
31
32 $objDefinition = $DIC["objDefinition"];
33
34 $class = $objDefinition->getClassName($type);
35 $full_class = "ilObj" . $class . "ListGUI";
36 if (class_exists($full_class)) {
37 return new $full_class($context);
38 }
39
40 throw new ilObjectException("ilObjectListGUI for type $type not found.");
41 }
42}
Base exception class for object service.
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
global $DIC
Definition: shib_login.php:26
$context
Definition: webdav.php:31