Go to the documentation of this file.
47 $user = $this->context->getUser();
48 $counter = $baseRC->counter;
55 $cacheEntry->watched = $cacheEntry->mAttribs[
'rc_type'] ==
RC_LOG ?
false : $watched;
56 $cacheEntry->numberofWatchingusers = $baseRC->numberofWatchingusers;
58 $cacheEntry->link = $this->
buildCLink( $cacheEntry );
65 $cacheEntry->difflink = $this->
buildDiffLink( $cacheEntry, $showDiffLinks, $counter );
66 $cacheEntry->curlink = $this->
buildCurLink( $cacheEntry, $showDiffLinks, $counter );
67 $cacheEntry->lastlink = $this->
buildLastLink( $cacheEntry, $showDiffLinks );
70 $cacheEntry->userlink = $this->
getUserLink( $cacheEntry );
74 $cacheEntry->mAttribs[
'rc_user'],
75 $cacheEntry->mAttribs[
'rc_user_text']
98 $type = $cacheEntry->mAttribs[
'rc_type'];
104 } elseif ( $cacheEntry->unpatrolled &&
$type ==
RC_NEW ) {
108 $logType = $cacheEntry->mAttribs[
'rc_log_type'];
113 wfDebugLog(
'recentchanges',
'Unexpected log entry with no log type in recent changes' );
117 } elseif ( $cacheEntry->mAttribs[
'rc_namespace'] ==
NS_SPECIAL ) {
118 wfDebugLog(
'recentchanges',
'Unexpected special page in recentchanges' );
130 $logpage =
new LogPage( $logType );
131 $logname = $logpage->getName()->escaped();
133 $logLink = $this->context->msg(
'parentheses' )
145 return $this->context->getLanguage()->userTime(
146 $cacheEntry->mAttribs[
'rc_timestamp'],
147 $this->context->getUser()
158 'curid' => $recentChange->mAttribs[
'rc_cur_id'],
160 'oldid' => $recentChange->mAttribs[
'rc_this_oldid']
176 if ( !$showDiffLinks || in_array( $cacheEntry->mAttribs[
'rc_type'], $logTypes ) ) {
177 $curLink = $curMessage;
179 $curUrl = htmlspecialchars( $cacheEntry->
getTitle()->getLinkURL( $queryParams ) );
180 $curLink =
"<a href=\"$curUrl\" tabindex=\"$counter\">$curMessage</a>";
193 'curid' => $recentChange->mAttribs[
'rc_cur_id'],
194 'diff' => $recentChange->mAttribs[
'rc_this_oldid'],
195 'oldid' => $recentChange->mAttribs[
'rc_last_oldid']
211 if ( !$showDiffLinks ) {
212 $diffLink = $diffMessage;
213 } elseif ( in_array( $cacheEntry->mAttribs[
'rc_type'], $logTypes ) ) {
214 $diffLink = $diffMessage;
216 $diffUrl = htmlspecialchars( $cacheEntry->
getTitle()->getLinkURL( $queryParams ) );
217 $diffLink =
"<a href=\"$diffUrl\" tabindex=\"$counter\">$diffMessage</a>";
230 $lastOldid = $cacheEntry->mAttribs[
'rc_last_oldid'];
232 $type = $cacheEntry->mAttribs[
'rc_type'];
236 if ( !$showDiffLinks || !$lastOldid || in_array(
$type, $logTypes ) ) {
237 $lastLink = $lastMessage;
257 $userLink =
' <span class="history-deleted">' .
258 $this->context->msg(
'rev-deleted-user' )->escaped() .
'</span>';
261 $cacheEntry->mAttribs[
'rc_user'],
262 $cacheEntry->mAttribs[
'rc_user_text']
showDiffLinks(RecentChange $cacheEntry, User $user)
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static userLink( $userId, $userName, $altUserName=false)
Make user link (or user contributions for unregistered users)
Utility class for creating new RC entries.
const RC_MOVE_OVER_REDIRECT
wfDebugLog( $logGroup, $text, $dest='all')
Send a line to a supplementary debug log file, if configured, or main debug log if not.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name.
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist but no entry for that model exists in $wgContentHandlers if desired whether it is OK to use $contentModel on $title Handler functions that modify $ok should generally return false to prevent further hooks from further modifying $ok in case the handler function wants to provide a converted Content object Note that $result getContentModel() must return $toModel. Handler functions that modify $result should generally return false to further attempts at conversion. 'ContribsPager you ll need to handle error messages
static linkKnown( $target, $html=null, $customAttribs=array(), $query=array(), $options=array( 'known', 'noclasses'))
Identical to link(), except $options defaults to 'known'.
static isDeleted( $rc, $field)
Determine if said field of a revision is hidden.
buildDiffQueryParams(RecentChange $recentChange)
static link( $target, $html=null, $customAttribs=array(), $query=array(), $options=array())
This function returns an HTML link to the given target.
static newFromParent( $rc)
buildCLink(RecentChange $cacheEntry)
Class to simplify the use of log pages.
getUserLink(RecentChange $cacheEntry)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
__construct(IContextSource $context, $messages)
processing should stop and the error should be shown to the user * false
buildCurLink(RecentChange $cacheEntry, $showDiffLinks, $counter)
buildDiffLink(RecentChange $cacheEntry, $showDiffLinks, $counter)
static userToolLinks( $userId, $userText, $redContribsWhenNoEdits=false, $flags=0, $edits=null)
Generate standard user tool links (talk, contributions, block link, etc.)
buildTimestamp(RecentChange $cacheEntry)
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
Interface for objects which can provide a context on request.
buildCurQueryParams(RecentChange $recentChange)
newFromRecentChange(RecentChange $baseRC, $watched)
static isUnpatrolled( $rc, User $user)
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
buildLastLink(RecentChange $cacheEntry, $showDiffLinks)
static userCan( $rc, $field, User $user=null)
Determine if the current user is allowed to view a particular field of this revision,...