ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
CreationRepositoryInterface.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Vocabularies\Controlled
;
22
23
use
ILIAS\MetaData\Vocabularies\VocabularyInterface
;
24
use
ILIAS\MetaData\Vocabularies\Dispatch\Presentation\LabelledValueInterface
;
25
use
ILIAS\MetaData\Vocabularies\Slots\Identifier
as
SlotIdentifier
;
26
27
interface
CreationRepositoryInterface
28
{
33
public
function
create
(
34
SlotIdentifier
$slot,
35
string
$source
36
): string;
37
42
public
function
addValueToVocabulary
(
43
string
$vocab_id,
44
string
$value,
45
string
$label =
''
46
): void;
47
51
public
function
findAlreadyExistingValues
(
52
SlotIdentifier
$slot,
53
string
...$values
54
): \Generator;
55
}
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface\findAlreadyExistingValues
findAlreadyExistingValues(SlotIdentifier $slot, string ... $values)
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface\create
create(SlotIdentifier $slot, string $source)
Returns ID of the created vocabulary.
ILIAS\MetaData\Vocabularies\Controlled
Definition:
CreationRepositoryInterface.php:21
LabelledValueInterface
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface\addValueToVocabulary
addValueToVocabulary(string $vocab_id, string $value, string $label='')
The value, vocab_id tuple must be unique! Before using this, check with findAlreadyExistingValues.
ILIAS\MetaData\Vocabularies\Controlled\CreationRepositoryInterface
Definition:
CreationRepositoryInterface.php:27
Identifier
VocabularyInterface
components
ILIAS
MetaData
classes
Vocabularies
Controlled
CreationRepositoryInterface.php
Generated on Tue Sep 2 2025 23:03:30 for ILIAS by
1.8.13 (using
Doxyfile
)