Go to the documentation of this file.
36 parent::__construct(
$query, $moduleName,
'rc' );
54 if ( isset( $this->tokenFunctions ) ) {
63 $this->tokenFunctions =
array(
64 'patrol' =>
array(
'ApiQueryRecentChanges',
'getPatrolToken' )
66 wfRunHooks(
'APIQueryRecentChangesTokens',
array( &$this->tokenFunctions ) );
80 $validTokenUser =
false;
83 if ( (
$wgUser->useRCPatrol() && $rc->getAttribute(
'rc_type' ) ==
RC_EDIT ) ||
84 (
$wgUser->useNPPatrol() && $rc->getAttribute(
'rc_type' ) ==
RC_NEW )
86 $validTokenUser =
true;
89 $validTokenUser =
true;
92 if ( $validTokenUser ) {
94 static $cachedPatrolToken =
null;
96 if ( is_null( $cachedPatrolToken ) ) {
97 $cachedPatrolToken =
$wgUser->getEditToken(
'patrol' );
100 return $cachedPatrolToken;
111 $this->fld_comment = isset( $prop[
'comment'] );
112 $this->fld_parsedcomment = isset( $prop[
'parsedcomment'] );
113 $this->fld_user = isset( $prop[
'user'] );
114 $this->fld_userid = isset( $prop[
'userid'] );
115 $this->fld_flags = isset( $prop[
'flags'] );
116 $this->fld_timestamp = isset( $prop[
'timestamp'] );
117 $this->fld_title = isset( $prop[
'title'] );
118 $this->fld_ids = isset( $prop[
'ids'] );
119 $this->fld_sizes = isset( $prop[
'sizes'] );
120 $this->fld_redirect = isset( $prop[
'redirect'] );
121 $this->fld_patrolled = isset( $prop[
'patrolled'] );
122 $this->fld_loginfo = isset( $prop[
'loginfo'] );
123 $this->fld_tags = isset( $prop[
'tags'] );
124 $this->fld_sha1 = isset( $prop[
'sha1'] );
132 $this->
run( $resultPageSet );
140 public function run( $resultPageSet =
null ) {
150 $index =
array(
'recentchanges' =>
'rc_timestamp' );
153 if ( !is_null(
$params[
'continue'] ) ) {
154 $cont = explode(
'|',
$params[
'continue'] );
156 $db = $this->
getDB();
157 $timestamp = $db->addQuotes( $db->timestamp( $cont[0] ) );
158 $id = intval( $cont[1] );
160 $op =
$params[
'dir'] ===
'older' ?
'<' :
'>';
162 "rc_timestamp $op $timestamp OR " .
163 "(rc_timestamp = $timestamp AND " .
168 $order =
$params[
'dir'] ===
'older' ?
'DESC' :
'ASC';
170 "rc_timestamp $order",
176 if ( !is_null(
$params[
'type'] ) ) {
180 if ( !is_null(
$params[
'show'] ) ) {
181 $show = array_flip(
$params[
'show'] );
184 if ( ( isset( $show[
'minor'] ) && isset( $show[
'!minor'] ) )
185 || ( isset( $show[
'bot'] ) && isset( $show[
'!bot'] ) )
186 || ( isset( $show[
'anon'] ) && isset( $show[
'!anon'] ) )
187 || ( isset( $show[
'redirect'] ) && isset( $show[
'!redirect'] ) )
188 || ( isset( $show[
'patrolled'] ) && isset( $show[
'!patrolled'] ) )
189 || ( isset( $show[
'patrolled'] ) && isset( $show[
'unpatrolled'] ) )
190 || ( isset( $show[
'!patrolled'] ) && isset( $show[
'unpatrolled'] ) )
196 if ( isset( $show[
'patrolled'] )
197 || isset( $show[
'!patrolled'] )
198 || isset( $show[
'unpatrolled'] )
200 if ( !
$user->useRCPatrol() && !
$user->useNPPatrol() ) {
202 'You need the patrol right to request the patrolled flag',
209 $this->
addWhereIf(
'rc_minor = 0', isset( $show[
'!minor'] ) );
210 $this->
addWhereIf(
'rc_minor != 0', isset( $show[
'minor'] ) );
211 $this->
addWhereIf(
'rc_bot = 0', isset( $show[
'!bot'] ) );
212 $this->
addWhereIf(
'rc_bot != 0', isset( $show[
'bot'] ) );
213 $this->
addWhereIf(
'rc_user = 0', isset( $show[
'anon'] ) );
214 $this->
addWhereIf(
'rc_user != 0', isset( $show[
'!anon'] ) );
215 $this->
addWhereIf(
'rc_patrolled = 0', isset( $show[
'!patrolled'] ) );
216 $this->
addWhereIf(
'rc_patrolled != 0', isset( $show[
'patrolled'] ) );
217 $this->
addWhereIf(
'page_is_redirect = 1', isset( $show[
'redirect'] ) );
219 if ( isset( $show[
'unpatrolled'] ) ) {
221 if (
$user->useRCPatrol() ) {
222 $this->
addWhere(
'rc_patrolled = 0' );
223 } elseif (
$user->useNPPatrol() ) {
224 $this->
addWhere(
'rc_patrolled = 0' );
231 'page_is_redirect = 0 OR page_is_redirect IS NULL',
232 isset( $show[
'!redirect'] )
236 if ( !is_null(
$params[
'user'] ) && !is_null(
$params[
'excludeuser'] ) ) {
237 $this->
dieUsage(
'user and excludeuser cannot be used together',
'user-excludeuser' );
240 if ( !is_null(
$params[
'user'] ) ) {
242 $index[
'recentchanges'] =
'rc_user_text';
245 if ( !is_null(
$params[
'excludeuser'] ) ) {
263 $showRedirects =
false;
265 if ( !is_null(
$params[
'prop'] ) ) {
266 $prop = array_flip(
$params[
'prop'] );
271 if ( $this->fld_patrolled && !
$user->useRCPatrol() && !
$user->useNPPatrol() ) {
273 'You need the patrol right to request the patrolled flag',
279 $this->
addFieldsIf(
array(
'rc_this_oldid',
'rc_last_oldid' ), $this->fld_ids );
280 $this->
addFieldsIf(
'rc_comment', $this->fld_comment || $this->fld_parsedcomment );
281 $this->
addFieldsIf(
'rc_user', $this->fld_user || $this->fld_userid );
282 $this->
addFieldsIf(
'rc_user_text', $this->fld_user );
283 $this->
addFieldsIf(
array(
'rc_minor',
'rc_type',
'rc_bot' ), $this->fld_flags );
284 $this->
addFieldsIf(
array(
'rc_old_len',
'rc_new_len' ), $this->fld_sizes );
285 $this->
addFieldsIf(
'rc_patrolled', $this->fld_patrolled );
287 array(
'rc_logid',
'rc_log_type',
'rc_log_action',
'rc_params' ),
290 $showRedirects = $this->fld_redirect || isset( $show[
'redirect'] )
291 || isset( $show[
'!redirect'] );
294 if ( $this->fld_tags ) {
300 if ( $this->fld_sha1 ) {
303 array(
'rc_this_oldid=rev_id' ) ) ) );
307 if (
$params[
'toponly'] || $showRedirects ) {
310 array(
'rc_namespace=page_namespace',
'rc_title=page_title' ) ) ) );
314 $this->
addWhere(
'rc_this_oldid = page_latest' );
318 if ( !is_null(
$params[
'tag'] ) ) {
325 if ( !is_null(
$params[
'user'] ) || !is_null(
$params[
'excludeuser'] ) ) {
326 if ( !
$user->isAllowed(
'deletedhistory' ) ) {
328 } elseif ( !
$user->isAllowed(
'suppressrevision' ) ) {
334 $this->
addWhere( $this->
getDB()->bitAnd(
'rc_deleted', $bitmask ) .
" != $bitmask" );
337 if ( $this->
getRequest()->getCheck(
'namespace' ) ) {
339 if ( !
$user->isAllowed(
'deletedhistory' ) ) {
341 } elseif ( !
$user->isAllowed(
'suppressrevision' ) ) {
349 $this->
getDB()->bitAnd(
'rc_deleted', $bitmask ) .
" != $bitmask",
367 foreach (
$res as $row ) {
375 if ( is_null( $resultPageSet ) ) {
393 if ( is_null( $resultPageSet ) ) {
397 $resultPageSet->populateFromTitles(
$titles );
416 $type = intval( $row->rc_type );
421 $vals[
'type'] =
'edit';
424 $vals[
'type'] =
'new';
427 $vals[
'type'] =
'move';
430 $vals[
'type'] =
'log';
433 $vals[
'type'] =
'external';
436 $vals[
'type'] =
'move over redirect';
439 $vals[
'type'] =
$type;
445 if ( $this->fld_title || $this->fld_ids ) {
447 $vals[
'actionhidden'] =
'';
453 if ( $this->fld_title ) {
456 if ( $this->fld_ids ) {
457 $vals[
'pageid'] = intval( $row->rc_cur_id );
458 $vals[
'revid'] = intval( $row->rc_this_oldid );
459 $vals[
'old_revid'] = intval( $row->rc_last_oldid );
464 if ( $this->fld_ids ) {
465 $vals[
'rcid'] = intval( $row->rc_id );
469 if ( $this->fld_user || $this->fld_userid ) {
471 $vals[
'userhidden'] =
'';
475 if ( $this->fld_user ) {
476 $vals[
'user'] = $row->rc_user_text;
479 if ( $this->fld_userid ) {
480 $vals[
'userid'] = $row->rc_user;
483 if ( !$row->rc_user ) {
490 if ( $this->fld_flags ) {
491 if ( $row->rc_bot ) {
494 if ( $row->rc_type ==
RC_NEW ) {
497 if ( $row->rc_minor ) {
503 if ( $this->fld_sizes ) {
504 $vals[
'oldlen'] = intval( $row->rc_old_len );
505 $vals[
'newlen'] = intval( $row->rc_new_len );
509 if ( $this->fld_timestamp ) {
514 if ( $this->fld_comment || $this->fld_parsedcomment ) {
516 $vals[
'commenthidden'] =
'';
520 if ( $this->fld_comment && isset( $row->rc_comment ) ) {
521 $vals[
'comment'] = $row->rc_comment;
524 if ( $this->fld_parsedcomment && isset( $row->rc_comment ) ) {
530 if ( $this->fld_redirect ) {
531 if ( $row->page_is_redirect ) {
532 $vals[
'redirect'] =
'';
537 if ( $this->fld_patrolled && $row->rc_patrolled == 1 ) {
538 $vals[
'patrolled'] =
'';
542 $vals[
'unpatrolled'] =
'';
545 if ( $this->fld_loginfo && $row->rc_type ==
RC_LOG ) {
547 $vals[
'actionhidden'] =
'';
551 $vals[
'logid'] = intval( $row->rc_logid );
552 $vals[
'logtype'] = $row->rc_log_type;
553 $vals[
'logaction'] = $row->rc_log_action;
558 $logEntry->getParameters(),
559 $logEntry->getType(),
560 $logEntry->getSubtype(),
561 $logEntry->getTimestamp()
566 if ( $this->fld_tags ) {
567 if ( $row->ts_tags ) {
568 $tags = explode(
',', $row->ts_tags );
569 $this->
getResult()->setIndexedTagName( $tags,
'tag' );
570 $vals[
'tags'] = $tags;
572 $vals[
'tags'] =
array();
576 if ( $this->fld_sha1 && $row->rev_sha1 !==
null ) {
578 $vals[
'sha1hidden'] =
'';
582 if ( $row->rev_sha1 !==
'' ) {
590 if ( !is_null( $this->
token ) ) {
595 if ( $val ===
false ) {
596 $this->
setWarning(
"Action '$t' is not allowed for the current user" );
598 $vals[
$t .
'token'] = $val;
604 $vals[
'suppressed'] =
'';
611 if ( is_array(
$type ) ) {
635 if ( isset(
$params[
'show'] ) ) {
637 if ( $show ===
'patrolled' || $show ===
'!patrolled' ) {
642 if ( isset(
$params[
'token'] ) ) {
648 if ( !is_null(
$params[
'prop'] ) && in_array(
'parsedcomment',
$params[
'prop'] ) ) {
650 return 'anon-public-user-private';
671 'namespace' =>
array(
678 'excludeuser' =>
array(
747 'start' =>
'The timestamp to start enumerating from',
748 'end' =>
'The timestamp to end enumerating',
750 'namespace' =>
'Filter log entries to only this namespace(s)',
751 'user' =>
'Only list changes by this user',
752 'excludeuser' =>
'Don\'t list changes by this user',
754 'Include additional pieces of information',
755 ' user - Adds the user responsible for the edit and tags if they are an IP',
756 ' userid - Adds the user id responsible for the edit',
757 ' comment - Adds the comment for the edit',
758 ' parsedcomment - Adds the parsed comment for the edit',
759 ' flags - Adds flags for the edit',
760 ' timestamp - Adds timestamp of the edit',
761 ' title - Adds the page title of the edit',
762 ' ids - Adds the page ID, recent changes ID and the new and old revision ID',
763 ' sizes - Adds the new and old page length in bytes',
764 ' redirect - Tags edit if page is a redirect',
765 ' patrolled - Tags patrollable edits as being patrolled or unpatrolled',
766 ' loginfo - Adds log information (logid, logtype, etc) to log entries',
767 ' tags - Lists tags for the entry',
768 ' sha1 - Adds the content checksum for entries associated with a revision',
770 'token' =>
'Which tokens to obtain for each change',
772 'Show only items that meet this criteria.',
773 "For example, to see only minor edits done by logged-in users, set {$p}show=minor|!anon"
775 'type' =>
'Which types of changes to show',
776 'limit' =>
'How many total changes to return',
777 'tag' =>
'Only list changes tagged with this tag',
778 'toponly' =>
'Only list changes which are the latest revision',
779 'continue' =>
'When more results are available, use this to continue',
804 'new_title' =>
array(
811 'pageid' =>
'integer',
812 'revid' =>
'integer',
813 'old_revid' =>
'integer'
820 'userid' =>
'integer',
829 'oldlen' =>
'integer',
830 'newlen' =>
'integer'
832 'timestamp' =>
array(
833 'timestamp' =>
'timestamp'
841 'parsedcomment' =>
array(
842 'parsedcomment' =>
array(
848 'redirect' =>
'boolean'
850 'patrolled' =>
array(
851 'patrolled' =>
'boolean',
852 'unpatrolled' =>
'boolean'
863 'logaction' =>
array(
873 'sha1hidden' =>
array(
886 return 'Enumerate recent changes.';
890 return array_merge( parent::getPossibleErrors(),
array(
893 'code' =>
'permissiondenied',
894 'info' =>
'You need the patrol right to request the patrolled flag'
896 array(
'code' =>
'user-excludeuser',
'info' =>
'user and excludeuser cannot be used together' ),
902 'api.php?action=query&list=recentchanges'
907 return 'https://www.mediawiki.org/wiki/API:Recentchanges';
static getPatrolToken( $pageid, $title, $rc=null)
run( $resultPageSet=null)
Generates and outputs the result of this query based upon the provided parameters.
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
addFields( $value)
Add a set of fields to select to the internal array.
A query action to enumerate the recent changes that were done to the wiki.
extractRowInfo( $row)
Extracts from a single sql row the data needed to describe one recent change.
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 addLogParams( $result, &$vals, $params, $type, $action, $ts, $legacy=false)
addTimestampWhereRange( $field, $dir, $start, $end, $sort=true)
Add a WHERE clause corresponding to a range, similar to addWhereRange, but converts $start and $end t...
dieUsageMsg( $error)
Output the error message related to a certain array.
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
getTokenFunctions()
Get an array mapping token names to their handler functions.
const RC_MOVE_OVER_REDIRECT
getResult()
Get the result object.
select( $method, $extraQuery=array())
Execute a SELECT query based on the values in the internal arrays.
as a message key or array as accepted by ApiBase::dieUsageMsg after processing request parameters Return false to let the request returning an error message or an< edit result="Failure"> tag if $resultArr was filled which will be used in the intoken parameter and in the and a callback function which should return the token
getDirectionDescription( $p='', $extraDirText='')
Gets the personalised direction parameter description.
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
getRequest()
Get the WebRequest object.
static userCanBitfield( $bitfield, $field, User $user=null)
Determine if the current user is allowed to view a particular field of this revision,...
addOption( $name, $value=null)
Add an option such as LIMIT or USE INDEX.
static formatComment( $comment, $title=null, $local=false)
This function is called by all recent changes variants, by the page history, and by the user contribu...
getUser()
Get the User object.
addFieldsIf( $value, $condition)
Same as addFields(), but add the fields only if a condition is met.
setContinueEnumParameter( $paramName, $paramValue)
Overrides base in case of generator & smart continue to notify ApiQueryMain instead of adding them to...
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
static newFromRow( $row)
Constructs new LogEntry from database result row.
linkcache txt The LinkCache class maintains a list of article titles and the information about whether or not the article exists in the database This is used to mark up links when displaying a page If the same link appears more than once on any page then it only has to be looked up once In most cases link lookups are done in batches with the LinkBatch class or the equivalent in so the link cache is mostly useful for short snippets of parsed and for links in the navigation areas of the skin The link cache was formerly used to track links used in a document for the purposes of updating the link tables This application is now deprecated To create a you can use the following $titles
executeGenerator( $resultPageSet)
Execute this module as a generator.
getParamDescription()
Returns an array of parameter descriptions.
const TS_ISO_8601
ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
getDB()
Get the Query database connection (read-only)
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getExamples()
Returns usage examples for this module.
when a variable name is used in a it is silently declared as a new masking the global
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
getModulePrefix()
Get parameter prefix (usually two letters or an empty string).
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
presenting them properly to the user as errors is done by the caller $title
dieContinueUsageIf( $condition)
Die with the $prefix.
dieUsage( $description, $errorCode, $httpRespCode=0, $extradata=null)
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an...
static addTokenProperties(&$props, $tokenFunctions)
Add token properties to the array used by getResultProperties, based on a token functions mapping.
initProperties( $prop)
Sets internal state to include the desired properties in the output.
addJoinConds( $join_conds)
Add a set of JOIN conditions to the internal array.
addWhereFld( $field, $value)
Equivalent to addWhere(array($field => $value))
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
setWarning( $warning)
Set warning section for this module.
static userCanBitfield( $bitfield, $field, User $user=null)
Determine if the current user is allowed to view a particular field of this log row,...
wfBaseConvert( $input, $sourceBase, $destBase, $pad=1, $lowercase=true, $engine='auto')
Convert an arbitrarily-long digit string from one numeric base to another, optionally zero-padding to...
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getDescription()
Returns the description string for this module.
getModuleName()
Get the name of the module being executed by this instance.
getMain()
Get the main module.
addWhere( $value)
Add a set of WHERE clauses to the internal array.
static isUnpatrolled( $rc, User $user)
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
__construct( $query, $moduleName)
userCanSeeRevDel()
Check whether the current user has permission to view revision-deleted fields.
static dieDebug( $method, $message)
Internal code errors should be reported with this method.
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 incomplete not yet checked for validity & $retval
getCacheMode( $params)
Get the cache mode for the data generated by this module.
addWhereIf( $value, $condition)
Same as addWhere(), but add the WHERE clauses only if a condition is met.
static addTitleInfo(&$arr, $title, $prefix='')
Add information (title and namespace) about a Title object to a result array.