MediaWiki
REL1_22
|
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 |
Definition at line 23 of file EnhancedChangesList.php.
EnhancedChangesList::arrow | ( | $ | dir, |
$ | alt = '' , |
||
$ | title = '' |
||
) | [protected] |
Generate HTML for an arrow or placeholder graphic.
string | $dir | one of '', 'd', 'l', 'r' |
string | $alt | text |
string | $title | text |
Definition at line 502 of file EnhancedChangesList.php.
References $dir, $title, and global.
Referenced by downArrow(), sideArrow(), and spacerArrow().
Add the JavaScript file for enhanced changeslist.
Reimplemented from ChangesList.
Definition at line 31 of file EnhancedChangesList.php.
References array(), and ContextSource\getOutput().
EnhancedChangesList::downArrow | ( | ) | [protected] |
Generate HTML for a down-facing arrow depending on language direction.
Definition at line 525 of file EnhancedChangesList.php.
References arrow(), ContextSource\msg(), and text.
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 657 of file EnhancedChangesList.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 631 of file EnhancedChangesList.php.
References as, recentChangesBlockGroup(), recentChangesBlockLine(), wfProfileIn(), and wfProfileOut().
Referenced by endRecentChangesList(), and recentChangesLine().
EnhancedChangesList::recentChangesBlockGroup | ( | $ | block | ) | [protected] |
Enhanced RC group.
Definition at line 193 of file EnhancedChangesList.php.
References $count, $last, $link, $n, $params, array(), as, LogPage\DELETED_ACTION, Revision\DELETED_TEXT, Sanitizer\escapeClass(), ChangesList\flag(), ChangesList\formatCharacterDifference(), ContextSource\getLanguage(), ContextSource\getTitle(), 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(), ChangesList\recentChangesFlags(), ChangesList\userCan(), wfProfileIn(), and wfProfileOut().
Referenced by recentChangesBlock().
EnhancedChangesList::recentChangesBlockLine | ( | $ | rcObj | ) | [protected] |
Enhanced RC ungrouped line.
$rcObj | RecentChange |
Definition at line 543 of file EnhancedChangesList.php.
References $query, 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(), 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).
$baseRC | RecentChange |
$watched | bool |
Definition at line 55 of file EnhancedChangesList.php.
References $ret, $time, $title, array(), Revision\DELETED_TEXT, Revision\DELETED_USER, Xml\element(), ContextSource\getLanguage(), SpecialPage\getTitleFor(), ContextSource\getUser(), ChangesList\isDeleted(), Linker\link(), Linker\linkKnown(), message, ContextSource\msg(), RCCacheEntry\newFromParent(), recentChangesBlock(), ChangesList\showAsUnpatrolled(), ChangesList\userCan(), Linker\userLink(), Linker\userToolLinks(), wfDebug(), wfProfileIn(), and wfProfileOut().
EnhancedChangesList::sideArrow | ( | ) | [protected] |
Generate HTML for a right- or left-facing arrow, depending on language direction.
Definition at line 515 of file EnhancedChangesList.php.
References $dir, arrow(), ContextSource\getLanguage(), ContextSource\msg(), and text.
EnhancedChangesList::spacerArrow | ( | ) | [protected] |
Generate HTML for a spacer image.
Definition at line 533 of file EnhancedChangesList.php.
References arrow(), and codepointToUtf8().
EnhancedChangesList::$rc_cache [protected] |
Definition at line 25 of file EnhancedChangesList.php.