13 $timestamp, $counter, $watchingUsers
18 'rc_user' => $user->getId(),
19 'rc_user_text' => $user->getName(),
20 'rc_this_oldid' => $thisid,
21 'rc_last_oldid' => $lastid,
30 $logType, $logAction,
User $user, $titleText, $timestamp, $counter, $watchingUsers
36 'rc_user' => $user->getId(),
37 'rc_user_text' => $user->getName(),
44 'rc_log_type' => $logType,
45 'rc_log_action' => $logAction,
46 'rc_source' =>
'mw.log'
54 $thisid, $lastid, $counter, $watchingUsers
59 'rc_user' => $user->getId(),
60 'rc_user_text' => $user->getName(),
62 'rc_cur_id' => $curid,
63 'rc_this_oldid' => $thisid,
64 'rc_last_oldid' => $lastid
72 $timestamp, $counter, $watchingUsers
77 'rc_user' => $user->getId(),
78 'rc_user_text' => $user->getName(),
79 'rc_this_oldid' => $thisid,
80 'rc_last_oldid' => $lastid,
81 'rc_cur_id' => $curid,
84 'rc_source' =>
'mw.new'
94 $change->counter = $counter;
95 $change->numberofWatchingusers = $watchingUsers;
103 [
'diff' =>
'diff',
'cur' =>
'cur',
'last' =>
'last' ],
104 MediaWikiServices::getInstance()->getLinkRenderer()
106 return $rcCacheFactory->newFromRecentChange( $recentChange,
false );
110 User $user, $titleText, $curid, $thisid, $lastid, $timestamp
116 'rc_user' => $user->getId(),
117 'rc_user_text' => $user->getName(),
118 'rc_this_oldid' => $thisid,
119 'rc_last_oldid' => $lastid,
120 'rc_cur_id' => $curid,
121 'rc_comment' =>
'[[:Testpage]] added to category',
122 'rc_comment_text' =>
'[[:Testpage]] added to category',
123 'rc_comment_data' =>
null,
136 'rc_user_text' =>
'127.0.0.1',
137 'rc_ip' =>
'127.0.0.1',
138 'rc_title' => $titleText,
140 'rc_timestamp' => $timestamp,
144 'rc_comment_text' =>
'',
145 'rc_comment_data' =>
null,
152 'rc_log_type' =>
null,
153 'rc_log_action' =>
'',
155 'rc_source' =>
'mw.edit'
165 $title = Title::newFromText(
'RecentChanges',
NS_SPECIAL );
Utility class for creating new RC entries.
Group all the pieces relevant to the context of a request into one instance.
Helper for generating test recent changes entries.
makeDeletedEditRecentChange(User $user, $titleText, $timestamp, $curid, $thisid, $lastid, $counter, $watchingUsers)
makeNewBotEditRecentChange(User $user, $titleText, $curid, $thisid, $lastid, $timestamp, $counter, $watchingUsers)
makeRecentChange( $attribs, $counter, $watchingUsers)
getTestContext(User $user)
makeCategorizationRecentChange(User $user, $titleText, $curid, $thisid, $lastid, $timestamp)
makeEditRecentChange(User $user, $titleText, $curid, $thisid, $lastid, $timestamp, $counter, $watchingUsers)
makeLogRecentChange( $logType, $logAction, User $user, $titleText, $timestamp, $counter, $watchingUsers)
getCacheEntry( $recentChange)
getDefaultAttributes( $titleText, $timestamp)
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs