From eee531394df2d44a0acec363c1e15d90963dca61 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 12 Oct 2005 03:36:07 +0000 Subject: [PATCH] * Deprecated some accessors in favor of fancy accessors/mutators --- includes/SpecialPage.php | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 5a56b54fd6..ef563b2d1f 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -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) -- 2.20.1