ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Services.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\AdvancedMetaData\Services
;
22
23
use
ILIAS\AdvancedMetaData\Services\ObjectModes\ObjectModesInterface
;
24
use
ILIAS\AdvancedMetaData\Services\SubObjectModes\SubObjectModesInterface
;
25
use
ILIAS\DI\Container
;
26
use
ILIAS\AdvancedMetaData\Services\ObjectModes\ObjectModes
;
27
use
ILIAS\AdvancedMetaData\Services\SubObjectModes\SubObjectModes
;
28
29
class
Services
implements
ServicesInterface
30
{
31
protected
Container
$dic
;
32
33
public
function
__construct
()
34
{
35
global
$DIC
;
36
37
$this->dic =
$DIC
;
38
}
39
40
public
function
forObject
(
41
string
$type,
42
int
$ref_id
,
43
string
$sub_type =
''
,
44
int
$sub_id = 0
45
): ObjectModesInterface {
46
return
new
ObjectModes(
47
$this->dic,
48
$type,
49
$ref_id,
50
$sub_type,
51
$sub_id
52
);
53
}
54
55
public
function
forSubObjects
(
56
string
$type,
57
int
$ref_id
,
58
string
...$sub_types
59
): SubObjectModesInterface {
60
return
new
SubObjectModes(
61
$this->dic,
62
$type,
63
$ref_id,
64
...$sub_types
65
);
66
}
67
68
public
function
getSubObjectID
(
69
int
$obj_id,
70
int
$sub_id,
71
string
$sub_type
72
):
SubObjectIDInterface
{
73
return
new
SubObjectID
($obj_id, $sub_id, $sub_type);
74
}
75
}
ILIAS\Cache\Services\Services\getSubObjectID
getSubObjectID(int $obj_id, int $sub_id, string $sub_type)
Definition:
Services.php:68
ILIAS\Cache\Services\SubObjectID
Definition:
SubObjectID.php:23
ILIAS\Cache\Services\Services\forObject
forObject(string $type, int $ref_id, string $sub_type='', int $sub_id=0)
Definition:
Services.php:40
ILIAS\Cache\Services\Services\__construct
__construct()
Definition:
Services.php:33
SubObjectModesInterface
ILIAS\Cache\Container\Container
Definition:
Container.php:28
Services
Container
ILIAS\Cache\Services\ServicesInterface
Definition:
ServicesInterface.php:26
$ref_id
$ref_id
Definition:
ltiauth.php:65
ObjectModesInterface
ILIAS\AdvancedMetaData\Services
Definition:
Constants.php:21
ObjectModes
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\Cache\Services\SubObjectIDInterface
Definition:
SubObjectIDInterface.php:23
ILIAS\Cache\Services\Services\forSubObjects
forSubObjects(string $type, int $ref_id, string ... $sub_types)
Definition:
Services.php:55
SubObjectModes
ILIAS\Cache\Services\Services\$dic
Container $dic
Definition:
Services.php:31
components
ILIAS
AdvancedMetaData
classes
Services
Services.php
Generated on Tue Apr 8 2025 23:02:29 for ILIAS by
1.8.13 (using
Doxyfile
)