From 593f98ff2ea78c63ba1209c12404c48a8e2249e7 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 24 Feb 2011 17:04:49 +0000 Subject: [PATCH] More member variable documentation --- includes/EditPage.php | 7 +++++++ includes/parser/Preprocessor_Hash.php | 15 ++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index a79e272322..70e0ca61a8 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -42,7 +42,14 @@ class EditPage { const AS_IMAGE_REDIRECT_ANON = 233; const AS_IMAGE_REDIRECT_LOGGED = 234; + /** + * @var Article + */ var $mArticle; + + /** + * @var Title + */ var $mTitle; private $mContextTitle = null; var $action; diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index ace616caf2..ad57c47e08 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -826,7 +826,15 @@ class PPFrame_Hash implements PPFrame { */ var $parser; - var $preprocessor, $title; + /** + * @var Preprocessor + */ + var $preprocessor; + + /** + * @var Title + */ + var $title; var $titleCache; /** @@ -894,8 +902,7 @@ class PPFrame_Hash implements PPFrame { return $root; } - if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) - { + if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) { return 'Node-count limit exceeded'; } if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) { @@ -1203,6 +1210,8 @@ class PPFrame_Hash implements PPFrame { /** * Returns true if the infinite loop check is OK, false if a loop is detected + * + * @param $title Title */ function loopCheck( $title ) { return !isset( $this->loopCheckHash[$title->getPrefixedDBkey()] ); -- 2.20.1