From 956982c04a36eb34c86c4d7eb67de7b71b08862a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 15 Apr 2011 17:44:19 +0000 Subject: [PATCH] More function documentation --- ParserFunctions_body.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ParserFunctions_body.php b/ParserFunctions_body.php index c2c0a0be..41826bdc 100644 --- a/ParserFunctions_body.php +++ b/ParserFunctions_body.php @@ -204,6 +204,13 @@ class ExtParserFunctions { } } + /** + * @static + * @param $parser Parser + * @param $frame PPFrame + * @param $args + * @return string + */ public static function switchObj( $parser, $frame, $args ) { if ( count( $args ) == 0 ) { return ''; @@ -263,6 +270,8 @@ class ExtParserFunctions { * * Following subpage link syntax instead of standard path syntax, an * initial slash is treated as a relative path, and vice versa. + * + * @param $parser Parser */ public static function rel2abs( $parser , $to = '' , $from = '' ) { @@ -318,6 +327,12 @@ class ExtParserFunctions { return implode( '/' , $newExploded ); } + /** + * @static + * @param $parser Parser + * @param $frame PPFrame + * @return bool + */ public static function incrementIfexistCount( $parser, $frame ) { // Don't let this be called more than a certain number of times. It tends to make the database explode. global $wgExpensiveParserFunctionLimit;