MediaWiki  REL1_22
SpecialWatchlist Class Reference
Inheritance diagram for SpecialWatchlist:
Collaboration diagram for SpecialWatchlist:

List of all members.

Public Member Functions

 __construct ($page= 'Watchlist', $restriction= 'viewmywatchlist')
 Constructor.
 execute ($par)
 Execute.

Protected Member Functions

 countItems ($dbr)
 Count the number of items on a user's watchlist.
 cutoffLinks ($days, $options=array())
 Returns html.
 daysLink ($d, $options=array())
 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
 hoursLink ($h, $options=array())
 showHideLink ($options, $message, $name, $value)

Protected Attributes

 $customFilters

Detailed Description

Definition at line 23 of file SpecialWatchlist.php.


Constructor & Destructor Documentation

SpecialWatchlist::__construct ( page = 'Watchlist',
restriction = 'viewmywatchlist' 
)

Constructor.

Definition at line 29 of file SpecialWatchlist.php.


Member Function Documentation

SpecialWatchlist::countItems ( dbr) [protected]

Count the number of items on a user's watchlist.

Parameters:
DatabaseBase$dbrA database connection
Returns:
Integer

Definition at line 523 of file SpecialWatchlist.php.

References $count, $dbr, $res, array(), and SpecialPage\getUser().

Referenced by execute().

SpecialWatchlist::cutoffLinks ( days,
options = array() 
) [protected]

Returns html.

Parameters:
int$daysThis gets overwritten, so is not used
array$optionsQuery parameters for URL
Returns:
string

Definition at line 500 of file SpecialWatchlist.php.

References $options, array(), as, daysLink(), SpecialPage\getLanguage(), hoursLink(), and SpecialPage\msg().

Referenced by execute().

SpecialWatchlist::daysLink ( d,
options = array() 
) [protected]

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns:
string
Since:
1.21

Reimplemented from SpecialPage.

Definition at line 533 of file SpecialWatchlist.php.

SpecialWatchlist::hoursLink ( h,
options = array() 
) [protected]
SpecialWatchlist::showHideLink ( options,
message,
name,
value 
) [protected]

Member Data Documentation

SpecialWatchlist::$customFilters [protected]

Definition at line 24 of file SpecialWatchlist.php.


The documentation for this class was generated from the following file: