* Remove unused member variable and document the others
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 24 Dec 2007 11:21:37 +0000 (11:21 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 24 Dec 2007 11:21:37 +0000 (11:21 +0000)
includes/SpecialAllpages.php
includes/SpecialPrefixindex.php

index 26ecf3b..12cd8b8 100644 (file)
@@ -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
index 6bb26d6..925bfe2 100644 (file)
@@ -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)