ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ ilDoc Overview
class.ilObjectListGUIFactory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
24
class
ilObjectListGUIFactory
25
{
26
public
static
function
_getListGUIByType
(
27
string
$type,
28
int
$context =
ilObjectListGUI::CONTEXT_REPOSITORY
29
):
ilObjectListGUI
{
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
}
ilObjectException
Base exception class for object service.
Definition:
class.ilObjectException.php:27
ilObjectListGUIFactory
Definition:
class.ilObjectListGUIFactory.php:25
ilObjectListGUIFactory\_getListGUIByType
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
Definition:
class.ilObjectListGUIFactory.php:26
ilObjectListGUI
Important note:
Definition:
class.ilObjectListGUI.php:48
ilObjectListGUI\CONTEXT_REPOSITORY
const CONTEXT_REPOSITORY
Definition:
class.ilObjectListGUI.php:56
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
ILIASObject
classes
class.ilObjectListGUIFactory.php
Generated on Wed Apr 8 2026 23:04:58 for ILIAS by
1.9.4 (using
Doxyfile
)