From 9320b8bed5df4d18c623f89572997bb61e7c7e09 Mon Sep 17 00:00:00 2001 From: mrbluesky Date: Fri, 27 Jan 2012 22:07:09 +0000 Subject: [PATCH] Comments only --- includes/parser/ParserOptions.php | 218 ++++++++++++++++++++++++------ 1 file changed, 179 insertions(+), 39 deletions(-) diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 0b48032d29..57d3a7eb37 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -1,58 +1,188 @@ mUseDynamicDates; } @@ -184,6 +314,11 @@ class ParserOptions { $this->mExtraKey .= '!' . $key; } + /** + * Constructor + * @param $user User object + * @param $lang Language object + */ function __construct( $user = null, $lang = null ) { if ( $user === null ) { global $wgUser; @@ -235,7 +370,12 @@ class ParserOptions { return new ParserOptions( $context->getUser(), $context->getLanguage() ); } - /** Get user options */ + /** + * Get user options + * + * @param $user User object + * @param $lang Language object + */ private function initialiseFromUser( $user, $lang ) { global $wgUseDynamicDates, $wgInterwikiMagic, $wgAllowExternalImages, $wgAllowExternalImagesFrom, $wgEnableImageWhitelist, $wgAllowSpecialInclusion, @@ -314,7 +454,7 @@ class ParserOptions { * @since 1.17 * @param $forOptions Array * @param $title Title: used to get the content language of the page (since r97636) - * @return \string Page rendering hash + * @return string Page rendering hash */ public function optionsHash( $forOptions, $title = null ) { global $wgRenderHashAppend; -- 2.20.1