ILIAS  release_8 Revision v8.24
class.ilObjectListGUIFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
26 public static function _getListGUIByType(
27 string $type,
30 global $DIC;
31
32 $objDefinition = $DIC["objDefinition"];
33
34 $class = $objDefinition->getClassName($type);
35 $location = $objDefinition->getLocation($type);
36 $full_class = "ilObj" . $class . "ListGUI";
37 if (file_exists($location . "/class." . $full_class . ".php")) {
38 include_once($location . "/class." . $full_class . ".php");
39 return new $full_class($context);
40 }
41
42 throw new ilObjectException("ilObjectListGUI for type $type not found.");
43 }
44}
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: buildRTE.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
global $DIC
Definition: feed.php:28
$type
$context
Definition: webdav.php:29