|
MediaWiki
1.23.0
|


Public Member Functions | |
| __construct ( $obj) | |
| Changeslist constructor. More... | |
| beginRecentChangesList () | |
| Returns text for the start of the tabular part of RC. More... | |
| endRecentChangesList () | |
| Returns text for the end of RC. More... | |
| formatCharacterDifference (RecentChange $old, RecentChange $new=null) | |
| Format the character difference of one or several changes. More... | |
| getTimestamp ( $rc) | |
| Get the timestamp from $rc formatted with current user's settings and a separator. More... | |
| initChangesListRows ( $rows) | |
| insertArticleLink (&$s, &$rc, $unpatrolled, $watched) | |
| insertComment ( $rc) | |
| Insert a formatted comment. More... | |
| insertDateHeader (&$s, $rc_timestamp) | |
| insertDiffHist (&$s, &$rc, $unpatrolled) | |
| insertExtra (&$s, &$rc, &$classes) | |
| insertLog (&$s, $title, $logtype) | |
| insertLogEntry ( $rc) | |
| Insert a formatted action. More... | |
| insertRollback (&$s, &$rc) | |
| Inserts a rollback link. More... | |
| insertTags (&$s, &$rc, &$classes) | |
| insertTimestamp (&$s, $rc) | |
| Insert time timestamp string from $rc into $s. More... | |
| insertUserRelatedLinks (&$s, &$rc) | |
| Insert links to user page, user talk page and eventually a blocking link. More... | |
| isWatchlist () | |
| recentChangesFlags ( $flags, $nothing=' ') | |
| Returns the appropriate flags for new page, minor change and patrolling. More... | |
| setWatchlistDivs ( $value=true) | |
| Sets the list to use a "<li class='watchlist-(namespace)-(page)'>" tag. More... | |
Public Member Functions inherited from ContextSource | |
| canUseWikiPage () | |
| Check whether a WikiPage object can be get with getWikiPage(). More... | |
| exportSession () | |
| Export the resolved user IP, HTTP headers, user ID, and session ID. More... | |
| getConfig () | |
| Get the Config object. More... | |
| getContext () | |
| Get the RequestContext object. More... | |
| getLang () | |
| Get the Language object. More... | |
| getLanguage () | |
| Get the Language object. More... | |
| getOutput () | |
| Get the OutputPage object. More... | |
| getRequest () | |
| Get the WebRequest object. More... | |
| getSkin () | |
| Get the Skin object. More... | |
| getTitle () | |
| Get the Title object. More... | |
| getUser () | |
| Get the User object. More... | |
| getWikiPage () | |
| Get the WikiPage object. More... | |
| msg () | |
| Get a Message object with context set Parameters are the same as wfMessage() More... | |
| setContext (IContextSource $context) | |
| Set the IContextSource object. More... | |
Static Public Member Functions | |
| static | flag ( $flag) |
| Provide the "<abbr>" element appropriate to a given abbreviated flag, namely the flag indicating a new page, a minor edit, a bot edit, or an unpatrolled edit. More... | |
| static | isDeleted ( $rc, $field) |
| Determine if said field of a revision is hidden. More... | |
| static | isUnpatrolled ( $rc, User $user) |
| static | newFromContext (IContextSource $context) |
| Fetch an appropriate changes list class for the specified context Some users might want to use an enhanced list format, for instance. More... | |
| static | showCharacterDifference ( $old, $new, IContextSource $context=null) |
| Show formatted char difference. More... | |
| static | usePatrol () |
| Check whether to enable recent changes patrol features. More... | |
| static | userCan ( $rc, $field, User $user=null) |
| Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted. More... | |
Public Attributes | |
| Skin | $skin |
Protected Member Functions | |
| maybeWatchedLink ( $link, $watched=false) | |
| numberofWatchingusers ( $count) | |
| Returns the string which indicates the number of watching users. More... | |
| showAsUnpatrolled (RecentChange $rc) | |
Protected Attributes | |
| $lastdate | |
| $message | |
| $rc_cache | |
| $rcCacheIndex | |
| $rclistOpen | |
| $rcMoveIndex | |
| $watchlist = false | |
Private Member Functions | |
| preCacheMessages () | |
| As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message. More... | |
Definition at line 25 of file ChangesList.php.
| ChangesList::__construct | ( | $obj | ) |
Changeslist constructor.
| Skin | IContextSource | $obj |
Reimplemented in EnhancedChangesList.
Definition at line 43 of file ChangesList.php.
References ContextSource\getSkin(), preCacheMessages(), ContextSource\setContext(), and skin().
| ChangesList::beginRecentChangesList | ( | ) |
Returns text for the start of the tabular part of RC.
Reimplemented in EnhancedChangesList.
Definition at line 164 of file ChangesList.php.
References array(), and ContextSource\getOutput().
| ChangesList::endRecentChangesList | ( | ) |
Returns text for the end of RC.
Reimplemented in EnhancedChangesList.
Definition at line 262 of file ChangesList.php.
References $out.
|
static |
Provide the "<abbr>" element appropriate to a given abbreviated flag, namely the flag indicating a new page, a minor edit, a bot edit, or an unpatrolled edit.
By default in English it will contain "N", "m", "b", "!" respectively, plus it will have an appropriate title and class.
| string | $flag | One key of $wgRecentChangesFlags |
Definition at line 132 of file ChangesList.php.
References $value, array(), as, Sanitizer\escapeClass(), global, and wfMessage().
Referenced by SpecialUndelete\diffHeader(), SpecialUndelete\formatRevisionRow(), DeletedContribsPager\formatRow(), ContribsPager\formatRow(), HistoryPager\historyLine(), EnhancedChangesList\recentChangesBlockGroup(), recentChangesFlags(), and DifferenceEngine\showDiffPage().
| ChangesList::formatCharacterDifference | ( | RecentChange | $old, |
| RecentChange | $new = null |
||
| ) |
Format the character difference of one or several changes.
| $old | RecentChange |
| $new | RecentChange last change to use, if not provided, $old will be used |
Definition at line 242 of file ChangesList.php.
References ContextSource\getContext(), and showCharacterDifference().
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::getTimestamp | ( | $rc | ) |
Get the timestamp from $rc formatted with current user's settings and a separator.
| $rc | RecentChange |
Definition at line 374 of file ChangesList.php.
References ContextSource\getLanguage(), and message.
Referenced by insertTimestamp().
| ChangesList::initChangesListRows | ( | $rows | ) |
| ResultWrapper | array | $rows |
Definition at line 178 of file ChangesList.php.
References array(), and wfRunHooks().
| ChangesList::insertArticleLink | ( | & | $s, |
| & | $rc, | ||
| $unpatrolled, | |||
| $watched | |||
| ) |
| string | $s | HTML to update |
| $rc | RecentChange | |
| $unpatrolled | ||
| $watched |
Definition at line 344 of file ChangesList.php.
References $params, $s, array(), Revision\DELETED_TEXT, ContextSource\getLanguage(), isDeleted(), Linker\linkKnown(), and wfRunHooks().
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::insertComment | ( | $rc | ) |
Insert a formatted comment.
| $rc | RecentChange |
Definition at line 430 of file ChangesList.php.
References Linker\commentBlock(), Revision\DELETED_COMMENT, isDeleted(), ContextSource\msg(), RC_MOVE, and RC_MOVE_OVER_REDIRECT.
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::insertDateHeader | ( | & | $s, |
| $rc_timestamp | |||
| ) |
| string | $s | HTML to update |
| $rc_timestamp | mixed |
Definition at line 273 of file ChangesList.php.
References $s, Xml\element(), ContextSource\getLanguage(), and ContextSource\getUser().
Referenced by OldChangesList\recentChangesLine().
| ChangesList::insertDiffHist | ( | & | $s, |
| & | $rc, | ||
| $unpatrolled | |||
| ) |
| string | $s | HTML to update |
| $rc | RecentChange | |
| $unpatrolled |
Definition at line 302 of file ChangesList.php.
References $query, $s, array(), Revision\DELETED_TEXT, ContextSource\getUser(), Linker\linkKnown(), message, ContextSource\msg(), RC_LOG, and RC_NEW.
Referenced by OldChangesList\recentChangesLine().
| ChangesList::insertExtra | ( | & | $s, |
| & | $rc, | ||
| & | $classes | ||
| ) |
Definition at line 561 of file ChangesList.php.
Referenced by OldChangesList\recentChangesLine().
| ChangesList::insertLog | ( | & | $s, |
| $title, | |||
| $logtype | |||
| ) |
| string | $s | HTML to update |
| $title | Title | |
| $logtype | string |
Definition at line 291 of file ChangesList.php.
References $s, $title, Linker\linkKnown(), and ContextSource\msg().
Referenced by OldChangesList\recentChangesLine().
| ChangesList::insertLogEntry | ( | $rc | ) |
Insert a formatted action.
| $rc | RecentChange |
Definition at line 416 of file ChangesList.php.
References ContextSource\getContext(), ContextSource\getLanguage(), and LogFormatter\newFromRow().
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::insertRollback | ( | & | $s, |
| & | $rc | ||
| ) |
Inserts a rollback link.
| $s | string |
| $rc | RecentChange |
Definition at line 520 of file ChangesList.php.
References $rev, $s, array(), Linker\generateRollback(), ContextSource\getContext(), ContextSource\getUser(), and RC_EDIT.
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::insertTags | ( | & | $s, |
| & | $rc, | ||
| & | $classes | ||
| ) |
| $s | string |
| $rc | RecentChange |
| $classes |
Definition at line 548 of file ChangesList.php.
References $s, ChangeTags\formatSummaryRow(), and list.
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::insertTimestamp | ( | & | $s, |
| $rc | |||
| ) |
Insert time timestamp string from $rc into $s.
| string | $s | HTML to update |
| $rc | RecentChange |
Definition at line 389 of file ChangesList.php.
References $s, and getTimestamp().
Referenced by OldChangesList\recentChangesLine().
| ChangesList::insertUserRelatedLinks | ( | & | $s, |
| & | $rc | ||
| ) |
Insert links to user page, user talk page and eventually a blocking link.
| &$s | String HTML to update |
| &$rc | RecentChange |
Definition at line 399 of file ChangesList.php.
References $s, Revision\DELETED_USER, ContextSource\getLanguage(), isDeleted(), ContextSource\msg(), Linker\userLink(), and Linker\userToolLinks().
Referenced by OldChangesList\recentChangesLine().
|
static |
Determine if said field of a revision is hidden.
| RCCacheEntry | RecentChange | $rc | |
| int | $field | One of DELETED_* bitfield constants |
Definition at line 482 of file ChangesList.php.
Referenced by RCCacheEntryFactory\getUserLink(), insertArticleLink(), insertComment(), insertUserRelatedLinks(), RCCacheEntryFactory\newFromRecentChange(), and EnhancedChangesList\recentChangesBlockGroup().
|
static |
| object | RecentChange | $rc | Database row from recentchanges or a RecentChange object |
| User | $user |
Definition at line 574 of file ChangesList.php.
Referenced by ApiQueryWatchlist\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), RCCacheEntryFactory\newFromRecentChange(), and showAsUnpatrolled().
| ChangesList::isWatchlist | ( | ) |
Definition at line 86 of file ChangesList.php.
References $watchlist.
|
protected |
| $link | string |
| $watched | bool |
Definition at line 507 of file ChangesList.php.
References $link.
Referenced by EnhancedChangesList\recentChangesBlockGroup().
|
static |
Fetch an appropriate changes list class for the specified context Some users might want to use an enhanced list format, for instance.
| IContextSource | $context |
Definition at line 61 of file ChangesList.php.
References ContextSource\$context, $user, array(), IContextSource\getRequest(), IContextSource\getSkin(), IContextSource\getUser(), and wfRunHooks().
Referenced by SpecialRecentChanges\outputChangesList(), and SpecialWatchlist\outputChangesList().
|
protected |
Returns the string which indicates the number of watching users.
| int | $count | Number of user watching a page |
Definition at line 462 of file ChangesList.php.
References $cache, $count, array(), and ContextSource\msg().
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
|
private |
As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
Definition at line 94 of file ChangesList.php.
References array(), as, message, and ContextSource\msg().
Referenced by __construct().
| ChangesList::recentChangesFlags | ( | $flags, | |
$nothing = ' ' |
|||
| ) |
Returns the appropriate flags for new page, minor change and patrolling.
| array | $flags | Associative array of 'flag' => Bool |
| string | $nothing | to use for empty space |
Definition at line 111 of file ChangesList.php.
References $f, $flags, as, flag(), and global.
Referenced by EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), and OldChangesList\recentChangesLine().
| ChangesList::setWatchlistDivs | ( | $value = true | ) |
Sets the list to use a "<li class='watchlist-(namespace)-(page)'>" tag.
| $value | Boolean |
Definition at line 78 of file ChangesList.php.
References $value.
|
protected |
Definition at line 565 of file ChangesList.php.
References ContextSource\getUser(), and isUnpatrolled().
Referenced by OldChangesList\recentChangesLine().
|
static |
Show formatted char difference.
| int | $old | Number of bytes |
| int | $new | Number of bytes |
| IContextSource | $context |
Definition at line 189 of file ChangesList.php.
References ContextSource\$context, array(), Html\element(), IContextSource\getLanguage(), RequestContext\getMain(), global, and IContextSource\msg().
Referenced by formatCharacterDifference(), ContribsPager\formatRow(), RecentChange\getCharacterDifference(), and HistoryPager\historyLine().
|
static |
Check whether to enable recent changes patrol features.
Definition at line 449 of file ChangesList.php.
References $wgUser, global, and wfDeprecated().
|
static |
Determine if the current user is allowed to view a particular field of this revision, if it's marked as deleted.
| RCCacheEntry | RecentChange | $rc | |
| int | $field | |
| User | $user | User object to check, or null to use $wgUser |
Definition at line 494 of file ChangesList.php.
References $user, RC_LOG, LogEventsList\userCanBitfield(), and Revision\userCanBitfield().
Referenced by EnhancedChangesList\recentChangesBlockGroup(), and RCCacheEntryFactory\showDiffLinks().
|
protected |
Definition at line 31 of file ChangesList.php.
|
protected |
Definition at line 32 of file ChangesList.php.
|
protected |
Definition at line 33 of file ChangesList.php.
|
protected |
Definition at line 34 of file ChangesList.php.
|
protected |
Definition at line 35 of file ChangesList.php.
|
protected |
Definition at line 36 of file ChangesList.php.
| Skin ChangesList::$skin |
Definition at line 28 of file ChangesList.php.
|
protected |
Definition at line 30 of file ChangesList.php.
Referenced by isWatchlist().