}
}
- /**#@+
- * Accessor
- *
- * @deprecated
- */
function getName() { return $this->mName; }
function getRestriction() { return $this->mRestriction; }
function getFile() { return $this->mFile; }
function isListed() { return $this->mListed; }
- /**#@-*/
- /**#@+
- * Accessor and mutator
- */
function name( $x = null ) { return wfSetVar( $this->mName, $x ); }
function restrictions( $x = null) {
# Use the one below this
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 ); }
- /**#@-*/
/**
* Get the localised name of the special page
global $wgContLang;
if( $summaryMessageKey == '' ) {
- $msg = $wgContLang->lc( $this->name() ) . '-summary';
+ $msg = $wgContLang->lc( $this->getName() ) . '-summary';
} else {
$msg = $summaryMessageKey;
}
$page->including( $including );
// Execute special page
- $profName = 'Special:' . $page->name();
+ $profName = 'Special:' . $page->getName();
wfProfileIn( $profName );
$page->execute( $par );
wfProfileOut( $profName );