Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -204,6 +204,13 @@ |
205 | 205 | } |
206 | 206 | } |
207 | 207 | |
| 208 | + /** |
| 209 | + * @static |
| 210 | + * @param $parser Parser |
| 211 | + * @param $frame PPFrame |
| 212 | + * @param $args |
| 213 | + * @return string |
| 214 | + */ |
208 | 215 | public static function switchObj( $parser, $frame, $args ) { |
209 | 216 | if ( count( $args ) == 0 ) { |
210 | 217 | return ''; |
— | — | @@ -263,6 +270,8 @@ |
264 | 271 | * |
265 | 272 | * Following subpage link syntax instead of standard path syntax, an |
266 | 273 | * initial slash is treated as a relative path, and vice versa. |
| 274 | + * |
| 275 | + * @param $parser Parser |
267 | 276 | */ |
268 | 277 | public static function rel2abs( $parser , $to = '' , $from = '' ) { |
269 | 278 | |
— | — | @@ -318,6 +327,12 @@ |
319 | 328 | return implode( '/' , $newExploded ); |
320 | 329 | } |
321 | 330 | |
| 331 | + /** |
| 332 | + * @static |
| 333 | + * @param $parser Parser |
| 334 | + * @param $frame PPFrame |
| 335 | + * @return bool |
| 336 | + */ |
322 | 337 | public static function incrementIfexistCount( $parser, $frame ) { |
323 | 338 | // Don't let this be called more than a certain number of times. It tends to make the database explode. |
324 | 339 | global $wgExpensiveParserFunctionLimit; |
Index: trunk/phase3/includes/Collation.php |
— | — | @@ -3,6 +3,10 @@ |
4 | 4 | abstract class Collation { |
5 | 5 | static $instance; |
6 | 6 | |
| 7 | + /** |
| 8 | + * @static |
| 9 | + * @return Collation |
| 10 | + */ |
7 | 11 | static function singleton() { |
8 | 12 | if ( !self::$instance ) { |
9 | 13 | global $wgCategoryCollation; |
— | — | @@ -11,6 +15,12 @@ |
12 | 16 | return self::$instance; |
13 | 17 | } |
14 | 18 | |
| 19 | + /** |
| 20 | + * @static |
| 21 | + * @throws MWException |
| 22 | + * @param $collationName string |
| 23 | + * @return Collation |
| 24 | + */ |
15 | 25 | static function factory( $collationName ) { |
16 | 26 | switch( $collationName ) { |
17 | 27 | case 'uppercase': |
— | — | @@ -259,13 +269,13 @@ |
260 | 270 | * Do a binary search, and return the index of the largest item that sorts |
261 | 271 | * less than or equal to the target value. |
262 | 272 | * |
263 | | - * @param $valueCallback A function to call to get the value with |
| 273 | + * @param $valueCallback array A function to call to get the value with |
264 | 274 | * a given array index. |
265 | | - * @param $valueCount The number of items accessible via $valueCallback, |
| 275 | + * @param $valueCount int The number of items accessible via $valueCallback, |
266 | 276 | * indexed from 0 to $valueCount - 1 |
267 | | - * @param $comparisonCallback A callback to compare two values, returning |
| 277 | + * @param $comparisonCallback array A callback to compare two values, returning |
268 | 278 | * -1, 0 or 1 in the style of strcmp(). |
269 | | - * @param $target The target value to find. |
| 279 | + * @param $target string The target value to find. |
270 | 280 | * |
271 | 281 | * @return The item index of the lower bound, or false if the target value |
272 | 282 | * sorts before all items. |