@@ -70,7 +70,6 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @since 2.4 |
72 | 72 | * |
73 | - * @param DITime $dataItem |
|
74 | 73 | * @param boolean $mindefault determining whether values below the |
75 | 74 | * precision of our input should be completed with minimal or maximal |
76 | 75 | * conceivable values |
@@ -111,7 +110,6 @@ discard block |
||
111 | 110 | * |
112 | 111 | * @since 2.4 |
113 | 112 | * |
114 | - * @param DITime $dataItem |
|
115 | 113 | * |
116 | 114 | * @return string |
117 | 115 | */ |
@@ -167,7 +165,7 @@ discard block |
||
167 | 165 | * |
168 | 166 | * @since 2.4 |
169 | 167 | * |
170 | - * @param DITime $dataitem |
|
168 | + * @param DITime $dataItem |
|
171 | 169 | * |
172 | 170 | * @return string |
173 | 171 | */ |
@@ -350,6 +348,9 @@ discard block |
||
350 | 348 | return $this->getCaptionFromDataItem( $dataItem ); |
351 | 349 | } |
352 | 350 | |
351 | + /** |
|
352 | + * @param DITime $dataItem |
|
353 | + */ |
|
353 | 354 | private function hintCalendarModel( $dataItem ) { |
354 | 355 | |
355 | 356 | if ( $this->dataValue->isEnabledFeature( SMW_DV_TIMEV_CM ) && $dataItem->getCalendarModel() !== DITime::CM_GREGORIAN ) { |
@@ -226,6 +226,9 @@ |
||
226 | 226 | ); |
227 | 227 | } |
228 | 228 | |
229 | + /** |
|
230 | + * @param boolean $asPrefix |
|
231 | + */ |
|
229 | 232 | private function matchUnitAliases( $number, $asPrefix, array $unitAliases ) { |
230 | 233 | $first = true; |
231 | 234 |
@@ -75,6 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * @see DataValue::setOutputFormat |
78 | + * @param string $formatstring |
|
78 | 79 | */ |
79 | 80 | public function setOutputFormat( $formatstring ) { |
80 | 81 | |
@@ -160,7 +161,7 @@ discard block |
||
160 | 161 | /** |
161 | 162 | * Get text for displaying the value of this property, or false if not |
162 | 163 | * valid. |
163 | - * @param $useformat bool, true if the output format should be used, false if the returned text should be parsable |
|
164 | + * @param boolean $useformat bool, true if the output format should be used, false if the returned text should be parsable |
|
164 | 165 | * @return string |
165 | 166 | */ |
166 | 167 | protected function getStandardCaption( $useformat ) { |
@@ -179,6 +180,9 @@ discard block |
||
179 | 180 | ); |
180 | 181 | } |
181 | 182 | |
183 | + /** |
|
184 | + * @param string $value |
|
185 | + */ |
|
182 | 186 | private function doParseBoolValue( $value ) { |
183 | 187 | |
184 | 188 | // Use either the global or page related content language |
@@ -223,6 +227,9 @@ discard block |
||
223 | 227 | ); |
224 | 228 | } |
225 | 229 | |
230 | + /** |
|
231 | + * @param string $msgKey |
|
232 | + */ |
|
226 | 233 | private function getFirstBooleanCaptionFrom( $msgKey, $languageCode = null ) { |
227 | 234 | |
228 | 235 | $vals = $this->getBooleanWordsFrom( |
@@ -168,7 +168,6 @@ discard block |
||
168 | 168 | * @since 1.7 |
169 | 169 | * |
170 | 170 | * @param array $sortParam |
171 | - * @param array $orders |
|
172 | 171 | * @param string $defaultSort |
173 | 172 | * |
174 | 173 | * @return array ( keys => array(), errors => array() ) |
@@ -363,6 +362,7 @@ discard block |
||
363 | 362 | * @param integer $outputMode SMW_OUTPUT_WIKI, SMW_OUTPUT_HTML, ... |
364 | 363 | * @param integer $context INLINE_QUERY, SPECIAL_PAGE, CONCEPT_DESC |
365 | 364 | * @param boolean $showMode process like #show parser function? |
365 | + * @param DIWikiPage $contextPage |
|
366 | 366 | * @return array( SMWQuery, array of IParam ) |
367 | 367 | */ |
368 | 368 | static public function getQueryAndParamsFromFunctionParams( array $rawParams, $outputMode, $context, $showMode, $contextPage = null ) { |
@@ -415,9 +415,9 @@ discard block |
||
415 | 415 | * printout requests for the query results. |
416 | 416 | * |
417 | 417 | * @param string $queryString |
418 | - * @param array $params These need to be the result of a list fed to getProcessedParams |
|
418 | + * @param Param[] $params These need to be the result of a list fed to getProcessedParams |
|
419 | 419 | * @param $extraPrintouts |
420 | - * @param $outputMode |
|
420 | + * @param integer $outputMode |
|
421 | 421 | * @param $context |
422 | 422 | * |
423 | 423 | * @return string |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | * |
530 | 530 | * @since 1.6.2, return element type changed in 1.8 |
531 | 531 | * |
532 | - * @return IParamDefinition[] |
|
532 | + * @return ParamProcessor\IParamDefinition[] |
|
533 | 533 | */ |
534 | 534 | public static function getParameters() { |
535 | 535 | $params = array(); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * Parse a string of the form "number unit" where unit is optional. The |
93 | 93 | * results are stored in the $number and $unit parameters. Returns an |
94 | 94 | * error code. |
95 | - * @param $value string to parse |
|
95 | + * @param string $value string to parse |
|
96 | 96 | * @param $number call-by-ref parameter that will be set to the numerical value |
97 | 97 | * @param $unit call-by-ref parameter that will be set to the "unit" string (after the number) |
98 | 98 | * @return integer 0 (no errors), 1 (no number found at all), 2 (number |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * @since 2.4 |
228 | 228 | * |
229 | - * @return float |
|
229 | + * @return string |
|
230 | 230 | */ |
231 | 231 | public function getLocalizedFormattedNumber( $value ) { |
232 | 232 | return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision() ); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | /** |
236 | 236 | * @since 2.4 |
237 | 237 | * |
238 | - * @return float |
|
238 | + * @return string |
|
239 | 239 | */ |
240 | 240 | public function getNormalizedFormattedNumber( $value ) { |
241 | 241 | return $this->getNumberFormatter()->format( $value, $this->getPreferredDisplayPrecision(), IntlNumberFormatter::VALUE_FORMAT ); |
@@ -83,7 +83,6 @@ discard block |
||
83 | 83 | * |
84 | 84 | * @since 2.4 |
85 | 85 | * |
86 | - * @param Infolink $link |
|
87 | 86 | */ |
88 | 87 | public function addInfolink( Infolink $infoLink ) { |
89 | 88 | $this->infoLinks[] = $infoLink; |
@@ -92,7 +91,7 @@ discard block |
||
92 | 91 | /** |
93 | 92 | * @since 2.4 |
94 | 93 | * |
95 | - * @param array|false $serviceLinkParameters |
|
94 | + * @param boolean $serviceLinkParameters |
|
96 | 95 | */ |
97 | 96 | public function setServiceLinkParameters( $serviceLinkParameters ) { |
98 | 97 | $this->serviceLinkParameters = $serviceLinkParameters; |
@@ -100,6 +100,7 @@ |
||
100 | 100 | * |
101 | 101 | * @since 2.3 |
102 | 102 | * |
103 | + * @param string $table |
|
103 | 104 | * @return array |
104 | 105 | */ |
105 | 106 | public function getOrderedDiffByTable( $table = null ) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @param string $propertyName property string |
183 | 183 | * @param string $valueString user value string |
184 | 184 | * @param mixed $caption user-defined caption |
185 | - * @param SMWDIWikiPage|null $contextPage context for parsing the value string |
|
185 | + * @param null|DIWikiPage $contextPage context for parsing the value string |
|
186 | 186 | * |
187 | 187 | * @return DataValue |
188 | 188 | */ |
@@ -306,6 +306,8 @@ discard block |
||
306 | 306 | /** |
307 | 307 | * @deprecated since 2.4, use DataTypeRegistry::newDataValueByText |
308 | 308 | * |
309 | + * @param string $propertyName |
|
310 | + * @param string $valueString |
|
309 | 311 | * @return DataValue |
310 | 312 | */ |
311 | 313 | public function newPropertyValue( $propertyName, $valueString, $caption = false, DIWikiPage $contextPage = null ) { |
@@ -314,6 +316,8 @@ discard block |
||
314 | 316 | |
315 | 317 | /** |
316 | 318 | * @deprecated since 1.9, use DataTypeRegistry::registerDataType |
319 | + * @param string $id |
|
320 | + * @param string $className |
|
317 | 321 | */ |
318 | 322 | public static function registerDatatype( $id, $className, $dataItemId, $label = false ) { |
319 | 323 | DataTypeRegistry::getInstance()->registerDataType( $id, $className, $dataItemId, $label ); |
@@ -321,6 +325,8 @@ discard block |
||
321 | 325 | |
322 | 326 | /** |
323 | 327 | * @deprecated since 1.9, use DataTypeRegistry::registerDataTypeAlias |
328 | + * @param string $id |
|
329 | + * @param string $label |
|
324 | 330 | */ |
325 | 331 | public static function registerDatatypeAlias( $id, $label ) { |
326 | 332 | DataTypeRegistry::getInstance()->registerDataTypeAlias( $id, $label ); |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | * represent. Returns null if this attempt failed. |
404 | 404 | * |
405 | 405 | * @param ExpElement $expElement |
406 | - * @return SMWDataItem or null |
|
406 | + * @return null|DIWikiPage or null |
|
407 | 407 | */ |
408 | 408 | public function findDataItemForExpElement( ExpElement $expElement ) { |
409 | 409 | return self::$dataItemByExpElementMatchFinder->tryToFindDataItemForExpElement( $expElement ); |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * must take the type of the annotated object into account for some |
441 | 441 | * reason. |
442 | 442 | * |
443 | - * @param $propertyKey string the Id of the special property |
|
443 | + * @param string $propertyKey string the Id of the special property |
|
444 | 444 | * @param $forNamespace integer the namespace of the page which has a value for this property |
445 | 445 | * @return ExpNsResource|null |
446 | 446 | */ |
@@ -620,7 +620,7 @@ discard block |
||
620 | 620 | * elements are always preferred in query answering. |
621 | 621 | * |
622 | 622 | * @param $dataItem SMWDataItem |
623 | - * @return ExpElement|null |
|
623 | + * @return ExpLiteral|null |
|
624 | 624 | */ |
625 | 625 | static public function getDataItemHelperExpElement( SMWDataItem $dataItem ) { |
626 | 626 |