ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
NullRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
29{
34 public function create(
35 SlotIdentifier $slot,
36 string $source
37 ): string {
38 return '';
39 }
40
41 public function addValueToVocabulary(
42 string $vocab_id,
43 string $value,
44 string $label = ''
45 ): void {
46 }
47
51 public function findAlreadyExistingValues(
52 SlotIdentifier $slot,
53 string ...$values
54 ): \Generator {
55 yield from [];
56 }
57
58 public function getVocabulary(string $vocab_id): VocabularyInterface
59 {
60 return new NullVocabulary();
61 }
62
66 public function getVocabulariesForSlots(SlotIdentifier ...$slots): \Generator
67 {
68 yield from [];
69 }
70
71 public function countActiveVocabulariesForSlot(SlotIdentifier $slot): int
72 {
73 return 0;
74 }
75
79 public function getActiveVocabulariesForSlots(SlotIdentifier ...$slots): \Generator
80 {
81 yield from [];
82 }
83
84 public function isCustomInputAllowedForSlot(SlotIdentifier $slot): bool
85 {
86 return false;
87 }
88
92 public function getLabelsForValues(
93 SlotIdentifier $slot,
94 bool $only_active,
95 string ...$values
96 ): \Generator {
97 yield from [];
98 }
99
100 public function setActiveForVocabulary(
101 string $vocab_id,
102 bool $active
103 ): void {
104 }
105
106 public function setCustomInputsAllowedForVocabulary(
107 string $vocab_id,
108 bool $custom_inputs
109 ): void {
110 }
111
112 public function deleteVocabulary(string $vocab_id): void
113 {
114 }
115}
setActiveForVocabulary(string $vocab_id, bool $active)
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.
getLabelsForValues(SlotIdentifier $slot, bool $only_active, string ... $values)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...