3 declare(strict_types=1);
37 $objDefinition = $DIC[
'objDefinition'];
39 if (isset(self::$instances[$a_type])) {
40 return self::$instances[$a_type];
43 $class = $objDefinition->getClassName($a_type);
44 $location = $objDefinition->getLocation($a_type);
45 $full_class =
"ilObj" . $class .
"SubItemListGUI";
46 if (@include_once(
$location .
"/class." . $full_class .
".php")) {
47 return self::$instances[$a_type] =
new $full_class(get_class($a_cmd_class));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$location
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 getInstanceByType(string $a_type, object $a_cmd_class)
get instance by type
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...