MediaWiki
1.23.2
|
Public Member Functions | |
__construct ( $obj) | |
beginRecentChangesList () | |
Add the JavaScript file for enhanced changeslist. More... | |
endRecentChangesList () | |
Returns text for the end of RC If enhanced RC is in use, returns pretty much all the text. More... | |
recentChangesLine (&$baseRC, $watched=false) | |
Format a line for enhanced recentchange (aka with javascript and block of lines). More... | |
Public Member Functions inherited from ChangesList | |
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... | |
Protected Member Functions | |
addCacheEntry (RCCacheEntry $cacheEntry) | |
Put accumulated information into the cache, for later display. More... | |
arrow ( $dir, $alt='', $title='') | |
Generate HTML for an arrow or placeholder graphic. More... | |
downArrow () | |
Generate HTML for a down-facing arrow depending on language direction. More... | |
recentChangesBlock () | |
If enhanced RC is in use, this function takes the previously cached RC lines, arranges them, and outputs the HTML. More... | |
recentChangesBlockGroup ( $block) | |
Enhanced RC group. More... | |
recentChangesBlockLine ( $rcObj) | |
Enhanced RC ungrouped line. More... | |
sideArrow () | |
Generate HTML for a right- or left-facing arrow, depending on language direction. More... | |
spacerArrow () | |
Generate HTML for a spacer image. More... | |
Protected Member Functions inherited from ChangesList | |
maybeWatchedLink ( $link, $watched=false) | |
numberofWatchingusers ( $count) | |
Returns the string which indicates the number of watching users. More... | |
showAsUnpatrolled (RecentChange $rc) | |
Protected Attributes | |
RCCacheEntryFactory | $cacheEntryFactory |
array | $rc_cache |
Array of array of RCCacheEntry. More... | |
Protected Attributes inherited from ChangesList | |
$lastdate | |
$message | |
$rc_cache | |
$rcCacheIndex | |
$rclistOpen | |
$rcMoveIndex | |
$watchlist = false | |
Additional Inherited Members | |
Static Public Member Functions inherited from ChangesList | |
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 inherited from ChangesList | |
Skin | $skin |
Definition at line 23 of file EnhancedChangesList.php.
EnhancedChangesList::__construct | ( | $obj | ) |
IContextSource | Skin | $obj |
Reimplemented from ChangesList.
Definition at line 36 of file EnhancedChangesList.php.
References ContextSource\$context, and message.
|
protected |
Put accumulated information into the cache, for later display.
Page moves go on their own line.
RCCacheEntry | $cacheEntry |
Definition at line 121 of file EnhancedChangesList.php.
References $title, $type, array(), RecentChange\getTitle(), SpecialPage\getTitleFor(), RC_LOG, RC_MOVE, and RC_MOVE_OVER_REDIRECT.
Referenced by recentChangesLine().
|
protected |
Generate HTML for an arrow or placeholder graphic.
string | $dir | One of '', 'd', 'l', 'r' |
string | $alt | |
string | $title |
Definition at line 473 of file EnhancedChangesList.php.
References $dir, $title, and global.
Referenced by downArrow(), sideArrow(), and spacerArrow().
EnhancedChangesList::beginRecentChangesList | ( | ) |
Add the JavaScript file for enhanced changeslist.
Reimplemented from ChangesList.
Definition at line 62 of file EnhancedChangesList.php.
References array(), and ContextSource\getOutput().
|
protected |
Generate HTML for a down-facing arrow depending on language direction.
Definition at line 498 of file EnhancedChangesList.php.
References arrow(), ContextSource\msg(), and text.
EnhancedChangesList::endRecentChangesList | ( | ) |
Returns text for the end of RC If enhanced RC is in use, returns pretty much all the text.
Reimplemented from ChangesList.
Definition at line 632 of file EnhancedChangesList.php.
References recentChangesBlock().
|
protected |
If enhanced RC is in use, this function takes the previously cached RC lines, arranges them, and outputs the HTML.
Definition at line 606 of file EnhancedChangesList.php.
References as, recentChangesBlockGroup(), recentChangesBlockLine(), wfProfileIn(), and wfProfileOut().
Referenced by endRecentChangesList(), and recentChangesLine().
|
protected |
Enhanced RC group.
RCCacheEntry[] | $block |
Definition at line 151 of file EnhancedChangesList.php.
References $count, $last, $link, $n, $params, $type, array(), as, LogPage\DELETED_ACTION, Revision\DELETED_TEXT, Sanitizer\escapeClass(), ChangesList\flag(), ChangesList\formatCharacterDifference(), ContextSource\getLanguage(), ContextSource\getUser(), global, ChangesList\insertArticleLink(), ChangesList\insertComment(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), ChangesList\insertTags(), ChangesList\isDeleted(), Linker\link(), Linker\linkKnown(), ChangesList\maybeWatchedLink(), message, ContextSource\msg(), ChangesList\numberofWatchingusers(), only, Html\openElement(), RC_LOG, RC_NEW, ChangesList\recentChangesFlags(), ChangesList\userCan(), wfProfileIn(), and wfProfileOut().
Referenced by recentChangesBlock().
|
protected |
Enhanced RC ungrouped line.
RecentChange | RCCacheEntry | $rcObj |
Definition at line 516 of file EnhancedChangesList.php.
References $query, $type, array(), Sanitizer\escapeClass(), ChangesList\formatCharacterDifference(), SpecialPage\getTitleFor(), global, ChangesList\insertArticleLink(), ChangesList\insertComment(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), ChangesList\insertTags(), Linker\linkKnown(), message, ContextSource\msg(), ChangesList\numberofWatchingusers(), Html\openElement(), RC_LOG, RC_MOVE, RC_MOVE_OVER_REDIRECT, RC_NEW, ChangesList\recentChangesFlags(), wfProfileIn(), and wfProfileOut().
Referenced by recentChangesBlock().
EnhancedChangesList::recentChangesLine | ( | & | $baseRC, |
$watched = false |
|||
) |
Format a line for enhanced recentchange (aka with javascript and block of lines).
RecentChange | $baseRC | |
bool | $watched |
Definition at line 88 of file EnhancedChangesList.php.
References $ret, addCacheEntry(), array(), Xml\element(), ContextSource\getLanguage(), recentChangesBlock(), wfProfileIn(), and wfProfileOut().
|
protected |
Generate HTML for a right- or left-facing arrow, depending on language direction.
Definition at line 487 of file EnhancedChangesList.php.
References $dir, arrow(), ContextSource\getLanguage(), ContextSource\msg(), and text.
|
protected |
Generate HTML for a spacer image.
Definition at line 506 of file EnhancedChangesList.php.
References arrow(), and codepointToUtf8().
|
protected |
Definition at line 27 of file EnhancedChangesList.php.
|
protected |
Array of array of RCCacheEntry.
Definition at line 31 of file EnhancedChangesList.php.