@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * The third argument was added in SMW 1.9 and should not be used from outside SMW. |
175 | 175 | * |
176 | 176 | * @param string $value |
177 | - * @param mixed $caption |
|
177 | + * @param boolean $caption |
|
178 | 178 | * @param boolean $approximateValue |
179 | 179 | */ |
180 | 180 | public function setUserValue( $value, $caption = false, $approximateValue = false ) { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * |
257 | 257 | * @since 1.8 |
258 | 258 | * |
259 | - * @return SMWDIProperty|null |
|
259 | + * @return SMWDIProperty |
|
260 | 260 | */ |
261 | 261 | public function getProperty() { |
262 | 262 | return $this->m_property; |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * @since 2.4 |
280 | 280 | * |
281 | - * @return DIWikiPage|null |
|
281 | + * @return SMWDIWikiPage |
|
282 | 282 | */ |
283 | 283 | public function getContextPage() { |
284 | 284 | return $this->m_contextPage; |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | * |
299 | 299 | * @param string $key |
300 | 300 | * |
301 | - * @return mixed|false |
|
301 | + * @return string|false |
|
302 | 302 | */ |
303 | 303 | public function getOptionValueFor( $key ) { |
304 | 304 | |
@@ -322,7 +322,6 @@ discard block |
||
322 | 322 | /** |
323 | 323 | * @since 2.4 |
324 | 324 | * |
325 | - * @param string $caption |
|
326 | 325 | */ |
327 | 326 | public function getCaption() { |
328 | 327 | return $this->m_caption; |
@@ -490,7 +489,7 @@ discard block |
||
490 | 489 | * |
491 | 490 | * @param string $value |
492 | 491 | * |
493 | - * @return Description |
|
492 | + * @return SMW\Query\Language\Description |
|
494 | 493 | * @throws InvalidArgumentException |
495 | 494 | */ |
496 | 495 | public function getQueryDescription( $value ) { |
@@ -511,7 +510,7 @@ discard block |
||
511 | 510 | * |
512 | 511 | * @since 2.4 |
513 | 512 | * |
514 | - * @return DataValueFormatter |
|
513 | + * @return SMW\DataValues\ValueFormatters\DataValueFormatter |
|
515 | 514 | */ |
516 | 515 | public function getDataValueFormatter() { |
517 | 516 | return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this ); |
@@ -585,6 +584,7 @@ discard block |
||
585 | 584 | * |
586 | 585 | * The parameter $linker controls linking of values such as titles and should |
587 | 586 | * be some Linker object (or NULL for no linking). |
587 | + * @return string |
|
588 | 588 | */ |
589 | 589 | abstract public function getShortHTMLText( $linker = null ); |
590 | 590 | |
@@ -595,6 +595,7 @@ discard block |
||
595 | 595 | * |
596 | 596 | * The parameter $linked controls linking of values such as titles and should |
597 | 597 | * be non-NULL and non-false if this is desired. |
598 | + * @return string |
|
598 | 599 | */ |
599 | 600 | abstract public function getLongWikiText( $linked = null ); |
600 | 601 |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * @since 2.4 |
67 | 67 | * |
68 | - * @return integer |
|
68 | + * @return boolean |
|
69 | 69 | */ |
70 | 70 | public function needsLanguageCode() { |
71 | 71 | return ( $this->getOptionValueFor( 'smwgDVFeatures' ) & SMW_DV_MLTV_LCODE ) != 0; |
@@ -75,7 +75,6 @@ discard block |
||
75 | 75 | * @see DataValue::parseUserValue |
76 | 76 | * @note called by DataValue::setUserValue |
77 | 77 | * |
78 | - * @param string $value |
|
79 | 78 | */ |
80 | 79 | protected function parseUserValue( $userValue ) { |
81 | 80 | |
@@ -245,6 +244,7 @@ discard block |
||
245 | 244 | /** |
246 | 245 | * @since 2.4 |
247 | 246 | * |
247 | + * @param string $languageCode |
|
248 | 248 | * @return DataValue|null |
249 | 249 | */ |
250 | 250 | public function getTextValueByLanguage( $languageCode ) { |
@@ -277,6 +277,9 @@ discard block |
||
277 | 277 | return $dataValue; |
278 | 278 | } |
279 | 279 | |
280 | + /** |
|
281 | + * @param string $value |
|
282 | + */ |
|
280 | 283 | private function newContainerSemanticData( $value ) { |
281 | 284 | |
282 | 285 | if ( $this->m_contextPage === null ) { |
@@ -119,6 +119,9 @@ |
||
119 | 119 | return $text . $languagecode; |
120 | 120 | } |
121 | 121 | |
122 | + /** |
|
123 | + * @param DataValue $dataValue |
|
124 | + */ |
|
122 | 125 | private function findValueOutputFor( $type, $dataValue, $linker ) { |
123 | 126 | switch ( $type ) { |
124 | 127 | case self::VALUE: return $dataValue->getWikiValue(); |