@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @since 2.5 |
29 | 29 | * |
30 | - * @param Iterator/array $$iterable |
|
30 | + * @param Iterator/array $iterable |
|
31 | 31 | * @param callable $callback |
32 | 32 | * |
33 | 33 | * @return MappingIterator |
@@ -76,7 +76,7 @@ |
||
76 | 76 | * |
77 | 77 | * @param array $idList |
78 | 78 | * |
79 | - * @return DIWikiPage[] |
|
79 | + * @return \SMW\Iterators\MappingIterator |
|
80 | 80 | */ |
81 | 81 | public function getDataItemPoolHashListFor( array $idList ) { |
82 | 82 |
@@ -141,6 +141,7 @@ discard block |
||
141 | 141 | * - M A short textual representation of a month, three letters |
142 | 142 | * - a Lowercase Ante meridiem and Post meridiem am or pm |
143 | 143 | * - A Uppercase Ante meridiem and Post meridiem |
144 | + * @param string $format |
|
144 | 145 | */ |
145 | 146 | private function formatWithLocalizedTextReplacement( $dateTime, $format ) { |
146 | 147 | |
@@ -189,6 +190,9 @@ discard block |
||
189 | 190 | return $output; |
190 | 191 | } |
191 | 192 | |
193 | + /** |
|
194 | + * @param \DateTime $dateTime |
|
195 | + */ |
|
192 | 196 | private function getAbbreviatedTimezoneWithModifiedDateTime( &$dateTime ) { |
193 | 197 | |
194 | 198 | $timezone = 0; |
@@ -142,6 +142,11 @@ |
||
142 | 142 | return $this->findMatchesWith( '_SUBC', $category->getDBKey(), $category, new RequestOptions() ); |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param string $id |
|
147 | + * @param string $key |
|
148 | + * @param RequestOptions $requestOptions |
|
149 | + */ |
|
145 | 150 | private function findMatchesWith( $id, $key, DIWikiPage $subject, $requestOptions ) { |
146 | 151 | |
147 | 152 | $key = $id . '#' . $key . '#' . $requestOptions->getHash(); |
@@ -34,7 +34,6 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @since 2.0 |
36 | 36 | * |
37 | - * @param SemanticData $semanticData |
|
38 | 37 | * @param RedirectTargetFinder $redirectTargetFinder |
39 | 38 | * |
40 | 39 | * @return RedirectPropertyAnnotator |
@@ -49,7 +48,6 @@ discard block |
||
49 | 48 | /** |
50 | 49 | * @since 2.0 |
51 | 50 | * |
52 | - * @param SemanticData $semanticData |
|
53 | 51 | * @param PageInfo $pageInfo |
54 | 52 | * |
55 | 53 | * @return PredefinedPropertyAnnotator |
@@ -71,7 +69,6 @@ discard block |
||
71 | 69 | /** |
72 | 70 | * @since 2.0 |
73 | 71 | * |
74 | - * @param SemanticData $semanticData |
|
75 | 72 | * @param string $sortkey |
76 | 73 | * |
77 | 74 | * @return SortKeyPropertyAnnotator |
@@ -86,7 +83,6 @@ discard block |
||
86 | 83 | /** |
87 | 84 | * @since 2.4 |
88 | 85 | * |
89 | - * @param SemanticData $semanticData |
|
90 | 86 | * @param string|false $displayTitle |
91 | 87 | * @param string $defaultSort |
92 | 88 | * |
@@ -110,7 +106,6 @@ discard block |
||
110 | 106 | /** |
111 | 107 | * @since 2.0 |
112 | 108 | * |
113 | - * @param SemanticData $semanticData |
|
114 | 109 | * @param array $categories |
115 | 110 | * |
116 | 111 | * @return CategoryPropertyAnnotator |
@@ -140,7 +135,6 @@ discard block |
||
140 | 135 | /** |
141 | 136 | * @since 2.2 |
142 | 137 | * |
143 | - * @param SemanticData $semanticData |
|
144 | 138 | * |
145 | 139 | * @return MandatoryTypePropertyAnnotator |
146 | 140 | */ |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * label for printout might also be specified. |
169 | 169 | * |
170 | 170 | * @param string $value |
171 | - * @param mixed $caption |
|
171 | + * @param boolean $caption |
|
172 | 172 | */ |
173 | 173 | public function setUserValue( $value, $caption = false ) { |
174 | 174 | |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | /** |
264 | 264 | * @since 2.4 |
265 | 265 | * |
266 | - * @return DIWikiPage|null |
|
266 | + * @return SMWDIWikiPage |
|
267 | 267 | */ |
268 | 268 | public function getContextPage() { |
269 | 269 | return $this->m_contextPage; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * |
306 | 306 | * @param string $key |
307 | 307 | * |
308 | - * @return mixed|false |
|
308 | + * @return string|false |
|
309 | 309 | */ |
310 | 310 | public function getOptionBy( $key ) { |
311 | 311 | |
@@ -340,7 +340,6 @@ discard block |
||
340 | 340 | /** |
341 | 341 | * @since 2.4 |
342 | 342 | * |
343 | - * @param string $caption |
|
344 | 343 | */ |
345 | 344 | public function getCaption() { |
346 | 345 | return $this->m_caption; |
@@ -427,7 +426,6 @@ discard block |
||
427 | 426 | * |
428 | 427 | * @param $parameters |
429 | 428 | * @param integer|null $type |
430 | - * @param integer|null $language |
|
431 | 429 | */ |
432 | 430 | public function addErrorMsg( $parameters, $type = null ) { |
433 | 431 | $this->mErrors[] = Message::encode( $parameters, $type ); |
@@ -484,7 +482,7 @@ discard block |
||
484 | 482 | * |
485 | 483 | * @param string|null $value |
486 | 484 | * |
487 | - * @return Description |
|
485 | + * @return SMW\Query\Language\Description |
|
488 | 486 | * @throws InvalidArgumentException |
489 | 487 | */ |
490 | 488 | public function getQueryDescription( $value = null ) { |
@@ -510,7 +508,7 @@ discard block |
||
510 | 508 | * |
511 | 509 | * @since 2.4 |
512 | 510 | * |
513 | - * @return DataValueFormatter |
|
511 | + * @return SMW\DataValues\ValueFormatters\DataValueFormatter |
|
514 | 512 | */ |
515 | 513 | public function getDataValueFormatter() { |
516 | 514 | return ValueFormatterRegistry::getInstance()->getDataValueFormatterFor( $this ); |
@@ -594,6 +592,7 @@ discard block |
||
594 | 592 | * |
595 | 593 | * The parameter $linked controls linking of values such as titles and should |
596 | 594 | * be non-NULL and non-false if this is desired. |
595 | + * @return string |
|
597 | 596 | */ |
598 | 597 | abstract public function getLongWikiText( $linked = null ); |
599 | 598 |
@@ -82,6 +82,10 @@ |
||
82 | 82 | ); |
83 | 83 | } |
84 | 84 | |
85 | + /** |
|
86 | + * @param string $pattern |
|
87 | + * @param string $reference |
|
88 | + */ |
|
85 | 89 | private function doPregMatch( $pattern, $dataValue, $reference ) { |
86 | 90 | |
87 | 91 | // Convert escaping as in /\d{4} |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @param integer $mode a constant defining what to printout |
70 | 70 | * @param string $label the string label to describe this printout |
71 | 71 | * @param mixed $data optional data for specifying some request, might be a property object, title, or something else; interpretation depends on $mode |
72 | - * @param mixed $outputformat optional string for specifying an output format, e.g. an output unit |
|
72 | + * @param string $outputformat optional string for specifying an output format, e.g. an output unit |
|
73 | 73 | * @param array|null $params optional array of further, named parameters for the print request |
74 | 74 | */ |
75 | 75 | public function __construct( $mode, $label, $data = null, $outputformat = false, array $params = null ) { |
@@ -137,6 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | /** |
139 | 139 | * Convenience method for accessing the text in either HTML or Wiki format. |
140 | + * @param integer $outputMode |
|
140 | 141 | */ |
141 | 142 | public function getText( $outputMode, $linker = null ) { |
142 | 143 | return Formatter::format( $this, $linker, $outputMode ); |
@@ -219,7 +220,7 @@ discard block |
||
219 | 220 | /** |
220 | 221 | * Returns the value of a named parameter. |
221 | 222 | * |
222 | - * @param $key string the name of the parameter key |
|
223 | + * @param string $key string the name of the parameter key |
|
223 | 224 | * |
224 | 225 | * @return string Value of the paramer, if set (else FALSE) |
225 | 226 | */ |
@@ -239,7 +240,7 @@ discard block |
||
239 | 240 | /** |
240 | 241 | * Sets a print request parameter. |
241 | 242 | * |
242 | - * @param $key string Name of the parameter |
|
243 | + * @param string $key string Name of the parameter |
|
243 | 244 | * @param $value string Value for the parameter |
244 | 245 | */ |
245 | 246 | public function setParameter( $key, $value ) { |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | return self::getHTMLText( $printRequest, $linker ); |
41 | 41 | } |
42 | 42 | |
43 | + /** |
|
44 | + * @param $printRequest |
|
45 | + */ |
|
43 | 46 | private static function getHTMLText( $printRequest, $linker = null ) { |
44 | 47 | |
45 | 48 | $label = htmlspecialchars( $printRequest->getLabel() ); |
@@ -62,6 +65,9 @@ discard block |
||
62 | 65 | } |
63 | 66 | } |
64 | 67 | |
68 | + /** |
|
69 | + * @param $printRequest |
|
70 | + */ |
|
65 | 71 | private static function getWikiText( $printRequest, $linker = false ) { |
66 | 72 | |
67 | 73 | $label = $printRequest->getLabel(); |