@@ -147,6 +147,9 @@ |
||
147 | 147 | return $this->fetchFromParser(); |
148 | 148 | } |
149 | 149 | |
150 | + /** |
|
151 | + * @param string $text |
|
152 | + */ |
|
150 | 153 | protected function parseText( $text ) { |
151 | 154 | |
152 | 155 | $this->parserOutput = $this->parser->parse( |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * @param string $concept the concept query string |
70 | 70 | * @param string $docu user documentation |
71 | - * @param integer $queryefeatures flags about query features |
|
71 | + * @param integer $queryfeatures flags about query features |
|
72 | 72 | * @param integer $size concept query size |
73 | 73 | * @param integer $depth concept query depth |
74 | 74 | */ |
@@ -118,6 +118,7 @@ discard block |
||
118 | 118 | * @since 1.9 |
119 | 119 | * |
120 | 120 | * @param string |
121 | + * @param string $status |
|
121 | 122 | */ |
122 | 123 | public function setCacheStatus( $status ) { |
123 | 124 | $this->cacheStatus = $status; |
@@ -150,7 +151,7 @@ discard block |
||
150 | 151 | * |
151 | 152 | * @since 1.9 |
152 | 153 | * |
153 | - * @return string |
|
154 | + * @return integer |
|
154 | 155 | */ |
155 | 156 | public function getCacheStatus() { |
156 | 157 | return $this->cacheStatus; |
@@ -161,7 +162,7 @@ discard block |
||
161 | 162 | * |
162 | 163 | * @since 1.9 |
163 | 164 | * |
164 | - * @return string |
|
165 | + * @return integer |
|
165 | 166 | */ |
166 | 167 | public function getCacheDate() { |
167 | 168 | return $this->cacheDate; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SMW; |
4 | 4 | |
5 | 5 | use SMWDataItem; |
6 | -use SMWDataItemException; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * This class implements Concept data items. |
@@ -20,6 +20,9 @@ |
||
20 | 20 | */ |
21 | 21 | protected $m_boolean; |
22 | 22 | |
23 | + /** |
|
24 | + * @param boolean $boolean |
|
25 | + */ |
|
23 | 26 | public function __construct( $boolean ) { |
24 | 27 | if ( !is_bool( $boolean ) ) { |
25 | 28 | throw new DataItemException( "Initialization value '$boolean' is not a boolean." ); |
@@ -57,6 +57,7 @@ |
||
57 | 57 | * ID. |
58 | 58 | * @note PHP can convert any string to some number, so we do not do |
59 | 59 | * validation here (because this would require less efficient parsing). |
60 | + * @param string $serialization |
|
60 | 61 | * @return SMWDINumber |
61 | 62 | */ |
62 | 63 | public static function doUnserialize( $serialization ) { |
@@ -237,6 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * @since 2.0 |
239 | 239 | * |
240 | + * @param string $propertyTypeId |
|
240 | 241 | * @return self |
241 | 242 | * @throws RuntimeException |
242 | 243 | * @throws InvalidArgumentException |
@@ -365,6 +366,7 @@ discard block |
||
365 | 366 | |
366 | 367 | /** |
367 | 368 | * @deprecated since 2.1, use PropertyRegistry::findPropertyIdByLabel |
369 | + * @param string $label |
|
368 | 370 | */ |
369 | 371 | public static function findPropertyID( $label, $useAlias = true ) { |
370 | 372 | return PropertyRegistry::getInstance()->findPropertyIdByLabel( $label, $useAlias ); |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use SMWDataItem; |
6 | 6 | use SMWDIUri; |
7 | -use SMWLanguage; |
|
8 | 7 | use InvalidArgumentException; |
9 | 8 | use RuntimeException; |
10 | 9 |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | * |
178 | 178 | * @param string $timestamp must be in format |
179 | 179 | * |
180 | - * @return SMWDITime|false |
|
180 | + * @return SMWDataItem |
|
181 | 181 | */ |
182 | 182 | public static function newFromTimestamp( $timestamp ) { |
183 | 183 | $timestamp = wfTimestamp( TS_MW, (string)$timestamp ); |
@@ -278,6 +278,7 @@ discard block |
||
278 | 278 | /** |
279 | 279 | * Create a data item from the provided serialization string. |
280 | 280 | * |
281 | + * @param string $serialization |
|
281 | 282 | * @return SMWDITime |
282 | 283 | */ |
283 | 284 | public static function doUnserialize( $serialization ) { |
@@ -331,10 +332,10 @@ discard block |
||
331 | 332 | * Compute the Julian Day number from a given date in the specified |
332 | 333 | * calendar model. This calculation assumes that neither calendar |
333 | 334 | * has a year 0. |
334 | - * @param $year integer representing the year |
|
335 | - * @param $month integer representing the month |
|
336 | - * @param $day integer representing the day |
|
337 | - * @param $calendarmodel integer either SMWDITime::CM_GREGORIAN or SMWDITime::CM_JULIAN |
|
335 | + * @param integer $year integer representing the year |
|
336 | + * @param integer $month integer representing the month |
|
337 | + * @param integer $day integer representing the day |
|
338 | + * @param integer $calendarmodel integer either SMWDITime::CM_GREGORIAN or SMWDITime::CM_JULIAN |
|
338 | 339 | * @return float Julian Day number |
339 | 340 | */ |
340 | 341 | static public function date2JD( $year, $month, $day, $calendarmodel ) { |
@@ -354,9 +355,9 @@ discard block |
||
354 | 355 | /** |
355 | 356 | * Compute the offset for the Julian Day number from a given time. |
356 | 357 | * This computation is the same for all calendar models. |
357 | - * @param $hours integer representing the hour |
|
358 | - * @param $minutes integer representing the minutes |
|
359 | - * @param $seconds integer representing the seconds |
|
358 | + * @param integer $hours integer representing the hour |
|
359 | + * @param integer $minutes integer representing the minutes |
|
360 | + * @param integer $seconds integer representing the seconds |
|
360 | 361 | * @return float offset for a Julian Day number to get this time |
361 | 362 | */ |
362 | 363 | static public function time2JDoffset( $hours, $minutes, $seconds ) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * with these examples would be |
41 | 41 | * http://[email protected]/path?q=Search+term#section-one |
42 | 42 | * @param $scheme string for the scheme |
43 | - * @param $hierpart string for the "hierpart" |
|
43 | + * @param string $hierpart string for the "hierpart" |
|
44 | 44 | * @param $query string for the query |
45 | 45 | * @param $fragment string for the fragment |
46 | 46 | * |
@@ -105,6 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * Create a data item from the provided serialization string and type |
107 | 107 | * ID. |
108 | + * @param string $serialization |
|
108 | 109 | * @return SMWDIUri |
109 | 110 | */ |
110 | 111 | public static function doUnserialize( $serialization ) { |
@@ -112,7 +112,7 @@ |
||
112 | 112 | /** |
113 | 113 | * Get text for displaying the value of this property, or false if not |
114 | 114 | * valid. |
115 | - * @param $useformat bool, true if the output format should be used, false if the returned text should be parsable |
|
115 | + * @param boolean $useformat bool, true if the output format should be used, false if the returned text should be parsable |
|
116 | 116 | * @return string |
117 | 117 | */ |
118 | 118 | protected function getStandardCaption( $useformat ) { |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * Parse a string of the form "number unit" where unit is optional. The |
61 | 61 | * results are stored in the $number and $unit parameters. Returns an |
62 | 62 | * error code. |
63 | - * @param $value string to parse |
|
63 | + * @param string $value string to parse |
|
64 | 64 | * @param $number call-by-ref parameter that will be set to the numerical value |
65 | 65 | * @param $unit call-by-ref parameter that will be set to the "unit" string (after the number) |
66 | 66 | * @return integer 0 (no errors), 1 (no number found at all), 2 (number |