Go to the documentation of this file.
37 private static $coreTags = [
'mw-contentmodelchange' ];
62 $tags = explode(
',', $tags );
64 foreach ( $tags
as $tag ) {
69 if ( $description ===
false ) {
74 [
'class' =>
'mw-tag-marker ' .
75 Sanitizer::escapeClass(
"mw-tag-marker-$tag" ) ],
78 $classes[] = Sanitizer::escapeClass(
"mw-tag-$tag" );
81 if ( !$displayTags ) {
86 ->numParams(
count( $displayTags ) )
89 $markers =
Xml::tags(
'span', [
'class' =>
'mw-tag-markers' ], $markers );
91 return [ $markers, $classes ];
109 if ( !$msg->exists() ) {
111 return htmlspecialchars(
$tag );
113 if ( $msg->isDisabled() ) {
119 return $msg->parse();
136 public static function addTags( $tags, $rc_id =
null, $rev_id =
null,
173 public static function updateTags( $tagsToAdd, $tagsToRemove, &$rc_id =
null,
178 $tagsToAdd = array_filter( (
array)$tagsToAdd );
179 $tagsToRemove = array_filter( (
array)$tagsToRemove );
181 if ( !$rc_id && !$rev_id && !$log_id ) {
182 throw new MWException(
'At least one of: RCID, revision ID, and log ID MUST be ' .
183 'specified when adding or removing a tag from a change!' );
194 $rc_id = $dbw->selectField(
195 [
'logging',
'recentchanges' ],
199 'rc_timestamp = log_timestamp',
204 } elseif ( $rev_id ) {
205 $rc_id = $dbw->selectField(
206 [
'revision',
'recentchanges' ],
210 'rc_timestamp = rev_timestamp',
211 'rc_this_oldid = rev_id'
216 } elseif ( !$log_id && !$rev_id ) {
218 $log_id = $dbw->selectField(
221 [
'rc_id' => $rc_id ],
224 $rev_id = $dbw->selectField(
227 [
'rc_id' => $rc_id ],
232 if ( $log_id && !$rev_id ) {
233 $rev_id = $dbw->selectField(
236 [
'ls_field' =>
'associated_rev_id',
'ls_log_id' => $log_id ],
239 } elseif ( !$log_id && $rev_id ) {
240 $log_id = $dbw->selectField(
243 [
'ls_field' =>
'associated_rev_id',
'ls_value' => $rev_id ],
250 if ( !self::updateTagSummaryRow( $tagsToAdd, $tagsToRemove, $rc_id, $rev_id,
251 $log_id, $prevTags ) ) {
254 return [ [], [], $prevTags ];
258 if (
count( $tagsToAdd ) ) {
260 foreach ( $tagsToAdd
as $tag ) {
265 $tagsRows[] = array_filter(
268 'ct_rc_id' => $rc_id,
269 'ct_log_id' => $log_id,
270 'ct_rev_id' => $rev_id,
276 $dbw->insert(
'change_tag', $tagsRows, __METHOD__, [
'IGNORE' ] );
280 if (
count( $tagsToRemove ) ) {
281 foreach ( $tagsToRemove
as $tag ) {
282 $conds = array_filter(
285 'ct_rc_id' => $rc_id,
286 'ct_log_id' => $log_id,
287 'ct_rev_id' => $rev_id
290 $dbw->delete(
'change_tag', $conds, __METHOD__ );
296 Hooks::run(
'ChangeTagsAfterUpdateTags', [ $tagsToAdd, $tagsToRemove, $prevTags,
299 return [ $tagsToAdd, $tagsToRemove, $prevTags ];
319 $rc_id, $rev_id, $log_id, &$prevTags = [] ) {
323 $tsConds = array_filter( [
324 'ts_rc_id' => $rc_id,
325 'ts_rev_id' => $rev_id,
326 'ts_log_id' => $log_id
330 $tagsToAdd = array_diff( $tagsToAdd, $tagsToRemove );
335 $prevTags = $dbw->selectField(
'tag_summary',
'ts_tags', $tsConds, __METHOD__ );
336 $prevTags = $prevTags ? $prevTags :
'';
337 $prevTags = array_filter( explode(
',', $prevTags ) );
340 $tagsToAdd = array_values( array_diff( $tagsToAdd, $prevTags ) );
341 $newTags = array_unique( array_merge( $prevTags, $tagsToAdd ) );
344 $tagsToRemove = array_values( array_intersect( $tagsToRemove, $newTags ) );
345 $newTags = array_values( array_diff( $newTags, $tagsToRemove ) );
349 if ( $prevTags == $newTags ) {
356 $dbw->delete(
'tag_summary', $tsConds, __METHOD__ );
358 $dbw->replace(
'tag_summary',
359 [
'ts_rev_id',
'ts_rc_id',
'ts_log_id' ],
360 array_filter( array_merge( $tsConds, [
'ts_tags' => implode(
',', $newTags ) ] ) ),
380 $count =
count( $tags );
382 $lang->commaList( $tags ), $count );
398 if ( !is_null(
$user ) ) {
399 if ( !
$user->isAllowed(
'applychangetags' ) ) {
401 } elseif (
$user->isBlocked() ) {
409 $disallowedTags = array_diff( $tags, $allowedTags );
410 if ( $disallowedTags ) {
412 'tags-apply-not-allowed-multi', $disallowedTags );
469 if ( !is_null(
$user ) ) {
470 if ( !
$user->isAllowed(
'changetags' ) ) {
472 } elseif (
$user->isBlocked() ) {
481 $diff = array_diff( $tagsToAdd, $explicitlyDefinedTags );
484 'tags-update-add-not-allowed-multi', $diff );
488 if ( $tagsToRemove ) {
493 $intersect = array_intersect( $tagsToRemove, $softwareDefinedTags );
496 'tags-update-remove-not-allowed-multi', $intersect );
532 if ( is_null( $tagsToAdd ) ) {
535 if ( is_null( $tagsToRemove ) ) {
538 if ( !$tagsToAdd && !$tagsToRemove ) {
555 if (
$user->pingLimiter(
'changetag' ) ) {
561 $tagsToRemove, $rc_id, $rev_id, $log_id,
$params,
null,
$user );
562 if ( !$tagsAdded && !$tagsRemoved ) {
573 $logEntry->setPerformer(
$user );
574 $logEntry->setComment( $reason );
580 $logEntry->setTarget(
$rev->getTitle() );
582 } elseif ( $log_id ) {
589 if ( !$logEntry->getTarget() ) {
595 '4::revid' => $rev_id,
596 '5::logid' => $log_id,
597 '6:list:tagsAdded' => $tagsAdded,
598 '7:number:tagsAddedCount' =>
count( $tagsAdded ),
599 '8:list:tagsRemoved' => $tagsRemoved,
600 '9:number:tagsRemovedCount' =>
count( $tagsRemoved ),
601 'initialTags' => $initialTags,
603 $logEntry->setParameters( $logParams );
604 $logEntry->setRelations( [
'Tag' => array_merge( $tagsAdded, $tagsRemoved ) ] );
607 $logId = $logEntry->insert( $dbw );
609 $logEntry->publish( $logId,
'udp' );
613 'addedTags' => $tagsAdded,
614 'removedTags' => $tagsRemoved,
633 &$join_conds, &
$options, $filter_tag =
false ) {
636 if ( $filter_tag ===
false ) {
637 $filter_tag =
$wgRequest->getVal(
'tagfilter' );
641 if ( in_array(
'recentchanges',
$tables ) ) {
642 $join_cond =
'ct_rc_id=rc_id';
643 } elseif ( in_array(
'logging',
$tables ) ) {
644 $join_cond =
'ct_log_id=log_id';
645 } elseif ( in_array(
'revision',
$tables ) ) {
646 $join_cond =
'ct_rev_id=rev_id';
647 } elseif ( in_array(
'archive',
$tables ) ) {
648 $join_cond =
'ct_rev_id=ar_rev_id';
650 throw new MWException(
'Unable to determine appropriate JOIN condition for tagging.' );
654 ',',
'change_tag',
'ct_tag', $join_cond
657 if ( $wgUseTagFilter && $filter_tag ) {
662 $join_conds[
'change_tag'] = [
'INNER JOIN', $join_cond ];
663 $conds[
'ct_tag'] = $filter_tag;
686 if ( !$config->get(
'UseTagFilter' ) || !
count( self::listDefinedTags() ) ) {
693 [
'for' =>
'tagfilter' ],
699 $data[] =
new OOUI\TextInputWidget( [
701 'name' =>
'tagfilter',
702 'value' => $selected,
703 'classes' =>
'mw-tagfilter-input',
710 [
'class' =>
'mw-tagfilter-input mw-ui-input mw-ui-input-inline',
'id' =>
'tagfilter' ]
728 $dbw->replace(
'valid_tag',
730 [
'vt_tag' =>
$tag ],
747 $dbw->delete(
'valid_tag', [
'vt_tag' =>
$tag ], __METHOD__ );
773 $logEntry->setPerformer(
$user );
777 $logEntry->setComment( $reason );
780 if ( !is_null( $tagCount ) ) {
781 $params[
'5:number:count'] = $tagCount;
783 $logEntry->setParameters(
$params );
784 $logEntry->setRelations( [
'Tag' =>
$tag ] );
785 $logEntry->setTags( $logEntryTags );
787 $logId = $logEntry->insert( $dbw );
788 $logEntry->publish( $logId );
802 if ( !is_null(
$user ) ) {
803 if ( !
$user->isAllowed(
'managechangetags' ) ) {
805 } elseif (
$user->isBlocked() ) {
814 if ( in_array(
$tag, $definedTags ) ) {
820 if ( !isset( $tagUsage[
$tag] ) ) {
845 $ignoreWarnings =
false,
array $logEntryTags = [] ) {
859 null, $logEntryTags );
874 if ( !is_null(
$user ) ) {
875 if ( !
$user->isAllowed(
'managechangetags' ) ) {
877 } elseif (
$user->isBlocked() ) {
884 if ( !in_array(
$tag, $explicitlyDefinedTags ) ) {
908 $ignoreWarnings =
false,
array $logEntryTags = [] ) {
922 null, $logEntryTags );
937 if ( !is_null(
$user ) ) {
938 if ( !
$user->isAllowed(
'managechangetags' ) ) {
940 } elseif (
$user->isBlocked() ) {
952 if ( strpos(
$tag,
',' ) !==
false || strpos(
$tag,
'/' ) !==
false ) {
958 if ( is_null(
$title ) ) {
964 if ( isset( $tagUsage[
$tag] ) || in_array(
$tag, self::listDefinedTags() ) ) {
971 return $canCreateResult;
991 $ignoreWarnings =
false,
array $logEntryTags = [] ) {
1005 null, $logEntryTags );
1024 $dbw->startAtomic( __METHOD__ );
1030 $result = $dbw->select(
'change_tag',
1031 [
'ct_rc_id',
'ct_log_id',
'ct_rev_id',
'ct_tag' ],
1032 [
'ct_tag' =>
$tag ],
1037 $tagsToRemove = [
$tag ];
1039 $row->ct_rev_id, $row->ct_log_id );
1043 $dbw->delete(
'change_tag', [
'ct_tag' =>
$tag ], __METHOD__ );
1045 $dbw->endAtomic( __METHOD__ );
1052 wfDebug(
'ChangeTagAfterDelete error condition downgraded to warning' );
1074 if ( !is_null(
$user ) ) {
1075 if ( !
$user->isAllowed(
'deletechangetags' ) ) {
1077 } elseif (
$user->isBlocked() ) {
1082 if ( !isset( $tagUsage[
$tag] ) && !in_array(
$tag, self::listDefinedTags() ) ) {
1086 if ( isset( $tagUsage[
$tag] ) && $tagUsage[
$tag] > self::MAX_DELETE_USES ) {
1091 if ( in_array(
$tag, $softwareDefined ) ) {
1122 $ignoreWarnings =
false,
array $logEntryTags = [] ) {
1133 $hitcount = isset( $tagUsage[
$tag] ) ? $tagUsage[
$tag] : 0;
1137 if ( !$deleteResult->isOK() ) {
1138 return $deleteResult;
1143 $hitcount, $logEntryTags );
1145 $deleteResult->value = $logId;
1146 return $deleteResult;
1164 function ( $oldValue, &$ttl,
array &$setOpts )
use ( $tags ) {
1168 Hooks::run(
'ChangeTagsListActive', [ &$tags ] );
1172 'checkKeys' => [
wfMemcKey(
'active-tags' ) ],
1199 return array_values( array_unique( array_merge( $tags1, $tags2 ) ) );
1221 $setOpts += Database::getCacheSetOptions(
$dbr );
1223 $tags =
$dbr->selectFieldValues(
'valid_tag',
'vt_tag', [],
$fname );
1225 return array_filter( array_unique( $tags ) );
1228 'checkKeys' => [
wfMemcKey(
'valid-tags-db' ) ],
1253 function ( $oldValue, &$ttl,
array &$setOpts )
use ( $tags ) {
1257 return array_filter( array_unique( $tags ) );
1260 'checkKeys' => [
wfMemcKey(
'valid-tags-hook' ) ],
1321 $setOpts += Database::getCacheSetOptions(
$dbr );
1325 [
'ct_tag',
'hitcount' =>
'count(*)' ],
1328 [
'GROUP BY' =>
'ct_tag',
'ORDER BY' =>
'hitcount DESC' ]
1332 foreach (
$res as $row ) {
1333 $out[$row->ct_tag] = $row->hitcount;
1339 'checkKeys' => [
wfMemcKey(
'change-tag-statistics' ) ],
1361 return $user->isAllowed(
'changetags' ) && (bool)self::listExplicitlyDefinedTags();
getConfig()
Get the Config object.
error also a ContextSource you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext $context
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist & $tables
static newFromId( $id, $flags=0)
Load a page revision from a given revision ID number.
msg()
Get a Message object with context set Parameters are the same as wfMessage()
static tags( $element, $attribs=null, $contents)
Same as Xml::element(), but does not escape contents.
if(!isset( $args[0])) $lang
Utility class for creating new RC entries.
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. Return false to stop further processing of the tag $reader:XMLReader object $logInfo:Array of information 'ImportHandlePageXMLTag':When parsing a XML tag in a page. Return false to stop further processing of the tag $reader:XMLReader object & $pageInfo:Array of information 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. Return false to stop further processing of the tag $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. Return false to stop further processing of the tag $reader:XMLReader object 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. Return false to stop further processing of the tag $reader:XMLReader object $revisionInfo:Array of information 'ImportLogInterwikiLink':Hook to change the interwiki link used in log entries and edit summaries for transwiki imports. & $fullInterwikiPrefix:Interwiki prefix, may contain colons. & $pageTitle:String that contains page title. 'ImportSources':Called when reading from the $wgImportSources configuration variable. Can be used to lazy-load the import sources list. & $importSources:The value of $wgImportSources. Modify as necessary. See the comment in DefaultSettings.php for the detail of how to structure this array. '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 '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 '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 '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. '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 IP::isTrustedProxy() & $ip:IP being check & $result:Change this value to override the result of IP::isTrustedProxy() '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 Sanitizer::validateEmail(), 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. '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) '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 '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:Array with elements of the form "language:title" in the order that they will be output. & $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. 'LanguageSelector':Hook to change the language selector available on a page. $out:The output page. $cssClassName:CSS class name of the language selector. 'LinkBegin':DEPRECATED! Use HtmlPageLinkRendererBegin instead. 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
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set $status
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
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
static newFatal( $message)
Factory function for fatal errors.
if(!defined( 'MEDIAWIKI')) $fname
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
static getTitleFor( $name, $subpage=false, $fragment='')
Get a localised Title object for a specified special page name If you don't need a full Title object,...
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
getLanguage()
Get the Language object.
wfMemcKey()
Make a cache key for the local wiki.
namespace and then decline to actually register it file or subcat img or subcat $title
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached $page
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books $tag
when a variable name is used in a it is silently declared as a new masking the global
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
static makeTitleSafe( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
static newGood( $value=null)
Factory function for good results.
static suggestTarget( $target, array $ids)
Suggest a target for the revision deletion Optionally override this function.
static getMain()
Static methods.
Interface for objects which can provide a MediaWiki context on request.
static isRegistered( $name)
Returns true if a hook has a function registered to it.
static getMainWANInstance()
Get the main WAN cache object.
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
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
static rawElement( $element, $attribs=[], $contents='')
Returns an HTML element in a string.
Class for creating log entries manually, to inject them into the database.
static input( $name, $size=false, $value=false, $attribs=[])
Convenience function to build an HTML text input field.
if(! $wgDBerrorLogTZ) $wgRequest
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set and then return false from the hook function Ensure you consume the ChangeTagAfterDelete hook to carry out custom deletion actions as context called by AbstractContent::getParserOutput May be used to override the normal model specific rendering of page content as context as context $options
the array() calling protocol came about after MediaWiki 1.4rc1.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out