ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
◀ 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\MetaData\OERHarvester\Services
;
22
23
use
ILIAS\DI\Container
as
GlobalContainer
;
24
use
ILIAS\MetaData\OERHarvester\Settings\Settings
;
25
use
ILIAS\MetaData\OERHarvester\Settings\SettingsInterface
;
26
use
ILIAS\MetaData\OERHarvester\ResourceStatus\RepositoryInterface
as StatusRepository;
27
use
ILIAS\MetaData\OERHarvester\ResourceStatus\DatabaseRepository
;
28
29
class
Services
30
{
31
protected
SettingsInterface
$settings
;
32
protected
StatusRepository
$status_repository
;
33
34
protected
GlobalContainer
$dic
;
35
36
public
function
__construct
(
GlobalContainer
$dic)
37
{
38
$this->dic =
$dic
;
39
}
40
41
public
function
settings
():
SettingsInterface
42
{
43
if
(isset($this->
settings
)) {
44
return
$this->settings
;
45
}
46
return
$this->
settings
=
new
Settings
();
47
}
48
49
public
function
statusRepository
(): StatusRepository
50
{
51
if
(isset($this->status_repository)) {
52
return
$this->status_repository
;
53
}
54
return
$this->status_repository =
new
DatabaseRepository
($this->dic->database());
55
}
56
}
Settings
ILIAS\MetaData\OERHarvester\Settings\Settings
SettingsInterface
DatabaseRepository
ILIAS\MetaData\OERHarvester\Services\Services\settings
settings()
Definition:
Services.php:41
ILIAS\MetaData\OERHarvester\Services\Services\$settings
SettingsInterface $settings
Definition:
Services.php:31
ILIAS\MetaData\OERHarvester\Services\Services\statusRepository
statusRepository()
Definition:
Services.php:49
Services
Container
ILIAS\MetaData\OERHarvester\Services\Services\$dic
GlobalContainer $dic
Definition:
Services.php:34
ILIAS\MetaData\OERHarvester\Services\Services\$status_repository
StatusRepository $status_repository
Definition:
Services.php:32
ILIAS\MetaData\OERHarvester\Services
Definition:
Services.php:21
ILIAS\MetaData\OERHarvester\ResourceStatus\RepositoryInterface
Definition:
RepositoryInterface.php:23
SettingsInterface
ILIAS\MetaData\OERHarvester\Services\Services\__construct
__construct(GlobalContainer $dic)
Definition:
Services.php:36
ILIAS\MetaData\OERHarvester\ResourceStatus\DatabaseRepository
Definition:
DatabaseRepository.php:23
components
ILIAS
MetaData
classes
OERHarvester
Services
Services.php
Generated on Tue Apr 15 2025 23:02:02 for ILIAS by
1.8.13 (using
Doxyfile
)