MediaWiki
REL1_19
|
Generate a list of changes using an Enhanced system (uses javascript). More...
Public Member Functions | |
beginRecentChangesList () | |
Add the JavaScript file for enhanced changeslist. | |
endRecentChangesList () | |
Returns text for the end of RC If enhanced RC is in use, returns pretty much all the text. | |
recentChangesLine (&$baseRC, $watched=false) | |
Format a line for enhanced recentchange (aka with javascript and block of lines). | |
Protected Member Functions | |
arrow ($dir, $alt='', $title='') | |
Generate HTML for an arrow or placeholder graphic. | |
downArrow () | |
Generate HTML for a down-facing arrow depending on language direction. | |
recentChangesBlock () | |
If enhanced RC is in use, this function takes the previously cached RC lines, arranges them, and outputs the HTML. | |
recentChangesBlockGroup ($block) | |
Enhanced RC group. | |
recentChangesBlockLine ($rcObj) | |
Enhanced RC ungrouped line. | |
sideArrow () | |
Generate HTML for a right- or left-facing arrow, depending on language direction. | |
spacerArrow () | |
Generate HTML for a spacer image. | |
Protected Attributes | |
$rc_cache |
Generate a list of changes using an Enhanced system (uses javascript).
Definition at line 615 of file ChangesList.php.
EnhancedChangesList::arrow | ( | $ | dir, |
$ | alt = '' , |
||
$ | title = '' |
||
) | [protected] |
Generate HTML for an arrow or placeholder graphic.
$dir | String: one of '', 'd', 'l', 'r' |
$alt | String: text |
$title | String: text |
Definition at line 1056 of file ChangesList.php.
References $dir, $title, and $wgStylePath.
Referenced by downArrow(), sideArrow(), and spacerArrow().
Add the JavaScript file for enhanced changeslist.
Reimplemented from ChangesList.
Definition at line 623 of file ChangesList.php.
References ContextSource\getOutput().
EnhancedChangesList::downArrow | ( | ) | [protected] |
Generate HTML for a down-facing arrow depending on language direction.
Definition at line 1080 of file ChangesList.php.
References arrow(), and wfMsg().
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 1207 of file ChangesList.php.
References recentChangesBlock().
EnhancedChangesList::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 1181 of file ChangesList.php.
References recentChangesBlockGroup(), recentChangesBlockLine(), wfProfileIn(), and wfProfileOut().
Referenced by endRecentChangesList(), and recentChangesLine().
EnhancedChangesList::recentChangesBlockGroup | ( | $ | block | ) | [protected] |
Enhanced RC group.
Definition at line 783 of file ChangesList.php.
References $count, $n, $wgRCShowChangedSize, LogPage\DELETED_ACTION, Revision\DELETED_TEXT, Sanitizer\escapeClass(), ContextSource\getLanguage(), ContextSource\getTitle(), ContextSource\getUser(), ChangesList\insertArticleLink(), ChangesList\insertComment(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), ChangesList\insertTags(), ChangesList\isDeleted(), Linker\link(), Linker\linkKnown(), ChangesList\maybeWatchedLink(), ChangesList\numberofWatchingusers(), Html\openElement(), ChangesList\recentChangesFlags(), ChangesList\userCan(), wfMsg(), wfMsgExt(), wfMsgHtml(), wfProfileIn(), and wfProfileOut().
Referenced by recentChangesBlock().
EnhancedChangesList::recentChangesBlockLine | ( | $ | rcObj | ) | [protected] |
Enhanced RC ungrouped line.
$rcObj | RecentChange |
Definition at line 1098 of file ChangesList.php.
References $wgRCShowChangedSize, Sanitizer\escapeClass(), SpecialPage\getTitleFor(), ChangesList\insertArticleLink(), ChangesList\insertComment(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), ChangesList\insertTags(), Linker\linkKnown(), LogPage\logName(), ChangesList\numberofWatchingusers(), Html\openElement(), ChangesList\recentChangesFlags(), spacerArrow(), wfProfileIn(), and wfProfileOut().
Referenced by recentChangesBlock().
EnhancedChangesList::recentChangesLine | ( | &$ | baseRC, |
$ | watched = false |
||
) |
Format a line for enhanced recentchange (aka with javascript and block of lines).
$baseRC | RecentChange |
$watched | bool |
Definition at line 640 of file ChangesList.php.
References $title, Revision\DELETED_TEXT, Revision\DELETED_USER, Xml\element(), ContextSource\getLanguage(), SpecialPage\getTitleFor(), ContextSource\getUser(), ChangesList\isDeleted(), Linker\link(), Linker\linkKnown(), RCCacheEntry\newFromParent(), recentChangesBlock(), ChangesList\showAsUnpatrolled(), ChangesList\userCan(), Linker\userLink(), Linker\userToolLinks(), wfDebug(), wfMsgHtml(), wfProfileIn(), and wfProfileOut().
EnhancedChangesList::sideArrow | ( | ) | [protected] |
EnhancedChangesList::spacerArrow | ( | ) | [protected] |
Generate HTML for a spacer image.
Definition at line 1088 of file ChangesList.php.
References arrow(), and codepointToUtf8().
Referenced by recentChangesBlockLine().
EnhancedChangesList::$rc_cache [protected] |
Definition at line 617 of file ChangesList.php.