ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Assignments.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 public function doesSlotHaveValues(SlotIdentifier $slot): bool
28 {
29 return !is_null($this->valuesForSlot($slot)->current());
30 }
31
32 public function valuesForSlot(SlotIdentifier $slot): \Generator
33 {
34 match ($slot) {
35 SlotIdentifier::GENERAL_STRUCTURE => yield from [
36 'atomic',
37 'collection',
38 'networked',
39 'hierarchical',
40 'linear'
41 ],
42 SlotIdentifier::GENERAL_AGGREGATION_LEVEL => yield from [
43 '1',
44 '2',
45 '3',
46 '4'
47 ],
48 SlotIdentifier::LIFECYCLE_STATUS => yield from [
49 'draft',
50 'final',
51 'revised',
52 'unavailable'
53 ],
54 SlotIdentifier::LIFECYCLE_CONTRIBUTE_ROLE => yield from [
55 'author',
56 'publisher',
57 'unknown',
58 'initiator',
59 'terminator',
60 'editor',
61 'graphical designer',
62 'technical implementer',
63 'content provider',
64 'technical validator',
65 'educational validator',
66 'script writer',
67 'instructional designer',
68 'subject matter expert'
69 ],
70 SlotIdentifier::METAMETADATA_CONTRIBUTE_ROLE => yield from [
71 'creator',
72 'validator'
73 ],
74 SlotIdentifier::TECHNICAL_REQUIREMENT_TYPE => yield from [
75 'operating system',
76 'browser'
77 ],
78 SlotIdentifier::TECHNICAL_REQUIREMENT_BROWSER => yield from [
79 'any',
80 'netscape communicator',
81 'ms-internet explorer',
82 'opera',
83 'amaya'
84 ],
85 SlotIdentifier::TECHNICAL_REQUIREMENT_OS => yield from [
86 'pc-dos',
87 'ms-windows',
88 'macos',
89 'unix',
90 'multi-os',
91 'none'
92 ],
93 SlotIdentifier::EDUCATIONAL_INTERACTIVITY_TYPE => yield from [
94 'active',
95 'expositive',
96 'mixed'
97 ],
98 SlotIdentifier::EDUCATIONAL_LEARNING_RESOURCE_TYPE => yield from [
99 'exercise',
100 'simulation',
101 'questionnaire',
102 'diagram',
103 'figure',
104 'graph',
105 'index',
106 'slide',
107 'table',
108 'narrative text',
109 'exam',
110 'experiment',
111 'problem statement',
112 'self assessment',
113 'lecture'
114 ],
115 SlotIdentifier::EDUCATIONAL_INTERACTIVITY_LEVEL, SlotIdentifier::EDUCATIONAL_SEMANTIC_DENSITY => yield from [
116 'very low',
117 'low',
118 'medium',
119 'high',
120 'very high'
121 ],
122 SlotIdentifier::EDCUCATIONAL_INTENDED_END_USER_ROLE => yield from [
123 'teacher',
124 'author',
125 'learner',
126 'manager'
127 ],
128 SlotIdentifier::EDUCATIONAL_CONTEXT => yield from [
129 'school',
130 'higher education',
131 'training',
132 'other'
133 ],
134 SlotIdentifier::EDUCATIONAL_DIFFICULTY => yield from [
135 'very easy',
136 'easy',
137 'medium',
138 'difficult',
139 'very difficult'
140 ],
141 SlotIdentifier::RIGHTS_COST, SlotIdentifier::RIGHTS_CP_AND_OTHER_RESTRICTIONS => yield from [
142 'yes',
143 'no'
144 ],
145 SlotIdentifier::RELATION_KIND => yield from [
146 'ispartof',
147 'haspart',
148 'isversionof',
149 'hasversion',
150 'isformatof',
151 'hasformat',
152 'references',
153 'isreferencedby',
154 'isbasedon',
155 'isbasisfor',
156 'requires',
157 'isrequiredby'
158 ],
159 SlotIdentifier::CLASSIFICATION_PURPOSE => yield from [
160 'discipline',
161 'idea',
162 'prerequisite',
163 'educational objective',
164 'accessibility restrictions',
165 'educational level',
166 'skill level',
167 'security level',
168 'competency'
169 ],
170 default => yield from []
171 };
172 }
173}