Index: trunk/phase3/includes/SpecialPageFactory.php |
— | — | @@ -153,6 +153,8 @@ |
154 | 154 | /** |
155 | 155 | * Initialise the special page list |
156 | 156 | * This must be called before accessing SpecialPage::$mList |
| 157 | + * |
| 158 | + * @return array |
157 | 159 | */ |
158 | 160 | static function getList() { |
159 | 161 | global $wgSpecialPages; |
— | — | @@ -189,6 +191,9 @@ |
190 | 192 | return self::$mList; |
191 | 193 | } |
192 | 194 | |
| 195 | + /** |
| 196 | + * @return array |
| 197 | + */ |
193 | 198 | static function getAliasList() { |
194 | 199 | if ( !is_object( self::$mAliases ) ) { |
195 | 200 | global $wgContLang; |
— | — | @@ -389,6 +394,8 @@ |
390 | 395 | * @param $title Title object |
391 | 396 | * @param $context RequestContext |
392 | 397 | * @param $including Bool output is being captured for use in {{special:whatever}} |
| 398 | + * |
| 399 | + * @return bool |
393 | 400 | */ |
394 | 401 | public static function executePath( Title &$title, RequestContext &$context, $including = false ) { |
395 | 402 | wfProfileIn( __METHOD__ ); |
— | — | @@ -455,6 +462,8 @@ |
456 | 463 | * Returns false if there was no such special page, or a title object if it was |
457 | 464 | * a redirect. |
458 | 465 | * |
| 466 | + * @param $title Title |
| 467 | + * |
459 | 468 | * @return String: HTML fragment |
460 | 469 | */ |
461 | 470 | static function capturePath( &$title ) { |
— | — | @@ -515,12 +524,14 @@ |
516 | 525 | /** |
517 | 526 | * Get a title for a given alias |
518 | 527 | * |
| 528 | + * @param $alias String |
| 529 | + * |
519 | 530 | * @return Title or null if there is no such alias |
520 | 531 | */ |
521 | 532 | static function getTitleForAlias( $alias ) { |
522 | 533 | $name = self::resolveAlias( $alias ); |
523 | 534 | if ( $name ) { |
524 | | - return self::getTitleFor( $name ); |
| 535 | + return SpecialPage::getTitleFor( $name ); |
525 | 536 | } else { |
526 | 537 | return null; |
527 | 538 | } |