ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
RepositoryInterface.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
28 {
29  public function getVocabulary(string $vocab_id): VocabularyInterface;
30 
34  public function getVocabulariesForSlots(SlotIdentifier ...$slots): \Generator;
35 
36  public function countActiveVocabulariesForSlot(SlotIdentifier $slot): int;
37 
41  public function getActiveVocabulariesForSlots(SlotIdentifier ...$slots): \Generator;
42 
47  public function getLabelsForValues(
48  SlotIdentifier $slot,
49  bool $only_active,
50  string ...$values
51  ): \Generator;
52 
53  public function setActiveForVocabulary(
54  string $vocab_id,
55  bool $active
56  ): void;
57 
59  string $vocab_id,
60  bool $custom_inputs
61  ): void;
62 
63  public function deleteVocabulary(string $vocab_id): void;
64 }
setActiveForVocabulary(string $vocab_id, bool $active)
setCustomInputsAllowedForVocabulary(string $vocab_id, bool $custom_inputs)
getLabelsForValues(SlotIdentifier $slot, bool $only_active, string ... $values)
Values not from (active) controlled vocabularies will not be returned at all.