From: Niklas Laxström Date: Mon, 24 Dec 2007 11:21:37 +0000 (+0000) Subject: * Remove unused member variable and document the others X-Git-Tag: 1.31.0-rc.0~50282 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=6417e231e67f098f110e40bb70ca4d96384108e7;p=lhc%2Fweb%2Fwiklou.git * Remove unused member variable and document the others --- diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 26ecf3bf64..12cd8b83be 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -38,11 +38,21 @@ function wfSpecialAllpages( $par=NULL, $specialPage ) { * @addtogroup SpecialPage */ class SpecialAllpages { - var $maxPerPage=960; - var $topLevelMax=50; - var $name='Allpages'; - # Determines, which message describes the input field 'nsfrom' (->SpecialPrefixindex.php) - var $nsfromMsg='allpagesfrom'; + /** + * Maximum number of pages to show on single subpage. + */ + protected $maxPerPage = 960; + + /** + * Name of this special page. Used to make title objects that reference back + * to this page. + */ + protected $name = 'Allpages'; + + /** + * Determines, which message describes the input field 'nsfrom'. + */ + protected $nsfromMsg = 'allpagesfrom'; /** * HTML for the top form diff --git a/includes/SpecialPrefixindex.php b/includes/SpecialPrefixindex.php index 6bb26d67df..925bfe28c5 100644 --- a/includes/SpecialPrefixindex.php +++ b/includes/SpecialPrefixindex.php @@ -40,11 +40,11 @@ function wfSpecialPrefixIndex( $par=NULL, $specialPage ) { * @addtogroup SpecialPage */ class SpecialPrefixindex extends SpecialAllpages { - var $maxPerPage=960; - var $topLevelMax=50; - var $name='Prefixindex'; - # Determines, which message describes the input field 'nsfrom', used in function namespaceForm (see superclass SpecialAllpages) - var $nsfromMsg='allpagesprefix'; + // Inherit $magPerPage + + // Define other properties + protected $name = 'Prefixindex'; + protected $nsfromMsg = 'allpagesprefix'; /** * @param integer $namespace (Default NS_MAIN)