* @file
* @ingroup SpecialPage Watchlist
*/
-class SpecialWatchlist extends SpecialRecentChanges {
- protected $customFilters;
-
+class SpecialWatchlist extends ChangesListSpecialPage {
/**
* Constructor
*/
parent::__construct( $page, $restriction );
}
- public function isIncludable() {
- return false;
- }
-
/**
* Get a FormOptions object containing the default options
*
$opts = parent::getDefaultOptions();
$user = $this->getUser();
- // Overwrite RC options with Watchlist options
- // (calling #add() again is okay)
$opts->add( 'days', $user->getOption( 'watchlistdays' ), FormOptions::FLOAT );
+
$opts->add( 'hideminor', $user->getBoolOption( 'watchlisthideminor' ) );
$opts->add( 'hidebots', $user->getBoolOption( 'watchlisthidebots' ) );
$opts->add( 'hideanons', $user->getBoolOption( 'watchlisthideanons' ) );
$opts->add( 'hidepatrolled', $user->getBoolOption( 'watchlisthidepatrolled' ) );
$opts->add( 'hidemyself', $user->getBoolOption( 'watchlisthideown' ) );
- // Add new ones
$opts->add( 'extended', $user->getBoolOption( 'extendwatchlist' ) );
return $opts;
return $this->customFilters;
}
- /**
- * Process $par and put options found if $opts. Not used for Watchlist.
- *
- * @param string $par
- * @param FormOptions $opts
- */
- public function parseParameters( $par, FormOptions $opts ) {
- }
-
- /**
- * Get the current FormOptions for this request
- */
- public function getOptions() {
- if ( $this->rcOptions === null ) {
- $this->rcOptions = $this->setup( null );
- }
-
- return $this->rcOptions;
- }
-
/**
* Execute
* @param $par Parameter passed to the page