Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -340,14 +340,29 @@ |
341 | 341 | } |
342 | 342 | } |
343 | 343 | |
344 | | - # Accessor functions, see the descriptions of the associated variables above |
| 344 | + /**#@+ |
| 345 | + * Accessor |
| 346 | + * |
| 347 | + * @deprecated |
| 348 | + */ |
345 | 349 | function getName() { return $this->mName; } |
346 | 350 | function getRestriction() { return $this->mRestriction; } |
| 351 | + function getFile() { return $this->mFile; } |
347 | 352 | function isListed() { return $this->mListed; } |
348 | | - function getFile() { return $this->mFile; } |
| 353 | + /**#@-*/ |
| 354 | + |
| 355 | + /**#@+ |
| 356 | + * Accessor and mutator |
| 357 | + */ |
| 358 | + function name( $x = NULL ) { return wfSetVar( $this->mName, $x ); } |
| 359 | + function restrictions( $x = NULL) { return wfSetVar( $this->mRestrictions, $x ); } |
| 360 | + function listed( $x = NULL) { return wfSetVar( $this->mListed, $x ); } |
| 361 | + function func( $x = NULL) { return wfSetVar( $this->mFunction, $x ); } |
| 362 | + function file( $x = NULL) { return wfSetVar( $this->mFile, $x ); } |
| 363 | + function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); } |
349 | 364 | function including( $x = NULL ) { return wfSetVar( $this->mIncluding, $x ); } |
350 | | - function includable( $x = NULL ) { return wfSetVar( $this->mIncludable, $x ); } |
351 | | - |
| 365 | + /**#@-*/ |
| 366 | + |
352 | 367 | /** |
353 | 368 | * Checks if the given user (identified by an object) can execute this |
354 | 369 | * special page (as defined by $mRestriction) |