MediaWiki
1.33.0
|
Public Member Functions | |
recentChangesLine (&$rc, $watched=false, $linenumber=null) | |
Format a line using the old system (aka without any javascript). More... | |
Public Member Functions inherited from ChangesList | |
__construct ( $obj, array $filterGroups=[]) | |
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... | |
getArticleLink (&$rc, $unpatrolled, $watched) | |
getRollback (RecentChange $rc) | |
getTags (RecentChange $rc, array &$classes) | |
getTimestamp ( $rc) | |
Get the timestamp from $rc formatted with current user's settings and a separator. More... | |
initChangesListRows ( $rows) | |
insertComment ( $rc) | |
Insert a formatted comment. More... | |
insertDateHeader (&$s, $rc_timestamp) | |
insertDiffHist (&$s, &$rc, $unpatrolled=null) | |
insertExtra (&$s, &$rc, &$classes) | |
insertLog (&$s, $title, $logtype) | |
insertLogEntry ( $rc) | |
Insert a formatted action. More... | |
insertRollback (&$s, &$rc) | |
Insert 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="\u{00A0}") | |
Returns the appropriate flags for new page, minor change and patrolling. More... | |
setChangeLinePrefixer (callable $prefixer) | |
Sets the callable that generates a change line prefix added to the beginning of each line. 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 () | |
getContext () | |
Get the base IContextSource object. More... | |
getLanguage () | |
getOutput () | |
getRequest () | |
getSkin () | |
getStats () | |
getTiming () | |
getTitle () | |
getUser () | |
getWikiPage () | |
Get the WikiPage object. More... | |
msg ( $key) | |
Get a Message object with context set Parameters are the same as wfMessage() More... | |
setContext (IContextSource $context) | |
Private Member Functions | |
formatChangeLine (RecentChange $rc, array &$classes, $watched) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ChangesList | |
static | flag ( $flag, IContextSource $context=null) |
Make an "<abbr>" element for a given change flag. More... | |
static | isDeleted ( $rc, $field) |
Determine if said field of a revision is hidden. More... | |
static | isUnpatrolled ( $rc, User $user) |
static | newFromContext (IContextSource $context, array $groups=[]) |
Fetch an appropriate changes list class for the specified context Some users might want to use an enhanced list format, for instance. More... | |
static | revDateLink (Revision $rev, User $user, Language $lang, $title=null) |
Render the date and time of a revision in the current user language based on whether the user is able to view this information or not. More... | |
static | showCharacterDifference ( $old, $new, IContextSource $context=null) |
Show formatted char difference. 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 |
const | CSS_CLASS_PREFIX = 'mw-changeslist-' |
Protected Member Functions inherited from ChangesList | |
getDataAttributes (RecentChange $rc) | |
Get recommended data attributes for a change line. More... | |
getHighlightsContainerDiv () | |
Get the container for highlights that are used in the new StructuredFilters system. More... | |
getHTMLClasses ( $rc, $watched) | |
Get an array of default HTML class attributes for the change. More... | |
getHTMLClassesForFilters ( $rc) | |
Get an array of CSS classes attributed to filters for this row. More... | |
isCategorizationWithoutRevision ( $rcObj) | |
Determines whether a revision is linked to this change; this may not be the case when the categorization wasn't done by an edit but a conditional parser function. More... | |
maybeWatchedLink ( $link, $watched=false) | |
numberofWatchingusers ( $count) | |
Returns the string which indicates the number of watching users. More... | |
showAsUnpatrolled (RecentChange $rc) | |
Protected Attributes inherited from ChangesList | |
callable | $changeLinePrefixer |
array | $filterGroups |
$lastdate | |
LinkRenderer | $linkRenderer |
$message | |
$rc_cache | |
$rcCacheIndex | |
$rclistOpen | |
$rcMoveIndex | |
$watchlist = false | |
MapCacheLRU | $watchMsgCache |
Definition at line 25 of file OldChangesList.php.
|
private |
RecentChange | $rc | |
string[] | &$classes | |
bool | $watched |
Definition at line 84 of file OldChangesList.php.
References $html, $name, ChangesList\formatCharacterDifference(), ChangesList\getArticleLink(), ContextSource\getConfig(), ContextSource\getLanguage(), RecentChange\getTitle(), SpecialPage\getTitleFor(), ChangesList\insertComment(), ChangesList\insertDiffHist(), ChangesList\insertExtra(), ChangesList\insertLog(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), ChangesList\insertTags(), ChangesList\insertTimestamp(), ChangesList\insertUserRelatedLinks(), ChangesList\isCategorizationWithoutRevision(), list, NS_SPECIAL, ChangesList\numberofWatchingusers(), RC_LOG, RC_NEW, ChangesList\recentChangesFlags(), and ChangesList\showAsUnpatrolled().
Referenced by recentChangesLine().
Format a line using the old system (aka without any javascript).
RecentChange | &$rc | Passed by reference |
bool | $watched | (default false) |
int | null | $linenumber | (default null) |
Reimplemented from ChangesList.
Definition at line 36 of file OldChangesList.php.
References $attribs, $html, class, formatChangeLine(), ChangesList\getDataAttributes(), ChangesList\getHighlightsContainerDiv(), ChangesList\getHTMLClasses(), ChangesList\insertDateHeader(), and Hooks\run().