Index: trunk/phase3/includes/api/ApiQueryAllCategories.php |
— | — | @@ -50,7 +50,6 @@ |
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @param $resultPageSet ApiPageSet |
54 | | - * @return void |
55 | 54 | */ |
56 | 55 | private function run( $resultPageSet = null ) { |
57 | 56 | $db = $this->getDB(); |
Index: trunk/phase3/includes/api/ApiPageSet.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Constructor |
56 | | - * @param $query ApiQuery |
| 56 | + * @param $query ApiQueryBase |
57 | 57 | * @param $resolveRedirects bool Whether redirects should be resolved |
58 | 58 | * @param $convertTitles bool |
59 | 59 | */ |
Index: trunk/phase3/includes/specials/SpecialExport.php |
— | — | @@ -231,6 +231,9 @@ |
232 | 232 | $out->addHTML( $form ); |
233 | 233 | } |
234 | 234 | |
| 235 | + /** |
| 236 | + * @return bool |
| 237 | + */ |
235 | 238 | private function userCanOverrideExportDepth() { |
236 | 239 | return $this->getUser()->isAllowed( 'override-export-depth' ); |
237 | 240 | } |
— | — | @@ -337,6 +340,10 @@ |
338 | 341 | } |
339 | 342 | } |
340 | 343 | |
| 344 | + /** |
| 345 | + * @param $title Title |
| 346 | + * @return array |
| 347 | + */ |
341 | 348 | private function getPagesFromCategory( $title ) { |
342 | 349 | global $wgContLang; |
343 | 350 | |
— | — | @@ -365,6 +372,10 @@ |
366 | 373 | return $pages; |
367 | 374 | } |
368 | 375 | |
| 376 | + /** |
| 377 | + * @param $nsindex int |
| 378 | + * @return array |
| 379 | + */ |
369 | 380 | private function getPagesFromNamespace( $nsindex ) { |
370 | 381 | global $wgContLang; |
371 | 382 | |
— | — | @@ -408,6 +419,8 @@ |
409 | 420 | |
410 | 421 | /** |
411 | 422 | * Validate link depth setting, if available. |
| 423 | + * @param $depth int |
| 424 | + * @return int |
412 | 425 | */ |
413 | 426 | private function validateLinkDepth( $depth ) { |
414 | 427 | global $wgExportMaxLinkDepth; |
— | — | @@ -430,7 +443,13 @@ |
431 | 444 | return intval( min( $depth, 5 ) ); |
432 | 445 | } |
433 | 446 | |
434 | | - /** Expand a list of pages to include pages linked to from that page. */ |
| 447 | + /** |
| 448 | + * Expand a list of pages to include pages linked to from that page. |
| 449 | + * @param $inputPages array |
| 450 | + * @param $pageSet array |
| 451 | + * @param $depth int |
| 452 | + * @return array |
| 453 | + */ |
435 | 454 | private function getPageLinks( $inputPages, $pageSet, $depth ) { |
436 | 455 | for( ; $depth > 0; --$depth ) { |
437 | 456 | $pageSet = $this->getLinks( |