@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Exporter\ResourceBuilders; |
4 | 4 | |
5 | -use SMW\Exporter\ResourceBuilder; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMWExporter as Exporter; |
8 | 7 | use SMW\DataValueFactory; |
@@ -67,7 +67,6 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * @see AbstractMultiValue::getProperties |
69 | 69 | * |
70 | - * @param DIProperty[] $properties |
|
71 | 70 | */ |
72 | 71 | public function getProperties() { |
73 | 72 | self::$properties; |
@@ -78,6 +77,7 @@ discard block |
||
78 | 77 | * |
79 | 78 | * @param $userValue |
80 | 79 | * @param string $languageCode |
80 | + * @param string $text |
|
81 | 81 | * |
82 | 82 | * @return string |
83 | 83 | */ |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | /** |
278 | 278 | * @since 2.5 |
279 | 279 | * |
280 | - * @return array |
|
280 | + * @return string |
|
281 | 281 | */ |
282 | 282 | public function toArray() { |
283 | 283 | |
@@ -325,6 +325,9 @@ discard block |
||
325 | 325 | return $list['_TEXT'] . '@' . $list['_LCODE']; |
326 | 326 | } |
327 | 327 | |
328 | + /** |
|
329 | + * @param string $value |
|
330 | + */ |
|
328 | 331 | private function newContainerSemanticData( $value ) { |
329 | 332 | |
330 | 333 | if ( $this->m_contextPage === null ) { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use SMW\DIProperty; |
10 | 10 | use SMW\DIWikiPage; |
11 | 11 | use SMW\Localizer; |
12 | -use SMW\StringCondition; |
|
13 | 12 | use SMWContainerSemanticData as ContainerSemanticData; |
14 | 13 | use SMWDataItem as DataItem; |
15 | 14 | use SMWDataValue as DataValue; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace SMW\Exporter\ResourceBuilders; |
4 | 4 | |
5 | -use SMW\Exporter\ResourceBuilder; |
|
6 | 5 | use SMW\DIProperty; |
7 | 6 | use SMWExporter as Exporter; |
8 | 7 | use SMW\DataValueFactory; |
@@ -196,6 +196,12 @@ discard block |
||
196 | 196 | return true; |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $property |
|
201 | + * @param RequestOptions $requestOptions |
|
202 | + * |
|
203 | + * @return \SMWRequestOptions|null |
|
204 | + */ |
|
199 | 205 | private function doModifyRequestOptionsWith( $property, $requestOptions ) { |
200 | 206 | |
201 | 207 | if ( $property === '' ) { |
@@ -282,6 +288,9 @@ discard block |
||
282 | 288 | ); |
283 | 289 | } |
284 | 290 | |
291 | + /** |
|
292 | + * @param string $label |
|
293 | + */ |
|
285 | 294 | private function matchPropertiesToPreferredLabelBy( $label ) { |
286 | 295 | |
287 | 296 | $propertyLabelFinder = ApplicationFactory::getInstance()->newPropertyLabelFinder(); |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** |
178 | 178 | * @since 2.2 |
179 | 179 | * |
180 | - * @return array |
|
180 | + * @return string[] |
|
181 | 181 | */ |
182 | 182 | public function getErrors() { |
183 | 183 | return $this->errors; |
@@ -346,6 +346,9 @@ discard block |
||
346 | 346 | return $localPropertyDescription; |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param DIProperty $property |
|
351 | + */ |
|
349 | 352 | private function getPredefinedPropertyDescription( $property, $linker ) { |
350 | 353 | |
351 | 354 | $description = ''; |
@@ -368,6 +371,9 @@ discard block |
||
368 | 371 | return $message; |
369 | 372 | } |
370 | 373 | |
374 | + /** |
|
375 | + * @param DIProperty $property |
|
376 | + */ |
|
371 | 377 | private function tryToFindLocalPropertyDescription( $property, $linker ) { |
372 | 378 | |
373 | 379 | $text = ''; |
@@ -385,6 +391,9 @@ discard block |
||
385 | 391 | return $text; |
386 | 392 | } |
387 | 393 | |
394 | + /** |
|
395 | + * @param DIProperty $property |
|
396 | + */ |
|
388 | 397 | private function findPreferredPropertyLabel( $property ) { |
389 | 398 | |
390 | 399 | $text = ''; |
@@ -402,6 +411,9 @@ discard block |
||
402 | 411 | return $text; |
403 | 412 | } |
404 | 413 | |
414 | + /** |
|
415 | + * @param DIProperty $property |
|
416 | + */ |
|
405 | 417 | private function findTextValueByLanguage( $dataItems, $property ) { |
406 | 418 | |
407 | 419 | if ( $dataItems === null || $dataItems === array() ) { |
@@ -215,6 +215,9 @@ discard block |
||
215 | 215 | $this->errors = array_merge( $this->errors, $errors ); |
216 | 216 | } |
217 | 217 | |
218 | + /** |
|
219 | + * @param string $querystring |
|
220 | + */ |
|
218 | 221 | public function setQueryString( $querystring ) { |
219 | 222 | $this->queryString = $querystring; |
220 | 223 | } |
@@ -223,7 +226,7 @@ discard block |
||
223 | 226 | * @since 2.5 |
224 | 227 | * |
225 | 228 | * @param string|integer $key |
226 | - * @param mixed $value |
|
229 | + * @param double $value |
|
227 | 230 | */ |
228 | 231 | public function setOption( $key, $value ) { |
229 | 232 | $this->options[$key] = $value; |
@@ -309,7 +312,7 @@ discard block |
||
309 | 312 | * |
310 | 313 | * @param integer $limit |
311 | 314 | * |
312 | - * @return Query |
|
315 | + * @return SMWQuery |
|
313 | 316 | */ |
314 | 317 | public function setUnboundLimit( $limit ) { |
315 | 318 | $this->limit = (int)$limit; |
@@ -82,7 +82,7 @@ |
||
82 | 82 | /** |
83 | 83 | * @since 2.4 |
84 | 84 | * |
85 | - * @param integer|boolean $queryFeatures |
|
85 | + * @param integer $queryFeatures |
|
86 | 86 | * |
87 | 87 | * @return QueryParser |
88 | 88 | */ |
@@ -122,6 +122,9 @@ discard block |
||
122 | 122 | ); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param DIProperty $property |
|
127 | + */ |
|
125 | 128 | public function createQueryForSamplePagesThatContain( $property, array &$expectedSubjects ) { |
126 | 129 | |
127 | 130 | foreach ( $expectedSubjects as $key => $expectedSubject ) { |
@@ -159,6 +162,9 @@ discard block |
||
159 | 162 | return $query; |
160 | 163 | } |
161 | 164 | |
165 | + /** |
|
166 | + * @param \SMWDIWikiPage[] $results |
|
167 | + */ |
|
162 | 168 | private function assertResultOrder( $expected, $results ) { |
163 | 169 | |
164 | 170 | $hasSameOrder = true; |