@@ -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() ) { |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * the provided name is not allowed. An object is returned |
83 | 83 | * in any case. |
84 | 84 | * |
85 | - * @param string $propertyName |
|
85 | + * @param string $propertyLabel |
|
86 | 86 | * |
87 | 87 | * @return SMWPropertyValue |
88 | 88 | */ |
@@ -247,6 +247,9 @@ discard block |
||
247 | 247 | } |
248 | 248 | } |
249 | 249 | |
250 | + /** |
|
251 | + * @param boolean $isinverse |
|
252 | + */ |
|
250 | 253 | public function setInverse( $isinverse ) { |
251 | 254 | return $this->m_dataitem = new DIProperty( $this->m_dataitem->getKey(), ( $isinverse == true ) ); |
252 | 255 | } |
@@ -448,6 +451,9 @@ discard block |
||
448 | 451 | return $this->m_dataitem->getLabel(); |
449 | 452 | } |
450 | 453 | |
454 | + /** |
|
455 | + * @param string $value |
|
456 | + */ |
|
451 | 457 | private function doNormalizeUserValue( $value ) { |
452 | 458 | |
453 | 459 | if ( |
@@ -4,8 +4,6 @@ |
||
4 | 4 | use SMW\DataValues\ValueFormatters\DataValueFormatter; |
5 | 5 | use SMW\DataValueFactory; |
6 | 6 | use SMW\DIProperty; |
7 | -use SMW\Highlighter; |
|
8 | -use SMW\Message; |
|
9 | 7 | |
10 | 8 | /** |
11 | 9 | * Objects of this class represent properties in SMW. |
@@ -128,6 +128,9 @@ |
||
128 | 128 | return $highlighter->getHtml(); |
129 | 129 | } |
130 | 130 | |
131 | + /** |
|
132 | + * @param string $propertyDescription |
|
133 | + */ |
|
131 | 134 | private function canHighlight( &$propertyDescription, $linker ) { |
132 | 135 | |
133 | 136 | if ( $this->dataValue->getOptionBy( PropertyValue::OPT_NO_HIGHLIGHT ) === true ) { |