Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWikiAttributes.php |
— | — | @@ -32,330 +32,9 @@ |
33 | 33 | */ |
34 | 34 | function initializeOmegaWikiAttributes(ViewInformation $viewInformation){ |
35 | 35 | $init_and_discard_this= OmegaWikiAttributes::getInstance($viewInformation); |
36 | | - |
37 | | - initializeOmegaWikiAttributesOld($viewInformation); //backward compatibility, will be removed! |
38 | 36 | } |
39 | 37 | |
40 | 38 | |
41 | | -/** |
42 | | - * Original initializeOmegaWikiAttributes, Do not call. |
43 | | - * @deprecated use/update OmegaWikiAttributes->hardValues instead for now. |
44 | | - */ |
45 | | -function initializeOmegaWikiAttributesOld(ViewInformation $viewInformation) { |
46 | | - global |
47 | | - $languageAttribute, $spellingAttribute, $textAttribute, |
48 | | - $wgLanguageAttributeName, $wgSpellingAttributeName, $wgTextAttributeName; |
49 | | - |
50 | | - $languageAttribute = new Attribute("language", $wgLanguageAttributeName, "language"); |
51 | | - $spellingAttribute = new Attribute("spelling", $wgSpellingAttributeName, "spelling"); |
52 | | - $textAttribute = new Attribute("text", $wgTextAttributeName, "text"); |
53 | | - |
54 | | - global |
55 | | - $objectAttributesAttribute, $definedMeaningAttributesAttribute, |
56 | | - $wgDefinedMeaningAttributesAttributeName, |
57 | | - $wgDefinedMeaningAttributesAttributeName, $wgDefinedMeaningAttributesAttributeId, $wgAnnotationAttributeName; |
58 | | - |
59 | | - $definedMeaningAttributesAttribute = new Attribute("defined-meaning-attributes", $wgDefinedMeaningAttributesAttributeName, "will-be-specified-below"); |
60 | | - $objectAttributesAttribute = new Attribute("object-attributes", $wgAnnotationAttributeName, "will-be-specified-below"); |
61 | | - |
62 | | - global |
63 | | - $expressionIdAttribute, $identicalMeaningAttribute, $wgIdenticalMeaningAttributeName; |
64 | | - |
65 | | - $expressionIdAttribute = new Attribute("expression-id", "Expression Id", "expression-id"); |
66 | | - $identicalMeaningAttribute = new Attribute("indentical-meaning", $wgIdenticalMeaningAttributeName, "boolean"); |
67 | | - |
68 | | - global |
69 | | - $expressionStructure, $expressionAttribute, $wgExpressionAttributeName; |
70 | | - |
71 | | - if ($viewInformation->filterOnLanguage()) |
72 | | - $expressionAttribute = new Attribute("expression", $wgSpellingAttributeName, "spelling"); |
73 | | - else { |
74 | | - $expressionStructure = new Structure("expression", $languageAttribute, $spellingAttribute); |
75 | | - $expressionAttribute = new Attribute(null, $wgExpressionAttributeName, $expressionStructure); |
76 | | - } |
77 | | - |
78 | | - global |
79 | | - $definedMeaningIdAttribute, $definedMeaningDefiningExpressionAttribute, |
80 | | - $definedMeaningCompleteDefiningExpressionStructure, |
81 | | - $definedMeaningCompleteDefiningExpressionAttribute; |
82 | | - |
83 | | - $definedMeaningIdAttribute = new Attribute("defined-meaning-id", "Defined meaning identifier", "defined-meaning-id"); |
84 | | - $definedMeaningDefiningExpressionAttribute = new Attribute("defined-meaning-defining-expression", "Defined meaning defining expression", "short-text"); |
85 | | - |
86 | | - $definedMeaningCompleteDefiningExpressionStructure = |
87 | | - new Structure("defined-meaning-full-defining-expression", |
88 | | - $definedMeaningDefiningExpressionAttribute, |
89 | | - $expressionIdAttribute, |
90 | | - $languageAttribute |
91 | | - ); |
92 | | - |
93 | | - # ====== refactored up to this point, do not make changes above this line ==== |
94 | | - $definedMeaningCompleteDefiningExpressionAttribute=new Attribute(null, "Defining expression", $definedMeaningCompleteDefiningExpressionStructure); |
95 | | - |
96 | | - |
97 | | - |
98 | | - global |
99 | | - $definedMeaningReferenceStructure, $definedMeaningLabelAttribute, $definedMeaningReferenceType, |
100 | | - $definedMeaningReferenceAttribute, $wgDefinedMeaningReferenceAttributeName; |
101 | | - |
102 | | - $definedMeaningLabelAttribute = new Attribute("defined-meaning-label", "Defined meaning label", "short-text"); |
103 | | - $definedMeaningReferenceStructure = new Structure("defined-meaning", $definedMeaningIdAttribute, $definedMeaningLabelAttribute, $definedMeaningDefiningExpressionAttribute); |
104 | | - |
105 | | - $definedMeaningReferenceType = $definedMeaningReferenceStructure; |
106 | | - $definedMeaningReferenceAttribute = new Attribute(null, $wgDefinedMeaningReferenceAttributeName, $definedMeaningReferenceType); |
107 | | - |
108 | | - global |
109 | | - $collectionIdAttribute, $collectionMeaningAttribute, $sourceIdentifierAttribute, |
110 | | - $gotoSourceStructure, $gotoSourceAttribute, |
111 | | - $wgCollectionAttributeName, $wgSourceIdentifierAttributeName, $wgGotoSourceAttributeName; |
112 | | - |
113 | | - $collectionIdAttribute = new Attribute("collection", "Collection", "collection-id"); |
114 | | - $collectionMeaningAttribute = new Attribute("collection-meaning", $wgCollectionAttributeName, $definedMeaningReferenceStructure); |
115 | | - $sourceIdentifierAttribute = new Attribute("source-identifier", $wgSourceIdentifierAttributeName, "short-text"); |
116 | | - $gotoSourceStructure = new Structure("goto-source",$collectionIdAttribute, $sourceIdentifierAttribute); |
117 | | - $gotoSourceAttribute = new Attribute(null, $wgGotoSourceAttributeName, $gotoSourceStructure); |
118 | | - |
119 | | - global |
120 | | - $collectionMembershipAttribute, $wgCollectionMembershipAttributeName, $wgCollectionMembershipAttributeId, |
121 | | - $collectionMembershipStructure; |
122 | | - |
123 | | - $collectionMembershipStructure = new Structure("collection-membership",$collectionIdAttribute, $collectionMeaningAttribute, $sourceIdentifierAttribute); |
124 | | - $collectionMembershipAttribute = new Attribute(null, $wgCollectionMembershipAttributeName, $collectionMembershipStructure); |
125 | | - |
126 | | - global |
127 | | - $classMembershipIdAttribute, $classAttribute; |
128 | | - |
129 | | - $classMembershipIdAttribute = new Attribute("class-membership-id", "Class membership id", "integer"); |
130 | | - $classAttribute = new Attribute("class", "Class", $definedMeaningReferenceStructure); |
131 | | - |
132 | | - global |
133 | | - $classMembershipStructure, $classMembershipKeyStructure, $classMembershipAttribute, |
134 | | - $wgClassMembershipAttributeName, $wgClassMembershipAttributeId; |
135 | | - |
136 | | - $classMembershipStructure = new Structure("class-membership", $classMembershipIdAttribute, $classAttribute); |
137 | | - $classMembershipAttribute = new Attribute(null, $wgClassMembershipAttributeName, $classMembershipStructure); |
138 | | - |
139 | | - global |
140 | | - $possiblySynonymousIdAttribute, |
141 | | - $possibleSynonymAttribute, |
142 | | - $wgPossibleSynonymAttributeName, $possiblySynonymousStructure, $possiblySynonymousAttribute, |
143 | | - $wgPossiblySynonymousAttributeName, $wgPossiblySynonymousAttributeId; |
144 | | - |
145 | | - $possiblySynonymousIdAttribute = new Attribute("possibly-synonymous-id", "Possibly synonymous id", "integer"); |
146 | | - $possibleSynonymAttribute = new Attribute("possible-synonym", $wgPossibleSynonymAttributeName, $definedMeaningReferenceStructure); |
147 | | - $possiblySynonymousStructure = new Structure("possibly-synonymous", $possiblySynonymousIdAttribute, $possiblySynonymousAttribute); |
148 | | - $possiblySynonymousAttribute = new Attribute(null, $wgPossiblySynonymousAttributeName, $possiblySynonymousStructure); |
149 | | - |
150 | | - global |
151 | | - $relationIdAttribute, $relationTypeAttribute, $relationTypeType, $otherDefinedMeaningAttribute, |
152 | | - $wgRelationTypeAttributeName, $wgOtherDefinedMeaningAttributeName; |
153 | | - |
154 | | - $relationIdAttribute = new Attribute("relation-id", "Relation identifier", "object-id"); |
155 | | - $relationTypeAttribute = new Attribute("relation-type", $wgRelationTypeAttributeName, $definedMeaningReferenceStructure); |
156 | | - $otherDefinedMeaningAttribute = new Attribute("other-defined-meaning", $wgOtherDefinedMeaningAttributeName, $definedMeaningReferenceType); |
157 | | - |
158 | | - global |
159 | | - $relationsAttribute, $relationStructure, $reciprocalRelationsAttribute, $objectAttributesAttribute, $wgRelationsAttributeName, $wgIncomingRelationsAttributeName, $wgRelationsAttributeId, $wgIncomingRelationsAttributeId, |
160 | | - $repRelStructure; |
161 | | - |
162 | | - $relationStructure = new Structure("relations", $relationIdAttribute, $relationTypeAttribute, $otherDefinedMeaningAttribute, $objectAttributesAttribute); |
163 | | - $relationsAttribute = new Attribute(null, $wgRelationsAttributeName, $relationStructure); |
164 | | - $reciprocalRelationsAttribute = new Attribute("reciprocal-relations", $wgIncomingRelationsAttributeName, $relationStructure); |
165 | | - |
166 | | - global |
167 | | - $translatedTextIdAttribute, $translatedTextStructure; |
168 | | - |
169 | | - $translatedTextIdAttribute = new Attribute("translated-text-id", "Translated text ID", "integer"); |
170 | | - $translatedTextStructure = new Structure("translated-text", $languageAttribute, $textAttribute); |
171 | | - |
172 | | - global |
173 | | - $definitionIdAttribute, $alternativeDefinitionAttribute, $sourceAttribute, |
174 | | - $wgAlternativeDefinitionAttributeName, $wgSourceAttributeName; |
175 | | - |
176 | | - $definitionIdAttribute = new Attribute("definition-id", "Definition identifier", "integer"); |
177 | | - |
178 | | - if ($viewInformation->filterOnLanguage() && !$viewInformation->hasMetaDataAttributes()) |
179 | | - $alternativeDefinitionAttribute = new Attribute("alternative-definition", $wgAlternativeDefinitionAttributeName, "text"); |
180 | | - else |
181 | | - $alternativeDefinitionAttribute = new Attribute("alternative-definition", $wgAlternativeDefinitionAttributeName, $translatedTextStructure); |
182 | | - |
183 | | - $sourceAttribute = new Attribute("source-id", $wgSourceAttributeName, $definedMeaningReferenceType); |
184 | | - |
185 | | - global |
186 | | - $alternativeDefinitionsAttribute, $wgAlternativeDefinitionsAttributeName, $wgAlternativeDefinitionsAttributeId, |
187 | | - $alternativeDefinitionsStructure; |
188 | | - |
189 | | - $alternativeDefinitionsStructure = new Structure("alternative-definitions", $definitionIdAttribute, $alternativeDefinitionAttribute, $sourceAttribute); |
190 | | - |
191 | | - $alternativeDefinitionsAttribute = new Attribute(null, $wgAlternativeDefinitionsAttributeName, $alternativeDefinitionsStructure); |
192 | | - |
193 | | - global |
194 | | - $synonymsAndTranslationsAttribute, $syntransIdAttribute, |
195 | | - $wgSynonymsAttributeName, $wgSynonymsAndTranslationsAttributeName, $wgSynonymsAndTranslationsAttributeId, |
196 | | - $synonymsTranslationsStructure; |
197 | | - |
198 | | - if ($viewInformation->filterOnLanguage()) |
199 | | - $synonymsAndTranslationsCaption = $wgSynonymsAttributeName; |
200 | | - else |
201 | | - $synonymsAndTranslationsCaption = $wgSynonymsAndTranslationsAttributeName; |
202 | | - |
203 | | - $syntransIdAttribute = new Attribute("syntrans-id", "$synonymsAndTranslationsCaption identifier", "integer"); |
204 | | - $synonymsTranslationsStructure = new Structure("synonyms-translations", $syntransIdAttribute, $expressionAttribute, $identicalMeaningAttribute, $objectAttributesAttribute); |
205 | | - $synonymsAndTranslationsAttribute = new Attribute(null, "$synonymsAndTranslationsCaption", $synonymsTranslationsStructure); |
206 | | - |
207 | | - global |
208 | | - $attributeObjectAttribute; |
209 | | - |
210 | | - $attributeObjectAttribute = new Attribute("attribute-object-id", "Attribute object", "object-id"); |
211 | | - |
212 | | - global |
213 | | - $translatedTextAttributeIdAttribute, $translatedTextValueIdAttribute, |
214 | | - $translatedTextAttributeAttribute, $translatedTextValueAttribute, $translatedTextAttributeValuesAttribute, |
215 | | - $translatedTextAttributeValuesStructure, $wgTranslatedTextAttributeValuesAttributeName, $wgTranslatedTextAttributeAttributeName, $wgTranslatedTextAttributeValueAttributeName; |
216 | | - |
217 | | - $translatedTextAttributeIdAttribute = new Attribute("translated-text-attribute-id", "Attribute identifier", "object-id"); |
218 | | - $translatedTextAttributeAttribute = new Attribute("translated-text-attribute", $wgTranslatedTextAttributeAttributeName, $definedMeaningReferenceType); |
219 | | - $translatedTextValueIdAttribute = new Attribute("translated-text-value-id", "Translated text value identifier", "translated-text-value-id"); |
220 | | - |
221 | | - if ($viewInformation->filterOnLanguage() && !$viewInformation->hasMetaDataAttributes()) |
222 | | - $translatedTextValueAttribute = new Attribute("translated-text-value", $wgTranslatedTextAttributeValueAttributeName, "text"); |
223 | | - else |
224 | | - $translatedTextValueAttribute = new Attribute("translated-text", $wgTranslatedTextAttributeValueAttributeName, $translatedTextStructure); |
225 | | - |
226 | | - $translatedTextAttributeValuesStructure = new Structure("translated-text-attribute-values",$translatedTextAttributeIdAttribute, $attributeObjectAttribute, $translatedTextAttributeAttribute, $translatedTextValueIdAttribute, $translatedTextValueAttribute, $objectAttributesAttribute); |
227 | | - $translatedTextAttributeValuesAttribute = new Attribute(null, $wgTranslatedTextAttributeValuesAttributeName, $translatedTextAttributeValuesStructure); |
228 | | - |
229 | | - global |
230 | | - $textAttributeIdAttribute, $textAttributeObjectAttribute, $textAttributeAttribute, $textAttributeValuesStructure, |
231 | | - $textAttributeValuesAttribute, |
232 | | - $wgTextAttributeValuesAttributeName, $wgTextAttributeAttributeName; |
233 | | - |
234 | | - $textAttributeIdAttribute = new Attribute("text-attribute-id", "Attribute identifier", "object-id"); |
235 | | - $textAttributeObjectAttribute = new Attribute("text-attribute-object-id", "Attribute object", "object-id"); |
236 | | - $textAttributeAttribute = new Attribute("text-attribute", $wgTextAttributeAttributeName, $definedMeaningReferenceStructure); |
237 | | - $textAttributeValuesStructure = new Structure("text-attribute-values", $textAttributeIdAttribute, $textAttributeObjectAttribute, $textAttributeAttribute, $textAttribute, $objectAttributesAttribute); |
238 | | - $textAttributeValuesAttribute = new Attribute(null, $wgTextAttributeValuesAttributeName, $textAttributeValuesStructure); |
239 | | - |
240 | | - global |
241 | | - $linkAttributeIdAttribute, $linkAttributeObjectAttribute, $linkAttributeAttribute, $linkAttributeValuesStructure, $linkAttributeValuesAttribute, |
242 | | - $wgLinkAttributeValuesAttributeName, $wgLinkAttributeAttributeName, |
243 | | - $linkAttribute, $linkLabelAttribute, $linkURLAttribute; |
244 | | - |
245 | | - $linkLabelAttribute = new Attribute("label", "Label", "short-text"); |
246 | | - $linkURLAttribute = new Attribute("url", "URL", "url"); |
247 | | - $linkAttribute = new Attribute("link", "Link", new Structure($linkLabelAttribute, $linkURLAttribute)); |
248 | | - |
249 | | - $linkAttributeIdAttribute = new Attribute("link-attribute-id", "Attribute identifier", "object-id"); |
250 | | - $linkAttributeObjectAttribute = new Attribute("link-attribute-object-id", "Attribute object", "object-id"); |
251 | | - $linkAttributeAttribute = new Attribute("link-attribute", $wgLinkAttributeAttributeName, $definedMeaningReferenceStructure); |
252 | | - $linkAttributeValuesStructure = new Structure("link-attribute-values", $linkAttributeIdAttribute, $linkAttributeObjectAttribute, $linkAttributeAttribute, $linkAttribute, $objectAttributesAttribute); |
253 | | - $linkAttributeValuesAttribute = new Attribute(null, $wgLinkAttributeValuesAttributeName, $linkAttributeValuesStructure); |
254 | | - |
255 | | - global |
256 | | - $optionAttributeIdAttribute, $optionAttributeAttribute, $optionAttributeObjectAttribute, $optionAttributeOptionAttribute, $optionAttributeValuesAttribute, |
257 | | - $wgOptionAttributeAttributeName, $wgOptionAttributeOptionAttributeName, $wgOptionAttributeValuesAttributeName, $optionAttributeValuesStructure; |
258 | | - |
259 | | - $optionAttributeIdAttribute = new Attribute('option-attribute-id', 'Attribute identifier', 'object-id'); |
260 | | - $optionAttributeObjectAttribute = new Attribute('option-attribute-object-id', 'Attribute object', 'object-id'); |
261 | | - $optionAttributeAttribute = new Attribute('option-attribute', $wgOptionAttributeAttributeName, $definedMeaningReferenceType); |
262 | | - $optionAttributeOptionAttribute = new Attribute('option-attribute-option', $wgOptionAttributeOptionAttributeName, $definedMeaningReferenceType); |
263 | | - $optionAttributeValuesStructure = new Structure('option-attribute-values', $optionAttributeIdAttribute, $optionAttributeAttribute, $optionAttributeObjectAttribute, $optionAttributeOptionAttribute, $objectAttributesAttribute); |
264 | | - $optionAttributeValuesAttribute = new Attribute(null, $wgOptionAttributeValuesAttributeName, $optionAttributeValuesStructure); |
265 | | - |
266 | | - global |
267 | | - $optionAttributeOptionIdAttribute, $optionAttributeOptionsAttribute, $wgOptionAttributeOptionsAttributeName; |
268 | | - |
269 | | - $optionAttributeOptionIdAttribute = new Attribute('option-attribute-option-id', 'Option identifier', 'object-id'); |
270 | | - $optionAttributeOptionsStructure = new Structure('option-attribute-options', $optionAttributeOptionIdAttribute, $optionAttributeAttribute, $optionAttributeOptionAttribute, $languageAttribute); |
271 | | - $optionAttributeOptionsAttribute = new Attribute(null, $wgOptionAttributeOptionsAttributeName, $optionAttributeOptionsStructure); |
272 | | - |
273 | | - global |
274 | | - $definitionAttribute, $translatedTextAttribute, $classAttributesAttribute, |
275 | | - $wgDefinitionAttributeName, $wgTranslatedTextAttributeName; |
276 | | - |
277 | | - if ($viewInformation->filterOnLanguage() && !$viewInformation->hasMetaDataAttributes()) |
278 | | - $translatedTextAttribute = new Attribute("translated-text", $wgTextAttributeName, "text"); |
279 | | - else |
280 | | - $translatedTextAttribute = new Attribute(null, $wgTranslatedTextAttributeName, $translatedTextStructure); |
281 | | - |
282 | | - $definitionAttribute = new Attribute(null, $wgDefinitionAttributeName, new Structure("definition", $translatedTextAttribute, $objectAttributesAttribute)); |
283 | | - |
284 | | - global |
285 | | - $classAttributesStructure, |
286 | | - // $classAttributeClassAttribute, |
287 | | - $classAttributeIdAttribute, $classAttributeAttributeAttribute, $classAttributeLevelAttribute, $classAttributeTypeAttribute, |
288 | | - $wgClassAttributeAttributeAttributeName, $wgClassAttributeLevelAttributeName, |
289 | | - $wgClassAttributeTypeAttributeName, $wgClassAttributesAttributeName, $wgClassAttributesAttributeId; |
290 | | - |
291 | | - $classAttributeIdAttribute = new Attribute("class-attribute-id", "Class attribute identifier", "object-id"); |
292 | | - $classAttributeAttributeAttribute = new Attribute("class-attribute-attribute", $wgClassAttributeAttributeAttributeName, $definedMeaningReferenceStructure); |
293 | | - $classAttributeLevelAttribute = new Attribute("class-attribute-level", $wgClassAttributeLevelAttributeName, $definedMeaningReferenceStructure); |
294 | | - $classAttributeTypeAttribute = new Attribute("class-attribute-type", $wgClassAttributeTypeAttributeName, "short-text"); |
295 | | - $classAttributesStructure = new Structure("class-attributes", $classAttributeIdAttribute, $classAttributeAttributeAttribute, $classAttributeLevelAttribute, $classAttributeTypeAttribute, $optionAttributeOptionsAttribute); |
296 | | - $classAttributesAttribute = new Attribute(null, $wgClassAttributesAttributeName, $classAttributesStructure); |
297 | | - |
298 | | - global |
299 | | - $definedMeaningAttribute, $wgDefinedMeaningAttributeName; |
300 | | - |
301 | | - $definedMeaningAttribute = new Attribute(null, $wgDefinedMeaningAttributeName, |
302 | | - new Structure( |
303 | | - "defined-meaning", |
304 | | - $definitionAttribute, |
305 | | - $classAttributesAttribute, |
306 | | - $alternativeDefinitionsAttribute, |
307 | | - $synonymsAndTranslationsAttribute, |
308 | | - $relationsAttribute, |
309 | | - $reciprocalRelationsAttribute, |
310 | | - $classMembershipAttribute, |
311 | | - $collectionMembershipAttribute, |
312 | | - $definedMeaningAttributesAttribute) |
313 | | - ); |
314 | | - |
315 | | - global |
316 | | - $expressionsAttribute, $expressionMeaningStructure, $expressionExactMeaningsAttribute, $expressionApproximateMeaningsAttribute, |
317 | | - $wgExactMeaningsAttributeName, $wgApproximateMeaningsAttributeName; |
318 | | - |
319 | | - $expressionMeaningStructure = new Structure("expression-exact-meanings", $definedMeaningIdAttribute, $textAttribute, $definedMeaningAttribute); |
320 | | - $expressionExactMeaningsAttribute = new Attribute(null, $wgExactMeaningsAttributeName, $expressionMeaningStructure); |
321 | | - $expressionApproximateMeaningsAttribute = new Attribute("expression-approximate-meanings", $wgApproximateMeaningsAttributeName, $expressionMeaningStructure); |
322 | | - |
323 | | - global |
324 | | - $expressionMeaningsAttribute, $expressionMeaningsStructure, $expressionApproximateMeaningAttribute, |
325 | | - $wgExpressionMeaningsAttributeName, $wgExpressionsAttributeName, |
326 | | - $expressionsStructure; |
327 | | - |
328 | | - $expressionMeaningsStructure = new Structure("expression-meanings", $expressionExactMeaningsAttribute, $expressionApproximateMeaningAttribute); |
329 | | - $expressionMeaningsAttribute = new Attribute(null, $wgExpressionMeaningsAttributeName, $expressionMeaningsStructure); |
330 | | - |
331 | | - $expressionsStructure = new Structure("expressions", $expressionIdAttribute, $expressionAttribute, $expressionMeaningsAttribute); |
332 | | - $expressionsAttribute = new Attribute(null, $wgExpressionsAttributeName, $expressionsStructure); |
333 | | - |
334 | | - global |
335 | | - $objectIdAttribute, $objectAttributesStructure, $wgAnnotationAttributeName; |
336 | | - |
337 | | - $objectIdAttribute = new Attribute("object-id", "Object identifier", "object-id"); |
338 | | - $objectAttributesStructure = new Structure("object-attributes", $objectIdAttribute, $textAttributeValuesAttribute, $translatedTextAttributeValuesAttribute, $optionAttributeValuesAttribute); |
339 | | - $objectAttributesAttribute->setAttributeType($objectAttributesStructure); |
340 | | - $definedMeaningAttributesAttribute->setAttributeType($objectAttributesStructure); |
341 | | - |
342 | | - $annotatedAttributes = array( |
343 | | - $definitionAttribute, |
344 | | - $synonymsAndTranslationsAttribute, |
345 | | - $relationsAttribute, |
346 | | - $reciprocalRelationsAttribute |
347 | | - ); |
348 | | - |
349 | | - foreach ($viewInformation->getPropertyToColumnFilters() as $propertyToColumnFilter) { |
350 | | - $attribute = $propertyToColumnFilter->getAttribute(); |
351 | | - $attribute->setAttributeType($objectAttributesStructure); |
352 | | - |
353 | | - foreach ($annotatedAttributes as $annotatedAttribute) |
354 | | - $annotatedAttribute->type->addAttribute($attribute); |
355 | | - } |
356 | | - |
357 | | -} |
358 | | - |
359 | | - |
360 | 39 | class OmegaWikiAttributes { |
361 | 40 | |
362 | 41 | /** pseudo-Singleton, if viewinformation changes, will construct new instance*/ |