ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CreationRepositoryInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
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
52 SlotIdentifier $slot,
53 string ...$values
54 ): \Generator;
55}
create(SlotIdentifier $slot, string $source)
Returns ID of the created vocabulary.
addValueToVocabulary(string $vocab_id, string $value, string $label='')
The value, vocab_id tuple must be unique! Before using this, check with findAlreadyExistingValues.
findAlreadyExistingValues(SlotIdentifier $slot, string ... $values)