Implements the Watchlist special page.
More...
|
| executeWhenAvailable ( $par) |
| Render the special page.
|
|
| addWatchlistHTML (IResultWrapper $res, User $user) |
| Builds the watchlist HTML inside the associated OutputPage.
|
|
| execute ( $par) |
| Render the special page content.
|
|
| __construct ( $page) |
|
| setHeaders () |
| Add modules to headers.
|
|
| isListed () |
| Returns if this page is listed on Special:SpecialPages.
|
|
| getDesktopUrl ( $subPage) |
| When overridden in a descendant class, returns desktop URL for this special page.
|
|
|
static | getWatchlistHeader (User $user, $view=self::VIEW_LIST, $filter=null) |
| Get the header for the watchlist page.
|
|
static | getEmptyListHtml ( $feed, $lang) |
| Get the HTML needed to show if a user doesn't watch any page, show information how to watch pages where no pages have been watched.
|
|
|
const | LIMIT = 50 |
|
const | VIEW_OPTION_NAME = 'mfWatchlistView' |
|
const | FILTER_OPTION_NAME = 'mfWatchlistFilter' |
|
const | VIEW_LIST = 'a-z' |
|
const | VIEW_FEED = 'feed' |
|
|
| getNSConditions ( $column) |
| Returns an array of conditions restricting namespace in queries.
|
|
| doFeedQuery () |
| Get watchlist items for feed view.
|
|
| showFeedResults (IResultWrapper $res) |
| Show results of doFeedQuery.
|
|
| showResults (IResultWrapper $res, $feed) |
| Render the Watchlist items.
|
|
| showFeedResultRow ( $row) |
| Render a result row in feed view.
|
|
| formatComment ( $comment, $title) |
| Formats an edit comment.
|
|
| renderListHeaderWhereNeeded ( $date) |
| Renders a date header when necessary.
|
|
| getRevisionCommentHTML (RevisionRecord $rev, $user, $unhide) |
| Generates revision text based on user's rights and preference.
|
|
| getUsernameText ( $rev, $user, $unhide) |
| Generates username text based on user's rights and preference.
|
|
| renderFeedItemHtml (array $options) |
| Renders an item in the feed.
|
|
| renderUnavailableBanner ( $msg) |
| Renders a banner telling the user the page is unavailable.
|
|
| addModules () |
| Add mobile special page specific modules (styles and scripts)
|
|
| showPageNotFound () |
| Render mobile specific error page, when special page can not be found.
|
|
| getUserOptionsLookup () |
| Get a user options lookup object.
|
|
| getUserGroupManager () |
| Get a user group manager object.
|
|
| getUserFactory () |
| Get a user factory object for creating UserIdentify object.
|
|
|
| $showUsername = true |
|
| $lastDate |
|
| $title |
|
| $hasDesktopVersion = false |
|
| $listed = false |
|
| $config = null |
|
| $errorNotFoundTitleMsg = 'mobile-frontend-generic-404-title' |
|
| $errorNotFoundDescriptionMsg = 'mobile-frontend-generic-404-desc' |
|
| $mobileContext |
|
| $userOptionsLookup |
|
| $userGroupManager |
|
| $userFactory |
|
| $commentFormatter |
|
Implements the Watchlist special page.
◆ addWatchlistHTML()
SpecialMobileWatchlist::addWatchlistHTML |
( |
IResultWrapper | $res, |
|
|
User | $user ) |
Builds the watchlist HTML inside the associated OutputPage.
- Parameters
-
IResultWrapper | $res | |
User | $user | |
◆ doFeedQuery()
SpecialMobileWatchlist::doFeedQuery |
( |
| ) |
|
|
protected |
Get watchlist items for feed view.
- Returns
- IResultWrapper
- See also
- getNSConditions()
-
doPageImages()
◆ executeWhenAvailable()
SpecialMobileWatchlist::executeWhenAvailable |
( |
| $par | ) |
|
Render the special page.
- Parameters
-
string | null | $par | parameter submitted as subpage |
Reimplemented from MobileSpecialPage.
◆ getEmptyListHtml()
static SpecialMobileWatchlist::getEmptyListHtml |
( |
| $feed, |
|
|
| $lang ) |
|
static |
Get the HTML needed to show if a user doesn't watch any page, show information how to watch pages where no pages have been watched.
- Parameters
-
bool | $feed | Render as feed (true) or list (false) view? |
Language | $lang | The language of the current mode |
- Returns
- string
◆ getNSConditions()
SpecialMobileWatchlist::getNSConditions |
( |
| $column | ) |
|
|
protected |
Returns an array of conditions restricting namespace in queries.
- Parameters
-
string | $column | Namespace db key |
- Returns
- array
◆ getWatchlistHeader()
static SpecialMobileWatchlist::getWatchlistHeader |
( |
User | $user, |
|
|
| $view = self::VIEW_LIST, |
|
|
| $filter = null ) |
|
static |
Get the header for the watchlist page.
- Parameters
-
User | $user | the current user for obtaining default view and filter preferences |
string | $view | the name of the view to show (optional) If absent a-z will be used. |
string | null | $filter | the name of the filter to show (optional) If absent user preferences will be consulted, defaulting to all if no preference |
- Returns
- string Parsed HTML
◆ showFeedResultRow()
SpecialMobileWatchlist::showFeedResultRow |
( |
| $row | ) |
|
|
protected |
Render a result row in feed view.
- Parameters
-
\stdClass | $row | a row of db result |
◆ showFeedResults()
SpecialMobileWatchlist::showFeedResults |
( |
IResultWrapper | $res | ) |
|
|
protected |
Show results of doFeedQuery.
- Parameters
-
IResultWrapper | $res | Result wrapper returned from db |
- See also
- showResults()
◆ showResults()
SpecialMobileWatchlist::showResults |
( |
IResultWrapper | $res, |
|
|
| $feed ) |
|
protected |
Render the Watchlist items.
When ?from not set, adds a link "more" to see the other watchlist items.
- Parameters
-
IResultWrapper | $res | Result wrapper from db |
bool | $feed | Render as feed (true) or list (false) view? |
- Todo
- FIXME: use templates/PageList.html when server side templates are available to keep consistent with nearby view
The documentation for this class was generated from the following file:
- includes/specials/SpecialMobileWatchlist.php