ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
Manager.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Vocabularies\Manager
;
22
23
use
ILIAS\MetaData\Vocabularies\VocabularyInterface
;
24
use
ILIAS\MetaData\Vocabularies\Dispatch\Info\InfosInterface
;
25
use
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface
;
26
use
ILIAS\MetaData\Vocabularies\Dispatch\ReaderInterface
;
27
use
ILIAS\MetaData\Vocabularies\Dispatch\ActionsInterface
;
28
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as
SlotIdentifier
;
29
30
class
Manager
implements
ManagerInterface
31
{
32
protected
CreationRepositoryInterface
$creation_repo
;
33
protected
ReaderInterface
$reader
;
34
protected
InfosInterface
$infos
;
35
protected
ActionsInterface
$actions
;
36
37
public
function
__construct
(
38
CreationRepositoryInterface
$creation_repo,
39
ReaderInterface
$reader,
40
InfosInterface
$infos,
41
ActionsInterface
$actions
42
) {
43
$this->creation_repo =
$creation_repo
;
44
$this->reader =
$reader
;
45
$this->
infos
=
$infos
;
46
$this->
actions
=
$actions
;
47
}
48
52
public
function
getAllVocabularies
(): \
Generator
53
{
54
yield
from
$this->reader->vocabulariesForSlots(...SlotIdentifier::cases());
55
}
56
57
public
function
getVocabulary
(
string
$vocab_id):
VocabularyInterface
58
{
59
return
$this->reader->vocabulary($vocab_id);
60
}
61
62
public
function
infos
():
InfosInterface
63
{
64
return
$this->infos
;
65
}
66
67
public
function
actions
():
ActionsInterface
68
{
69
return
$this->actions
;
70
}
71
72
public
function
controlledVocabularyCreator
():
CreationRepositoryInterface
73
{
74
return
$this->creation_repo
;
75
}
76
}
CreationRepositoryInterface
ILIAS\MetaData\Vocabularies\Manager\Manager\__construct
__construct(CreationRepositoryInterface $creation_repo, ReaderInterface $reader, InfosInterface $infos, ActionsInterface $actions)
Definition:
Manager.php:37
ReaderInterface
ILIAS\MetaData\Vocabularies\Dispatch\ReaderInterface
Definition:
ReaderInterface.php:26
ILIAS\MetaData\Vocabularies\Manager\Manager\actions
actions()
Definition:
Manager.php:67
ILIAS\MetaData\Vocabularies\Manager\Manager\infos
infos()
Definition:
Manager.php:62
InfosInterface
ActionsInterface
ILIAS\MetaData\Vocabularies\Manager\Manager\$creation_repo
CreationRepositoryInterface $creation_repo
Definition:
Manager.php:32
ILIAS\MetaData\Vocabularies\Manager\Manager\$infos
InfosInterface $infos
Definition:
Manager.php:34
ILIAS\MetaData\Vocabularies\Manager\Manager\getVocabulary
getVocabulary(string $vocab_id)
Definition:
Manager.php:57
ILIAS\MetaData\Vocabularies\Manager\Manager\$reader
ReaderInterface $reader
Definition:
Manager.php:33
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface
Definition:
CreationRepositoryInterface.php:27
ILIAS\MetaData\Vocabularies\Manager\Manager\$actions
ActionsInterface $actions
Definition:
Manager.php:35
ILIAS\MetaData\Vocabularies\VocabularyInterface
Definition:
VocabularyInterface.php:25
ILIAS\MetaData\Vocabularies\Dispatch\ActionsInterface
Definition:
ActionsInterface.php:25
Identifier
ILIAS\MetaData\Vocabularies\Manager\ManagerInterface
Definition:
ManagerInterface.php:28
Generator
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from
from(FileStream $stream)
Definition:
GdImageToStreamTrait.php:49
VocabularyInterface
ILIAS\MetaData\Vocabularies\Manager\Manager\getAllVocabularies
getAllVocabularies()
Definition:
Manager.php:52
ILIAS\MetaData\Vocabularies\Manager\Manager\controlledVocabularyCreator
controlledVocabularyCreator()
Definition:
Manager.php:72
ILIAS\MetaData\Vocabularies\Manager\Manager
Definition:
Manager.php:30
ILIAS\MetaData\Vocabularies\Dispatch\Info\InfosInterface
Definition:
InfosInterface.php:25
ILIAS\MetaData\Vocabularies\Manager
Definition:
Manager.php:21
components
ILIAS
MetaData
classes
Vocabularies
Manager
Manager.php
Generated on Tue Sep 2 2025 23:03:30 for ILIAS by
1.8.13 (using
Doxyfile
)