* Deprecated some accessors in favor of fancy accessors/mutators
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 12 Oct 2005 03:36:07 +0000 (03:36 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 12 Oct 2005 03:36:07 +0000 (03:36 +0000)
includes/SpecialPage.php

index 5a56b54..ef563b2 100644 (file)
@@ -340,14 +340,29 @@ class SpecialPage
                }
        }
 
-       # Accessor functions, see the descriptions of the associated variables above
+       /**#@+
+         * Accessor
+         *
+         * @deprecated
+         */
        function getName() { return $this->mName; }
        function getRestriction() { return $this->mRestriction; }
-       function isListed() { return $this->mListed; }
        function getFile() { return $this->mFile; }
-       function including( $x = NULL ) { return wfSetVar( $this->mIncluding, $x ); }
+       function isListed() { return $this->mListed; }
+       /**#@-*/
+       
+       /**#@+
+         * Accessor and mutator
+         */
+       function name( $x = NULL ) { return wfSetVar( $this->mName, $x ); }
+       function restrictions( $x = NULL) { return wfSetVar( $this->mRestrictions, $x ); }
+       function listed( $x = NULL) { return wfSetVar( $this->mListed, $x ); }
+       function func( $x = NULL) { return wfSetVar( $this->mFunction, $x ); }
+       function file( $x = NULL) { return wfSetVar( $this->mFile, $x ); }
        function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); }
-
+       function including( $x = NULL ) { return wfSetVar( $this->mIncluding, $x ); }
+       /**#@-*/
+       
        /**
         * Checks if the given user (identified by an object) can execute this
         * special page (as defined by $mRestriction)