From: Ævar Arnfjörð Bjarmason Date: Wed, 12 Oct 2005 03:36:07 +0000 (+0000) Subject: * Deprecated some accessors in favor of fancy accessors/mutators X-Git-Tag: 1.6.0~1456 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=eee531394df2d44a0acec363c1e15d90963dca61;p=lhc%2Fweb%2Fwiklou.git * Deprecated some accessors in favor of fancy accessors/mutators --- 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)