ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
}
$context
$context
Definition:
webdav.php:31
ilObjectListGUI\CONTEXT_REPOSITORY
const CONTEXT_REPOSITORY
Definition:
class.ilObjectListGUI.php:56
ilObjectException
Base exception class for object service.
Definition:
class.ilObjectException.php:26
$DIC
global $DIC
Definition:
shib_login.php:26
ilObjectListGUI
ilObjectListGUIFactory\_getListGUIByType
static _getListGUIByType(string $type, int $context=ilObjectListGUI::CONTEXT_REPOSITORY)
Definition:
class.ilObjectListGUIFactory.php:26
ilObjectListGUIFactory
Definition:
class.ilObjectListGUIFactory.php:24
components
ILIAS
ILIASObject
classes
class.ilObjectListGUIFactory.php
Generated on Sun Aug 31 2025 23:03:07 for ILIAS by
1.8.13 (using
Doxyfile
)