Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | } |
261 | 261 | |
262 | 262 | if ( isset( $prop['headitems'] ) || isset( $prop['headhtml'] ) ) { |
263 | | - $context = $this->createContext(); |
| 263 | + $context = $this->getContext(); |
264 | 264 | $context->setTitle( $titleObj ); |
265 | 265 | $context->getOutput()->addParserOutputNoText( $p_result ); |
266 | 266 | |
— | — | @@ -382,7 +382,7 @@ |
383 | 383 | } |
384 | 384 | |
385 | 385 | private function categoriesHtml( $categories ) { |
386 | | - $context = $this->createContext(); |
| 386 | + $context = $this->getContext(); |
387 | 387 | $context->getOutput()->addCategoryLinks( $categories ); |
388 | 388 | return $context->getSkin()->getCategories(); |
389 | 389 | } |
Index: trunk/phase3/includes/api/ApiFormatWddx.php |
— | — | @@ -69,6 +69,8 @@ |
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Recursively go through the object and output its data in WDDX format. |
| 73 | + * @param $elemValue |
| 74 | + * @param $indent int |
73 | 75 | */ |
74 | 76 | function slowWddxPrinter( $elemValue, $indent = 0 ) { |
75 | 77 | $indstr = ( $this->getIsHtml() ? '' : str_repeat( ' ', $indent ) ); |
Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | * Public caching will only be allowed if *all* the modules that supply |
57 | 57 | * data for a given request return a cache mode of public. |
58 | 58 | * |
| 59 | + * @param $params |
59 | 60 | * @return string |
60 | 61 | */ |
61 | 62 | public function getCacheMode( $params ) { |
— | — | @@ -220,14 +221,20 @@ |
221 | 222 | } |
222 | 223 | } |
223 | 224 | } |
| 225 | + |
224 | 226 | /** |
225 | 227 | * Add a WHERE clause corresponding to a range, similar to addWhereRange, |
226 | 228 | * but converts $start and $end to database timestamps. |
227 | 229 | * @see addWhereRange |
| 230 | + * @param $field |
| 231 | + * @param $dir |
| 232 | + * @param $start |
| 233 | + * @param $end |
| 234 | + * @param $sort bool |
228 | 235 | */ |
229 | 236 | protected function addTimestampWhereRange( $field, $dir, $start, $end, $sort = true ) { |
230 | 237 | $db = $this->getDb(); |
231 | | - return $this->addWhereRange( $field, $dir, |
| 238 | + return $this->addWhereRange( $field, $dir, |
232 | 239 | $db->timestampOrNull( $start ), $db->timestampOrNull( $end ), $sort ); |
233 | 240 | } |
234 | 241 | |
Index: trunk/phase3/includes/api/ApiQuery.php |
— | — | @@ -281,6 +281,8 @@ |
282 | 282 | * The cache mode may increase in the level of privacy, but public modules |
283 | 283 | * added to private data do not decrease the level of privacy. |
284 | 284 | * |
| 285 | + * @param $cacheMode string |
| 286 | + * @param $modCacheMode string |
285 | 287 | * @return string |
286 | 288 | */ |
287 | 289 | protected function mergeCacheMode( $cacheMode, $modCacheMode ) { |
Index: trunk/phase3/includes/api/ApiQueryInfo.php |
— | — | @@ -76,7 +76,7 @@ |
77 | 77 | * Get an array mapping token names to their handler functions. |
78 | 78 | * The prototype for a token function is func($pageid, $title) |
79 | 79 | * it should return a token or false (permission denied) |
80 | | - * @return array(tokenname => function) |
| 80 | + * @return array array(tokenname => function) |
81 | 81 | */ |
82 | 82 | protected function getTokenFunctions() { |
83 | 83 | // Don't call the hooks twice |
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | /** |
278 | 278 | * Extract fields from the database row and append them to a result array |
279 | 279 | * |
| 280 | + * @param $row |
280 | 281 | * @return array |
281 | 282 | */ |
282 | 283 | private function extractRowInfo( $row ) { |