ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
DICMemberMap.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\CI\Rector\DIC
;
22
23
class
DICMemberMap
24
{
25
public
const
TPL
=
'tpl'
;
26
protected
array
$map
= [];
27
28
public
function
__construct
()
29
{
30
$tpl
=
new
DICMember
(
31
self::TPL,
32
\ilGlobalTemplateInterface::class,
33
[
'ui'
,
'mainTemplate'
],
34
'main_tpl'
35
);
36
$tpl
->setAlternativeClasses([\ilTemplate::class, \ilGlobalTemplate::class, \ilGlobalPageTemplate::class]);
37
$this->map[self::TPL] =
$tpl
;
38
}
39
40
public
function
getByName
(
string
$name
):
DICMember
41
{
42
if
(!isset($this->map[$name])) {
43
throw
new \InvalidArgumentException(
"The dependency '$name' is currently not configured"
);
44
}
45
return
$this->map[
$name
];
46
}
47
}
ILIAS\CI\Rector\DIC\DICMemberMap\TPL
const TPL
Definition:
DICMemberMap.php:25
ILIAS\CI\Rector\DIC\DICMemberMap\getByName
getByName(string $name)
Definition:
DICMemberMap.php:40
$name
if($format !==null) $name
Definition:
metadata.php:247
ILIAS\CI\Rector\DIC\DICMemberMap\__construct
__construct()
Definition:
DICMemberMap.php:28
ILIAS\CI\Rector\DIC\DICMember
Definition:
DICMember.php:23
ILIAS\CI\Rector\DIC\DICMemberMap
Definition:
DICMemberMap.php:23
ILIAS\CI\Rector\DIC\DICMemberMap\$map
array $map
Definition:
DICMemberMap.php:26
$tpl
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition:
latex.php:41
ILIAS\CI\Rector\DIC
Definition:
DICDependencyManipulator.php:21
CI
Rector
DIC
DICMemberMap.php
Generated on Fri Apr 4 2025 22:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)