MediaWiki  1.29.1
docs/hooks.txt File Reference

Typedefs

using $result = 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)
 
using myext.tests = array('script'=> 'extension/myext/tests.js', 'dependencies'=>< any module dependency you might have >)
 

Functions

for adding new MIME info to the list Use $mimeMagic addExtraTypes ( $stringOfTypes)
 
the array () calling protocol came about after MediaWiki 1.4rc1.
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of array (messagename, param1, param2,...) or a MessageSpecifier instance(you might want to use ApiMessage to provide machine-readable details for the API). For consistency
 
the other converts the title to all uppercase letters in MediaWiki we would handle this as follows (note:not real code, here)
 
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 groups (accessed through $special->getFilterGroup)
 
 if ( $wgReverseTitle)
 
function ldapLogin ( $username, $password)
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options (say) and put it in one place. Instead of having little title-reversing if-blocks spread all over the codebase in showAnArticle
 
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 own (ChangesListBooleanFilterGroup or ChangesListStringOptionsFilterGroup). If you create new groups
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the query (e.g. "log_action != 'revision'") - showIfEmpty boolean Set to false if you don 't want any output in case the loglist is empty if set to true(default)
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system (LDAP, another PHP program, whatever)
 
Returning false makes less sense for events where the action is and will normally be ignored Note that none of the examples made use of create_function() as a way to attach a function to a hook. This is known to cause problems(notably with Special this is a necessary inconvenience to make it possible to pass reference values (that can be changed) into the hook code. Also note that earlier versions of wfRunHooks took a variable number of arguments
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage () -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt
 

Variables

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 & $abortMsg
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function array $article
 
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
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 true if there is text before this autocomment $auto
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges $changesList
 
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 modifiable & $code
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id & $colours
 
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 $content
 
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
 
null means default$customAttribs
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs & $differenceEngine
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error etc yourself modifying $error and returning true will cause the contents of $error to be echoed at the top of the edit form as wikitext Return true without altering $error to allow the edit to proceed & $editor
 
the value to return A Title object or null for latest all implement SearchIndexField $engine
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers$extTypes
 
it s the revision text itself In either if gzip is the revision text is gzipped $flags
 
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 the output can only depend on parameters provided to this hook not on global state $generateHtml
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
 
see documentation in includes Linker php for Linker::makeImageLink$handlerParams
 
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 & $html
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
 
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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled $incrBy
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could $ldapServer
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive $limit
 
usually copyright or history_copyright This message must be in HTML not wikitext & $link
 
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 after in associative array form before processing starts Return false to skip default processing and return $ret $linkRenderer
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks $linksUpdate
 
namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable(). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $localize
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define you are encouraged to submit patches to MediaWiki s core to add new MIME types to mime types $mimeMagic
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core $modeName
 
Allows to change the fields on the form that will be generated $name
 
namespace and then decline to actually register it$namespaces
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel() must return $toModel. 'CustomEditor' also included in $newHeader if any $newminor
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect $newtalks
 
passed in as a query string parameter to the various URLs constructed here(i.e. $nextlink) $rdel also included in $oldHeader $oldminor
 
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
 
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
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object$output
 
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
 
do that in ParserLimitReportFormat instead $parser
 
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 $parserOutput
 
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 my talk my contributions etc$personal_urls
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 $pre
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify $query
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next $refreshCache
 
this hook is for auditing only $req
 
error also a ContextSource you ll probably need to make sure the header is varied on $request
 
Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add use OutputPage::addFeedLink() instead. & $feedLinks hooks can tweak the array to change how login etc forms should look $requests
 
namespace and then decline to actually register it file or subcat $res
 
error also a ContextSource you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output$resourceLoader
 
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module & $ResourceLoader
 
this hook is for auditing only $response
 
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 & $ret
 
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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect$returnTo
 
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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string$returnToQuery
 
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
 
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
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI & $revert
 
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 $revId
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel() must return $toModel. 'CustomEditor' also included in $newHeader $rollback
 
the value to return A Title object or null for latest all implement SearchIndexField must implement ResultSetAugmentor$rowAugmentors
 
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section
 
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 & $sectionContent
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
 
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 $skin
 
this hook is for auditing only RecentChangesLinked and Watchlist $special
 
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 = Status::newGood()` to allow deletion
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException $suppressed
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff$tabindex
 
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
 
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
 
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 $template
 
external whereas SearchGetNearMatch runs after $term
 
see documentation in includes Linker php for Linker::makeImageLink$time
 
namespace and then decline to actually register it file or subcat img or subcat $title
 
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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values$type
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache $unhide
 
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
 
this hook is for auditing only or null if authentication failed before getting that far $username
 
static configuration should be added through ResourceLoaderGetConfigVars instead & $vars
 
An extension or a will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgCapitalizeTitle
 
 $wgHooks ['ArticleShow'][] = 'reverseArticleTitle'
 
An extension or a will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgNotifyArticle
 
error __pad0__
 
please add to it if you re going to add events to the MediaWiki code AbortAutoAccount
 
An extension or a will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may add
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In addition
 
An extension or a admin
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error etc yourself Alternatively
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to patches for two options in MediaWiki One reverses the order of a title before displaying the article
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for ascending
 
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 ATTENTION
 
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that AuthPluginAutoCreate
 
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 AutopromoteCondition
 
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 based
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function becomes
 
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 BeforeDisplayNoArticleText
 
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 BeforeInitialize
 
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 modifiable modifiable BeforeParserFetchFileAndTitle
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result BitmapHandlerTransform
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters block
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput BlockIp
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array BlockIpComplete
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of error messages should be plain text with no special bolding
 
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 broken
 
it s the revision text itself In either case
 
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 ChangeTagCanCreate
 
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 ChangeTagCanDelete
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary such as anonymity and the real check
 
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 classes
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline code
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of error messages should be plain text with no special coloring
 
Returning false makes less sense for events where the action is complete
 
namespace addition is conditional
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to patches Consider
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace ContentHandlerDefaultModelFor
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core if desired ContentModelCanBeUsedOn
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending ContributionsLineEnding
 
error also a ContextSource you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output included in core
 
the other converts the title to all uppercase letters Currently
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing deleteAnArticle
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel() must return $toModel. 'CustomEditor' also included in $newHeader if any indicating whether we should show just the diff
 
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could do
 
in this case you re responsible for computing and outputting the entire conflict i e
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 EditPageGetCheckboxesDefinition
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary EmailConfirmed
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object and populate $result with the reason in the form of error messages should be plain text with no special etc to show that they re errors
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing etc
 
how to add hooks for an event
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For example
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing exportArticle
 
processing should stop and the error should be shown to the userfalse
 
Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add feeds
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers temp or archived zone FetchChangesList
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
 
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 FileDeleteComplete
 
null means default in associative array form
 
if the prop value should be in the metadata multi language array format
 
For QUnit framework
 
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 the output can only depend on parameters provided to this hook function
 
null for the wiki Added should default to null in handler functions
 
null for the wiki Added should default to null in handler for backwards compatibility GalleryGetModes
 
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 Generally
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options GetCanonicalURL
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list GetDefaultSortkey
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs difference engine object to be used for diff GetDoubleUnderscoreIDs
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys GetLocalURL
 
if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object GetRelativeTimestamp
 
presenting them properly to the user as errors is done by the caller return true getUserPermissionsErrorsExpensive
 
presenting them properly to the user as errors is done by the caller return true GitViewers
 
 gzip
 
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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array you should do so by altering $wgNamespaceProtection and $wgNamespaceContentModels outside the handler
 
they could be provided by a third party developer or written by the admin him herself
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc next in line in page history
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a hook
 
Using a hook running we can avoid having all this option specific stuff in our mainline code Using hooks
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services However
 
either a unescaped string or a HtmlArmor object after in associative array form imagelinks
 
see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false ImageOpenShowImageInlineBefore
 
null for the wiki Added in
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and insert
 
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 Instead
 
you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough isolated
 
presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do it
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message key
 
usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template to be included in the link
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Live
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation LogEventsListGetExtraInputs
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters LogLine
 
divlt
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title MarkPatrolled
 
hooks txt This document describes how event hooks work in MediaWiki
 
either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a message
 
passed in as a query string parameter to the various URLs constructed here(i.e. $prevlink) $ldel you ll need to handle error messages
 
for adding new MIME types to the list ModifyExportQuery
 
and how to run hooks for an and one after Each event has a name
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers Note
 
either a unescaped string or a HtmlArmor object
 
return true to allow those checks to occur
 
When an event occurs
 
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going on
 
 otherwise
 
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 my talk page
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSave
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSaveComplete
 
either a unescaped string or a HtmlArmor object after in associative array form pagelinks
 
namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable(). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $report should be output in English ParserLimitReportPrepare
 
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 ParserTestTables
 
in this case you re responsible for computing and outputting the entire conflict part
 
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 modifiable modifiable after all normalizations have been performed
 
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 my talk my contributions etc etc PingLimiter
 
either a plain
 
in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Preview
 
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 after processing
 
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 RecentChangesLinked
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place replace
 
div flags Integer display flags(NO_ACTION_LINK, NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e rollback
 
Allows to change the fields on the form that will be generated rss
 
This code would result in ircNotify being run twice when an article is saved
 
external SearchableNamespaces
 
set to $title object and return false for a match SearchGetNearMatch
 
set to $title object and return false for a match SearchGetNearMatchBefore
 
the value to return A Title object or null SearchGetNearMatchComplete
 
the value to return A Title object or null for latest SearchIndexFields
 
it s the revision text itself In either if gzip is set
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code simple
 
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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be skipped
 
null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs difference engine object to be used for diff source
 
For QUnit the mediawiki tests qunit testrunner dependency will be added to any module it s the URL of the revision text in external storage
 
Using a hook running strategy
 
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
 
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 structure
 
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 them
 
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 true
 
Having all this code related to the title reversion option in one place means that it s easier to read and understand
 
presenting them properly to the user as errors is done by the caller return true use this to change the list i e undo
 
static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set up
 
you don t have to do a grep find to see where the $wgReverseTitle variable is used
 
and how to run hooks for an and one after Each event has a preferably in CamelCase For UserLogin
 
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible values
 
We ve cleaned up the code here by removing clumps of weird
 
An extension writer
 

Typedef Documentation

◆ $result

namespace being checked & $result

Definition at line 1954 of file hooks.txt.

◆ myext.tests

using myext.tests = array( 'script' => 'extension/myext/tests.js', 'dependencies' => <any module dependency you might have> )

Definition at line 2741 of file hooks.txt.

Function Documentation

◆ addExtraTypes()

for adding new MIME info to the list Use $mimeMagic addExtraTypes (   $stringOfTypes)

◆ array() [1/2]

the array ( )
Examples
/src/includes/rcfeed/RedisPubSubFeedEngine.php, and /src/tests/phpunit/MediaWikiTestCase.php.

Referenced by ReverseArrayIterator::__construct(), InputBox::__construct(), ResourceLoaderImage::__construct(), MediaWikiTitleCodec::__construct(), FSFileBackend::__construct(), BatchRowIterator::__construct(), IndexPager::__construct(), ResourceLoaderFileModule::__construct(), MagicWord::__construct(), MemcachedClient::__construct(), MemcachedClient::_flush_read_buffer(), MemcachedClient::_incrdecr(), MemcachedClient::_load_items(), ApiBase::addDeprecation(), OutputPage::addHeadItems(), LinkCache::addLinkObj(), ApiErrorFormatter::addMessagesFromStatus(), ApiResult::addMetadataToResultVars(), OutputPage::addModules(), ParserOutput::addModules(), OutputPage::addModuleScripts(), ParserOutput::addModuleScripts(), OutputPage::addModuleStyles(), ParserOutput::addModuleStyles(), OutputPage::addParserOutputMetadata(), MediaWikiTestCase::addTmpFiles(), ApiQueryBase::addWhereRange(), CologneBlueTemplate::afterContent(), ApiResult::applyTransformations(), ApiErrorFormatter::arrayFromStatus(), ApiQueryWatchlistIntegrationTest::assertArraySubsetsEqual(), MWHttpRequestTestCase::assertResponseFieldValue(), LinksDeletionUpdate::batchDeleteByPK(), CologneBlueTemplate::bottomLinks(), SpamRegexBatch::buildRegexes(), BaseBlacklist::buildSharedBlacklists(), PHPVersionCheck::checkExtensionExistence(), LocalRepo::checkRedirect(), ApiBase::checkTitleUserPermissions(), ApiBase::checkUserRightsAny(), ProcessCacheLRU::clear(), MapCacheLRU::clear(), ResourceLoaderFileModule::collateFilePathListByOption(), PdfImage::convertDumpToArray(), UpdateLogging::copyExactMatch(), ReverseArrayIterator::count(), User::createNew(), ReverseArrayIterator::current(), MonoBookTemplate::customBox(), MemcachedClient::disconnect_all(), RecompressTracked::dispatchToReplica(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), WikiPage::doEditContent(), ExprParser::doExpression(), DBFileJournal::doGetChangeEntries(), SpamBlacklist::doLogging(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), GenderCache::doQuery(), UserrightsPage::doSaveUserGroups(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), PdfHandler::doTransform(), TextPassDumper::endElement(), ApiBase::errorArrayToStatus(), ApiProtect::execute(), ApiQueryTitleBlacklist::execute(), ApiQueryAllMessages::execute(), ApiQueryBlocks::execute(), ApiQueryLangLinks::execute(), ApiParse::execute(), ApiQueryIWLinks::execute(), PurgeModuleDeps::execute(), CleanupRemovedModules::execute(), ApiUserrights::execute(), ApiFeedWatchlist::execute(), ApiQueryUsers::execute(), Scribunto_LuaParserFunctionsLibrary::expr(), JSParser::Expression(), ExtensionProcessor::extractMessagesDirs(), InputBox::extractOptions(), WebRequest::extractTitle(), UploadStash::fetchFileMetadata(), SpamBlacklist::filter(), TextPassDumper::finalOptionCheck(), LocalRepo::findFiles(), User::findUsersByGroup(), Wikimedia\Rdbms\LBFactory::forEachLBCallMethod(), MemcachedClient::forget_dead_hosts(), FeedUtils::formatDiff(), ApiAuthManagerHelper::formatRequests(), JSParser::FunctionDefinition(), MemcachedClient::get(), JSTokenizer::get(), MemcachedClient::get_multi(), MemcachedClient::get_sock(), LegacyLogFormatter::getActionMessage(), ApiSpamBlacklist::getAllowedParams(), ApiQueryTitleBlacklist::getAllowedParams(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesDB(), WebRequest::getArray(), BaseBlacklist::getArticleText(), Title::getAuthorsBetween(), SpamRegexBatch::getBadLines(), OOUIHTMLForm::getButtons(), VFormHTMLForm::getButtons(), HTMLForm::getButtons(), ApiQueryUsers::getCacheMode(), ApiQueryInfo::getCacheMode(), InputBox::getCommentForm(), LocalisationUpdate\Finder::getComponents(), SiteConfiguration::getConfig(), Wikimedia\Rdbms\LoadBalancer::getConnection(), InputBox::getCreateForm(), SpamBlacklist::getCurrentLinks(), ForeignDBFile::getDescriptionText(), File::getDescriptionText(), InputBox::getEditActionArgs(), ApiSpamBlacklist::getExamplesMessages(), ApiQueryTitleBlacklist::getExamplesMessages(), MediaWikiTestCase::getExternalStoreDatabaseConnections(), FileContentsHasher::getFileContentsHash(), ResourceLoaderModule::getFileDependencies(), GadgetDefinitionNamespaceRepo::getGadget(), GadgetDefinitionNamespaceRepo::getGadgetIds(), Language::getGenderNsText(), MWGrants::getGrantRights(), ApiSpamBlacklist::getHelpUrls(), TablePager::getHiddenFields(), PdfImage::getImageSize(), SpecialUpload::getInitialPageText(), HTMLCheckMatrix::getInputHTML(), HTMLAutoCompleteSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), BaseBlacklist::getInstance(), ResourceLoaderClientHtml::getLoad(), PdfHandler::getMetaArray(), ApiParamInfo::getModuleInfo(), InputBox::getMoveForm(), WANObjectCache::getMulti(), WANObjectCache::getMultiWithSetCallback(), Language::getNamespaceAliases(), ParserOutput::getOutputHooks(), PdfImage::getPageSize(), PdfHandler::getParamMap(), FormatMetadata::getPriorityLanguages(), MWNamespace::getRestrictionLevels(), ApiResult::getResultData(), ResourceLoaderGeSHiVisualEditorModule::getScript(), PdfHandler::getScriptParams(), InputBox::getSearchForm(), InputBox::getSearchForm2(), BaseBlacklist::getSharedBlacklists(), ExternalStoreDB::getSlave(), ConverterRule::getTextInBidtable(), PdfHandler::getThumbType(), BaseBlacklist::getTypeFromTitle(), PdfHandler::getWarningConfig(), ConvertExtensionToRegistration::handleMessagesDirs(), Language::hebrewNumeral(), RequestContext::importScopedSession(), Poem::indentVerse(), User::inDnsBlacklist(), Poem::init(), JSTokenizer::init(), FileRepo::initZones(), CreatePdfThumbnailsJob::insertJobs(), Wikimedia\Rdbms\Database::insertSelect(), ExternalStore::insertToDefault(), BaseBlacklist::isLocalSource(), PdfHandler::isMetadataValid(), Title::isNamespaceProtected(), MediaWikiTestCase::isUsingExternalStoreDB(), Block::isWhitelistedFromAutoblocks(), ReverseArrayIterator::key(), LogPager::limitType(), Linker::link(), SpecialVersion::listAuthors(), ChangeTags::listExplicitlyDefinedTags(), ChangeTags::listSoftwareActivatedTags(), ChangeTags::listSoftwareDefinedTags(), TitleBlacklist::load(), MessageCache::load(), MediaWiki\Interwiki\ClassicInterwikiLookup::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), LocalFile::loadFromCache(), User::loadFromCache(), MediaWiki\Auth\AuthenticationRequest::loadFromSubmission(), Title::loadRestrictions(), SpamBlacklist::logFilterHit(), TitleBlacklistHooks::logFilterHitUsername(), SpamBlacklist::logUrlChange(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse(), LogEntryBase::makeParamBlob(), OutputPage::makeResourceLoaderLink(), ApiMain::markParamsSensitive(), ApiMain::markParamsUsed(), EditPage::matchSpamRegex(), EditPage::matchSummarySpamRegex(), JavaScriptMinifier::minify(), UserArray::newFromIDs(), UserArray::newFromNames(), TitleBlacklistEntry::newFromString(), Revision::newKnownCurrent(), ReverseArrayIterator::next(), SiteStats::numberingroup(), TitleBlacklistHooks::onAPIGetAllowedParams(), InterwikiHooks::onInterwikiLoadPrefix(), ImageMap::onParserFirstCallInit(), SpamBlacklistHooks::onUploadVerifyUpload(), Html::openElement(), CologneBlueTemplate::otherLanguages(), CologneBlueTemplate::pageTitleLinks(), TitleBlacklist::parseBlacklist(), parseHighlightLines(), PdfHandler::parseParamString(), JSMinPlus::parseTree(), ApiResult::path(), PdfImage::postProcessDump(), ResourceLoaderWikiModule::preloadTitleInfo(), CologneBlueTemplate::processBottomLink(), SpecialUpload::processVerificationError(), ExpressionTest::provideExpressions(), CologneBlueTemplate::quickBar(), TextPassDumper::readDump(), QueryPage::reallyDoQuery(), LocalisationCache::recache(), SpamRegexBatch::regexesFromMessage(), Scribunto_LuaTitleBlacklistLibrary::register(), Scribunto_LuaParserFunctionsLibrary::register(), InputBoxHooks::register(), PdfHandler::registerWarningModule(), ExtParserFunctions::rel2abs(), ApiResult::removeValue(), ImageMap::render(), InputBox::render(), CologneBlueTemplate::renderAfterPortlet(), Poem::renderPoem(), ReverseArrayIterator::rewind(), CreatePdfThumbnailsJob::run(), ApiQueryPrefixSearch::run(), ApiQueryCategories::run(), ApiQueryWatchlistRaw::run(), ApiQueryBacklinks::run(), MemcachedClient::run_command(), TableCleanup::runTable(), CologneBlueTemplate::searchForm(), ApiQueryBase::select(), Wikimedia\Rdbms\Database::selectRow(), Wikimedia\Rdbms\Database::selectSQLText(), DatabaseTestHelper::setExistingTables(), ApiResult::setPreserveKeysList(), ApiResult::setSubelementsList(), ApiQueryTitleBlacklistTest::setUp(), SkinMonoBook::setupSkinUserCss(), SpecialInterwiki::showList(), LogEventsList::showLogExtract(), LogEventsList::showOptions(), OutputPage::showPermissionsErrorPage(), CologneBlueTemplate::sidebarAdditions(), JSParser::Statement(), ApiResult::stripMetadata(), ApiResult::stripMetadataNonRecursive(), UpdateLogging::sync(), CologneBlueTemplate::sysLinks(), DatabaseTestHelper::tableExists(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), ChangeTags::tagUsageStatistics(), CologneBlueTemplate::talkLink(), Scribunto_LuaTitleBlacklistLibrary::test(), ApiQueryTitleBlacklistTest::testAntiSpoofIntegration(), ApiQueryTitleBlacklistTest::testCheckingBlackListedTitle(), ApiQueryTitleBlacklistTest::testCheckingUnlistedTitle(), WANObjectCacheTest::testGetMultiWithSetCallback(), TitleTest::testIsValidMoveOperation(), ExportTest::testPageByTitle(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), SpecialSearchTest::testRewriteQueryWithSuggestion(), MediaWiki\Session\SessionBackendTest::testSave(), ImportTest::testSiteInfoContainsNamespaces(), ApiQueryTitleBlacklistTest::testTboverride(), TitleTest::testWgWhitelistReadRegexp(), ExtParserFunctions::timeCommon(), ImageMap::tokenizeCoords(), MonoBookTemplate::toolbox(), HTMLForm::trySubmit(), LocalFile::unprefixRow(), ApiResult::unsetPreserveKeysList(), ApiResult::unsetSubelementsList(), ChangeTags::updateTags(), TitleBlacklistHooks::userCan(), SpamBlacklistHooks::userCanSendEmail(), ReverseArrayIterator::valid(), TitleBlacklist::validate(), TitleBlacklistHooks::validateBlacklist(), PdfHandler::validateParam(), ApiResult::validateValue(), CologneBlueTemplate::variantLinks(), and wfInstallerMain().

◆ array() [2/2]

presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do and populate $result with the reason in the form of array ( messagename  ,
param1  ,
param2  ,
  ... 
)

◆ follows()

the other converts the title to all uppercase letters in MediaWiki we would handle this as follows ( note:not real  code,
here   
)

Definition at line 35 of file hooks.txt.

References $article, $wgCapitalizeTitle, and global.

◆ groups()

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 groups ( accessed through $special->  getFilterGroup)

◆ if()

if (   $wgReverseTitle)

Definition at line 58 of file hooks.txt.

References $article.

◆ ldapLogin()

function ldapLogin (   $username,
  $password 
)

Definition at line 194 of file hooks.txt.

◆ options()

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing options ( say  )

◆ own()

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 own ( ChangesListBooleanFilterGroup or  ChangesListStringOptionsFilterGroup)
new

◆ query()

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the query ( )

◆ system()

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system ( LDAP  ,
another PHP  program,
whatever   
)

◆ values()

Returning false makes less sense for events where the action is and will normally be ignored Note that none of the examples made use of create_function () as a way to attach a function to a hook. This is known to cause problems (notably with Special this is a necessary inconvenience to make it possible to pass reference values ( that can be  changed)

◆ wfMessage()

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message additional optional elements are parameters for the key that are processed with wfMessage ( ) -> params() ->parseAsBlock() - offset Set to overwrite offset parameter in $wgRequest set to '' to unset offset - wrap String Wrap the message in html(usually something like "&lt

Referenced by HTMLSelectOrOtherField::__construct(), MalformedTitleException::__construct(), HTMLAutoCompleteSelectField::__construct(), Licenses::__construct(), MessageContent::__construct(), ExprError::__construct(), MediaWiki\Widget\DateInputWidget::__construct(), MediaTransformError::__construct(), TransformParameterError::__construct(), TransformTooBigImageAreaError::__construct(), SpamBlacklistHooks::abortNewAccount(), Linker::accesskey(), LogPage::actionText(), Action::addHelpLink(), Article::addHelpLink(), MediaHandler::addMeta(), WikitextContent::addSectionHeader(), Skin::addToSidebar(), ParserOutput::addTrackingCategory(), CologneBlueTemplate::afterContent(), JsonContent::arrayTable(), SpecialVersion::arrayToString(), CologneBlueTemplate::beforeContent(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), Linker::blockLink(), OutputPage::buildBacklinkSubtitle(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), Xml::buildForm(), ChangesFeed::buildItems(), SpecialEditWatchlist::buildTools(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialPage::checkLoginSecurityLevel(), Title::checkSpecialsAndNSPermissions(), CleanupSpam::cleanupArticle(), Language::commaList(), Linker::commentBlock(), WikiPage::commitRollback(), EmailNotification::composeCommonMailtext(), Article::confirmDelete(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), Installer::createMainpage(), MonoBookTemplate::customBox(), Xml::dateMenu(), CoreParserFunctions::defaultsort(), Article::delete(), MediaWiki\Session\SessionProvider::describe(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::describeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequest::describeCredentials(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::describeCredentials(), MediaWiki\Session\SessionProvider::describeMessage(), TitleBlacklistHooks::displayBlacklistOverrideNotice(), CoreParserFunctions::displaytitle(), Block::doAutoblock(), FileDeleteForm::doDelete(), Article::doDelete(), Skin::doEditSectionLink(), PdfHandler::doThumbError(), MockDjVuHandler::doTransform(), TransformationalImageHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), WebInstaller::downloadLinkHook(), Linker::emailLink(), WebInstallerInstall::endStage(), Installer::envCheckDB(), ImageMap::error(), WebInstallerDBConnect::execute(), WebInstallerExistingWiki::execute(), WebInstallerName::execute(), WebInstallerRestart::execute(), WebInstallerWelcome::execute(), ApiImageRotate::execute(), WebInstallerInstall::execute(), WebInstallerUpgrade::execute(), ApiQueryTitleBlacklist::execute(), SpecialUnlinkAccounts::execute(), ApiEditPage::execute(), SpecialLinkAccounts::execute(), ApiQueryAllMessages::execute(), DumpMessages::execute(), ApiFeedContributions::execute(), CleanupSpam::execute(), ApiFeedWatchlist::execute(), FileDeleteForm::execute(), PasswordReset::execute(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::failResponse(), ApiFeedContributions::feedItemDesc(), MessageBlobStore::fetchMessage(), DeleteEqualMessages::fetchMessageInfo(), SimpleCaptcha::filterLink(), ChangesList::flag(), Linker::formatAutocomments(), BlockLogFormatter::formatBlockFlag(), BlockLogFormatter::formatBlockFlags(), FeedUtils::formatDiff(), FeedUtils::formatDiffRow(), LanguageZh_hans::formatDuration(), Language::formatDuration(), WikiPage::formatExpiry(), Linker::formatHiddenCategories(), Linker::formatRevisionSize(), ApiParse::formatSummary(), Language::formatTimePeriod(), ImageListPager::formatValue(), LogEventsList::getActionSelector(), SpecialChangeCredentials::getAuthForm(), ContentHandler::getAutoDeleteReason(), ContentHandler::getAutosummary(), TitleBlacklist::getBlacklistText(), User::getBlockedStatus(), ReCaptcha::getCaptchaInfo(), Skin::getCategoryLinks(), CategoryMembershipChange::getChangeMessageText(), WebInstaller::getCheckBox(), InputBox::getCommentForm(), OracleInstaller::getConnectForm(), PostgresInstaller::getConnectForm(), MysqlInstaller::getConnectForm(), MssqlInstaller::getConnectForm(), SpecialVersion::getCopyrightAndAuthorList(), EditPage::getCopyrightWarning(), InputBox::getCreateForm(), Title::getDefaultMessageText(), Gadget::getDescription(), Interwiki::getDescription(), LogPage::getDescription(), FeedUtils::getDiffLink(), ImageHandler::getDimensionsString(), Title::getEditNotices(), EditPage::getEditToolbar(), Status::getErrorMessage(), SpecialUpload::getExistsWarning(), SpecialVersion::getExtensionTypes(), LoginSignupSpecialPage::getFieldDefinitions(), TitleBlacklistAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\CreationReasonAuthenticationRequest::getFieldInfo(), ReCaptchaAuthenticationRequest::getFieldInfo(), ReCaptchaNoCaptchaAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UsernameAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), CaptchaAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequest::getFieldInfo(), WebInstallerDocument::getFileContents(), NumericUppercaseCollation::getFirstLetter(), IcuCollation::getFirstLetter(), FancyCaptcha::getFormInformation(), MediaHandler::getGeneralLongDesc(), User::getGrantName(), MWGrants::getGrantsWikiText(), UserGroupMembership::getGroupMemberName(), UserGroupMembership::getGroupName(), UserGroupMembership::getGroupPage(), WebInstaller::getHelpBox(), Language::getHumanTimestampInternal(), WikiTextStructure::getIgnoredHeadings(), WebInstaller::getInfoBox(), SpecialUpload::getInitialPageText(), Licenses::getInputHTML(), DatabaseInstaller::getInstallUserBox(), LogFormatter::getIRCActionComment(), LogFormatter::getIRCActionText(), SkinTemplate::getLanguages(), ContentHandler::getLocalizedName(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), ImageHandler::getLongDesc(), SvgHandler::getLongDesc(), SpecialVersion::getMediaWikiCredits(), SimpleCaptcha::getMessage(), Status::getMessage(), ErrorPageError::getMessageObject(), MalformedTitleException::getMessageObject(), GenerateJqueryMsgData::getMessagesAndTests(), InputBox::getMoveForm(), Interwiki::getName(), LogPage::getName(), WebInstaller::getPageListItem(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getPasswordResetData(), GadgetHooks::getPreferences(), EditPage::getPreviewLimitReport(), WebInstaller::getRadioElements(), Gadget::getRawDescription(), LogPage::getRcComment(), LogPage::getRcCommentIRC(), DatabaseInstaller::getReadableName(), Block::getRedactedName(), Article::getRedirectHeaderHtml(), MWTimestamp::getRelativeTimestamp(), User::getRightDescription(), InputBox::getSearchForm(), InputBox::getSearchForm2(), MysqlInstaller::getSettingsForm(), MssqlInstaller::getSettingsForm(), ImageHandler::getShortDesc(), SpecialBlock::getSuggestedDurations(), Preferences::getTimeZoneList(), MWTimestamp::getTimezoneMessage(), LogPage::getTitleLink(), TrackingCategories::getTrackingCategories(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), Language::getVariantname(), SpecialVersion::getVersion(), FormatMetadata::getVisibleFields(), DatabaseInstaller::getWebUserBox(), Status::getWikiText(), MWGrants::grantName(), Title::hasSourceText(), CoreTagHooks::html(), CoreTagHooks::indicator(), WikiPage::insertProtectNullRevision(), DifferenceEngine::intermediateEditsMsg(), CoreParserFunctions::intFunction(), SimpleCaptcha::isIPWhitelisted(), User::isUsableName(), Block::isWhitelistedFromAutoblocks(), WebInstaller::label(), Xml::languageSelector(), SpecialUpload::loadRequest(), TitleBlacklist::loadWhitelist(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), CaptchaPreAuthenticationProvider::makeError(), Skin::makeI18nUrl(), IndexPager::makeLink(), ApiBase::makeMessage(), BaseTemplate::makeSearchInput(), Linker::makeThumbLink2(), AuthManagerSpecialPage::mapSingleFieldInfo(), MergeHistory::merge(), Xml::monthSelector(), MovePage::move(), MovePage::moveToInternal(), MWException::msg(), MWExceptionRenderer::msg(), Language::msg(), SearchEngineConfig::namespacesAsText(), Html::namespaceSelectorOptions(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), TitleBlacklistEntry::newFromString(), Title::newMainPage(), WikiImporter::notice(), Language::numLink(), JsonContent::objectTable(), RenameuserHooks::onContributionsToolLinks(), SpamBlacklistHooks::onUploadVerifyUpload(), CologneBlueTemplate::otherLanguages(), WebInstallerOutput::outputFooter(), WebInstallerOutput::outputTitle(), FormatJson::parse(), ConverterRule::parse(), SearchEngine::parseNamespacePrefixes(), Language::pipeList(), FileDeleteForm::prepareMessage(), CologneBlueTemplate::processBottomLink(), WikiPage::protectDescription(), LogFormatterTest::provideApiParamFormatting(), ApiErrorFormatterTest::provideErrorFormatter(), ApiMainTest::provideExceptionErrors(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CologneBlueTemplate::quickBar(), TextPassDumper::readDump(), AllMessagesTablePager::reallyDoQuery(), SpamRegexBatch::regexesFromMessage(), ExtParserFunctions::rel2abs(), ImageMap::render(), InputBox::render(), VectorTemplate::renderPortal(), WikitextContent::replaceSection(), SpecialPageTest::requireLoginAnonProvider(), WikiEditorHooks::resourceLoaderGetConfigVars(), Linker::revComment(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), Linker::revUserLink(), Linker::revUserTools(), DoubleRedirectJob::run(), CologneBlueTemplate::searchForm(), Language::semicolonList(), User::sendConfirmationMail(), EmailNotification::sendImpersonal(), User::sendMail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), User::setEmailWithConfirmation(), FileDeleteForm::setHeaders(), WikiImporter::setTargetRootPage(), Article::showDiffPage(), WebInstallerUpgrade::showDoneMessage(), WebInstaller::showError(), FileDeleteForm::showForm(), QuestyCaptcha::showHelp(), SimpleCaptcha::showHelp(), WebInstallerExistingWiki::showKeyForm(), WebInstaller::showMessage(), Article::showMissingArticle(), Article::showNamespaceHeader(), Article::showPatrolFooter(), SpecialUpload::showUploadWarning(), SpecialVersion::softwareInformation(), Linker::specialLink(), WebInstaller::startPageWrapper(), WebInstallerInstall::startStage(), UploadStash::stashFile(), WebInstallerName::submit(), SpecialEmailUser::submit(), CologneBlueTemplate::sysLinks(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetRequestByName(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), StatusTest::testHasMessage(), SpecialBlankPageTest::testHasWikiMsg(), XmlTest::testLanguageSelector(), LogFormatterTest::testLogParamsTypeMsg(), LogFormatterTest::testLogParamsTypeMsgContent(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ResourcesTest::testMissingMessages(), CaptchaPreAuthenticationProviderTest::testPostAuthentication(), CaptchaPreAuthenticationProviderTest::testPostAuthentication_disabled(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), ExtraParserTest::testTrackingCategory(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ExtParserFunctions::timeCommon(), Linker::titleAttrib(), Linker::tocList(), ExtParserFunctions::tooLongError(), File::transformErrorOutput(), BitmapHandler::transformGd(), MediaWikiI18N::translate(), Language::truncate(), Language::truncateHtml(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), PageArchive::undeleteRevisions(), StripState::unstripCallback(), TitleBlacklistHooks::userCan(), Linker::userTalkLink(), Linker::userToolLinks(), SpamBlacklistHooks::validate(), TitleBlacklistHooks::validateBlacklist(), Article::view(), Language::viewPrevNext(), Article::viewRedirect(), wfGenerateThumbnail(), wfStreamThumb(), MediaWiki\Session\ImmutableSessionProviderWithCookie::whyNoSession(), and MediaWiki\Session\CookieSessionProvider::whyNoSession().

Variable Documentation

◆ $abortMsg

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& $abortMsg

Definition at line 246 of file hooks.txt.

◆ $article

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 & $article

◆ $attribs

either a unescaped string or a HtmlArmor object & $attribs

Definition at line 1956 of file hooks.txt.

Referenced by PPNode_Hash_Tree::__toString(), OutputPage::addElement(), HTMLForm::addHiddenField(), MediaWiki\Tidy\Balancer::advance(), MediaWiki\Linker\LinkRenderer::buildAElement(), ProtectionForm::buildForm(), Xml::buildTable(), Xml::buildTableRow(), EditPage::buildTextboxAttribs(), Xml::check(), Html::check(), Xml::checkLabel(), EditPage::displayPreviewArea(), XMPReader::doAttribs(), WebInstaller::docLink(), Skin::doEditSectionLink(), Html::dropDefaults(), Xml::element(), Html::element(), Xml::elementClean(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), Xml::expandAttributes(), Html::expandAttributes(), Xml::fieldset(), CategoryViewer::formatList(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), SpecialUndelete::formatRevisionRow(), HTMLForm::formatSection(), HTMLComboboxField::getAttributes(), HTMLAutoCompleteSelectField::getAttributes(), OOUIHTMLForm::getButtons(), VFormHTMLForm::getButtons(), HTMLForm::getButtons(), DatabaseInstaller::getCheckBox(), EditPage::getCheckboxes(), MediaTransformOutput::getDescLinkAttribs(), EditPage::getEditButtons(), VFormHTMLForm::getFormAttributes(), HTMLForm::getFormAttributes(), HTMLForm::getHiddenFields(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), CategoryViewer::getHTML(), RevDelRevisionItem::getHTML(), HTMLSizeFilterField::getInputHTML(), HTMLFancyCaptchaField::getInputHTML(), HTMLReCaptchaField::getInputHTML(), HTMLTextAreaField::getInputHTML(), HTMLTextField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), Licenses::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLComboboxField::getInputOOUI(), HTMLSelectField::getInputOOUI(), HTMLTextAreaField::getInputOOUI(), HTMLTextField::getInputOOUI(), UploadSourceField::getLabelHtml(), TablePager::getLimitSelect(), IRCColourfulRCFeedFormatter::getLine(), HTMLMultiSelectField::getOneCheckbox(), HTMLCheckMatrix::getOneCheckbox(), DatabaseInstaller::getPasswordBox(), EditPage::getPreviewText(), LogFormatter::getRestrictedElement(), DatabaseInstaller::getTextBox(), HTMLTextField::getType(), UserrightsPage::groupCheckboxes(), Html::hidden(), HistoryPager::historyLine(), Html::htmlHeader(), MediaWiki\Tidy\Balancer::inBodyMode(), MediaWiki\Tidy\Balancer::inCaptionMode(), MediaWiki\Tidy\Balancer::inCellMode(), MediaWiki\Tidy\Balancer::inColumnGroupMode(), Poem::indentVerse(), MediaWiki\Tidy\Balancer::inHeadMode(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), MediaWiki\Tidy\Balancer::inRowMode(), MediaWiki\Tidy\Balancer::inSelectInTableMode(), MediaWiki\Tidy\Balancer::inSelectMode(), MediaWiki\Tidy\BalanceStack::insertForeignElement(), MediaWiki\Tidy\Balancer::insertForeignToken(), MediaWiki\Tidy\BalanceStack::insertHTMLElement(), MediaWiki\Tidy\Balancer::insertToken(), MediaWiki\Tidy\Balancer::inTableBodyMode(), MediaWiki\Tidy\Balancer::inTableMode(), MediaWiki\Tidy\Balancer::inTableTextMode(), MediaWiki\Tidy\Balancer::inTemplateMode(), MediaWiki\Tidy\Balancer::inTextMode(), Xml::label(), Html::label(), Xml::listDropDown(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), TestRecentChangesHelper::makeLogRecentChange(), Linker::makeMediaLinkFile(), TestRecentChangesHelper::makeNewBotEditRecentChange(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), TestRecentChangesHelper::makeRecentChange(), SpecialInterwiki::makeTable(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), Revision::newFromArchiveRow(), Xml::openElement(), Html::openElement(), Xml::option(), SpecialRecentChanges::optionsPanel(), Licenses::outputOption(), MediaWiki\Tidy\Balancer::parseRawText(), Xml::password(), CoreTagHooks::pre(), Xml::radio(), Html::radio(), Xml::radioLabel(), Html::rawElement(), ImageMap::render(), Poem::renderPoem(), LinkHolderArray::replaceInternal(), RecentChange::setAttribs(), ImageGalleryBase::setAttributes(), SpecialImport::showForm(), EditPage::showTextbox(), EditPage::showTextbox1(), Xml::span(), TextPassDumper::startElement(), XMPReader::startElement(), XMPReader::startElementModeInitial(), XMPReader::startElementModeLi(), XMPReader::startElementModeLiLang(), XMPReader::startElementModeSimple(), XMPReader::startElementModeStruct(), LogFormatter::styleRestricedElement(), Xml::submitButton(), MediaWiki\Tidy\Balancer::switchModeAndReprocess(), Xml::tags(), SideBarTest::testRespectExternallinktarget(), SideBarTest::testRespectWgnofollowlinks(), SideBarTest::testTestAttributesAssertionHelper(), Xml::textarea(), Html::textarea(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), Linker::tooltipAndAccesskeyAttribs(), Linker::userToolLinks(), and Xml::wrapClass().

◆ $auto

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 true if there is text before this autocomment $auto

◆ $changesList

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges $changesList

Definition at line 1459 of file hooks.txt.

Referenced by ChangesList::getArticleLink().

◆ $code

static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define $code
inline

Definition at line 783 of file hooks.txt.

Referenced by LocalisationUpdate\JSONReader::__construct(), UsageException::__construct(), MediaWiki\Session\MetadataMergeException::__construct(), LocalizedException::__construct(), ApiQueryBacklinks::__construct(), ApiMain::__construct(), ApiMessage::__construct(), ApiRawMessage::__construct(), ZipDirectoryReaderError::__construct(), ApiErrorFormatter::addError(), ApiBase::addError(), Language::addMagicWordsByLang(), ApiErrorFormatter::addWarning(), ApiBase::addWarning(), ApiTestCase::apiExceptionHasCode(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), SkinTemplate::buildContentNavigationUrls(), Language::classFromCode(), MessageCache::clear(), ApiMessage::create(), Language::dateTimeObjFormat(), ApiBase::dieWithError(), ApiBase::dieWithErrorOrDebug(), RebuildLocalisationCache::doRebuild(), ImagePage::doRenderLangOpt(), ApiCSPReport::error(), ZipDirectoryReader::error(), ApiMain::errorMessagesFromException(), PageExists::execute(), EmailInvalidation::execute(), DateFormats::execute(), GenerateNormalizerDataAr::execute(), Digit2Html::execute(), EmailConfirmation::execute(), FindDeprecated::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialJavaScriptTest::exportQUnit(), Language::factory(), SpecialNewpages::feedTitle(), QueryPage::feedTitle(), LocalisationUpdate\HttpFetcher::fetchDirectory(), Language::fetchLanguageName(), SpecialMyLanguage::findTitle(), Language::firstChar(), TagHookTest::functionTagCallback(), LCStoreDB::get(), LCStoreCDB::get(), LCStoreStaticArray::get(), MessageCache::getAllMessageKeys(), ClassCollector::getClasses(), LocalisationCache::getCompiledPluralRules(), SpecialCiteThisPage::getContentText(), Language::getFallbackFor(), Language::getFallbacksFor(), Language::getFallbacksIncludingSiteLanguage(), LCStoreCDB::getFileName(), Language::getFileName(), SpecialPageLanguage::getFormFields(), LocalisationCacheBulkLoad::getItem(), LocalisationCache::getItem(), Language::getJsonMessagesFileName(), RequestContext::getLanguage(), WebInstallerLanguage::getLanguageSelector(), WANObjectCache::getLastError(), MessageCache::getLocalCache(), HttpStatus::getMessage(), Language::getMessageFor(), MessageCache::getMessageForLang(), Language::getMessageKeysFor(), Language::getMessagesFileName(), Language::getMessagesFor(), MessageCache::getMsgFromNamespace(), Language::getParentLanguage(), LocalisationCache::getPluralRules(), LocalisationCache::getPluralRuleTypes(), LocalisationUpdate\ReaderFactory::getReader(), SpecialPageAliasTest::getSpecialPageAliases(), LocalisationCacheBulkLoad::getSubitem(), LocalisationCache::getSubitem(), LocalisationCache::getSubitemList(), MessageCache::getValidationHash(), Language::getVariantname(), HttpStatus::header(), LocalisationCache::initLanguage(), EditPage::internalAttemptSave(), LocalisationCache::isExpired(), Language::isSupportedLanguage(), Language::isValidBuiltInCode(), Language::isValidCode(), Language::isWellFormedLanguageTag(), CoreParserFunctions::language(), Xml::languageSelector(), MessageCache::load(), MessageCache::loadFromDB(), MessageCache::loadFromDBWithLock(), LocalisationCache::loadItem(), LocalisationCache::loadPluralFile(), LocalisationCache::loadSubitem(), LocalisationCache::mergeExtensionItem(), Language::newFromCode(), User::newFromConfirmationCode(), ApiUsageException::newWithMessage(), SwiftFileBackend::onError(), LocalisationUpdate::onRecache(), LocalisationUpdate::onRecacheFallback(), OutputPage::output(), FormatJson::parse(), XMPReader::parse(), ApiStashEdit::parseAndStash(), SpecialUpload::processUpload(), SpecialUpload::processVerificationError(), Preferences::profilePreferences(), LocalisationUpdate\Updater::readMessages(), LocalisationCache::readSourceFilesAndRegisterDeps(), LocalisationCacheBulkLoad::recache(), LocalisationCache::recache(), MessageCache::replace(), DbTestPreviewer::report(), ApiQueryBacklinks::run(), RequestContext::sanitizeLangCode(), MessageCache::saveToCaches(), MessageCache::saveToLocalCache(), setApiCode(), Language::setCode(), ApiFormatBase::setHttpStatus(), AjaxResponse::setResponseCode(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), MWHttpRequest::setStatus(), MessageCache::setValidationHash(), ChangesList::showCharacterDifference(), SpecialUploadStash::showUpload(), Language::sprintfDate(), LCStoreStaticArray::startWrite(), LCStoreDB::startWrite(), LCStoreCDB::startWrite(), WebResponse::statusHeader(), MWException::statusHeader(), MWExceptionRenderer::statusHeader(), WfBCP47Test::testBCP47(), LanguageTest::testBuiltInCodeValidation(), LanguageTest::testGetParentLanguage(), ApiMessageTest::testInvalidCode(), LanguageTest::testIsSupportedLanguage(), JavaScriptMinifierTest::testJavaScriptMinifierOutput(), LanguageTest::testKnownLanguageTag(), LanguageTest::testMalformedLanguageTag(), LocalisationCacheTest::testRecacheFallbacksWithHooks(), LanguageTest::testUnknownLanguageTag(), LanguageTest::testWellFormedLanguageTag(), LocalisationCacheBulkLoad::trimCache(), LocalisationCacheBulkLoad::unload(), LocalisationCache::unload(), and SpecialPageAliasTest::validSpecialPageAliasesProvider().

◆ $colours

if the prop value should be in the metadata multi language array can modify can modify indexed by page_id& $colours

Definition at line 1630 of file hooks.txt.

Referenced by LinkHolderArray::doVariants(), and LinkHolderArray::replaceInternal().

◆ $content

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 $content

Definition at line 1049 of file hooks.txt.

Referenced by InfoAction::addTable(), EditPageTest::assertEdit(), ResourceLoaderModule::buildContent(), ApiStashEdit::checkCache(), Revision::checkContentModel(), XMPReader::checkParseSafety(), CleanupSpam::cleanupArticle(), ConfirmEditHooks::confirmEditMerged(), SimpleCaptcha::confirmEditMerged(), Installer::createMainpage(), WikiPageTest::createPage(), RevisionStorageTest::createPage(), TestPageProps::createPage(), EditPage::displayPermissionsError(), EditPage::displayViewSourcePage(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), WikiPage::doCreate(), WikiPage::doDeleteArticleReal(), Article::doDeleteUpdates(), WikiPage::doDeleteUpdates(), WikiPage::doEditContent(), Article::doEditContent(), DifferenceEngineTest::doEdits(), WikiPage::doEditUpdates(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), WikiPage::doModify(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), EditPage::doPreviewParse(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestStreamFile(), FileBackendTest::doTestStreamFileRange(), CompareParserCache::execute(), ApiEditPage::execute(), ViewCLI::execute(), ApiPurge::execute(), MakeTestEdits::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), EditCLI::execute(), ApiStashEdit::execute(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiFeedContributions::feedItemDesc(), Article::fetchContentObject(), Xml::fieldset(), SpamBlacklistHooks::filterMergedContent(), WikiImporter::finishImportPage(), RefreshLinks::fixLinksFromArticle(), RefreshLinks::fixRedirect(), FormatMetadata::flattenArrayReal(), CoreTagHooks::gallery(), AutoloadGenerator::generatePHPAutoload(), BaseTemplate::getAfterPortlet(), ContentHandler::getAutoDeleteReason(), FindHooks::getBadHooksFromFile(), CategoryMembershipChangeJob::getCategoriesAtRev(), ResourceLoaderWikiModule::getContent(), ApiStashEdit::getContentHash(), ResourceLoaderWikiModule::getContentObj(), Article::getContentObject(), EditPage::getContentObject(), ContentHandler::getContentText(), EditPage::getCurrentContent(), ContentHandler::getDataForSearchIndex(), Article::getDeletionUpdates(), WikiPage::getDeletionUpdates(), LocalFile::getDescriptionText(), ContentHandler::getForContent(), GadgetDefinitionNamespaceRepo::getGadget(), FindHooks::getHooksFromFile(), FindHooks::getHooksFromLocalDoc(), ChangeTagsRevisionItem::getHTML(), ChangeTagsLogItem::getHTML(), RevDelRevisionItem::getHTML(), BaseTemplate::getIndicators(), MessageCache::getMessageTextFromContent(), PNGMetadataExtractor::getMetadata(), MessageCache::getMsgFromNamespace(), EditPage::getOriginalContent(), ContentHandler::getPageViewLanguage(), WikitextStructureTest::getParserOutput(), EditPage::getPreloadedContent(), EditPage::getPreviewText(), RawAction::getRawText(), LogFormatter::getRestrictedElement(), BaseTemplate::getSidebar(), ResourceLoaderFileModule::getTemplates(), FileBackendGroup::guessMimeInternal(), DumpRenderer::handleRevision(), FixDefaultJsonContentPages::handleRow(), CoreTagHooks::html(), CheckStorage::importRevision(), CoreTagHooks::indicator(), EditPage::initialiseForm(), WikiPage::insertRedirect(), EditPage::internalAttemptSave(), WikiPage::isCountable(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), JobRunner::loadBackoffs(), SimpleCaptcha::loadText(), MessageCacheTest::makePage(), LinkFilter::matchEntry(), Gadget::newFromDefinitionContent(), RevisionTest::newTestRevision(), CoreTagHooks::nowiki(), ConfirmEditHooks::onAlternateEditPreview(), onContentGetParserOutput(), GadgetHooks::onEditFilterMergedContent(), SpamBlacklistHooks::onUploadVerifyUpload(), InfoAction::onView(), SpecialUploadStash::outputContents(), XMPReader::parse(), ApiStashEdit::parseAndStash(), XMPReader::parseExtended(), RebuildTextIndex::populateSearchIndex(), CoreTagHooks::pre(), WikiPage::prepareContentForEdit(), Article::prepareContentForEdit(), PreprocessDump::processRevision(), CompareParsers::processRevision(), FileBackendTest::provider_testConcatenate(), CologneBlueTemplate::renderAfterPortlet(), MonoBookTemplate::renderPortals(), VectorTemplate::renderPortals(), DoubleRedirectJob::run(), RefreshLinksJob::runForTitle(), BenchmarkParse::runParser(), EditPage::runPostMergeFilters(), DummyNonTextContentHandler::serializeContent(), DummyContentHandlerForTesting::serializeContent(), TextContentHandler::serializeContent(), ParserOutput::setIndicator(), EditPage::setPreloadedContent(), ParserOptions::setupFakeRevision(), BaseDumpTest::setUpPrefetch(), TextPassDumperDatabaseTest::setUpStub(), SimpleCaptcha::shouldCheck(), EditPage::showEditForm(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), LogFormatter::styleRestricedElement(), JobRunner::syncBackoffDeltas(), JavaScriptContentTest::testAddSectionHeader(), TextContentTest::testCopy(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), TextContentTest::testDeletionUpdates(), WikiPageTest::testDoEditContent(), ApiEditPageTest::testEditAppend(), ContentHandlerTest::testGetAutosummary(), WikiPageTest::testGetContent(), RevisionTest::testGetContent(), RevisionTest::testGetContentClone(), CssContentTest::testGetContentHandler(), JavaScriptContentTest::testGetContentHandler(), TextContentTest::testGetContentHandler(), ContentHandlerTest::testGetContentText_NonTextContent_fail(), ContentHandlerTest::testGetContentText_NonTextContent_ignore(), ContentHandlerTest::testGetContentText_NonTextContent_serialize(), ContentHandlerTest::testGetContentText_Null(), ContentHandlerTest::testGetContentText_TextContent(), RevisionTest::testGetContentUncloned(), FileBackendTest::testGetFileContents(), FileBackendTest::testGetFileHttpUrl(), FileBackendTest::testGetFileStat(), HttpErrorTest::testGetHtml(), FileBackendTest::testGetLocalCopy(), FileBackendTest::testGetLocalReference(), CssContentTest::testGetModel(), JavaScriptContentTest::testGetModel(), TextContentTest::testGetModel(), TextContentTest::testGetNativeData(), TextContentTest::testGetParserOutput(), CssContentTest::testGetRedirectTarget(), TextContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikitextContentTest::testGetSecondaryDataUpdates(), TextContentTest::testGetSize(), TextContentTest::testGetTextForSearchIndex(), TextContentTest::testGetTextForSummary(), TextContentTest::testGetWikitextForTransclusion(), TextContentTest::testIsCountable(), TextContentTest::testIsEmpty(), TextContentTest::testIsRedirect(), ContentHandlerTest::testMakeContent(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeEmptyContent(), CssContentHandlerTest::testMakeRedirectContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), JavaScriptContentTest::testMatchMagicWord(), TextContentTest::testPreloadTransform(), TextContentTest::testPreSaveTransform(), RefreshLinksPartitionTest::testRefreshLinks(), WikitextContentHandlerTest::testSerializeContent(), MWHttpRequestTestCase::testSetCallback(), FileBackendTest::testStreamFile(), WikitextContentHandlerTest::testUnserializeContent(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), JavaScriptContentTest::testUpdateRedirect(), Xml::textarea(), EditPage::toEditContent(), EditPage::toEditText(), PageArchive::undeleteRevisions(), MessageCache::updateMessageOverride(), WikiPage::updateRevisionOn(), PopulateRevisionLength::upgradeRow(), Article::view(), and wfThumbError().

◆ $context

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

Definition at line 2612 of file hooks.txt.

Referenced by LogPage::addEntry(), MWDebug::appendDebugInfoToApiResult(), ChangesListSpecialPageTest::assertConditions(), ResourceLoaderModule::buildContent(), SpecialBookSources::buildForm(), ProtectionForm::buildForm(), ChangesListSpecialPage::buildQuery(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), ChangeTags::buildTagFilterSelector(), SpecialPageFactory::capturePath(), SpecialPageLanguage::changePageLanguage(), ResourceLoaderFileModule::compileLessFile(), ConfirmEditHooks::confirmEditMerged(), SimpleCaptcha::confirmEditMerged(), ResourceLoaderUserTokensModule::contextUserTokens(), ContentHandler::createDifferenceEngine(), RevisionDeleter::createList(), ApiPageSetTest::createPageSetWithRedirect(), Preferences::datetimePreferences(), MWDebug::debugMsg(), Article::delete(), ApiTestCase::doApiRequest(), SimpleCaptcha::doConfirmEdit(), Article::doDelete(), SpecialWatchlist::doHeader(), HttpError::doLog(), ActionTest::dummyActionCallback(), Preferences::editingPreferences(), SimpleCaptcha::editShowCaptcha(), ApiFormatTestBase::encodeData(), SpecialAutoblockList::execute(), SpecialBlockList::execute(), RebuildFileCache::execute(), PhpHttpRequest::execute(), SpecialEmailUser::execute(), SpecialPageFactory::executePath(), SpecialPageExecutor::executeSpecialPage(), Preferences::filesPreferences(), SpamBlacklistHooks::filterMergedContent(), DiffFormatter::format(), FeedUtils::formatDiffRow(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), PdfHandler::formatMetadata(), File::formatMetadata(), MediaHandler::formatMetadataHelper(), ChangeTags::formatSummaryRow(), MWCryptHKDF::generate(), MWCryptHKDF::generateHex(), DummyLinker::generateRollback(), Linker::generateRollback(), Preferences::generateSkinOptions(), ResourceLoaderStartUpModule::getAllModuleHashes(), AuthManagerSpecialPage::getAuthForm(), LoginSignupSpecialPage::getAuthForm(), CacheHelper::getCachedNotice(), SpecialEditWatchlist::getClearForm(), ResourceLoaderStartUpModule::getConfigSettings(), ActionTest::getContext(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), ResourceLoaderLanguageDataModule::getData(), ResourceLoaderLanguageNamesModule::getData(), Preferences::getDateOptions(), MWDebug::getDebugHTML(), MWDebug::getDebugInfo(), CiteDataModule::getDefinitionSummary(), ResourceLoaderSkinModule::getDefinitionSummary(), ResourceLoaderWikiModule::getDefinitionSummary(), ResourceLoaderStartUpModule::getDefinitionSummary(), ResourceLoaderImageModule::getDefinitionSummary(), ResourceLoaderFileModule::getDefinitionSummary(), ResourceLoaderForeignApiModule::getDependencies(), ResourceLoaderModule::getFileDependencies(), ResourceLoaderImageModule::getFileHashes(), ResourceLoaderFileModule::getFileHashes(), MWDebug::getFilesIncluded(), ResourceLoaderModule::getFlip(), ResourceLoaderFileModule::getFlip(), HTMLFancyCaptchaFieldTest::getForm(), Preferences::getFormObject(), ResourceLoaderImageModule::getGlobalVariants(), ResourceLoaderImage::getImageData(), ResourceLoaderImageModule::getImages(), Preferences::getImageSizes(), DummyLinker::getInvalidTitleDescription(), Linker::getInvalidTitleDescription(), ResourceLoaderEditToolbarModule::getLessVars(), UserGroupMembership::getLink(), ApiContinuationManagerTest::getManager(), ResourceLoaderModule::getMessageBlob(), ResourceLoaderModule::getModuleContent(), ResourceLoaderStartUpModule::getModuleRegistrations(), SpecialEditWatchlist::getNormalForm(), OldChangesListTest::getOldChangesList(), User::getOptionKinds(), ResourceLoaderUserModule::getPages(), ResourceLoaderUserStylesModule::getPages(), ResourceLoaderSiteModule::getPages(), ResourceLoaderSiteStylesModule::getPages(), ResourceLoaderImage::getPath(), Block::getPermissionsError(), Preferences::getPreferences(), SpecialEditWatchlist::getRawForm(), ManualLogEntry::getRecentChange(), CiteDataModule::getScript(), ResourceLoaderGeSHiVisualEditorModule::getScript(), ResourceLoaderUploadDialogModule::getScript(), ResourceLoaderJqueryMsgModule::getScript(), ResourceLoaderRawFileModule::getScript(), ResourceLoaderLanguageNamesModule::getScript(), ResourceLoaderUserOptionsModule::getScript(), ResourceLoaderLanguageDataModule::getScript(), ResourceLoaderStartUpModule::getScript(), ResourceLoaderFileModule::getScriptFiles(), ResourceLoaderGeSHiVisualEditorModule::getScriptURLsForDebug(), ResourceLoaderJqueryMsgModule::getScriptURLsForDebug(), ResourceLoaderModule::getScriptURLsForDebug(), ResourceLoaderStartUpModule::getStartupModulesUrl(), ChangesListSpecialPage::getStructuredFilterJsData(), ResourceLoaderImageModule::getStyleDeclarations(), ResourceLoaderFileModule::getStyleFiles(), ResourceLoaderSkinModule::getStyles(), ResourceLoaderImageModule::getStyles(), ResourceLoaderFileModule::getStyles(), ResourceLoaderModule::getStyleURLsForDebug(), ResourceLoaderFileModule::getStyleURLsForDebug(), TestRecentChangesHelper::getTestContext(), Preferences::getThumbSizes(), Preferences::getTimezoneOptions(), SpecialUpload::getUploadForm(), ResourceLoaderImage::getUrl(), ResourceLoaderModule::getVersionHash(), RequestContext::importScopedSession(), WikitextContent::isCountable(), HTMLFileCache::loadFromFileCache(), Preferences::loadPreferenceValues(), TestLogger::log(), ChangesListSpecialPage::makeLegend(), ContentHandler::makeParserOptions(), WikiPage::makeParserOptions(), Article::makeParserOptions(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RequestContext::newExtraneousContext(), ResourceFileCache::newFromContext(), ParserOptions::newFromContext(), Article::newFromTitle(), Article::newFromWikiPage(), ApiTestContext::newTestContext(), onApiFormatHighlight(), GadgetHooks::onEditFilterMergedContent(), SpecialRecentChanges::optionsPanel(), ResourceLoaderWikiModule::preloadTitleInfo(), SpecialTags::processCreateTagForm(), SpecialBlock::processForm(), SpecialTags::processTagForm(), SpecialUnblock::processUnblock(), Preferences::profilePreferences(), Preferences::rcPreferences(), ResourceLoaderFileModule::readStyleFile(), ResourceLoaderFileModule::readStyleFiles(), Preferences::renderingPreferences(), UserNotLoggedIn::report(), Wikimedia\Rdbms\LoadBalancer::reportConnectionError(), User::resetOptions(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ResourceLoaderModule::saveFileDependencies(), ResourceLoaderImage::sendResponseHeaders(), SpecialPage::setContext(), Article::setContext(), SpecialPageExecutor::setEditTokenFromUser(), ResourceLoaderModule::setFileDependencies(), Article::setOldSubtitle(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), SpecialMIMESearchTest::setUp(), ActionTest::setUp(), UploadFromUrlTestSuite::setUp(), SimpleCaptcha::shouldCheck(), Article::showRedirectedFromHeader(), SpecialPreferences::showResetForm(), SpecialUploadStash::showUploads(), Preferences::skinPreferences(), SpecialEmailUser::submit(), ChangeTags::tagDescription(), DerivativeResourceLoaderContextTest::testAccessors(), ActionTest::testActionFactory(), ApiMainTest::testApiErrorFormatterCreation(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), ResourceLoaderFileModuleTest::testBomConcatenation(), SpecialPreferencesTest::testBug41337(), ApiMainTest::testCheckConditionalRequestHeaders(), ResourceLoaderImageModuleTest::testContext(), ApiFormatPhpTest::testCrossDomainMangling(), ActionTest::testDisabledAction_isNotResolved(), ApiMainTest::testExceptionErrors(), SpecialWatchlistTest::testFetchOptionsFromRequest(), HTMLRestrictionsFieldTest::testForm(), ActionTest::testGetActionName(), ActionTest::testGetActionName_editredlinkWorkaround(), ActionTest::testGetActionName_historysubmitWorkaround(), ActionTest::testGetActionName_revisiondeleteWorkaround(), ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView(), ResourceLoaderTest::testGetCombinedVersion(), ResourceLoaderWikiModuleTest::testGetContent(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), ChangesListSpecialPageTest::testGetFilterConflicts(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ApiBaseTest::testGetParameterFromSettings(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderWikiModuleTest::testGetPreloadedBadTitle(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfo(), ResourceLoaderWikiModuleTest::testGetPreloadedTitleInfoEmpty(), ResourceLoaderImageModuleTest::testGetStyleDeclarations(), ResourceLoaderWikiModuleTest::testGetTitleInfo(), ResourceLoaderModuleTest::testGetVersionHash(), ApiPageSetTest::testHandleNormalization(), RequestContextTest::testImportScopedSession(), ResourceLoaderWikiModuleTest::testIsKnownEmpty(), DerivativeResourceLoaderContextTest::testLanguage(), ResourceLoaderTest::testLessFileCompilation(), ResourceLoaderTest::testMakeModuleResponseError(), ResourceLoaderTest::testMakeModuleResponseStartupError(), ActionTest::testNull_defaultsToView(), AbstractChangesListSpecialPageTestCase::testParseParameters(), SpecialSearchTest::testProfileAndNamespaceLoading(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ApiPageSetTest::testSpecialRedirects(), HTMLReCaptchaNoCaptchaFieldTest::testSubmit(), HTMLSubmittedValueFieldTest::testSubmit(), MediaWikiTest::testTryNormaliseRedirect(), ResourceLoaderModuleTest::testValidateScriptFile(), RequestContextTest::testWikiPageTitle(), Preferences::tryUISubmit(), ResourceFileCache::useFileCache(), HTMLFileCache::useFileCache(), Preferences::watchlistPreferences(), and wfThumbError().

◆ $customAttribs

◆ $differenceEngine

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs& $differenceEngine

Definition at line 1572 of file hooks.txt.

Referenced by ContentHandler::createDifferenceEngine().

◆ $e

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging $e
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 2122 of file hooks.txt.

Referenced by RedisConnRef::__call(), DatabaseTestHelper::__construct(), FakeDatabaseMysqlBase::__construct(), ORAResult::__construct(), SVGReader::__construct(), Wikimedia\Rdbms\LBFactory::__construct(), Wikimedia\Rdbms\LoadBalancer::__construct(), FSFileBackendList::__construct(), MemcachedClient::_flush_read_buffer(), RedisBagOStuff::add(), UploadFromChunks::addChunk(), BackupDumperPageTest::addDBData(), TextPassDumperDatabaseTest::addDBData(), BackupDumperLoggerTest::addDBData(), ApiQueryContinue2Test::addDBDataOnce(), ApiQueryContinueTest::addDBDataOnce(), ApiQueryBasicTest::addDBDataOnce(), FetchTextTest::addDBDataOnce(), MediaWikiPHPUnitTestListener::addError(), MediaWikiPHPUnitTestListener::addFailure(), MediaWikiPHPUnitTestListener::addIncompleteTest(), MediaWikiPHPUnitTestListener::addSkippedTest(), ApiTestCase::apiExceptionHasCode(), SVGMetadataExtractorTest::assertMetadata(), ApiQueryTestBase::assertResult(), MediaWiki\Tidy\Balancer::balance(), GadgetHooks::beforePageDisplay(), Wikimedia\Rdbms\LoadBalancer::beginMasterChanges(), SqlBagOStuff::cas(), RedisBagOStuff::changeTTL(), SqlBagOStuff::changeTTL(), ApiMain::checkConditionalRequestHeaders(), Sqlite::checkSqlSyntax(), CategoryViewer::clearCategoryState(), Wikimedia\Rdbms\LoadBalancer::commitAll(), Wikimedia\Rdbms\LBFactory::commitMasterChanges(), Wikimedia\Rdbms\LoadBalancer::commitMasterChanges(), Maintenance::commitTransaction(), UploadFromChunks::concatenateChunks(), SwiftFileBackend::convertSwiftDate(), Installer::createMainpage(), Preferences::datetimePreferences(), Wikimedia\Rdbms\Database::deadlockLoop(), RedisBagOStuff::delete(), SqlBagOStuff::delete(), Wikimedia\Rdbms\DatabaseMssql::delete(), Article::delete(), SqlBagOStuff::deleteAll(), Wikimedia\Rdbms\DatabaseMssql::deleteJoin(), SqlBagOStuff::deleteObjectsExpiringBefore(), Installer::dirIsExecutable(), profile_point::display(), EditPage::displayViewSourcePage(), JobQueueRedis::doAck(), JobQueueDB::doAck(), BitmapMetadataHandler::doApp13(), Wikimedia\Rdbms\Database::doAtomicSection(), JobQueueFederated::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), JobQueueFederated::doDeduplicateRootJob(), JobQueueRedis::doDeduplicateRootJob(), JobQueueFederated::doDelete(), JobQueueRedis::doDelete(), JobQueueDB::doDelete(), RedisBagOStuff::doGet(), JobQueueDB::doGetAbandonedCount(), JobQueueRedis::doGetAbandonedCount(), JobQueueDB::doGetAcquiredCount(), JobQueueRedis::doGetAcquiredCount(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), JobQueueRedis::doGetDelayedCount(), JobQueueFederated::doGetSiblingQueueSizes(), JobQueueRedis::doGetSiblingQueueSizes(), JobQueueFederated::doGetSiblingQueuesWithJobs(), JobQueueDB::doGetSize(), JobQueueRedis::doGetSize(), ImportLinkCacheIntegrationTest::doImport(), SpecialImport::doImport(), JobQueueDB::doIsEmpty(), JobQueueFederated::doIsEmpty(), JobQueueFederated::doIsRootJobOldDuplicate(), JobQueueRedis::doIsRootJobOldDuplicate(), DBFileJournal::doLogChangeBatch(), EventRelayerKafka::doNotify(), TestFileOpPerformance::doPerfTest(), JobQueueDB::doPop(), JobQueueFederated::doPop(), JobQueueRedis::doPop(), MediaWiki::doPostOutputShutdown(), AutoCommitUpdate::doUpdate(), DatabaseInstaller::doUpgrade(), WikiPage::doViewUpdates(), JobQueueFederated::doWaitForBackups(), TextPassDumper::dump(), WikiExporter::dumpFrom(), ApiMain::errorMessagesFromException(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), ValidateRegistrationFile::execute(), ApiQueryStashImageInfo::execute(), ApiImport::execute(), ApiUpload::execute(), JSParseHelper::execute(), DeleteArchivedFiles::execute(), InvalidateUserSesssions::execute(), GenerateCommonPassword::execute(), ApiFeedWatchlist::execute(), PPFuzzTester::execute(), GenerateFancyCaptchas::execute(), RefreshImageMetadata::execute(), ZipDirectoryReader::execute(), ApiMain::executeActionWithErrorHandling(), JobRunner::executeJob(), Scribunto_LuaParserFunctionsLibrary::expr(), ExtParserFunctions::expr(), Wikimedia\Rdbms\Database::factory(), DatabaseOracle::fieldInfoMulti(), Preferences::filterTimezoneInput(), TrackBlobs::findOrphanBlobs(), LCStoreDB::finishWrite(), LCStoreCDB::finishWrite(), MediaWiki\Logger\Monolog\LineFormatter::format(), MediaWiki\Logger\Monolog\AvroFormatter::format(), MediaWiki\Logger\LegacyLogger::format(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), MediaWikiTitleCodec::formatTitle(), RedisLockManager::freeLocksOnServer(), LCStoreCDB::get(), JobQueueRedis::getAllAbandonedJobs(), JobQueueRedis::getAllAcquiredJobs(), JobQueueRedis::getAllDelayedJobs(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesCached(), JobQueueRedis::getAllQueuedJobs(), LocalisationCache::getCompiledPluralRules(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), JobQueueFederated::getCrossPartitionSum(), ReverseChronologicalPager::getDateCond(), UploadForm::getDescriptionSection(), Status::getErrorMessageArray(), GadgetResourceLoaderModule::getGadget(), MWExceptionRenderer::getHTML(), BmpHandler::getImageSize(), MediaWiki\Interwiki\ClassicInterwikiLookup::getInterwikiCacheEntry(), JobQueueRedis::getJobFromUidInternal(), JobQueueDB::getJobIterator(), Wikimedia\Rdbms\LoadBalancer::getLaggedReplicaMode(), RequestContext::getLanguage(), RedisLockManager::getLocksOnServer(), MWExceptionHandler::getLogContext(), MWExceptionHandler::getLogMessage(), JobQueueDB::getMasterDB(), Wikimedia\Rdbms\DatabaseMysqlBase::getMasterServerInfo(), MimeAnalyzer::getMediaType(), GIFHandler::getMetadata(), PNGHandler::getMetadata(), TiffHandler::getMetadata(), JpegHandler::getMetadata(), SvgHandler::getMetadata(), DjVuHandler::getMetaTree(), ResourceLoaderStartUpModule::getModuleRegistrations(), RedisBagOStuff::getMulti(), SqlBagOStuff::getMulti(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getPassword(), MediaWikiTitleCodec::getPrefixedDBkey(), MWExceptionHandler::getPublicLogMessage(), MediaWiki\Logger\Monolog\KafkaHandler::getRandomPartition(), MWExceptionHandler::getRedactedTrace(), MWExceptionHandler::getRedactedTraceAsString(), JobQueueDB::getReplicaDB(), SearchEngine::getSearchIndexFields(), JobQueueRedis::getServerQueuesWithJobs(), MWExceptionRenderer::getShowBacktraceError(), NewFilesPager::getStartBody(), MWExceptionHandler::getStructuredExceptionData(), GadgetRepo::getStructuredList(), MWExceptionRenderer::getText(), TextPassDumper::getText(), LocalFile::getThumbnails(), SpecialRandomInCategory::getTimestampOffset(), ContentHandler::getUndoContent(), ParserFuzzTest::guessVarSize(), ApiMain::handleApiBeforeMainException(), MWExceptionHandler::handleError(), RedisConnectionPool::handleError(), MWExceptionHandler::handleException(), RedisBagOStuff::handleException(), ApiMain::handleException(), VersionChecker::handleExtensionDependency(), Wikimedia\Rdbms\Database::handleSessionLoss(), ApiUpload::handleStashException(), ExtParserFunctions::ifexpr(), EditPage::importFormData(), Installer::includeExtensions(), RedisBagOStuff::incr(), SqlBagOStuff::incr(), Wikimedia\Rdbms\DatabaseMssql::insert(), DatabaseOracle::insertOneRow(), DBLockManager::isServerUp(), SiteStats::jobs(), MWExceptionHandler::jsonSerializeException(), DatabaseOracle::lastErrno(), DatabaseOracle::lastError(), Wikimedia\Rdbms\DatabaseSqlite::lastError(), HTMLRestrictionsField::loadDataFromRequest(), MimeAnalyzer::loadFiles(), ExtensionRegistry::loadFromQueue(), ProfilerOutputDb::log(), MWExceptionHandler::logError(), JobQueueFederated::logException(), MWExceptionHandler::logException(), FileOp::logFailure(), ApiMain::logRequest(), FormatMetadata::makeFormattedData(), Wikimedia\Rdbms\LoadBalancer::masterRunningReadOnly(), LocalFile::maybeUpgradeRow(), MediaWiki\Session\SessionProvider::mergeMetadata(), JSMinPlus::min(), MWException::msg(), MWExceptionRenderer::msg(), Wikimedia\Rdbms\DatabaseMssql::nativeInsertSelect(), FSFileBackendList::next(), MediaWiki\Logger\Monolog\LogstashFormatter::normalizeException(), MediaWiki\Logger\Monolog\LineFormatter::normalizeException(), MediaWiki\Logger\Monolog\LineFormatter::normalizeExceptionArray(), MWTimestamp::offsetForUser(), SpecialChangeContentModel::onSubmit(), Wikimedia\Rdbms\Database::onTransactionPreCommitOrIdle(), MysqlInstaller::openConnection(), OracleInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionWithParams(), Wikimedia\Rdbms\DatabaseSqlite::openFile(), OracleInstaller::openSYSDBAConnection(), MWExceptionRenderer::output(), OutputPage::output(), XMPReader::parse(), Installer::parse(), AjaxDispatcher::performAction(), ApiUpload::performStash(), JobQueue::pop(), PopulateContentModel::populateRevisionOrArchive(), PreprocessDump::processRevision(), MediaWiki\Logger\LegacyLoggerTest::provideInterpolate(), RecentChangesUpdateJob::purgeExpiredRows(), JobQueueGroup::pushLazyJobs(), ApiQueryContinueTestBase::query(), LocalisationUpdate\Updater::readMessages(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), QueryPage::recache(), Wikimedia\Rdbms\Database::reconnect(), JobQueueDB::recycleAndDeleteStaleJobs(), PoolCounterRedis::release(), PoolCounterRedis::releaseAll(), PostgreSqlLockManager::releaseAllLocks(), MySqlLockManager::releaseAllLocks(), MWExceptionHandler::report(), MWExceptionRenderer::reportHTML(), MWExceptionRenderer::reportOutageHTML(), FSFileBackendList::rewind(), MWExceptionHandler::rollbackMasterChangesAndLog(), TextPassDumper::rotateDb(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryWatchlist::run(), RefreshLinksJob::run(), JobRunner::run(), ApiQueryRecentChanges::run(), MediaWiki::run(), MWExceptionRenderer::runHooks(), Wikimedia\Rdbms\LoadBalancer::runMasterPostTrxCallbacks(), Wikimedia\Rdbms\Database::runOnTransactionIdleCallbacks(), Wikimedia\Rdbms\Database::runOnTransactionPreCommitCallbacks(), Wikimedia\Rdbms\Database::runTransactionListenerCallbacks(), DeferredUpdates::runUpdate(), MediaWiki\MediaWikiServices::salvage(), ResourceLoaderModule::saveFileDependencies(), DatabaseOracle::selectDB(), Wikimedia\Rdbms\DatabaseMssql::selectDB(), SamplingStatsdClient::send(), MediaWiki\Logger\Monolog\KafkaHandler::send(), UserMailer::sendInternal(), RedisBagOStuff::set(), LCStoreCDB::set(), VersionChecker::setCoreVersion(), RedisBagOStuff::setMulti(), SqlBagOStuff::setMulti(), MWHttpRequestTestCase::setUp(), JobQueueTest::setUp(), SqliteInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), MysqlInstaller::setupUser(), PostgresInstaller::setupUser(), MWExceptionRenderer::showBackTrace(), SpecialGadgets::showExportForm(), SpecialUploadStash::showUpload(), SpecialUploadStash::showUploads(), Wikimedia\Rdbms\Database::sourceFile(), MwSql::sqlDoQuery(), WebInstaller::startSession(), LCStoreCDB::startWrite(), MediaWikiTestCase::stashMwGlobals(), SpecialEmailUser::submit(), MssqlInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), ApiMain::substituteResultWithError(), ApiOptionsTest::testAnon(), ApiMainTest::testAssert(), ApiMainTest::testAssertUser(), UserNotLoggedInTest::testConstruction(), ReadOnlyErrorTest::testConstruction(), ErrorPageErrorTest::testConstruction(), ApiEditPageTest::testEditSection(), BadTitleErrorTest::testExceptionSetsStatusCode(), ThrottledErrorTest::testExceptionSetsStatusCode(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), ResourceLoaderTest::testGetLoadScript(), MWExceptionHandlerTest::testGetRedactedTrace(), DatabaseTest::testGetScopedLock(), MWExceptionTest::testisCommandLine(), MWExceptionTest::testIsLogable(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), ExtensionJsonValidationTest::testPassesValidation(), HtmlCheckMatrixTest::testPlainInstantiation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), ErrorPageErrorTest::testReport(), MWExceptionTest::testRunHooks(), WikitextContentHandlerTest::testSerializeContent(), UploadFromUrlTest::testSetupUrlDownload(), ApiQueryTest::testTitlePartToKey(), WikitextContentHandlerTest::testUnserializeContent(), ApiUploadTest::testUpload(), ApiUploadTest::testUploadChunks(), ApiUploadTest::testUploadMissingParams(), ApiUploadTest::testUploadRequiresToken(), ApiUploadTest::testUploadSameContent(), ApiUploadTest::testUploadSameFileName(), ApiUploadTest::testUploadStash(), ApiUploadTest::testUploadZeroLength(), MWExceptionTest::testUseMessageCache(), MWExceptionTest::testUseOutputPage(), JobQueueDB::throwDBException(), JobQueueRedis::throwRedisException(), BitmapHandler::transformImageMagickExt(), MediaWiki::triggerJobs(), JobQueueFederated::tryJobInsertions(), UploadFromChunks::tryStashFile(), Wikimedia\Rdbms\DatabaseMssql::update(), DatabaseOracle::update(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionSha1::upgradeRow(), Wikimedia\Rdbms\Database::upsert(), MWExceptionRenderer::useOutputPage(), Language::userAdjust(), HTMLTitleTextField::validate(), TitleBlacklist::validate(), XmlTypeCheck::validateFromInput(), ResourceLoaderModule::validateScriptFile(), PoolCounterRedis::waitForSlotOrNotif(), SpecialEditWatchlist::watchTitles(), wfGenerateThumbnail(), and wfStreamThumb().

◆ $editor

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections & $editor

◆ $engine

◆ $extTypes

presenting them properly to the user as errors is done by the caller return true use this to change the list & $extTypes

Definition at line 1459 of file hooks.txt.

◆ $flags

it s the revision text itself In either if gzip is the revision text is gzipped $flags

Definition at line 2749 of file hooks.txt.

Referenced by GanConverter::__construct(), ZhConverter::__construct(), KkConverter::__construct(), AutoloadGenerator::__construct(), ParserTestTopLevelSuite::__construct(), ProfilerXhprof::__construct(), GenericArrayObject::__construct(), ApiPageSet::__construct(), LanguageShi::__construct(), LanguageIu::__construct(), LanguageSr::__construct(), MemcachedClient::_load_items(), MemcachedClient::_set(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiResult::addValue(), ApiPageSet::addValues(), ApiErrorFormatter::addWarningOrError(), ConfirmEditHooks::APIGetAllowedParams(), ReCaptcha::APIGetAllowedParams(), MWLBFactory::applyDefaultConfig(), MediaWiki\Auth\AuthManager::autoCreateUser(), JobQueue::batchPush(), SpecialBlock::blockLogFlags(), PPFrame_Hash::cachedExpand(), PPFrame_DOM::cachedExpand(), PPTemplateFrame_Hash::cachedExpand(), PPTemplateFrame_DOM::cachedExpand(), Preprocessor::cacheGetTree(), Preprocessor::cacheSetTree(), MediaWiki\Auth\AuthManager::canCreateAccount(), CentralIdLookup::centralIdFromLocalUser(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), WikiPage::checkFlags(), Article::checkFlags(), TrackBlobs::checkIntegrity(), FileRepo::cleanupBatch(), WikiPage::commitRollback(), CompressOld::compressPage(), Revision::compressRevisionText(), FileRepo::concatenate(), WebPHandler::decodeExtendedChunkHeader(), Revision::decompressRevisionText(), CachedBagOStuff::delete(), StringUtils::delimiterReplace(), StringUtils::delimiterReplaceCallback(), JobQueueFederated::doBatchPush(), JobQueueDB::doBatchPush(), JobQueueRedis::doBatchPush(), JobQueueDB::doBatchPushInternal(), WikiPage::doCreate(), WikiPage::doEditContent(), Article::doEditContent(), CachedBagOStuff::doGet(), MemcachedBagOStuff::doGet(), ReplicatedBagOStuff::doGet(), MultiWriteBagOStuff::doGet(), SqlBagOStuff::doGet(), WikiPage::doModify(), FileBackendStore::doStreamFile(), SwiftFileBackend::doStreamFile(), MockSvgHandler::doTransform(), MockBitmapHandler::doTransform(), TransformationalImageHandler::doTransform(), PdfHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), SquidPurgeClient::doWrites(), Xhprof::enable(), StorageTypeStats::execute(), DumpRev::execute(), ApiCSPReport::execute(), FixT22757::execute(), ImportImages::execute(), Title::exists(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Revision::fetchFromConds(), Revision::fetchText(), FileRepo::findFile(), RepoGroup::findFiles(), LocalRepo::findFiles(), FileRepo::findFiles(), BlockLogFormatter::formatBlockFlags(), OldChangesList::formatChangeLine(), ContribsPager::formatRow(), File::generateAndSaveThumb(), File::generateBucketsIfNeeded(), ApiCSPReport::generateLogLine(), BagOStuff::get(), ApiPurge::getAllowedParams(), ApiWatch::getAllowedParams(), ApiImageRotate::getAllowedParams(), ApiSetNotificationTimestamp::getAllowedParams(), ApiFeedWatchlist::getAllowedParams(), ApiQueryLogEvents::getAllowedParams(), ApiQuery::getAllowedParams(), ApiPageSet::getAllowedParams(), Title::getArticleID(), ContentHandler::getAutosummary(), Title::getContentModel(), Title::getEarliestRevTime(), ApiBase::getFinalParams(), Title::getFirstRevision(), ApiCSPReport::getFlags(), DerivativeRequest::getHeader(), WebRequest::getHeader(), ApiQueryGeneratorBase::getHelpFlags(), ApiBase::getHelpFlags(), ApiHelp::getHelpInternal(), HTMLButtonField::getInputHTML(), LogFormatter::getIRCActionText(), Title::getLatestRevID(), Title::getLength(), ReplicatedBagOStuff::getMulti(), Title::getNextRevisionID(), User::getOptions(), Title::getPreviousRevisionID(), Revision::getRecentChange(), Revision::getRevisionText(), UIDGenerator::getSequentialPerNodeIDs(), HistoryBlobStub::getText(), Revision::getTimestampFromId(), SpecialVersion::getVersion(), BagOStuff::getWithSetCallback(), DBAccessObjectUtils::hasFlags(), User::idForName(), User::idFromName(), PPFrame_Hash::implodeWithFlags(), PPFrame_DOM::implodeWithFlags(), CheckStorage::importRevision(), WikiRevision::importUpload(), FSFileBackendList::initIterator(), Revision::insertOn(), EditPage::internalAttemptSave(), Title::isRedirect(), FixT22757::isUnbrokenStub(), User::load(), LocalFile::load(), Revision::loadFromConds(), User::loadFromDatabase(), OldLocalFile::loadFromDB(), LocalFile::loadFromDB(), User::loadFromId(), WikiPage::loadLastEdit(), SimpleCaptcha::loadText(), CentralIdLookup::localUserFromCentralId(), ApiCSPReport::logReport(), LocalIdLookup::lookupCentralIds(), LocalIdLookup::lookupUserNames(), WinCacheBagOStuff::merge(), ReplicatedBagOStuff::merge(), BagOStuff::merge(), SqlBagOStuff::merge(), BagOStuff::mergeViaLock(), moveToExternal(), CentralIdLookup::nameFromCentralId(), Revision::newFromConds(), User::newFromConfirmationCode(), Revision::newFromId(), Title::newFromID(), Revision::newFromPageId(), Revision::newFromTitle(), UIDGenerator::newRawUUIDv4(), UIDGenerator::newSequentialPerNodeID(), UIDGenerator::newSequentialPerNodeIDs(), UIDGenerator::newUUIDv4(), SpecialChangeContentModel::onSubmit(), SpecialUploadStash::outputLocallyScaledThumb(), SpecialUploadStash::outputThumbFromStash(), ConverterRule::parse(), ConverterRule::parseFlags(), JobQueueGroup::pop(), MediaWiki::preOutputCommit(), Preprocessor_Hash::preprocessToObj(), Preprocessor_DOM::preprocessToObj(), Preprocessor_DOM::preprocessToXml(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), JobQueue::push(), ChangesList::recentChangesFlags(), ApiResult::removeValue(), resolveStub(), DoubleRedirectJob::run(), MediaWiki\Session\SessionBackend::save(), StreamFile::send404Message(), HTTPFileStreamer::send404Message(), CachedBagOStuff::set(), ReplicatedBagOStuff::set(), MultiWriteBagOStuff::set(), SqlBagOStuff::set(), ApiResult::setContentField(), ApiResult::setContentValue(), ParserDiffTest::setFunctionHook(), ApiResult::setValue(), FileRepo::store(), FileRepo::storeBatch(), StoreBatchTest::storeit(), StreamFile::stream(), HTTPFileStreamer::stream(), ParserTestTopLevelSuite::suite(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), WikitextContentHandlerTest::testGetAutosummary(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), File::thumbName(), ForeignAPIFile::transform(), File::transform(), File::transformErrorOutput(), JobQueueFederated::tryJobInsertions(), WANObjectCache::unwrap(), LocalFile::upload(), MediaWiki\Auth\AuthManager::userExists(), DummyLinker::userToolLinks(), and Linker::userToolLinks().

◆ $generateHtml

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 the output can only depend on parameters provided to this hook not on global state $generateHtml

◆ $handler

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
inline
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 783 of file hooks.txt.

Referenced by EditPage::__construct(), Revision::__construct(), Revision::checkContentModel(), CleanupSpam::cleanupArticle(), MediaWiki\Logger\MonologSpi::createLogger(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), WikiPage::doEditContent(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), MovePageForm::doSubmit(), ApiImageRotate::execute(), ApiStashEdit::execute(), ImportImages::execute(), TextPassDumper::exportTransform(), ApiQueryRevisionsBase::extractRevisionInfo(), Article::generateReason(), ContentHandler::getAllContentFormats(), GadgetDefinitionContent::getAssocArray(), ResourceLoaderWikiModule::getContent(), WikiRevision::getContent(), Revision::getContentFormat(), Revision::getContentInternal(), EditPage::getCurrentContent(), FileContentHandler::getDataForSearchIndex(), ContentHandler::getForModelID(), MediaHandlerFactory::getHandler(), MediaWiki\Logger\MonologSpi::getHandler(), SpecialChangeContentModel::getOptionsForTitle(), EditPage::getOriginalContent(), EditPage::getPreloadedContent(), MWFileProps::getPropsFromPath(), SearchEngine::getSearchIndexFields(), WikiPage::getUndoContent(), EditPage::importFormData(), ContentHandler::makeContent(), EditPage::mergeChangesIntoContent(), LogFormatter::newFromEntry(), ImagePage::openShowImage(), SpecialUploadStash::parseKey(), PopulateContentModel::populateRevisionOrArchive(), WikiImporter::processRevision(), ResourceLoaderImage::rasterize(), MediaWikiTestCase::setTemporaryHook(), MediaWiki\Session\SessionManager::setupPHPSessionHandler(), EditPage::showConflict(), MovePageForm::showForm(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testBatchHandlesNullFormatterResult(), ContentHandlerTest::testDataIndexFields(), MediaWiki\Session\PHPSessionHandlerTest::testDisabled(), MediaWiki\Session\PHPSessionHandlerTest::testEnableFlags(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), ContentHandlerTest::testGetFieldsForSearchIndex(), ContentHandlerTest::testGetForTitle(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebPHandlerTest::testGetImageSize(), ContentHandlerTest::testGetModelForID(), ContentHandlerTest::testGetPageLanguage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testHandlesNullFormatterResult(), BitmapScalingTest::testImageArea(), JsonContentHandlerTest::testMakeEmptyContent(), ContentHandlerSanityTest::testMakeEmptyContent(), BitmapScalingTest::testNormaliseParams(), BitmapMetadataHandlerTest::testPNGNative(), BitmapMetadataHandlerTest::testPNGXMP(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Session\PHPSessionHandlerTest::testSessionHandling(), ContentHandlerTest::testSupportsCategories(), TextContentHandlerTest::testSupportsDirectEditing(), ContentHandlerTest::testSupportsDirectEditing(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), BitmapMetadataHandlerTest::testTiffByteOrder(), BitmapScalingTest::testTooBigImage(), BitmapScalingTest::testTooBigMustRenderImage(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\PHPSessionHandlerTest::testWrongInstance(), TraditionalImageGallery::toHTML(), and wfExtractThumbParams().

◆ $handlerParams

◆ $html

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& $html
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 1956 of file hooks.txt.

Referenced by GeSHi::__construct(), ImageGalleryBase::add(), CachedAction::addCachedHTML(), MathCaptcha::addCaptchaAPI(), WebInstallerOutput::addHTML(), WebInstallerOutput::addHTMLNoFlush(), MediaWikiTestCase::assertValidHtmlDocument(), MediaWikiTestCase::assertValidHtmlSnippet(), BenchmarkTidy::benchmark(), MediaWiki\Linker\LinkRenderer::buildAElement(), SpecialEditTags::buildCheckBoxes(), SpecialRevisionDelete::buildCheckBoxes(), Linker::buildRollbackLink(), HTMLForm::displaySection(), WebInstallerInstall::endStage(), BenchmarkTidy::execute(), ApiHelp::execute(), SpecialTrackingCategories::execute(), SpecialPageExecutor::executeSpecialPage(), ApiFeedContributions::feedItemDesc(), MathCaptcha::fetchMath(), TextContent::fillParserOutput(), ApiHelp::fixHelpLinks(), OldChangesList::formatChangeLine(), FeedUtils::formatDiffRow(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), SpecialGadgetUsage::formatResult(), HTMLForm::formatSection(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), CategoryViewer::generateLink(), LogEventsList::getActionSelector(), BaseTemplate::getAfterPortlet(), PreferencesForm::getButtons(), EditPage::getCheckboxesOOUI(), SpecialVersion::getCreditsForExtension(), MWDebug::getDebugHTML(), HTMLFormField::getDiv(), Title::getEditNotices(), BaseTemplate::getFooter(), ApiHelp::getHelp(), WebInstaller::getHelpBox(), HTMLForm::getHiddenFields(), JavaScriptContent::getHtml(), CssContent::getHtml(), QuickTemplate::getHTML(), MWExceptionRenderer::getHTML(), HTMLForm::getHTML(), SpecialPageExecutor::getHTMLFromSpecialPage(), HTMLFormField::getInline(), HTMLSizeFilterField::getInputHTML(), HTMLFancyCaptchaField::getInputHTML(), HTMLRadioField::getInputHTML(), HTMLMultiSelectField::getInputHTML(), HTMLCheckMatrix::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), HTMLFormField::getLabelHtml(), SkinTemplateTest::getMockOutputPage(), LoginSignupSpecialPage::getPageHtml(), MessageContent::getParserOutput(), SkinTemplate::getPersonalToolsList(), HTMLFormField::getRaw(), Article::getRedirectHeaderHtml(), HTMLCheckMatrix::getTableRow(), HTMLFormField::getTableRow(), BaseTemplate::getTrail(), ForeignAPIRepo::httpGetCached(), ImageGalleryBase::insert(), Xml::isWellFormedXmlFragment(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Skin::makeFooterIcon(), DummyLinker::makeHeadline(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), LogFormatter::makePageLink(), DummyLinker::makeSelfLinkObj(), Linker::makeSelfLinkObj(), ConfirmEditHooks::onAlternateEditPreview(), MediaWiki\Widget\Search\SearchFormWidget::optionsHtml(), CologneBlueTemplate::otherLanguages(), SpecialGadgetUsage::outputResults(), QueryPage::outputResults(), SpecialGadgetUsage::outputTableStart(), Installer::parse(), GeSHi::parse_code(), SpecialJavaScriptTest::plainQUnit(), BalancerTest::provideBalancerTests(), OldChangesList::recentChangesLine(), LogFormatterTestCase::removeSomeHtml(), MediaWiki\Widget\Search\DidYouMeanWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), CologneBlueTemplate::renderAfterPortlet(), MWExceptionRenderer::reportOutageHTML(), Linker::revDeleteLink(), Linker::revDeleteLinkDisabled(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), MediaWiki\Widget\Search\SearchFormWidget::shortDialogHtml(), WebInstaller::showHelpBox(), FileDuplicateSearchPage::showList(), WebInstaller::showMessage(), LogEventsList::showOptions(), SpecialTags::showTagList(), EnhancedChangesListTest::testBeginRecentChangesList_html(), EnhancedChangesListTest::testCategorizationLineFormatting(), EnhancedChangesListTest::testCategorizationLineFormattingWithRevision(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), EnhancedChangesListTest::testEndRecentChangesList(), SpecialBooksourcesTest::testExecute(), HTMLFancyCaptchaFieldTest::testGetHTML(), HttpErrorTest::testGetHtml(), StatusTest::testGetHtml(), HTMLFormTest::testGetHTML_empty(), TextContentTest::testGetParserOutput(), SpecialBlankPageTest::testHasWikiMsg(), HtmlAutoCompleteSelectFieldTest::testOptionalSelectElement(), EnhancedChangesListTest::testRecentChangesLine(), SpecialSearchTest::testRewriteQueryWithSuggestion(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), ImagePage::view(), ParserTestPrinter::wellFormed(), VFormHTMLForm::wrapForm(), OOUIHTMLForm::wrapForm(), HTMLForm::wrapForm(), PreferencesForm::wrapForm(), and SkinTemplate::wrapHTML().

◆ $image

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check $image
inline

Definition at line 783 of file hooks.txt.

Referenced by ApiQueryImageInfo::checkParameterNormalise(), MockBitmapHandler::doClientImage(), MockImageHandler::doFakeTransform(), MockBitmapHandler::doTransform(), MockSvgHandler::doTransform(), MockDjVuHandler::doTransform(), BitmapHandler_ClientOnly::doTransform(), TransformationalImageHandler::doTransform(), PdfHandler::doTransform(), DjVuHandler::doTransform(), SvgHandler::doTransform(), InitSiteStats::execute(), ImportImages::execute(), UploadDumper::fetchUsed(), RepoGroup::findFile(), RepoGroup::findFiles(), GIFHandler::formatMetadata(), PNGHandler::formatMetadata(), ExifBitmapHandler::formatMetadata(), PdfHandler::formatMetadata(), TransformationalImageHandler::getClientScalingThumbnailImage(), GIFHandler::getCommonMetaArray(), PNGHandler::getCommonMetaArray(), DjVuHandler::getDjVuImage(), ResourceLoaderImageModule::getFileHashes(), GIFHandler::getImageArea(), ImageHandler::getImageArea(), ResourceLoaderImageModuleTest::getImageMock(), ResourceLoaderImageModule::getImages(), ExifBitmapHandler::getImageSize(), PdfHandler::getImageSize(), DjVuHandler::getImageSize(), PNGHandler::getLongDesc(), GIFHandler::getLongDesc(), PdfHandler::getMetaArray(), PdfHandler::getMetadata(), DjVuHandler::getMetadata(), DjVuHandler::getMetaTree(), SearchNearMatcher::getNearMatchInternal(), MediaHandler::getPageDimensions(), PdfHandler::getPdfImage(), ImageHandler::getScriptedTransform(), ResourceLoaderImageModule::getStyleDeclarations(), ResourceLoaderImageModule::getStyles(), MediaHandler::getTransform(), PNGHandler::isAnimatedImage(), GIFHandler::isAnimatedImage(), WebPHandler::isAnimatedImage(), SpecialNuke::listForm(), ApiQueryImageInfo::mergeThumbParams(), JpegHandler::normaliseParams(), BitmapHandler_ClientOnly::normaliseParams(), TransformationalImageHandler::normaliseParams(), ImageHandler::normaliseParams(), BitmapHandler::normaliseParams(), SvgHandler::normaliseParams(), ConfirmEditHooks::onTitleReadWhitelist(), ImageMap::render(), ApiQueryDuplicateFiles::run(), ResourceLoaderImageTest::testGetExtension(), ResourceLoaderImageTest::testGetImageData(), ResourceLoaderImageTest::testGetPath(), ResourceLoaderImageModuleTest::testGetStyleDeclarations(), ResourceLoaderImageTest::testMassageSvgPathdata(), BitmapHandler::transformGd(), BitmapHandler::transformImageMagick(), ExifBitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), and RandomImageGenerator::writeImageWithApi().

◆ $incrBy

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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled $incrBy

Definition at line 2536 of file hooks.txt.

Referenced by User::pingLimiter().

◆ $ldapServer

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could $ldapServer

Definition at line 192 of file hooks.txt.

◆ $limit

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive $limit

Definition at line 1049 of file hooks.txt.

Referenced by ApiResult::addParsedLimit(), Maintenance::adjustMemoryLimit(), Wikimedia\Rdbms\LoadBalancer::approveMasterChanges(), IndexPager::buildQueryInfo(), buildSearchEngine(), ImageListPager::combineResult(), Title::countAuthorsBetween(), PrefixSearch::defaultSearchBackend(), DBFileJournal::doGetChangeEntries(), SpecialRecentChangesLinked::doMainQuery(), WikiPage::doUpdateRestrictions(), Article::doUpdateRestrictions(), Installer::envCheckMemory(), SpecialNuke::execute(), ApiQueryTags::execute(), ApiQueryDeletedrevs::execute(), ApiQueryFilearchive::execute(), SpecialExport::execute(), ApiFeedContributions::execute(), UpdateSpecialPages::execute(), ApiQueryLogEvents::execute(), ApiQueryPagePropNames::execute(), ApiQueryContributions::execute(), ApiQueryAllUsers::execute(), GenerateCommonPassword::execute(), ImportImages::execute(), ApiBase::explodeMultiValue(), ApiQueryInfo::extractPageInfo(), IndexPager::extractResultInfo(), HistoryAction::feed(), SpecialNewpages::feed(), HistoryAction::fetchRevisions(), DiffEngine::find_middle_snake(), LocalRepo::findFilesByPrefix(), DiffEngine::findMostProgress(), User::findUsersByGroup(), WikiPage::flattenRestrictions(), Title::getAuthorsBetween(), FileJournal::getChangeEntries(), SwiftFileBackend::getDirListPageInternal(), SwiftFileBackend::getFileListPageInternal(), LocalFile::getHistory(), IndexPager::getLimitLinks(), WebRequest::getLimitOffset(), TablePager::getLimitSelectList(), HashRing::getLiveLocations(), HashRing::getLocations(), Category::getMembers(), DifferenceEngine::getMultiNotice(), SpecialNuke::getNewPages(), SpecialWhatLinksHere::getPrevNext(), Title::getSubpages(), Pingback::getSystemInfo(), WANCacheReapUpdate::getTitleChangeEvents(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), PrefixSearch::handleResultFromHook(), ImagePage::imageLinks(), Article::insertProtectNullRevision(), DifferenceEngine::intermediateEditsMsg(), Wikimedia\Rdbms\DatabaseMssql::limitResult(), Wikimedia\Rdbms\Database::limitResult(), SpecialNuke::listForm(), Preprocessor_DOM::memCheck(), Maintenance::memoryLimit(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialRecentChanges::outputChangesList(), PurgeChangedPages::pageableSortedRows(), SwiftFileBackendDirList::pageFromList(), SwiftFileBackendFileList::pageFromList(), Wikimedia\Rdbms\DatabasePostgres::pg_array_parse(), User::pingLimiter(), SpecialPage::prefixSearchArray(), SpecialPage::prefixSearchString(), SpecialCiteThisPage::prefixSearchSubpages(), SpecialListFiles::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialPageLanguage::prefixSearchSubpages(), SpecialRecentChangesLinked::prefixSearchSubpages(), SpecialChangeContentModel::prefixSearchSubpages(), SpecialPrefixindex::prefixSearchSubpages(), SpecialNuke::prefixSearchSubpages(), SpecialAllPages::prefixSearchSubpages(), SpecialRenameuser::prefixSearchSubpages(), SpecialPage::prefixSearchSubpages(), SpecialEmailUser::prefixSearchSubpages(), SpecialWhatLinksHere::prefixSearchSubpages(), SpecialContributions::prefixSearchSubpages(), MovePageForm::prefixSearchSubpages(), UserrightsPage::prefixSearchSubpages(), SpecialBlock::prefixSearchSubpages(), SpecialUndelete::prefixSearchSubpages(), Article::protectDescription(), WikiPage::protectDescription(), Article::protectDescriptionLog(), WikiPage::protectDescriptionLog(), ImagePage::queryImageLinks(), DeletedContribsPager::reallyDoQuery(), ContribsPager::reallyDoQuery(), AllMessagesTablePager::reallyDoQuery(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), MagicWord::replace(), SearchExactMatchRescorer::rescore(), ApiQueryPrefixSearch::run(), ApiQueryExtLinksUsage::run(), ApiQuerySearch::run(), ApiQueryPagesWithProp::run(), ApiQueryCategoryMembers::run(), ApiQueryAllPages::run(), ApiQueryAllImages::run(), ApiQueryAllLinks::run(), ApiQueryRandom::runQuery(), ExtParserFunctions::runReplace(), UserNamePrefixSearch::search(), PrefixSearch::search(), PrefixSearch::searchBackend(), SearchEnginePrefixTest::searchProvision(), PrefixSearchTest::searchProvision(), PrefixSearch::searchWithVariants(), IndexPager::setLimit(), SpecialWhatLinksHere::showIndirectLinks(), SearchSuggestionSet::shrink(), PrefixSearch::specialSearch(), SyncFileBackend::syncBackends(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_overLimit(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_underLimit(), MergeHistoryTest::testIsValidMergeRevisionLimit(), PrefixSearch::titleSearch(), ApiBase::truncateArray(), Article::updateRestrictions(), and Language::viewPrevNext().

◆ $link

usually copyright or history_copyright This message must be in HTML not wikitext& $link

Definition at line 2929 of file hooks.txt.

Referenced by LinksUpdate::__construct(), ImageGalleryBase::add(), OutputPage::addHelpLink(), OutputPage::addReturnTo(), Skin::addToSidebarPlain(), RCCacheEntryFactoryTest::assertQueryLink(), SkinTemplate::buildContentNavigationUrls(), OutputPage::buildCssLinksArray(), ProtectionForm::buildForm(), SpecialEditWatchlist::buildRemoveLine(), Article::confirmDelete(), DifferenceEngine::deletedIdMarker(), MovePageForm::doSubmit(), SpecialRenameuser::execute(), SpecialApiHelp::execute(), VectorTemplate::execute(), DumpLinks::execute(), SpecialNewpages::filterLinks(), ShiConverter::findVariantLink(), SrConverter::findVariantLink(), IuConverter::findVariantLink(), KuConverter::findVariantLink(), StubUserLang::findVariantLink(), KkConverter::findVariantLink(), Language::findVariantLink(), Linker::formatAutocomments(), ApiParse::formatCategoryLinks(), DateFormatter::formatDate(), ApiParse::formatLangLinks(), AncientPagesPage::formatResult(), MostcategoriesPage::formatResult(), MostinterwikisPage::formatResult(), MostlinkedPage::formatResult(), DeletedContribsPager::formatRevisionRow(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), ContribsPager::formatRow(), ImageListPager::formatValue(), CategoryViewer::generateLink(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), Skin::getCategoryLinks(), CreditsAction::getContributors(), Skin::getCopyright(), SpecialUndelete::getFileComment(), SpecialUndelete::getFileLink(), SpecialUndelete::getFileUser(), LogEventsList::getFilterLinks(), BaseTemplate::getFooterLinks(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), EnhancedChangesList::getLineData(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), RenameuserLogFormatter::getMessageParameters(), ApiParamInfo::getModuleInfo(), SpecialUndelete::getPageLink(), WebInstaller::getPageListItem(), Block::getPermissionsError(), TablePager::getStartBody(), RevDelFileItem::getUserTools(), HistoryPager::historyLine(), ImagePage::imageDupes(), ImagePage::imageLinks(), ImageGalleryBase::insert(), SpecialWhatLinksHere::listItem(), Linker::makeCommentLink(), Linker::makeExternalLink(), DummyLinker::makeHeadline(), Linker::makeHeadline(), BaseTemplate::makeListItem(), LogFormatter::makePageLink(), ChangesList::maybeWatchedLink(), RenameuserLogFormatter::myPageLink(), ImportStreamSource::newFromInterwiki(), ComposerPackageModifier::newMediaWikiLink(), Language::numLink(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialSpecialpages::outputPageList(), SkinTemplate::prepareQuickTemplate(), SpecialBlock::preText(), Preferences::profilePreferences(), CologneBlueTemplate::quickBar(), MediaWiki\Widget\Search\SimpleSearchResultWidget::render(), MediaWiki\Widget\Search\InterwikiSearchResultWidget::render(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), ImageMap::render(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), Linker::revDeleteLink(), DifferenceEngine::revisionDeleteLink(), HistoryPager::revLink(), Linker::revUserLink(), Linker::revUserTools(), ComposerPackageModifier::setLinkAsProvides(), Article::showDeletedRevisionHeader(), DifferenceEngine::showDiffPage(), FileDeleteForm::showForm(), SpecialRevisionDelete::showForm(), SpecialAutoblockList::showList(), SpecialBlockList::showList(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialUndelete::showRevision(), MovePageForm::showSubpagesList(), SpecialUpload::showViewDeletedLinks(), OutputPage::styleLink(), Skin::subPageSubtitle(), ApiMain::substituteResultWithError(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), TraditionalImageGallery::toHTML(), SpecialUndelete::undelete(), CreditsAction::userLink(), and CologneBlueTemplate::variantLinks().

◆ $linkRenderer

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 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 $linkRenderer

◆ $linksUpdate

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables & $linksUpdate

◆ $localize

namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable (). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $localize

Definition at line 2277 of file hooks.txt.

◆ $mimeMagic

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array change it to the message you want to define you are encouraged to submit patches to MediaWiki s core to add new MIME types to mime types $mimeMagic
static

Definition at line 2179 of file hooks.txt.

Referenced by File::checkExtensionCompatibility().

◆ $modeName

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core $modeName

Definition at line 1049 of file hooks.txt.

◆ $name

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 $name
inline
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 304 of file hooks.txt.

Referenced by Wikimedia\Rdbms\DBConnRef::__call(), ParserDiffTest::__call(), RedisConnRef::__call(), StubObject::__call(), LessTestSuite::__construct(), RefreshLinksPartitionTest::__construct(), LinksUpdateTest::__construct(), JobQueueTest::__construct(), WikiPageTest::__construct(), ParserTestFileSuite::__construct(), ApiQueryWatchlistIntegrationTest::__construct(), EnhancedChangesListTest::__construct(), RevisionStorageTest::__construct(), OldChangesListTest::__construct(), SpecialChangeCredentials::__construct(), RCCacheEntryFactoryTest::__construct(), MostrevisionsPage::__construct(), UnusedCategoriesPage::__construct(), LongPagesPage::__construct(), UnusedimagesPage::__construct(), UnlistedSpecialPage::__construct(), IncludableSpecialPage::__construct(), DeprecatedGlobal::__construct(), WantedPagesPage::__construct(), AncientPagesPage::__construct(), DeadendPagesPage::__construct(), FewestrevisionsPage::__construct(), LonelyPagesPage::__construct(), XmlSelect::__construct(), SpecialGadgetUsage::__construct(), UncategorizedImagesPage::__construct(), UncategorizedTemplatesPage::__construct(), UnusedtemplatesPage::__construct(), WithoutInterwikiPage::__construct(), MostimagesPage::__construct(), MIMEsearchPage::__construct(), UncategorizedPagesPage::__construct(), WantedCategoriesPage::__construct(), WantedFilesPage::__construct(), BrokenRedirectsPage::__construct(), DoubleRedirectsPage::__construct(), WantedTemplatesPage::__construct(), ListredirectsPage::__construct(), MostlinkedTemplatesPage::__construct(), RandomPage::__construct(), SpecialRecentChanges::__construct(), ShortPagesPage::__construct(), SpecialPagesWithProp::__construct(), ListDuplicatedFilesPage::__construct(), MostcategoriesPage::__construct(), MostinterwikisPage::__construct(), MostlinkedCategoriesPage::__construct(), UnwatchedpagesPage::__construct(), SpecialGoToInterwiki::__construct(), MostlinkedPage::__construct(), UncategorizedCategoriesPage::__construct(), CommandLineInc::__construct(), QueryAllSpecialPagesTest::__construct(), UserRightsProxy::__construct(), FileDuplicateSearchPage::__construct(), LinkSearchPage::__construct(), MediaStatisticsPage::__construct(), MediaWiki\Auth\CreatedAccountAuthenticationRequest::__construct(), ApiContinuationManager::__construct(), ResourceLoaderImage::__construct(), SpecialAllPages::__construct(), NamespaceAwareForeignTitleFactory::__construct(), PoolCounterWorkViaCallback::__construct(), BaseBlacklist::__construct(), SpecialRandomInCategory::__construct(), MemcLockManager::__construct(), ChangesListSpecialPage::__construct(), Wikimedia\Rdbms\DatabaseMysqlBase::__construct(), FileOp::__construct(), LoginSignupSpecialPage::__construct(), RecompressTracked::__construct(), MediaWikiTestCase::__construct(), SpecialRedirectToSpecial::__construct(), SpecialPage::__construct(), RedirectSpecialArticle::__construct(), PPDStackElement::__construct(), LinkHolderArray::__destruct(), MaintenanceFixup::__destruct(), Language::__destruct(), Status::__get(), JSNode::__get(), Status::__set(), JSNode::__set(), ForeignTitle::__toString(), TitleValue::__toString(), MediaWiki\Tidy\BalanceElement::__toString(), PPTemplateFrame_Hash::__toString(), PPCustomFrame_Hash::__toString(), PPTemplateFrame_DOM::__toString(), StubObject::_call(), DummyLinker::accesskey(), Linker::accesskey(), EmailNotification::actuallyNotifyOnPageChange(), MagicWordArray::add(), FormOptions::add(), TestFileReader::addArticle(), ApiResult::addContentField(), ApiResult::addContentValue(), ApiContinuationManager::addContinueParam(), ApiContinuationManager::addGeneratorContinueParam(), ApiContinuationManager::addGeneratorNonContinueParam(), OutputPage::addHeadItem(), HTMLForm::addHiddenField(), HTMLForm::addHiddenFields(), ParserOutput::addImage(), FakeAuthTemplate::addInputItem(), OutputPage::addMeta(), MediaHandler::addMeta(), ApiModuleManager::addModule(), ApiModuleManager::addModules(), Maintenance::addOption(), ApiQueryBase::addOption(), TestFileReader::addRequirement(), InfoAction::addRow(), ContentHandler::addSearchField(), DatabaseUpdater::addTable(), ApiResult::addValue(), ApiPageSet::addValues(), OutputPage::addWikiMsg(), OutputPage::addWikiMsgArray(), SVGReader::animateFilterAndLang(), ImageCleanup::appendTitle(), MediaWiki\Services\ServiceContainer::applyWiring(), UserMailer::arrayToHeaderString(), DumpTestCase::assertDumpEnd(), DumpTestCase::assertNodeEnd(), DumpTestCase::assertNodeStart(), MWHttpRequestTestCase::assertNotHasCookie(), DumpTestCase::assertPageStart(), DumpTestCase::assertTextNode(), Wikimedia\Rdbms\DatabaseSqlite::attachDatabase(), Xml::attrib(), SearchEngine::augmentSearchResults(), CodeCleanerGlobalsPass::beforeTraverse(), Benchmarker::bench(), SpecialRevisionDelete::buildCheckBoxes(), BatchRowIterator::buildConditions(), MysqlInstaller::buildFullUserName(), ImageCleanup::buildSafeTitle(), EditPage::buildTextboxAttribs(), MediaWiki\HeaderCallback::callback(), CentralIdLookup::centralIdFromName(), CheckStorage::check(), Xml::check(), Html::check(), NamespaceConflictChecker::checkAll(), UserDupes::checkDupes(), DatabaseInstaller::checkExtension(), FindOrphanedFiles::checkFiles(), Xml::checkLabel(), OutputPage::checkLastModified(), NamespaceConflictChecker::checkLinkTable(), NamespaceConflictChecker::checkNamespace(), PreprocessDump::checkOptions(), Title::checkReadPermissions(), Maintenance::checkRequiredExtensions(), Skin::checkTitle(), Hooks::clear(), WebResponse::clearCookie(), User::clearCookie(), LockManagerGroup::config(), FileBackendGroup::config(), FormOptions::consumeValue(), FormOptions::consumeValues(), MediaWiki\Auth\AuthManager::continueAccountCreation(), UploadFromChunks::continueChunks(), HTMLFormFieldCloner::createFieldsForKey(), User::createNew(), MediaWiki\Services\ServiceContainer::createService(), Installer::createSysop(), ChangesListSpecialPageTest::createUsers(), SpecialWatchlist::cutoffselector(), MediaWikiMediaTestCase::dataFile(), JobQueueAggregatorRedis::decodeQueueName(), JobQueueRedis::decodeQueueName(), MediaWiki\Services\ServiceContainer::defineService(), FormOptions::delete(), UploadFromUrlTest::deleteFile(), Maintenance::deleteOption(), MediaWiki\Services\ServiceContainer::destroy(), MediaWiki\Services\ServiceContainer::disableService(), MediaWiki\MediaWikiServices::disableStorageBackend(), XMPReader::doAttribs(), MediaWiki\Tidy\RemexCompatMunger::doctype(), ExprParser::doExpression(), Installer::doGenerateKeys(), SpecialRecentChanges::doHeader(), MysqlUpdater::doPagelinksUpdate(), UserCache::doQuery(), GenderCache::doQuery(), ImagePage::doRenderLangOpt(), DatabaseUpdater::doTable(), WikiEditorHooks::editPageShowEditFormInitial(), MediaWiki\Tidy\RemexCompatFormatter::element(), XmlTypeCheck::elementClose(), XmlTypeCheck::elementOpen(), ApiBase::encodeParamName(), TextPassDumper::endElement(), DeprecatedInterfaceFinder::enterNode(), FileRepo::enumFilesInStorage(), Installer::envCheckCache(), Installer::envCheckDB(), ImageMap::error(), UserDupes::examine(), CheckComposerLockUpToDate::execute(), ApiEditPage::execute(), ApiQueryReferences::execute(), DatabaseLag::execute(), NukePage::execute(), AttachLatest::execute(), ApiQueryContributions::execute(), GenerateNormalizerDataAr::execute(), PopulateCategory::execute(), ConvertExtensionToRegistration::execute(), ParserTestsMaintenance::execute(), GetConfiguration::execute(), DeferredUpdates::execute(), LocalFileDeleteBatch::execute(), SpecialPageFactory::executePath(), Action::exists(), SpecialPageFactory::exists(), Xml::expandAttributes(), XmlTypeCheck::expandNS(), ExtensionRegistry::exportExtractedData(), QuickTemplate::extend(), SpecialRevisionDelete::extractBitParams(), ExtensionProcessor::extractCredits(), ExtensionProcessor::extractHooks(), ExtensionProcessor::extractInfo(), ExtensionProcessor::extractMessagesDirs(), InputBox::extractOptions(), BatchRowIterator::extractPrimaryKeys(), ExtensionProcessor::extractResourceLoaderModules(), ApiQueryRevisionsBase::extractRevisionInfo(), EtcdConfig::fetchAllFromEtcdServer(), UserrightsPage::fetchUser(), FormOptions::fetchValuesFromRequest(), Wikimedia\Rdbms\Database::fieldNameWithAlias(), TitleCleanup::fileExists(), ImageCleanup::filePath(), CoreParserFunctions::filepath(), GetConfiguration::finalSetup(), RepoGroup::findFiles(), OldChangesList::formatChangeLine(), ApiAuthManagerHelper::formatFields(), SkinCologneBlue::formatLanguageName(), SkinTemplate::formatLanguageName(), ApiParse::formatLimitReportData(), SvgHandler::formatMetadata(), MediaHandler::formatMetadataHelper(), LogFormatter::formatParameterValueForApi(), NewFilesPager::formatRow(), TablePager::formatRow(), ApiRsd::formatRsdApiList(), BlockListPager::formatValue(), ImageListPager::formatValue(), ParserFuzzTest::fuzzTest(), LocalSettingsGenerator::generateExtEnableLine(), MultiConfig::get(), GlobalVarConfig::get(), HashConfig::get(), QuickTemplate::get(), LockManagerGroup::get(), EtcdConfig::get(), FileBackendGroup::get(), BaseTemplate::getAfterPortlet(), SpecialPageFactory::getAliasList(), FormOptions::getAllValues(), PPTemplateFrame_Hash::getArgument(), WebRequest::getArray(), XmlSelect::getAttribute(), ExtensionRegistry::getAttribute(), RecentChange::getAttribute(), XmlTypeCheck::getAttributesArray(), SiteImporter::getAttributeValue(), MagicWordArray::getBaseRegex(), MessageBlobStore::getBlobs(), WebRequest::getBool(), JobQueueGroup::getCachedConfigVar(), Skin::getCachedNotice(), MWNamespace::getCanonicalIndex(), User::getCanonicalName(), ApiQueryAllUsers::getCanonicalUserName(), LinksUpdate::getCategoryInsertions(), ApiQueryUserInfo::getCentralUserInfo(), FormOptions::getChangedValues(), WebRequest::getCheck(), ApiMain::getCheck(), DatabaseInstaller::getCheckBox(), EditPage::getCheckboxes(), EditPage::getCheckboxesOOUI(), SiteImporter::getChildText(), SvgHandler::getCommonMetaArray(), SiteConfiguration::getConfig(), FauxRequest::getCookie(), FauxResponse::getCookie(), FauxResponse::getCookieData(), MultiHttpClient::getCurlHandle(), ResourceLoaderClientHtml::getData(), Title::getDefaultMessageText(), FileRepo::getDescriptionRenderUrl(), FileRepo::getDescriptionUrl(), Language::getDurationIntervals(), FormatJsonTest::getEncodeTestCases(), Timing::getEntryByName(), MediaWikiPHPUnitTestListener::getErrorName(), AvroValidator::getErrors(), ApiQueryLinks::getExamplesMessages(), ApiQueryAllLinks::getExamplesMessages(), ApiQueryBacklinksprop::getExamplesMessages(), SpecialUpload::getExistsWarning(), FormatMetadata::getExtendedMetadataFromFile(), SpecialVersion::getExternalLibraries(), FakeAuthTemplate::getExtraInputDefinitions(), ChangesListSpecialPage::getFilterGroupDefinitionFromLegacyCustomFilters(), SpecialPage::getFinalGroupName(), ApiBase::getFinalParamDescription(), WebRequest::getFloat(), MediaWiki\Logger\MonologSpi::getFormatter(), SpecialPageLanguage::getFormFields(), Preferences::getFormObject(), WebRequest::getFuzzyBool(), ApiPageSet::getGenerators(), JobQueueRedis::getGlobalKey(), WebRequest::getGPCVal(), MediaWiki\Logger\MonologSpi::getHandler(), Hooks::getHandlers(), MagicWordArray::getHash(), LocalFileDeleteBatch::getHashes(), FileRepo::getHashPath(), FileRepo::getHashPathForLevel(), DerivativeRequest::getHeader(), WebResponse::getHeader(), WebRequest::getHeader(), MWHttpRequest::getHeaderList(), ApiHelp::getHelpInternal(), ApiQueryAllLinks::getHelpUrls(), ApiQueryBacklinksprop::getHelpUrls(), TablePager::getHiddenFields(), Linker::getImageLinkMTOParams(), XhprofData::getInclusiveMetrics(), HTMLSelectField::getInputHTML(), HTMLFormFieldCloner::getInputHTML(), HTMLFormFieldCloner::getInputHTMLForKey(), WebRequest::getInt(), WebRequest::getIntArray(), WebRequest::getIntOrNull(), Linker::getInvalidTitleDescription(), WebInstallerLanguage::getLanguageSelector(), Wikimedia\Rdbms\Database::getLBInfo(), TablePager::getLimitSelect(), ContentHandler::getLocalizedName(), SpecialPageFactory::getLocalNameFor(), WikiEditorHooks::getMagicWords(), ParserFuzzTest::getMemoryBreakdown(), SimpleCaptcha::getMessage(), PNGMetadataExtractor::getMetadata(), ApiParamInfo::getModuleInfo(), WebRequestUpload::getName(), ResourceLoaderImage::getName(), FileRepo::getName(), PPTemplateFrame_Hash::getNamedArgument(), PPTemplateFrame_DOM::getNamedArgument(), ApiQuery::getNamedDB(), FileRepo::getNameFromTitle(), ApiModuleManager::getNames(), Language::getNamespaceAliases(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), Language::getNamespaceIds(), MediaWikiTitleCodec::getNamespaceName(), ApiModuleManager::getNamesWithClasses(), HTMLFormField::getNearestFieldByName(), Maintenance::getOption(), Preferences::getOptionFromUser(), User::getOptionKinds(), SpecialStatistics::getOtherStats(), SpecialPageFactory::getPage(), Skin::getPageClasses(), WebInstaller::getPageListItem(), SpecialExport::getPagesFromCategory(), FileOp::getParam(), RecentChange::getParam(), ApiBase::getParameterFromSettings(), DatabaseInstaller::getPasswordBox(), WikiEditorHooks::getPreferences(), MediaWiki\Logger\MonologSpi::getProcessor(), OutputPage::getProperty(), ParserOutput::getProperty(), LinksUpdate::getPropertyInsertions(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::getProvider(), MediaWiki\Session\BotPasswordSessionProviderTest::getProvider(), MediaWiki\Session\SessionManager::getProvider(), WebRequest::getRawVal(), SpecialPageFactory::getRegularPages(), RepoGroup::getRepoByName(), SpecialPageFactory::getRestrictedPages(), HistoryPager::getRevisionButton(), OutputPage::getRlClient(), SpecialPage::getSafeTitleFor(), OracleInstaller::getSchemaVars(), InputBox::getSearchForm(), Wikimedia\Rdbms\LoadBalancer::getServerName(), MediaWiki\Services\ServiceContainer::getService(), WebInstaller::getSession(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), ApiDocumentationTest::getSubModulePaths(), HTMLHiddenField::getTableRow(), FileRepo::getTempHashPath(), ResourceLoaderImageTest::getTestImage(), MediaWikiPHPUnitTestListener::getTestName(), FauxRequest::getText(), WebRequest::getText(), DatabaseInstaller::getTextBox(), ForeignAPIRepo::getThumbError(), ForeignAPIRepo::getThumbUrl(), ForeignAPIRepo::getThumbUrlFromCache(), SpecialPage::getTitleFor(), SpecialPageFactory::getTitleForAlias(), LogPage::getTitleLink(), SpecialPage::getTitleValueFor(), ApiTokens::getTokenTypes(), LogEventsList::getTypeSelector(), FormOptions::getUnconsumedValues(), ApiMain::getUpload(), SpecialPageFactory::getUsablePages(), RevDelFileItem::getUserTools(), WebRequest::getVal(), ApiMain::getVal(), FormOptions::getValue(), WebRequest::getValues(), Installer::getVar(), Language::getVariantname(), FileRepo::getVirtualUrl(), SiteConfiguration::getWikiParams(), GlobalVarConfig::getWithPrefix(), UserrightsPage::groupCheckboxes(), ConvertExtensionToRegistration::handleCredits(), ConvertExtensionToRegistration::handleResourceModules(), GlobalVarConfig::has(), MultiConfig::has(), HashConfig::has(), EtcdConfig::has(), SiteImporter::hasChild(), Wikimedia\Rdbms\DatabasePostgres::hasConstraint(), OutputPage::hasHeadItem(), Maintenance::hasOption(), MediaWiki\Services\ServiceContainer::hasService(), Title::hasSourceText(), GlobalVarConfig::hasWithPrefix(), Html::hidden(), User::idFromName(), ImageCleanup::imageExists(), RequestContext::importScopedSession(), WebInstallerExistingWiki::importVariables(), WebRequest::initHeaders(), UploadFromFile::initialize(), UploadFromStash::initialize(), UploadFromUrl::initialize(), Xml::input(), Html::input(), Xml::inputLabel(), Xml::inputLabelSep(), ApiModuleManager::instantiateModule(), LinksUpdate::invalidateProperties(), User::isCreatableName(), WikiEditorHooks::isEnabled(), User::isIP(), ExtensionRegistry::isLoaded(), Wikimedia\Rdbms\DatabaseMysqlBase::isQuotedIdentifier(), Wikimedia\Rdbms\DatabaseMssql::isQuotedIdentifier(), Wikimedia\Rdbms\Database::isQuotedIdentifier(), Hooks::isRegistered(), MediaWiki\Services\ServiceContainer::isServiceDisabled(), Title::isSpecial(), User::isUsableName(), User::isValidUserName(), Wikimedia\Rdbms\DatabaseMysqlBase::isView(), EditPage::isWrongCaseCssJsPage(), ImageCleanup::killRow(), Xml::languageSelector(), LogPager::limitPerformer(), LogPager::limitTitle(), ApiParamInfo::listAllSubmodules(), Xml::listDropDown(), HTMLForm::loadData(), User::loadDefaults(), User::loadFromCache(), Preferences::loadPreferenceValues(), CentralIdLookup::localUserFromCentralId(), Installer::locateExecutable(), RenameuserSQL::lockUserAndGetId(), ProfilerOutputDb::log(), BotPassword::login(), ApiMain::logRequest(), SkinTemplate::makeArticleUrlDetails(), ConfigFactory::makeConfig(), Wikimedia\Rdbms\DatabasePostgres::makeConnectionString(), WikiEditorHooks::makeGlobalVariablesScript(), Skin::makeI18nUrl(), Skin::makeInternalOrExternalUrl(), Skin::makeKnownUrlDetails(), ResourceLoaderClientHtml::makeLoad(), Title::makeName(), Skin::makeNSUrl(), SkinFactory::makeSkin(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), LinksUpdateTest::makeTitleAndParserOutput(), Skin::makeUrl(), Skin::makeUrlDetails(), ExtensionRegistry::markLoaded(), MagicWordArray::matchAndRemove(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), MediaWikiTestCase::mergeMwGlobalArrayValue(), ApiQueryImageInfo::mergeThumbParams(), FileRepo::nameForThumb(), PPFrame_Hash::newChild(), PPFrame_DOM::newChild(), MediaWiki\Session\UserInfo::newFromName(), UserRightsProxy::newFromName(), Category::newFromName(), User::newFromName(), ContentHandlerTest::newSearchEngine(), User::newSystemUser(), SpecialSearchTest::newUserWithSearchNS(), Linker::normaliseSpecialPage(), NamespaceAwareForeignTitleFactory::normalizeNamespaceName(), CoreParserFunctions::numberingroup(), FormOptions::offsetExists(), FormOptions::offsetGet(), FormOptions::offsetSet(), FormOptions::offsetUnset(), SpecialChangeCredentials::onAuthChangeFormFields(), InfoAction::onView(), SpecialVersion::openExtType(), UploadDumper::outputItem(), MediaWikiTestCase::overrideMwServices(), WikiExporter::pageByName(), ImageCleanup::pageExists(), WikiExporter::pagesByName(), CoreParserFunctions::pagesincategory(), CookieJar::parseCookieResponseHeader(), Xml::password(), MediaWiki\Services\ServiceContainer::peekService(), Installer::performInstallation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), SpecialSearch::powerSearch(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), Title::prefix(), ApiQueryBlocks::prepareUsername(), ProtectedPagesPager::preprocessResults(), Preprocessor_Hash::preprocessToObj(), Preferences::profilePreferences(), MediaWikiServicesTest::provideGetters(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), Xml::radio(), Html::radio(), Xml::radioLabel(), TestFileReader::read(), ZipDirectoryReader::readCentralDirectory(), SVGReader::readField(), Wikimedia\Rdbms\LoadBalancer::reallyOpenConnection(), Wikimedia\Rdbms\DatabasePostgres::realTableName(), Wikimedia\Rdbms\DatabaseMssql::realTableName(), Wikimedia\Rdbms\TransactionProfiler::recordQueryCompletion(), ApiFormatXmlRsd::recXmlPrint(), MediaWiki\Services\ServiceContainer::redefineService(), Category::refreshCounts(), Hooks::register(), SkinFactory::register(), LockManagerGroup::register(), ConfigFactory::register(), FileBackendGroup::register(), BackupDumper::registerFilter(), BackupDumper::registerOutput(), HTMLFormFieldCloner::rekeyValuesArray(), Wikimedia\Rdbms\DatabasePostgres::remappedTableName(), ApiResult::removeValue(), ImageMap::render(), CologneBlueTemplate::renderAfterPortlet(), BaseTemplate::renderAfterPortlet(), VectorTemplate::renderNavigation(), VectorTemplate::renderPortal(), VectorTemplate::renderPortals(), Maintenance::requireExtension(), FormOptions::reset(), MediaWiki\Services\ServiceContainer::resetService(), MediaWiki\MediaWikiServices::resetServiceForTesting(), SpecialPageFactory::resolveAlias(), ApiQueryAllLinks::run(), MWException::runHooks(), MWExceptionRenderer::runHooks(), MultiHttpClient::runMulti(), ConfigFactory::salvage(), MediaWiki\MediaWikiServices::salvage(), CategoryFinder::scanNextLayer(), EraseArchivedFile::scrubAllVersions(), EraseArchivedFile::scrubVersion(), SearchEngineConfig::searchableNamespaces(), ApiQueryBase::selectNamedDB(), ApiMain::sendCacheHeaders(), QuickTemplate::set(), HashConfig::set(), XmlSelect::setAttribute(), SearchResultSet::setAugmentedData(), ApiResult::setContentField(), ApiResult::setContentValue(), CookieJar::setCookie(), WebResponse::setCookie(), FauxResponse::setCookie(), MWHttpRequest::setCookie(), User::setCookie(), FauxRequest::setCookies(), MediaWiki::setDBProfilingAgent(), User::setExtendedLoginCookie(), FauxRequest::setHeader(), MWHttpRequest::setHeader(), FauxRequest::setHeaders(), OutputPage::setHTMLTitle(), ApiParse::setIndexedTagNames(), Wikimedia\Rdbms\Database::setLBInfo(), ParserOutput::setLimitReportData(), HTMLForm::setName(), OutputPage::setPageTitle(), Installer::setPassword(), OutputPage::setProperty(), ParserOutput::setProperty(), QuickTemplate::setRef(), CurlHttpRequestTester::setRespHeaders(), PhpHttpRequestTester::setRespHeaders(), MediaWikiTestCase::setService(), WebInstaller::setSession(), HTMLForm::setSubmitName(), HTMLForm::setSubmitTooltip(), Wikimedia\Rdbms\LoadBalancer::setTransactionListener(), Wikimedia\Rdbms\Database::setTransactionListener(), BagOStuffTest::setUp(), StoreBatchTest::setUp(), JobQueueTest::setUp(), FileBackendTest::setUp(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), Revision::setUserIdAndName(), RevisionDeleteUser::setUsernameBitfields(), FormOptions::setValue(), ApiResult::setValue(), DatabaseInstaller::setVar(), Installer::setVar(), WebInstaller::setVarsFromRequest(), Wikimedia\Rdbms\LBFactory::setWaitForReplicationListener(), ProfilerXhprof::shouldExclude(), OutputPage::showFileDeleteError(), OutputPage::showFileNotFoundError(), SpecialWatchlist::showHideCheck(), SpecialGadgets::showMainForm(), EditPage::showTextbox(), OutputPage::showUnexpectedValueError(), DumpTestCase::skipPastNodeEnd(), BaseDump::skipTo(), DumpTestCase::skipToNodeEnd(), SpecialVersion::softwareInformation(), DummyLinker::specialLink(), Linker::specialLink(), PPNode_DOM::splitArg(), TextPassDumper::startElement(), ExtensionProcessor::storeToArray(), WebInstallerName::submit(), MediaWiki\Session\CookieSessionProvider::suggestLoginUsername(), RevisionDeleteUser::suppressUserName(), Wikimedia\Rdbms\DatabaseSqlite::tableName(), DatabaseOracle::tableName(), Wikimedia\Rdbms\DatabasePostgres::tableName(), Wikimedia\Rdbms\DatabaseMssql::tableName(), Wikimedia\Rdbms\Database::tableName(), DatabaseOracle::tableNameInternal(), Wikimedia\Rdbms\Database::tableNames(), Wikimedia\Rdbms\Database::tableNamesN(), Wikimedia\Rdbms\Database::tableNameWithAlias(), CoreParserFunctions::tagObj(), ApiModuleManagerTest::testAddModule(), ApiModuleManagerTest::testAddModules(), ResourceLoaderTest::testAddSource(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiMainTest::testClassNamesInModuleManager(), ApiQueryTest::testClassNamesInModuleManager(), XhprofDataTest::testCompleteMetricsStructure(), SpecialPageFactoryTest::testConflictResolution(), XmlSelectTest::testConstructParameters(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), ResourceLoaderFileModuleTest::testDeprecatedModules(), ServiceContainerTest::testDisableService_fail_undefined(), ApiDocumentationTest::testDocumentationExists(), ApiEditPageTest::testEdit(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditAppend(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), ApiEditPageTest::testEditNewSection(), ApiEditPageTest::testEditSection(), ExtensionRegistryTest::testExportExtractedDataGlobals(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), GlobalVarConfigTest::testGet(), UserTest::testGetCanonicalName(), ResourceLoaderTest::testGetLoadScript(), ContentHandlerTest::testGetLocalizedName(), SpecialPageFactoryTest::testGetLocalNameFor(), ApiModuleManagerTest::testGetModule(), MediaWikiTitleCodecTest::testGetNamespaceName(), ServiceContainerTest::testGetService(), MediaWikiServicesTest::testGetService(), ServiceContainerTest::testGetService_fail_unknown(), ServiceContainerTest::testGetServiceNames(), SpecialPageTest::testGetTitleFor(), SpecialPageTest::testGetTitleForWithWarning(), ServiceContainerTest::testHasService(), XhprofDataTest::testInclusiveMetricsStructure(), FileContentHandlerTest::testIndexMapping(), CentralIdLookupTest::testLocalUserFromCentralId(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), ServiceContainerTest::testPeekService_fail_unknown(), PrefixUniquenessTest::testPrefixes(), TemplateParserTest::testProcessTemplate(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderNormalizeUsername(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_disabled(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), SpecialPageFactoryTest::testResolveAlias(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), MWExceptionTest::testRunHooks(), FileBackendTest::testSanitizeOpHeaders(), SearchEngineTest::testSearchIndexFields(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), MailAddressTest::testToString(), ApiEditPageTest::testUndoAfterContentModelChange(), DatabaseSqliteTest::testUpgrades(), GlobalWithDBTest::testWfIsBadImage(), Xml::textarea(), Html::textarea(), DummyLinker::titleAttrib(), Linker::titleAttrib(), DummyLinker::tooltip(), Linker::tooltip(), DummyLinker::tooltipAndAccesskeyAttribs(), Linker::tooltipAndAccesskeyAttribs(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingIn(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingOut(), Preferences::tryFormSubmit(), MediaWiki::tryNormaliseRedirect(), ParserOutput::unsetProperty(), ApiResult::unsetValue(), RevisionDeleteUser::unsuppressUserName(), RecentChangesUpdateJob::updateActiveUsers(), SectionProfiler::updateEntry(), UpdateExtensionJsonSchema::updateTo2(), UserOptions::USAGER(), MediaWiki\Auth\AuthManagerAuthPlugin::userExists(), SpecialEmailUser::userForm(), SearchEngineConfig::userNamespaces(), XmlTypeCheck::validate(), FormOptions::validateBounds(), FormOptions::validateIntBounds(), FormOptions::validateName(), ImageHandler::validateParam(), JpegHandler::validateParam(), PdfHandler::validateParam(), BitmapHandler::validateParam(), DjVuHandler::validateParam(), SvgHandler::validateParam(), wfOutputHandler(), SpecialWhatLinksHere::whatlinkshereForm(), and OutputPage::wrapWikiMsg().

◆ $namespaces

◆ $newminor

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel () must return $toModel. 'CustomEditor' also included in $newHeader if any $newminor

Definition at line 1167 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $newtalks

if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect $newtalks

Definition at line 1630 of file hooks.txt.

Referenced by Skin::getNewtalks().

◆ $oldminor

passed in as a query string parameter to the various URLs constructed here (i.e. $nextlink) $rdel also included in $oldHeader $oldminor

Definition at line 1237 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $options

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 & $options
Examples
/src/includes/rcfeed/RedisPubSubFeedEngine.php.

Definition at line 1049 of file hooks.txt.

Referenced by CiteCSSFileModule::__construct(), MediaWiki\Tidy\RemexCompatFormatter::__construct(), SquidPurgeClientPool::__construct(), Wikimedia\Rdbms\LoadMonitorMySQL::__construct(), ParserTestPrinter::__construct(), Gadget::__construct(), CheckLanguageCLI::__construct(), Wikimedia\Rdbms\LoadMonitor::__construct(), ContribsPager::__construct(), MappedIterator::__construct(), TestFileReader::__construct(), ResourceLoaderWikiModule::__construct(), RandomImageGenerator::__construct(), MultiHttpClient::__construct(), ProfilerXhprof::__construct(), RedisConnectionPool::__construct(), MWHttpRequest::__construct(), RenameuserSQL::__construct(), ResourceLoaderTestModule::__construct(), ResourceLoaderImageModule::__construct(), RecompressTracked::__construct(), XmlTypeCheck::__construct(), Block::__construct(), ZipDirectoryReader::__construct(), MediaWiki\Session\SessionManager::__construct(), ResourceLoaderFileModule::__construct(), UploadForm::__construct(), PathRouter::add(), OutputPage::addReturnTo(), PathRouter::addStrict(), OutputPage::addStyle(), RedisConnectionPool::applyDefaultConfig(), Wikimedia\Rdbms\LoadBalancer::approveMasterChanges(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Linker\LinkRenderer::buildAElement(), OutputPage::buildCssLinksArray(), SpecialActiveUsers::buildForm(), IndexPager::buildQueryInfo(), SimpleCaptcha::buildRegexes(), Linker::buildRollbackLink(), MediaWiki\Auth\AuthManager::canCreateAccount(), NamespaceConflictChecker::checkAll(), NamespaceConflictChecker::checkLinkTable(), NamespaceConflictChecker::checkNamespace(), NamespaceConflictChecker::checkPrefix(), WebResponse::clearCookie(), Wikimedia\Rdbms\LBFactory::commitAll(), Wikimedia\Rdbms\LBFactory::commitMasterChanges(), Title::countAuthorsBetween(), WatchedItemStore::countWatchersMultiple(), MediaWiki\Linker\LinkRendererFactory::createFromLegacyOptions(), SpecialWatchlist::cutoffselector(), CheckExtensionsCLI::defaultChecks(), Block::defaultRetroactiveAutoblock(), PrefixSearch::defaultSearchBackend(), LocalRepo::deletedFileHasKey(), ApiBase::dieWithException(), PathRouter::doAdd(), SiteStatsInit::doAllAndCommit(), Article::doEditUpdates(), WikiPage::doEditUpdates(), RevDelArchiveList::doQuery(), UserCache::doQuery(), MockOggHandler::doTransform(), Skin::editUrlOptions(), Xhprof::enable(), FormatJson::encode(), Wikimedia\Rdbms\DatabasePostgres::estimateRowCount(), Wikimedia\Rdbms\DatabaseMssql::estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase::estimateRowCount(), Wikimedia\Rdbms\Database::estimateRowCount(), GenerateRandomImages::execute(), SpecialApiHelp::execute(), ApiExpandTemplates::execute(), SpecialExpandTemplates::execute(), CommandLineInc::execute(), UpdateCollation::execute(), NamespaceConflictChecker::execute(), RefreshImageMetadata::execute(), PhpHttpRequest::execute(), PPFuzzTest::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), InputBox::extractOptions(), MWHttpRequest::factory(), MWHttpRequestTester::factory(), QueryPage::fetchFromCache(), Revision::fetchFromConds(), Revision::fetchText(), GadgetDefinitionContent::fillParserOutput(), TextContent::fillParserOutput(), WikitextContent::fillParserOutput(), HTMLMultiSelectField::filterDataForSubmit(), RepoGroup::findFile(), FileRepo::findFile(), RepoGroup::findFileFromKey(), FileRepo::findFileFromKey(), FileRepo::findFiles(), SimpleCaptcha::findLinks(), Wikimedia\Rdbms\DatabaseSqlite::fixIgnore(), HTMLFormField::flattenOptions(), ApiErrorFormatter::formatException(), ApiErrorFormatter_BackCompat::formatException(), HTMLMultiSelectField::formatOptions(), HTMLRadioField::formatOptions(), DummyLinker::generateRollback(), Linker::generateRollback(), Http::get(), MediaWikiPageNameNormalizerTestMockHttp::get(), NamespaceConflictChecker::getAlternateTitle(), CaptchaPreAuthenticationProvider::getAuthenticationRequests(), TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), Title::getAuthorsBetween(), CategoryMembershipChangeJob::getCategoriesAtRev(), EditPage::getCheckboxes(), EditPage::getCheckboxesOOUI(), InstallerOverrides::getCliInstaller(), DBLockManager::getConnection(), WikiPage::getContributors(), DBAccessObjectUtils::getDBOptions(), ResourceLoaderImageModule::getDefinitionSummary(), ResourceLoaderFileModule::getDefinitionSummary(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), SpecialPageLanguage::getFormFields(), SpecialChangeContentModel::getFormFields(), ApiHelp::getHelp(), ApiHelp::getHelpInternal(), ResourceLoaderImageModule::getImages(), HTMLRadioField::getInputOOUI(), OutputPage::getKeyHeader(), Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat(), MediaWiki\Linker\LinkRenderer::getLegacyOptions(), SpecialProtectedtitles::getLevelMenu(), SpecialProtectedpages::getLevelMenu(), Title::getLinksFrom(), Title::getLinksTo(), Category::getMembers(), ApiErrorFormatter::getMessageFromException(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), SpecialEditWatchlist::getNormalForm(), Preferences::getOptionFromUser(), ApiOptionsTest::getOptionKinds(), User::getOptionKinds(), User::getOptions(), SpecialChangeContentModel::getOptionsForTitle(), HTMLMultiSelectField::getOptionsOOUI(), HTMLFormField::getOptionsOOUI(), AbstractContent::getParserOutput(), BotPassword::getPassword(), GadgetHooks::getPreferences(), WikiEditorHooks::getPreferences(), NewPagesPager::getQueryInfo(), ShortPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), ActiveUsersPager::getQueryInfo(), UsersPager::getQueryInfo(), ContribsPager::getQueryInfo(), LogPager::getQueryInfo(), ImageListPager::getQueryInfoReal(), ResourceLoaderTestCase::getResourceLoaderContext(), ResourceLoaderWikiModule::getScript(), BaseTemplate::getSidebar(), WatchedItemQueryService::getStartEndConds(), WatchedItemQueryService::getStartFromConds(), ResourceLoaderWikiModule::getStyles(), Title::getSubpages(), MysqlInstaller::getTableOptions(), NamespaceConflictChecker::getTargetList(), Title::getTemplateLinksFrom(), Title::getTemplateLinksTo(), ResourceLoaderImageTest::getTestImage(), ImageHistoryList::getThumbForLine(), SpecialProtectedpages::getTypeMenu(), WatchedItemQueryService::getUserRelatedConds(), OutputPage::getVaryHeader(), MediaWiki\Session\SessionManager::getVaryHeaders(), WatchedItemQueryService::getWatchedItemsForUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUserQueryConds(), WatchedItemQueryService::getWatchedItemsForUserQueryDbOptions(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryDbOptions(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFields(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFilterConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryJoinConds(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), WatchedItemQueryService::getWatchlistOwnerId(), ParserEditTests::handleFailure(), DumpRenderer::handleRevision(), LocalRepo::hiddenFileHasKey(), ForeignAPIRepo::httpGet(), User::idForName(), User::idFromName(), Wikimedia\Rdbms\DatabaseSqlite::indexUnique(), PasswordFactory::init(), DatabaseOracle::insert(), Wikimedia\Rdbms\DatabasePostgres::insert(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\DatabaseSqlite::insert(), Wikimedia\Rdbms\Database::insert(), Language::internalUserTimeAndDate(), Xml::languageSelector(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), Xml::listDropDown(), PageArchive::listRevisions(), User::loadFromDatabase(), ResourceLoaderImageModule::loadFromDefinition(), Maintenance::loadWithArgv(), LocalIdLookup::lookupCentralIds(), HTMLFormField::lookupOptionsKeys(), LocalIdLookup::lookupUserNames(), makeCacheKey(), DummyLinker::makeCommentLink(), Linker::makeCommentLink(), Wikimedia\Rdbms\Database::makeGroupByWithHaving(), Wikimedia\Rdbms\DatabaseSqlite::makeInsertOptions(), Wikimedia\Rdbms\Database::makeInsertOptions(), BaseTemplate::makeLink(), BaseTemplate::makeListItem(), SpecialRecentChanges::makeOptionsLink(), Wikimedia\Rdbms\Database::makeOrderBy(), ContentHandler::makeParserOptions(), WikiPage::makeParserOptions(), Wikimedia\Rdbms\DatabaseSqlite::makeSelectOptions(), Wikimedia\Rdbms\DatabaseMssql::makeSelectOptions(), Wikimedia\Rdbms\Database::makeSelectOptions(), DatabaseOracle::makeSelectOptions(), Wikimedia\Rdbms\DatabasePostgres::makeSelectOptions(), Wikimedia\Rdbms\Database::makeUpdateOptions(), Wikimedia\Rdbms\DatabaseSqlite::makeUpdateOptionsArray(), Wikimedia\Rdbms\Database::makeUpdateOptionsArray(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), ApiMain::modifyHelp(), Xml::monthSelector(), Html::namespaceSelector(), Html::namespaceSelectorOptions(), BotPassword::newFromCentralId(), RecompressTracked::newFromCommandLine(), MediaWikiGadgetsDefinitionRepo::newFromDefinition(), TitleBlacklistEntry::newFromString(), User::newSystemUser(), onContentGetParserOutput(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), WikiPage::pageData(), WikiPage::pageDataFromId(), Article::pageDataFromId(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), InfoAction::pageInfo(), CLIParser::parse(), FormatJson::parse(), OutputPage::parserOptions(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), Http::post(), MediaWiki::preOutputCommit(), BackupDumper::processOptions(), Preferences::profilePreferences(), FileRepo::publish(), LocalFile::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), ForeignAPIFile::purgeCache(), LocalFile::purgeCache(), ForeignAPIFile::purgeThumbnails(), LocalFile::purgeThumbnails(), BacklinkCache::queryLinks(), UserCache::queryNeeded(), FileRepo::quickImport(), TestFileReader::read(), ZipDirectoryReader::read(), ContribsPager::reallyDoQuery(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), QueryPage::reallyDoQuery(), UploadFromUrl::reallyFetchFile(), DateFormatter::reformat(), ImageMap::render(), Http::request(), JobRunner::run(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), TableCleanup::runTable(), Wikimedia\Rdbms\DatabaseMssql::select(), Wikimedia\Rdbms\Database::select(), Wikimedia\Rdbms\Database::selectField(), Wikimedia\Rdbms\Database::selectFieldValues(), DatabaseOracle::selectRow(), Wikimedia\Rdbms\Database::selectRow(), Wikimedia\Rdbms\Database::selectRowCount(), Wikimedia\Rdbms\DatabaseMssql::selectSQLText(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), Wikimedia\Rdbms\Database::selectSQLText(), RedisPubSubFeedEngine::send(), UserMailer::send(), UserMailer::sendInternal(), WebResponse::setCookie(), FauxResponse::setCookie(), Maintenance::setParam(), Article::setParserOptions(), Wikimedia\Rdbms\DatabaseMysqlBase::setSessionOptions(), SpecialWatchlist::showHideCheck(), LoginHelper::showReturnToPage(), RedisConnectionPool::singleton(), SevenZipStream::stream_open(), OutputPage::styleLink(), LinkRendererFactoryTest::testCreateFromLegacyOptions(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testGetAvailablePartitionsException(), ApiErrorFormatterTest::testGetMessageFromException(), ApiErrorFormatterTest::testGetMessageFromException_BC(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_fromUntilStartFromOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_mysqlIndexOptimization(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_userPermissionRelatedExtraChecks(), SkinTemplateTest::testMakeListItem(), MediaWiki\Auth\AuthenticationRequestTest::testMergeFieldInfo(), GadgetsTest::testPreferences(), TextContentTest::testPreloadTransform(), TextContentTest::testPreSaveTransform(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testSendException(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Logger\Monolog\KafkaHandlerTest::testTopicNaming(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), TitleBlacklistPreAuthenticationProvider::testUserForCreation(), GlobalTest::testWfShellWikiCmd(), DummyLinker::titleAttrib(), Linker::titleAttrib(), TraditionalImageGallery::toHTML(), ThumbnailImage::toHtml(), DummyLinker::tooltip(), Linker::tooltip(), Wikimedia\Rdbms\DatabaseMssql::update(), DatabaseOracle::update(), Wikimedia\Rdbms\Database::update(), LocalFile::upload(), Language::userDate(), Language::userTime(), and Language::userTimeAndDate().

◆ $out

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
inline

Definition at line 783 of file hooks.txt.

Referenced by StatusValue::__toString(), MediaWiki\Tidy\BalanceElement::__toString(), EditPage::addExplainConflictHeader(), SimpleCaptcha::addFormInformationToOutput(), Article::addHelpLink(), MWDebug::addModules(), SpecialRecentChanges::addModules(), ChangesListSpecialPage::addModules(), ParserOutput::addOutputPageMetadata(), UploadForm::addUploadJS(), SiteConfiguration::arrayMerge(), GadgetHooks::beforePageDisplay(), SkinTemplate::buildContentNavigationUrls(), AllMessagesTablePager::buildForm(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), SpecialInterwiki::canModify(), ImportReporter::close(), ApiFormatBase::closePrinter(), CategoryPage::closeShowCategory(), FormOptions::consumeValues(), SpecialContributions::contributionsSub(), Title::convertByteClassToUnicodeClass(), LanguageLa::convertGrammar(), DatabaseUpdater::doEnableProfiling(), SpecialRecentChanges::doHeader(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), MovePageForm::doSubmit(), SimpleCaptcha::editShowCaptcha(), Xml::element(), ChangesList::endRecentChangesList(), MediaWiki\Logger\Monolog\LineFormatter::exceptionAsArray(), SpecialRenameuser::execute(), SpecialListFiles::execute(), SpecialNewFiles::execute(), SpecialJavaScriptTest::execute(), SpecialApiSandbox::execute(), SpecialSpecialpages::execute(), SpecialContributions::execute(), ApiHelp::execute(), SpecialPreferences::execute(), SpecialUserLogout::execute(), SpecialInterwiki::execute(), SpecialListGrants::execute(), MaintenanceFormatInstallDoc::execute(), SpecialExport::execute(), SpecialListGroupRights::execute(), SpecialAutoblockList::execute(), SpecialBookSources::execute(), DeletedContributionsPage::execute(), SpecialUnblock::execute(), SpecialBlockList::execute(), SpecialRecentChanges::execute(), SpecialActiveUsers::execute(), SpecialWhatLinksHere::execute(), SpecialAllMessages::execute(), SpecialVersion::execute(), SpecialPrefixindex::execute(), LinkSearchPage::execute(), SpecialExpandTemplates::execute(), SpecialChangeEmail::execute(), SpecialAllPages::execute(), ConvertExtensionToRegistration::execute(), UserrightsPage::execute(), SpecialEditWatchlist::execute(), FileDuplicateSearchPage::execute(), SpecialSearch::execute(), SpecialEmailUser::execute(), GetConfiguration::execute(), SpecialNewpages::execute(), SpecialUndelete::execute(), QueryPage::execute(), SpecialEditWatchlist::executeViewEditWatchlist(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Xml::expandAttributes(), SpecialJavaScriptTest::exportQUnit(), SimpleCaptcha::findLinks(), SpecialNewpages::form(), FormatMetadata::formatNum(), BrokenRedirectsPage::formatResult(), Skin::getCategories(), Skin::getCategoryLinks(), Skin::getCopyrightIcon(), SpecialVersion::getCreditsForExtension(), Skin::getDefaultModules(), SpecialVersion::getEntryPointInfo(), SpecialVersion::getExtensionCategory(), SpecialVersion::getExtensionCredits(), SpecialVersion::getExternalLibraries(), ProfilerSectionOnly::getFunctionReport(), ProfilerXhprof::getFunctionReport(), ApiHelp::getHelp(), ApiHelp::getHelpInternal(), Status::getHTML(), BaseTemplate::getIndicators(), HTMLFancyCaptchaField::getInputHTML(), ResourceLoaderStartUpModule::getModuleRegistrations(), Skin::getNewtalks(), MediaWiki\Tidy\BalanceStack::getOutput(), UsersPager::getPageHeader(), SpecialVersion::getParserFunctionHooks(), SpecialVersion::getParserTags(), ResourceLoaderStartUpModule::getScript(), SpecialVersion::getSkinCredits(), DeletedContributionsPage::getSubTitle(), Language::iconv(), ImagePage::imageDupes(), ImagePage::imageHistory(), ImagePage::imageLinks(), SkinFallback::initPage(), SkinVector::initPage(), SimpleCaptcha::injectEmailUser(), SpecialNuke::listForm(), ProfilerOutputText::log(), LoginSignupSpecialPage::mainLoginForm(), SpecialExpandTemplates::makeOutput(), SpecialInterwiki::makeTable(), JavaScriptMinifier::minify(), SpecialPrefixindex::namespacePrefixForm(), SearchMySQL::normalizeText(), ConfirmEditHooks::onAlternateEditPreview(), onApiFormatHighlight(), onContentGetParserOutput(), RenameuserHooks::onShowMissingArticle(), SpecialChangeContentModel::onSubmit(), SpecialUnlockdb::onSuccess(), SpecialLockdb::onSuccess(), SpecialChangeContentModel::onSuccess(), SpecialBotPasswords::onSuccess(), SpecialBlock::onSuccess(), HistoryAction::onView(), SpecialVersion::openExtType(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), Maintenance::output(), SpecialListGroupRights::outputNamespaceProtectionInfo(), SkinTemplate::outputPage(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), SpecialGadgetUsage::outputResults(), QueryPage::outputResults(), SpecialEditWatchlist::outputSubtitle(), Installer::parse(), DiffHistoryBlob::patch(), SpecialJavaScriptTest::plainQUnit(), SpecialChangeContentModel::postText(), SpecialBlock::postText(), SkinTemplate::prepareQuickTemplate(), ImagePage::printSharedImageText(), SearchHighlighter::process(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), SpecialNuke::promptForm(), UserMailer::quotedPrintable(), ConvertExtensionToRegistration::removeAbsolutePath(), MediaWiki\Widget\Search\BasicSearchResultSetWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::render(), DifferenceEngine::renderNewRevision(), ProtectionForm::save(), ApiMain::sendCacheHeaders(), Action::setHeaders(), SpecialPage::setHeaders(), SpecialSearch::setupPage(), SkinFallback::setupSkinUserCss(), SkinApi::setupSkinUserCss(), SkinMonoBook::setupSkinUserCss(), SkinCologneBlue::setupSkinUserCss(), SkinModern::setupSkinUserCss(), SkinVector::setupSkinUserCss(), SkinTemplate::setupSkinUserCss(), EditAction::show(), ProtectAction::show(), DeleteAction::show(), ProtectionForm::show(), SpecialTags::showActivateDeactivateForm(), SpecialAllPages::showChunk(), SpecialCiteThisPage::showCitations(), SpecialTags::showDeleteTagForm(), DifferenceEngine::showDiffPage(), ConfirmEditHooks::showEditFormFields(), SimpleCaptcha::showEditFormFields(), ImagePage::showError(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialEditTags::showForm(), SpecialImport::showForm(), SpecialRevisionDelete::showForm(), SpecialMergeHistory::showHistory(), SpecialUndelete::showHistory(), SpecialExpandTemplates::showHtmlPreview(), SpecialWhatLinksHere::showIndirectLinks(), SpecialAutoblockList::showList(), SpecialBookSources::showList(), SpecialBlockList::showList(), SpecialUndelete::showList(), SpecialRenameuser::showLogExtract(), LogEventsList::showLogExtract(), ProtectionForm::showLogExtract(), MovePageForm::showLogFragment(), SpecialMergeHistory::showMergeForm(), DifferenceEngine::showMissingRevision(), SpecialPrefixindex::showPrefixChunk(), EmailConfirmation::showRequestForm(), SpecialSearch::showResults(), SpecialUndelete::showRevision(), SpecialUndelete::showSearchForm(), SpecialChangeCredentials::showSubpageList(), MovePageForm::showSubpagesList(), LoginSignupSpecialPage::showSuccessPage(), SpecialTags::showTagList(), SpecialVersion::softwareInformation(), Skin::subPageSubtitle(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), ChangeTags::tagUsageStatistics(), ExtraParserTest::testCleanSigInSig(), ExtensionProcessorTest::testExtractExtensionMessagesFiles(), ExtensionProcessorTest::testExtractMessagesDirs(), ExtensionProcessorTest::testExtractResourceLoaderModules(), ResourceLoaderStartUpModuleTest::testGetModuleRegistrations(), ResourceLoaderWikiModuleTest::testGetPages(), ParserMethodsTest::testGetSections(), ApiRevisionDeleteTest::testHidingRevisions(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionNoTrace(), MediaWiki\Logger\Monolog\LineFormatterTest::testNormalizeExceptionTrace(), ContentHandlerTest::testParserOutputForIndexing(), ResourceLoaderStartUpModuleTest::testRegistrationsMinified(), ResourceLoaderStartUpModuleTest::testRegistrationsUnminified(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), ApiRevisionDeleteTest::testUnhidingOutput(), DatabaseSqliteTest::testUpgrades(), SpecialUndelete::undelete(), ImagePage::uploadLinksBox(), ImagePage::view(), Article::viewRedirect(), PPFrame_Hash::virtualBracketedImplode(), PPFrame_DOM::virtualBracketedImplode(), PPFrame_Hash::virtualImplode(), PPFrame_DOM::virtualImplode(), wfHtmlValidationHandler(), XmlDumpWriter::writeContributor(), XmlDumpWriter::writeLogItem(), XmlDumpWriter::writeRevision(), and XmlDumpWriter::writeUploads().

◆ $output

static configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place $output

Definition at line 1049 of file hooks.txt.

Referenced by Maintenance::activateProfiler(), ProtectionForm::buildForm(), WikiExporter::closeStream(), StringUtils::delimiterReplaceCallback(), LinkHolderArray::doVariants(), SpecialRenameuser::execute(), SpecialContributions::execute(), ApiParse::execute(), SpecialWatchlist::execute(), SpecialExpandTemplates::execute(), SpecialEditTags::execute(), SpecialRevisionDelete::execute(), BlockLevelPass::execute(), SpecialPageExecutor::executeSpecialPage(), GadgetDefinitionContent::fillParserOutput(), JsonContent::fillParserOutput(), DummyContentForTesting::fillParserOutput(), DummyNonTextContent::fillParserOutput(), TextContent::fillParserOutput(), WikitextContent::fillParserOutput(), MediaWiki\Logger\Monolog\LineFormatter::format(), AutoloadGenerator::generatePHPAutoload(), CategoryMembershipChangeJob::getCategoriesAtRev(), TextContentHandler::getDataForSearchIndex(), ContentHandler::getDataForSearchIndex(), SpecialPageExecutor::getHTMLFromSpecialPage(), ChangesListBooleanFilter::getJsData(), ChangesListStringOptionsFilterGroup::getJsData(), ChangesListFilterGroup::getJsData(), ChangesListFilter::getJsData(), WebInstallerLanguage::getLanguageSelector(), EditPage::getPreviewLimitReport(), ChangesListSpecialPage::getStructuredFilterJsData(), DumpRenderer::handleRevision(), CryptHKDF::HKDFExpand(), StringUtils::hungryDelimiterReplace(), Profiler::logData(), Profiler::logDataPageOutputOnly(), MediaWiki::main(), SpecialExpandTemplates::makeOutput(), Maintenance::maybeHelp(), mccGetHelp(), onApiFormatHighlight(), onContentGetParserOutput(), InputBoxHooks::onMediaWikiPerformAction(), SpamBlacklistHooks::onParserOutputStashForEdit(), SpamBlacklistHooks::onUploadVerifyUpload(), ImagePage::openShowImage(), WikiExporter::openStream(), SpecialWatchlist::outputChangesList(), WikiExporter::outputLogStream(), WikiExporter::outputPageStream(), MediaWiki::performAction(), MediaWiki::performRequest(), Wikimedia\Rdbms\DatabasePostgres::pg_array_parse(), MediaWiki::preOutputCommit(), ParserTestPrinter::quickDiff(), SectionProfiler::remapCallTree(), ImageMap::render(), LinkHolderArray::replaceInternal(), LinkHolderArray::replaceInterwiki(), UserNotLoggedIn::report(), SpecialAllPages::showChunk(), SpecialGadgets::showExportForm(), UserrightsPage::showLogFragment(), SpecialGadgets::showMainForm(), SpecialPrefixindex::showPrefixChunk(), SpecialEditWatchlist::showTitles(), ExifBitmapHandler::swapICCProfile(), BalancerTest::testBalancer(), WfShellExecTest::testBug67870(), ContentHandlerTest::testDataIndexFields(), ArrayDiffFormatterTest::testFormat(), WfTimestampTest::testHttpDate(), WfTimestampTest::testNormalTimestamps(), WfTimestampTest::testOldTimestamps(), JpegPixelFormatTest::testPixelFormatRendering(), PreprocessorTest::testPreprocessorOutputFiles(), LocalisationUpdate\UpdaterTest::testReadMessages(), FormatMetadataTest::testResolveMultivalueValue(), ApiResultTest::testTransformations(), WfAssembleUrlTest::testWfAssembleUrl(), WfShorthandToIntegerTest::testWfShorthandToInteger(), TraditionalImageGallery::toHTML(), MediaWiki::tryNormaliseRedirect(), and GenerateJqueryMsgData::writeJavascriptFile().

◆ $page

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
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 2536 of file hooks.txt.

Referenced by ApiQueryQueryPage::__construct(), SpecialWatchlist::__construct(), QueryAllSpecialPagesTest::__construct(), AllMessagesTablePager::__construct(), MediaWikiTestCase::addCoreDBData(), BackupDumperPageTest::addDBData(), TextPassDumperDatabaseTest::addDBData(), SpecialMyLanguageTest::addDBDataOnce(), CategoryMembershipChangeTest::addDBDataOnce(), FetchTextTest::addDBDataOnce(), SpecialLog::addHeader(), ApiQueryPageProps::addPageProps(), DumpTestCase::addRevision(), FetchTextTest::addRevision(), EditPageTest::assertEdit(), BaseDumpTest::assertPrefetchEquals(), WikiImporter::beforeImportPage(), SkinTemplate::buildContentNavigationUrls(), SkinTemplate::buildPersonalUrls(), UnregisteredLocalFile::cachePageDimensions(), Title::checkCascadingSourcesRestrictions(), Orphans::checkOrphans(), Orphans::checkSeparation(), Orphans::checkWidows(), CleanupSpam::cleanupArticle(), SimpleCaptcha::confirmEditMerged(), Installer::createMainpage(), WikiPageTest::createPage(), RevisionStorageTest::createPage(), TestPageProps::createPage(), ApiDelete::delete(), UploadFromUrlTest::deleteFile(), ApiDelete::deleteFile(), ApiTestCaseUpload::deleteFileByTitle(), ParserCache::deleteOptionsKey(), ApiQueryWatchlistIntegrationTest::deletePage(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), FileDeleteForm::doDelete(), SpecialNuke::doDelete(), DifferenceEngineTest::doEdits(), WikiEditorHooks::doEventLogging(), SpecialExport::doExport(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), ApiQueryWatchlistIntegrationTest::doPageEdit(), MysqlUpdater::doPageRandomUpdate(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), PurgeList::doPurge(), MysqlUpdater::doSchemaRestructuring(), MovePageForm::doSubmit(), MockDjVuHandler::doTransform(), PdfHandler::doTransform(), DjVuHandler::doTransform(), UpdateSearchIndex::doUpdateSearchIndex(), ApiTestCase::editPage(), CategoryMembershipChangeJobTest::editPageText(), SimpleCaptcha::editShowCaptcha(), CompareParserCache::execute(), ApiSetNotificationTimestamp::execute(), ViewCLI::execute(), ApiPurge::execute(), ApiParse::execute(), SpecialExport::execute(), ApiQueryPageProps::execute(), DeleteDefaultMessages::execute(), MakeTestEdits::execute(), ImportSiteScripts::execute(), UpdateSpecialPages::execute(), Protect::execute(), AttachLatest::execute(), DeleteOrphanedRevisions::execute(), DumpLinks::execute(), EditCLI::execute(), ApiStashEdit::execute(), RollbackEdits::execute(), DeleteBatch::execute(), DeleteEqualMessages::execute(), ImportImages::execute(), WebInstaller::execute(), SpecialPageFactory::executePath(), SpecialPageExecutor::executeSpecialPage(), WikiPage::factory(), ImportSiteScripts::fetchScriptList(), GadgetDefinitionContent::fillParserOutput(), SpecialMyLanguage::findTitle(), WikiImporter::finishImportPage(), RefreshLinks::fixLinksFromArticle(), RefreshLinks::fixRedirect(), Skin::footerLink(), Skin::footerLinkTitle(), EditPageTest::forceRevisionDate(), ApiEditPageTest::forceRevisionDate(), foreach(), DeletedContribsPager::formatRevisionRow(), ContribsPager::formatRow(), ApiCSPReport::generateLogLine(), TitleBlacklist::getBlacklistText(), CoreParserFunctions::getCachedRevisionObject(), WikiReference::getCanonicalUrl(), ApiParse::getContent(), SearchSqlite::getCountQuery(), FileContentHandler::getDataForSearchIndex(), WikitextContentHandler::getDataForSearchIndex(), TextContentHandler::getDataForSearchIndex(), ContentHandler::getDataForSearchIndex(), GadgetDefinitionContent::getDeletionUpdates(), AbstractContent::getDeletionUpdates(), WebInstaller::getDocUrl(), Installer::getDocUrl(), WikiMap::getForeignURL(), SpecialPageLanguage::getFormFields(), WikiReference::getFullUrl(), UnregisteredLocalFile::getHeight(), LocalFile::getHeight(), FindHooks::getHooksFromOnlineDocCategory(), SpecialPageExecutor::getHTMLFromSpecialPage(), SpecialExport::getLinks(), WikiReference::getLocalUrl(), SearchNearMatcher::getNearMatchInternal(), ParserCache::getOptionsKey(), SpecialPageFactory::getPage(), PdfHandler::getPageDimensions(), DjVuHandler::getPageDimensions(), SpecialSpecialpages::getPageGroups(), PdfImage::getPageSize(), PdfHandler::getPageText(), DjVuHandler::getPageText(), ApiParse::getParsedContent(), DifferenceEngine::getParserOutput(), ContentHandler::getParserOutputForIndexing(), AbstractContent::getRedirectChain(), SearchExactMatchRescorer::getRedirectTarget(), ApiPageSet::getRedirectTargets(), SpecialPageFactory::getRegularPages(), SpecialPageFactory::getRestrictedPages(), DatabaseLogEntry::getTarget(), RCDatabaseLogEntry::getTarget(), File::getThumbnailBucket(), LogEventsList::getTypeSelector(), File::getUnscaledThumb(), WikiReference::getUrl(), SpecialPageFactory::getUsablePages(), UnregisteredLocalFile::getWidth(), LocalFile::getWidth(), WikiRevision::importOldRevision(), MediaWiki::initializeArticle(), ChangesList::insertLog(), MediaWikiTestCase::insertPage(), ChangesList::insertRollback(), LogPager::limitTitle(), WikiMap::makeForeignLink(), User::makeGroupLinkWiki(), Linker::makeImageLink(), PdfHandler::makeParamString(), DjVuHandler::makeParamString(), Linker::makeThumbLink2(), MediaWikiGadgetsDefinitionRepo::newFromDefinition(), Gadget::newFromDefinitionContent(), ImportStreamSource::newFromInterwiki(), WikiPage::newFromRow(), Article::newFromTitle(), Article::newFromWikiPage(), MediaWiki\Site\MediaWikiPageNameNormalizer::normalizePageName(), CategoryMembershipChangeJob::notifyUpdatesForRevision(), SpamBlacklistHooks::onArticleDeleteComplete(), GadgetHooks::onPageContentInsertComplete(), SpamBlacklistHooks::onParserOutputStashForEdit(), onRejectParserCacheValue(), RenameuserHooks::onShowMissingArticle(), SpecialChangeContentModel::onSubmit(), XmlDumpWriter::openPage(), ImagePage::openShowImage(), CoreParserFunctions::pagesize(), ApiStashEdit::parseAndStash(), DumpNotalkFilter::pass(), DumpNamespaceFilter::pass(), MediaWiki::performAction(), PdfImage::postProcessDump(), BaseDump::prefetch(), ResourceLoaderWikiModule::preloadTitleInfo(), SpecialUnblock::processUnblock(), SpecialWatchlistTest::provideFetchOptionsFromRequest(), SearchMssql::queryMain(), SearchOracle::queryMain(), SearchSqlite::queryMain(), LocalisationCache::recache(), MessageCache::replace(), ImportReporter::reportPage(), PdfImage::retrieveMetaData(), DeleteLinksJob::run(), CategoryMembershipChangeJob::run(), RefreshLinksJob::runForTitle(), ApiQueryRandom::runQuery(), ParserCache::save(), ApiRevisionDeleteTest::setUp(), TestPageProps::setUp(), SimpleCaptcha::shouldCheck(), SimpleCaptcha::showEditFormFields(), SpecialGadgets::showExportForm(), SpecialBookSources::showList(), LogEventsList::showLogExtract(), LogEventsList::showOptions(), CoreParserFunctions::special(), Language::specialList(), PrefixSearch::specialSearch(), EditPageTest::testAutoMerge(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), ApiQueryRevisionsTest::testContentComesWithContentModelAndFormat(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), ContentHandlerTest::testDataIndexFields(), WikitextContentHandlerTest::testDataIndexFieldsFile(), TextContentTest::testDeletionUpdates(), ActionTest::testDisabledAction_factoryReturnsFalse(), WikiPageTest::testDoDeleteArticle(), WikiPageTest::testDoDeleteUpdates(), WikiPageTest::testDoEditContent(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditAppend(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), ApiEditPageTest::testEditSection(), WikiPageTest::testExists(), TitleTest::testExists(), SpecialWatchlistTest::testFetchOptionsFromRequest(), RevisionStorageTest::testFetchRevision(), ImageListPagerTest::testFormatValuesThrowException(), WikiReferenceTest::testGetCanonicalUrl(), WikiPageTest::testGetContent(), WikiPageTestContentHandlerUseDB::testGetContentHandler(), WikiPageTest::testGetContentHandler(), WikiPageTestContentHandlerUseDB::testGetContentModel(), WikiPageTest::testGetContentModel(), UserTest::testGetEditCount(), WikiMapTest::testGetForeignURL(), WikiReferenceTest::testGetFullUrl(), RevisionStorageTest::testGetNext(), SpecialPageFactoryTest::testGetPage(), RevisionStorageTest::testGetPage(), MediaWikiSiteTest::testGetPageUrl(), SiteTest::testGetPageUrl(), WikiPageTest::testGetParserOutput(), RevisionStorageTest::testGetPrevious(), WikiPageTest::testGetRedirectTarget(), WikiPageTest::testGetRevision(), WikitextContentTest::testGetSecondaryDataUpdates(), WikiReferenceTest::testGetUrl(), WikiPageTest::testHasViewableContent(), ApiRevisionDeleteTest::testHidingRevisions(), ImportLinkCacheIntegrationTest::testImportForImportSource(), TitleTest::testIsAlwaysKnown(), WikiPageTest::testIsCountable(), RevisionStorageTest::testIsCurrent(), WikiPageTest::testIsRedirect(), WikiMapTest::testMakeForeignLink(), RevisionStorageTest::testNewFromArchiveRow(), RevisionStorageTest::testNewNullRevision(), ActionTest::testNull_canNotBeInstantiated(), ContentHandlerTest::testParserOutputForIndexing(), ApiQueryAllPagesTest::testPrefixNormalizationSearchBug(), QueryAllSpecialPagesTest::testQuerypageSqlQuery(), RefreshLinksPartitionTest::testRefreshLinks(), ApiSetNotificationTimestampIntegrationTest::testStuff(), ApiEditPageTest::testSupportsDirectApiEditing_withContentHandlerOverride(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), ApiRevisionDeleteTest::testUnhidingOutput(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), RevisionStorageTest::testUserWasLastToEdit(), ApiWatchTest::testWatchClear(), PageArchive::undeleteRevisions(), SpecialEditWatchlist::unwatchTitles(), Linker::userLink(), DumpMultiWriter::writeOpenPage(), and DumpFilter::writeOpenPage().

◆ $parser

function wfGetCustomMagicWordValue $parser
Initial value:
{
$parser->setFunctionHook( 'mag_custom', 'wfGetCustomMagicWordValue' )

Definition at line 2536 of file hooks.txt.

Referenced by ParserDiffTest::__call(), PhpXmlBugTester::__construct(), InputBox::__construct(), CoreParserFunctions::anchorencode(), CoreParserFunctions::bidi(), CoreParserFunctions::cascadingsources(), CoreParserFunctions::defaultsort(), CoreParserFunctions::displaytitle(), JSParseHelper::execute(), FindDeprecated::execute(), CoreParserFunctions::filepath(), CoreParserFunctions::formatDate(), CoreParserFunctions::formatnum(), ParserFuzzTest::fuzzTest(), CoreTagHooks::gallery(), CoreParserFunctions::gender(), CoreParserFunctions::getCachedRevisionObject(), Linker::getImageLinkMTOParams(), CoreParserFunctions::grammar(), ParserMethodsTest::helperParserFunc(), CoreTagHooks::html(), ExtParserFunctions::iferrorObj(), ExtParserFunctions::ifexistCommon(), ExtParserFunctions::ifexistObj(), ExtParserFunctions::ifexprObj(), CoreTagHooks::indicator(), Poem::init(), CoreParserFunctions::intFunction(), Xml::isWellFormed(), CoreParserFunctions::lc(), ExtParserFunctions::localTime(), ExtParserFunctions::localTimeObj(), DummyLinker::makeImageLink(), Linker::makeImageLink(), CoreParserFunctions::nse(), CoreParserFunctions::numberingroup(), CoreParserFunctions::numberofactiveusers(), CoreParserFunctions::numberofadmins(), CoreParserFunctions::numberofarticles(), CoreParserFunctions::numberofedits(), CoreParserFunctions::numberoffiles(), CoreParserFunctions::numberofpages(), CoreParserFunctions::numberofusers(), ParserFunctionsHooks::onParserFirstCallInit(), ImageMap::onParserFirstCallInit(), CoreParserFunctions::pad(), CoreParserFunctions::padleft(), CoreParserFunctions::padright(), CoreParserFunctions::pageid(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesinnamespace(), CoreParserFunctions::pagesize(), MessageCache::parse(), CoreParserFunctions::plural(), WikiPage::prepareContentForEdit(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), TextPassDumper::readDump(), InputBoxHooks::register(), CoreTagHooks::register(), CoreParserFunctions::register(), ExtParserFunctions::rel2abs(), InputBoxHooks::render(), ImageMap::render(), Poem::renderPoem(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), ExtParserFunctions::runCount(), ExtParserFunctions::runExplode(), ExtParserFunctions::runLen(), ExtParserFunctions::runPos(), ExtParserFunctions::runReplace(), ExtParserFunctions::runRPos(), ExtParserFunctions::runSub(), ExtParserFunctions::runUrlDecode(), ParserDiffTest::setFunctionHook(), ImageGalleryBase::setParser(), ParserTestParserHook::setup(), ParserOptions::setupFakeRevision(), SpecialCiteThisPage::showCitations(), CoreParserFunctions::special(), CoreParserFunctions::speciale(), TextPassDumper::startElement(), ParserTestParserHook::staticTagHook(), CoreParserFunctions::tagObj(), TagHookTest::testBadFunctionTagHooks(), TagHookTest::testBadTagHooks(), TagHookTest::testFunctionTagHooks(), JavaScriptMinifierTest::testJavaScriptMinifierOutput(), TagHookTest::testTagHooks(), ExtParserFunctions::time(), ExtParserFunctions::timeCommon(), ExtParserFunctions::timeObj(), MessageCache::transform(), CoreParserFunctions::uc(), CoreParserFunctions::urlencode(), ResourceLoaderModule::validateScriptFile(), and ParserTestPrinter::wellFormed().

◆ $parserOutput

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 $parserOutput

Definition at line 1049 of file hooks.txt.

Referenced by LinksUpdate::__construct(), OutputPage::addParserOutput(), OutputPage::addParserOutputContent(), OutputPage::addParserOutputMetadata(), OutputPage::addParserOutputNoText(), OutputPage::addParserOutputText(), OutputPage::addWikiTextTitle(), LinksUpdateTest::assertLinksUpdate(), ApiStashEdit::buildStashValue(), EditPage::doPreviewParse(), MediaWiki\Search\ParserOutputSearchDataExtractor::getCategories(), WikitextContentHandler::getDataForSearchIndex(), GadgetDefinitionContent::getDeletionUpdates(), MediaWiki\Search\ParserOutputSearchDataExtractor::getExternalLinks(), MediaWiki\Search\ParserOutputSearchDataExtractor::getOutgoingLinks(), DifferenceEngine::getParserOutput(), WikiPage::getParserOutput(), ContentHandler::getParserOutputForIndexing(), EditPage::getPreviewText(), GadgetDefinitionContent::getSecondaryDataUpdates(), AbstractContent::getSecondaryDataUpdates(), MediaWiki\Search\ParserOutputSearchDataExtractor::getTemplates(), onRejectParserCacheValue(), OutputPage::parse(), DifferenceEngine::renderNewRevision(), RefreshLinksJob::runForTitle(), ParserCache::save(), TagHookTest::testFunctionTagHooks(), ParserOutputSearchDataExtractorTest::testGetCategories(), ParserOutputSearchDataExtractorTest::testGetExternalLinks(), ParserOutputSearchDataExtractorTest::testGetOutgoingLinks(), ParserOutputSearchDataExtractorTest::testGetTemplates(), ExtraParserTest::testParse(), TagHookTest::testTagHooks(), ExtraParserTest::testTrackingCategory(), ExtraParserTest::testTrackingCategorySpecial(), Article::triggerOpportunisticLinksUpdate(), and WikiPage::triggerOpportunisticLinksUpdate().

◆ $personal_urls

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 my talk my contributions etc& $personal_urls

Definition at line 2536 of file hooks.txt.

Referenced by SkinTemplate::buildPersonalUrls().

◆ $pre

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 $pre

◆ $query

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 & $query

Definition at line 1572 of file hooks.txt.

Referenced by ApiQueryReferences::__construct(), ApiQueryStashImageInfo::__construct(), ApiQueryMyStashedFiles::__construct(), ApiQueryTitleBlacklist::__construct(), ApiQueryPrefixSearch::__construct(), ApiQueryExtLinksUsage::__construct(), ApiQueryFileRepoInfo::__construct(), ApiQueryAllUsers::__construct(), ApiQueryAuthManagerInfo::__construct(), ApiQueryAllRevisions::__construct(), ApiQueryBlocks::__construct(), ApiQueryIWBacklinks::__construct(), ApiQueryCategories::__construct(), ApiQueryLangBacklinks::__construct(), ApiQueryLangLinks::__construct(), ApiQueryAllMessages::__construct(), ApiQueryCategoryMembers::__construct(), ApiQueryLogEvents::__construct(), ApiQueryProtectedTitles::__construct(), ApiQueryDuplicateFiles::__construct(), ApiQueryRandom::__construct(), ApiQueryExternalLinks::__construct(), ApiQueryTags::__construct(), ApiQueryContributions::__construct(), ApiQueryImages::__construct(), ApiQueryIWLinks::__construct(), ApiQueryCategoryInfo::__construct(), ApiQueryPagePropNames::__construct(), ApiQueryAllPages::__construct(), ApiQueryPagesWithProp::__construct(), ApiQueryDeletedRevisions::__construct(), ApiQueryQueryPage::__construct(), ApiQueryRecentChanges::__construct(), ApiQueryDeletedrevs::__construct(), ApiQueryAllCategories::__construct(), ApiQueryAllDeletedRevisions::__construct(), ApiQueryImageInfo::__construct(), ApiQueryPageProps::__construct(), ApiQueryFilearchive::__construct(), ApiQueryWatchlist::__construct(), ApiQueryWatchlistRaw::__construct(), ApiQuerySearch::__construct(), ApiQueryAllImages::__construct(), ApiQueryLinks::__construct(), ApiQueryRevisions::__construct(), ApiQueryAllLinks::__construct(), ApiQueryContributors::__construct(), ApiQueryUserInfo::__construct(), ApiQueryUsers::__construct(), ApiQueryInfo::__construct(), ApiQueryBacklinks::__construct(), ApiQueryBacklinksprop::__construct(), OutputPage::addBacklinkSubtitle(), OutputPage::addReturnTo(), SpecialUserLogin::beforeExecute(), OutputPage::buildBacklinkSubtitle(), SkinTemplate::buildPersonalUrls(), Linker::buildRollbackLink(), SpecialPage::checkLoginSecurityLevel(), PostgresUpdater::describeIndex(), SpecialRedirect::dispatchLog(), SpecialRecentChangesLinked::doMainQuery(), Wikimedia\Rdbms\DatabaseMysqlBase::duplicateTableStructure(), ApiQueryExternalLinks::execute(), RedirectSpecialPage::execute(), SpecialRecentChanges::execute(), BatchedQueryRunner::execute(), MwSql::execute(), RandomPage::execute(), SpecialSearch::execute(), LoginSignupSpecialPage::execute(), SpecialPageFactory::executePath(), SpecialJavaScriptTest::exportQUnit(), ForeignAPIRepo::fetchImageQuery(), IEUrlExtension::fixUrlForIE6(), Title::fixUrlQueryArgs(), SpecialUndelete::formatFileRow(), SpecialNewpages::formatRow(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), DeleteLogFormatter::getActionLinks(), Title::getCanonicalURL(), SearchMySQL::getCountQuery(), MultiHttpClient::getCurlHandle(), DeletedContribsPager::getDefaultQuery(), LogPager::getDefaultQuery(), ContribsPager::getDefaultQuery(), UsersPager::getDefaultQuery(), MediaTransformOutput::getDescLinkAttribs(), FileRepo::getDescriptionRenderUrl(), SpecialRecentChanges::getFeedQuery(), LogEventsList::getFilterLinks(), ImageListPager::getForm(), Title::getFullURL(), Title::getFullUrlForRedirect(), ApiPageSet::getGenerators(), OutputPage::getHeadLinksArray(), TablePager::getHiddenFields(), Linker::getImageLinkMTOParams(), ForeignAPIRepo::getInfo(), Title::getInternalURL(), IRCColourfulRCFeedFormatter::getLine(), MediaWiki\Linker\LinkRenderer::getLinkURL(), Title::getLinkURL(), Title::getLocalURL(), PatrolLogFormatter::getMessageParameters(), WebInstaller::getPageListItem(), IndexPager::getPagingLinks(), ImageListPager::getPagingQueries(), SearchMySQL::getQuery(), NewFilesPager::getQueryInfo(), WantedPagesPage::getQueryInfo(), UncategorizedCategoriesPage::getQueryInfo(), WithoutInterwikiPage::getQueryInfo(), UsersPager::getQueryInfo(), SpecialRunJobs::getQuerySignature(), Linker::getRevDeleteLink(), OutputPage::getRlClientContext(), LogEventsList::getShowHideLinks(), TablePager::getStartBody(), Linker::getUploadUrl(), ResourceLoaderImage::getUrl(), WebInstaller::getUrl(), EditPage::handleStatus(), HistoryPager::historyLine(), ForeignAPIRepo::httpGetCached(), ImageHistoryList::imageHistoryLine(), ImagePage::imageLinks(), ChangesList::insertDiffHist(), SearchMySQL::limitResult(), DummyLinker::link(), Linker::link(), DummyLinker::linkKnown(), Linker::linkKnown(), SpecialWhatLinksHere::listItem(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), LinkHolderArray::makeHolder(), DummyLinker::makeImageLink(), Linker::makeImageLink(), MediaWiki\Linker\LinkRenderer::makeKnownLink(), LoginSignupSpecialPage::makeLanguageSelectorLink(), MediaWiki\Linker\LinkRenderer::makeLink(), IndexPager::makeLink(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), SpecialWhatLinksHere::makeSelfLink(), DummyLinker::makeSelfLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), FileRepo::makeUrl(), LinkSearchPage::mungeQuery(), Language::numLink(), SwiftFileBackend::objectListing(), SpecialChangeEmail::onSuccess(), SearchEngine::parseNamespacePrefixes(), MediaWiki::performRequest(), ApiQueryBase::prepareUrlQuerySearchString(), MarkpatrolledAction::preText(), WfAssembleUrlTest::provideURLParts(), MWDebug::query(), SearchMySQL::queryFeatures(), SearchMySQL::queryMain(), SearchMySQL::queryNamespaces(), DeletedContribsPager::reallyDoQuery(), ContribsPager::reallyDoQuery(), QueryPage::reallyDoQuery(), EnhancedChangesList::recentChangesBlockLine(), Wikimedia\Rdbms\TransactionProfiler::recordQueryCompletion(), SpecialUndelete::redirectToRevDel(), CSSMin::remapOne(), LinkHolderArray::replaceInternal(), SearchEngine::replacePrefixes(), UserNotLoggedIn::report(), DummyLinker::revDeleteLink(), Linker::revDeleteLink(), ApiQueryExtLinksUsage::run(), ApiQuerySearch::run(), MediaWiki\Linker\LinkRenderer::runBeginHook(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), SearchMySQL::searchInternal(), SearchPostgres::searchQuery(), RandomPage::selectRandomPageFromDB(), SpecialRandomInCategory::selectRandomPageFromDB(), OutputPage::setFeedAppendQuery(), SkinTemplate::setupTemplateForOutput(), SpecialAllPages::showChunk(), DifferenceEngine::showDiffPage(), OutputPage::showPermissionsErrorPage(), SpecialPrefixindex::showPrefixChunk(), Article::showRedirectedFromHeader(), SkinTemplate::tabAction(), WfAppendQueryTest::testAppendQuery(), PrefixUniquenessTest::testPrefixes(), SpecialSearchTest::testSubPageRedirect(), MediaWikiTest::testTryNormaliseRedirect(), ThumbnailImage::toHtml(), Wikimedia\Rdbms\TransactionProfiler::transactionWritingOut(), MediaWiki::triggerAsyncJobs(), ResourceFileCache::useFileCache(), HTMLFileCache::useFileCache(), and Language::viewPrevNext().

◆ $refreshCache

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next $refreshCache

◆ $req

this hook is for auditing only $req

Definition at line 990 of file hooks.txt.

Referenced by _recaptcha_http_post(), _recaptcha_qsencode(), MediaWiki\Auth\AuthManagerAuthPlugin::allowPasswordChange(), MediaWiki\Auth\AuthManager::allowsAuthenticationDataChange(), SwiftVirtualRESTService::applyAuthResponse(), EditPageTest::assertEdit(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAuthentication(), ApiAuthManagerHelper::blacklistAuthenticationRequests(), SpecialActiveUsers::buildForm(), MediaWiki\Auth\AuthManager::changeAuthenticationData(), User::changeAuthenticationData(), ApiQueryTestBase::check(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), RESTBagOStuff::delete(), UploadFromUrlTest::doApiRequest(), SwiftFileBackend::doExecuteOpHandlesInternal(), RESTBagOStuff::doGet(), WikiEditorHooks::editPageShowEditFormFields(), SpecialNuke::execute(), ApiChangeAuthenticationData::execute(), ApiEditPage::execute(), ApiParse::execute(), ApiRemoveAuthenticationData::execute(), ApiAMCreateAccount::execute(), ApiClientLogin::execute(), PasswordReset::execute(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::failResponse(), MediaWiki\Auth\AuthManager::fillRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ApiAuthManagerHelper::formatRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), SpecialChangeCredentials::getAuthForm(), CaptchaPreAuthenticationProviderTest::getCaptchaRequest(), MultiHttpClient::getCurlHandle(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::getInstance(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::getLinkRequests(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::getLinkRequests(), MediaWiki\Auth\AuthenticationRequest::getRequestByClass(), MediaWiki\Auth\ButtonAuthenticationRequest::getRequestByName(), MediaWiki\Auth\ConfirmLinkAuthenticationRequest::getUniqueId(), MediaWiki\Auth\AuthenticationRequest::getUsernameFromRequests(), AuthManagerSpecialPage::hasOwnSubmitButton(), ForeignAPIRepo::httpGet(), SpecialChangeCredentials::loadAuth(), AuthManagerSpecialPage::loadAuth(), ApiAuthManagerHelper::loadAuthenticationRequests(), MediaWiki\Auth\AuthenticationRequest::loadRequestsFromSubmission(), ResourceLoaderClientHtml::makeContext(), ApiQueryTestBase::merge(), MediaWiki\Auth\AuthenticationRequest::mergeFieldInfo(), WebRequestTest::mockWebRequest(), AuthManagerSpecialPage::needsSubmitButton(), MathCaptcha::onAuthChangeFormFields(), QuestyCaptcha::onAuthChangeFormFields(), ReCaptcha::onAuthChangeFormFields(), FancyCaptcha::onAuthChangeFormFields(), SimpleCaptcha::onAuthChangeFormFields(), ParsoidVirtualRESTService::onParsoid1Request(), RestbaseVirtualRESTService::onParsoid1Request(), RestbaseVirtualRESTService::onParsoid3Request(), RestbaseVirtualRESTService::onParsoidRequests(), VirtualRESTService::onRequests(), RestbaseVirtualRESTService::onRequests(), ParsoidVirtualRESTService::onRequests(), SwiftVirtualRESTService::onRequests(), SwiftVirtualRESTService::onResponses(), SpecialUploadStash::outputRemoteScaledThumb(), AuthManagerSpecialPage::performAuthenticationStep(), MediaWiki\Auth\AuthManagerTest::provideAccountCreation(), MediaWiki\Auth\AuthManagerTest::provideAccountLink(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), MediaWiki\Auth\AuthenticationResponseTest::provideConstructors(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), UploadFromUrl::reallyFetchFile(), Http::request(), MultiHttpClient::runMulti(), VirtualRESTServiceClient::runMulti(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), RESTBagOStuff::set(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::setDomain(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), SpecialChangeCredentials::showSubpageList(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAllowsAuthenticationDataChange(), ApiLoginTest::testApiLoginGotCookie(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\AuthManagerTest::testChangeAuthenticationData(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), FauxRequestTest::testConstructInvalidData(), FauxRequestTest::testConstructInvalidSession(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testConstruction(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), FauxRequestTest::testCookies(), FauxRequestTest::testCookiesDefaultPrefix(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), FauxRequestTest::testDummies(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), WebRequestTest::testGetArray(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), WebRequestTest::testGetBool(), WebRequestTest::testGetCheck(), WebRequestTest::testGetElapsedTime(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testGetFieldInfo2(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::testGetFieldInfo_2(), WebRequestTest::testGetFloat(), WebRequestTest::testGetFuzzyBool(), WebRequestTest::testGetFuzzyBoolDefault(), WebRequestTest::testGetInt(), WebRequestTest::testGetIntArray(), WebRequestTest::testGetIntOrNull(), FauxRequestTest::testGetMethod(), FauxRequestTest::testGetQueryValues(), FauxRequestTest::testGetRawVal(), WebRequestTest::testGetRawVal(), FauxRequestTest::testGetRequestURL(), FauxRequestTest::testGetText(), WebRequestTest::testGetText(), MediaWiki\Auth\ButtonAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\ConfirmLinkAuthenticationRequestTest::testGetUniqueId(), MediaWiki\Auth\AuthenticationRequestTest::testGetUsernameFromRequests(), FauxRequestTest::testGetVal(), WebRequestTest::testGetVal(), WebRequestTest::testGetValNormal(), WebRequestTest::testGetValueNames(), FauxRequestTest::testGetValues(), WebRequestTest::testGetValues(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), FauxRequestTest::testProtocol(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testProviderRevokeAccessForUser(), FauxRequestTest::testSessionData(), FauxRequestTest::testSetRequestURL(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), CaptchaPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWikiTest::testTryNormaliseRedirect(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), FauxRequestTest::testWasPosted(), MediaWiki\Tidy\Html5Depurate::tidy(), MediaWiki::triggerAsyncJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), CaptchaPreAuthenticationProvider::verifyCaptcha(), and ApiCSPReport::verifyPostBodyOk().

◆ $request

error also a ContextSource you ll probably need to make sure the header is varied on $request

Definition at line 2612 of file hooks.txt.

Referenced by ApiContinuationManager::__construct(), UsersPager::__construct(), AllMessagesTablePager::__construct(), ApiMain::__construct(), SkinTemplate::buildContentNavigationUrls(), SkinTemplate::buildNavUrls(), SkinTemplate::buildPersonalUrls(), SpecialPage::checkLoginSecurityLevel(), CategoryPage::closeShowCategory(), ApiPageSetTest::createPageSetWithRedirect(), Article::delete(), SpecialRedirect::dispatchFile(), SimpleCaptcha::doConfirmEdit(), SwiftFileBackend::doCopyInternal(), SwiftFileBackend::doCreateInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SpecialImport::doImport(), SwiftFileBackend::doMoveInternal(), SwiftFileBackend::doStoreInternal(), SpecialInterwiki::doSubmit(), WikiEditorHooks::editPageAttemptSave(), WikiEditorHooks::editPageAttemptSaveAfter(), WikiEditorHooks::editPageShowEditFormInitial(), SpecialRenameuser::execute(), SpecialApiHelp::execute(), SpecialContributions::execute(), ApiUpload::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), SpecialInterwiki::execute(), SpecialExport::execute(), SpecialBlockList::execute(), SpecialPagesWithProp::execute(), SpecialAllMessages::execute(), SpecialWatchlist::execute(), SpecialPrefixindex::execute(), SpecialTags::execute(), LinkSearchPage::execute(), SpecialExpandTemplates::execute(), SpecialAllPages::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), SpecialSearch::execute(), SpecialRevisionDelete::execute(), ApiOptionsTest::executeQuery(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), HistoryAction::feed(), SpecialWatchlist::fetchOptionsFromRequest(), Action::getActionName(), ReCaptcha::getCaptchaParamsFromRequest(), SimpleCaptcha::getCaptchaParamsFromRequest(), ApiUpload::getChunkResult(), DerivativeResourceLoaderContextTest::getContext(), ActionTest::getContext(), MediaWiki\Session\CookieSessionProvider::getCookie(), MWDebug::getDebugInfo(), User::getEditToken(), User::getEditTokenObject(), MediaWiki\Session\SessionManager::getEmptySession(), MediaWiki\Session\SessionManager::getEmptySessionInternal(), LoginSignupSpecialPage::getFakeTemplate(), HTMLFancyCaptchaFieldTest::getForm(), MediaWiki\Session\SessionManager::getGlobalSession(), SpecialEditWatchlist::getMode(), ApiModuleManagerTest::getModuleManager(), SpecialPageAction::getName(), Article::getOldIDFromRequest(), ApiBase::getParameterFromSettings(), SpecialChangeCredentials::getPreservedParams(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::getProvider(), RawAction::getRawText(), RedirectSpecialPage::getRedirectQuery(), ResourceLoaderTestCase::getResourceLoaderContext(), SpecialChangeCredentials::getReturnUrl(), ApiOptionsTest::getSampleRequest(), MediaWiki\Session\SessionBackend::getSession(), MediaWiki\Session\SessionManager::getSessionById(), MediaWiki\Session\SessionManager::getSessionForRequest(), MediaWiki\Session\SessionManager::getSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookie::getSessionIdFromCookie(), MediaWiki\Session\SessionManager::getSessionInfoForRequest(), SpecialBlock::getTargetAndType(), ApiTokens::getTokenTypes(), MediaWiki\Session\CookieSessionProvider::getUserInfoFromCookies(), InstallerOverrides::getWebInstaller(), ApiMain::handleCORS(), AuthManagerSpecialPage::handleReauthBeforeExecute(), EditPage::handleStatus(), OutputPage::haveCacheVaryCookies(), ThumbnailRenderJob::hitThumbUrl(), EditPage::importFormData(), FileCacheBase::incrMissesRecent(), MediaWiki::initializeArticle(), UploadFromFile::initializeFromRequest(), UploadFromStash::initializeFromRequest(), UploadFromUrl::initializeFromRequest(), HTMLButtonField::isBadIE(), HTMLFormField::isSubmitAttempt(), UploadFromStash::isValidRequest(), UploadFromUrl::isValidRequest(), ApiMain::lacksSameOriginSecurity(), LoginSignupSpecialPage::load(), SpecialSearch::load(), AuthManagerSpecialPage::loadAuth(), ProtectionForm::loadData(), HTMLForm::loadData(), HTMLSubmitField::loadDataFromRequest(), HTMLUsersMultiselectField::loadDataFromRequest(), HTMLRestrictionsField::loadDataFromRequest(), HTMLSizeFilterField::loadDataFromRequest(), HTMLDateTimeField::loadDataFromRequest(), HTMLSelectAndOtherField::loadDataFromRequest(), HTMLSelectOrOtherField::loadDataFromRequest(), HTMLAutoCompleteSelectField::loadDataFromRequest(), HTMLCheckField::loadDataFromRequest(), HTMLFormFieldCloner::loadDataFromRequest(), HTMLMultiSelectField::loadDataFromRequest(), HTMLCheckMatrix::loadDataFromRequest(), HTMLFormField::loadDataFromRequest(), SpecialUndelete::loadRequest(), SpecialUpload::loadRequest(), LoginSignupSpecialPage::loadRequestParameters(), SpecialMergeHistory::loadRequestParams(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), Profiler::logData(), ApiBase::logFeatureUsage(), BotPassword::login(), ApiMain::logRequest(), MediaWiki::main(), User::matchEditToken(), User::matchEditTokenNoSuffix(), ApiQueryTestBase::merge(), MWDebugTest::newApiRequest(), SpecialPageExecutor::newContext(), User::newFromSession(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest::newInvalid(), MediaWiki\Session\Session\BotPasswordSessionProvider::newSessionForRequest(), InputBoxHooks::onMediaWikiPerformAction(), InputBoxHooks::onSpecialPageBeforeExecute(), SpecialChangeEmail::onSuccess(), RawAction::onView(), RollbackAction::onView(), HistoryAction::onView(), ImagePage::openShowImage(), MediaWiki::parseTitle(), MediaWiki::performAction(), MediaWiki::performRequest(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), SpecialSearch::powerSearch(), MediaWiki::preOutputCommit(), SkinTemplate::prepareQuickTemplate(), MWRestrictionsTest::provideCheck(), ApiQueryContinueTestBase::query(), SquidPurgeClient::queuePurge(), MediaWiki\Session\Session\BotPasswordSessionProvider::refreshSessionInfo(), ApiQueryRandom::run(), EditPage::safeUnicodeInput(), ProtectionForm::save(), MediaWiki\Session\SessionBackend::save(), SpecialSearch::saveNamespaces(), ApiUpload::selectUploadModule(), MediaWiki\Session\Session::sessionWithRequest(), User::setCookie(), User::setCookies(), SpecialPageExecutor::setEditTokenFromUser(), MediaWiki\Session\CookieSessionProvider::setForceHTTPSCookie(), MediaWiki\Session\CookieSessionProvider::setLoggedOutCookie(), SpecialBlock::setParameter(), AuthManagerSpecialPage::setRequest(), MWHttpRequestTestCase::setUp(), ApiMain::setupExternalResponse(), SkinTemplate::setupTemplateForOutput(), SimpleCaptcha::shouldCheck(), Article::showDiffPage(), SpecialInterwiki::showForm(), SpecialExpandTemplates::showHtmlPreview(), OutputPage::showPermissionsErrorPage(), Article::showRedirectedFromHeader(), HTMLSubmitField::skipLoadData(), SpecialEditTags::submit(), DummySessionProvider::suggestLoginUsername(), WebRequestTest::testAcceptLang(), ApiOptionsTest::testAnon(), ApiMainTest::testApiErrorFormatterCreation(), MWDebugTest::testAppendDebugInfoToApiResultXmlFormat(), MWHttpRequestTestCase::testBasicAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), ApiOptionsTest::testChange(), MWRestrictionsTest::testCheck(), ApiMainTest::testCheckConditionalRequestHeaders(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), ApiMainTest::testConditionalRequestHeadersOutput(), MediaWiki\Session\SessionTest::testConstructor(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), PasswordResetTest::testExecute_email(), HTMLRestrictionsFieldTest::testForm(), ActionTest::testGetActionName_whenCanNotUseWikiPage_defaultsToView(), FauxRequestTest::testGetAllHeaders(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Session\CookieSessionProviderTest::testGetCookie(), MediaWiki\Session\SessionManagerTest::testGetEmptySession(), MWHttpRequestTestCase::testgetFinalUrl(), MediaWiki\Session\SessionManagerTest::testGetGlobalSession(), WebRequestTest::testGetIP(), WebRequestTest::testGetIpLackOfRemoteAddrThrowAnException(), MWHttpRequestTestCase::testGetResponseHeaders(), MediaWiki\Session\SessionManagerTest::testGetSessionForRequest(), MediaWiki\Session\SessionManagerTest::testGetSessionFromInfo(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testGetSessionIdFromCookie(), FauxRequestTest::testGetSetHeader(), MWHttpRequestTestCase::testGetStatus(), UserTest::testIsPingLimitable(), MWHttpRequestTestCase::testIsRedirect(), ApiMainTest::testLacksSameOriginSecurity(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), BotPasswordTest::testLogin(), ApiOptionsTest::testMultiSelect(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), ApiOptionsTest::testNoChanges(), ApiOptionsTest::testNoOptionname(), ApiOptionsTest::testNoToken(), ApiOptionsTest::testOptionResetValue(), ApiOptionsTest::testOptionWithValue(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), MediaWiki\Session\BotPasswordSessionProviderTest::testProvideSessionInfo(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), ApiOptionsTest::testReset(), MediaWiki\Session\SessionBackendTest::testResetIdOfGlobalSession(), ApiOptionsTest::testResetKinds(), MWHttpRequestTestCase::testSetCallback(), MWHttpRequestTestCase::testSetCookie(), MWHttpRequestTestCase::testSetCookieJar(), MWHttpRequestTestCase::testSetData(), MWHttpRequestTestCase::testSetHeader(), MediaWiki\Session\CookieSessionProviderTest::testSetLoggedOutCookie(), MWHttpRequestTestCase::testSetUserAgent(), UserTest::testSoftBlockRanges(), ApiOptionsTest::testSpecialOption(), ApiPageSetTest::testSpecialRedirects(), HTMLReCaptchaNoCaptchaFieldTest::testSubmit(), HTMLSubmittedValueFieldTest::testSubmit(), MediaWiki\Session\CookieSessionProviderTest::testSuggestLoginUsername(), MediaWiki\Session\SessionBackendTest::testTakeOverGlobalSession(), ApiOptionsTest::testUnknownOption(), MediaWiki\Session\SessionBackendTest::testUnpersistOfGlobalSession(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testUnpersistSession(), MediaWiki\Session\CookieSessionProviderTest::testUnpersistSession(), ApiOptionsTest::testUserjsOption(), UploadStashTest::testValidRequestWithInvalidRequests(), UploadStashTest::testValidRequestWithValidRequests(), HTMLFancyCaptchaFieldTest::testValue(), EditPage::tokenOk(), MediaWiki::tryNormaliseRedirect(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), OutputPage::userCanPreview(), CategoryPage::view(), and ImagePage::view().

◆ $requests

◆ $res

see documentation in includes Linker php for Linker::makeImageLink or false for current& $res

Definition at line 934 of file hooks.txt.

◆ $resourceLoader

◆ $ResourceLoader

For QUnit the mediawiki tests qunit testrunner dependency will be added to any module& $ResourceLoader

Definition at line 2742 of file hooks.txt.

◆ $response

this hook is for auditing only $response

Definition at line 783 of file hooks.txt.

Referenced by _recaptcha_http_post(), MWHttpRequestTestCase::assertResponseFieldValue(), ApiMain::checkMaxLag(), Block::clearCookie(), SpecialUnlinkAccounts::execute(), SpecialLinkAccounts::execute(), SpecialRunJobs::execute(), RunJobs::execute(), SpecialChangeCredentials::execute(), LoginSignupSpecialPage::execute(), SpecialPageExecutor::executeSpecialPage(), ApiLogin::getAuthenticationResponseLogData(), ReCaptcha::getCaptchaParamsFromRequest(), ApiQueryWatchlistRawIntegrationTest::getItemsFromApiResponse(), ApiQueryWatchlistIntegrationTest::getItemsFromApiResponse(), ApiMain::handleCORS(), ApiMain::handleException(), ParserEditTests::handleFailure(), SpecialUnlinkAccounts::handleFormSubmit(), SpecialChangeCredentials::handleFormSubmit(), AuthManagerSpecialPage::handleFormSubmit(), RawAction::onView(), OutputPage::output(), ReCaptcha::passCaptcha(), MediaWiki\Session\ImmutableSessionProviderWithCookie::persistSession(), MediaWiki\Session\CookieSessionProvider::persistSession(), CaptchaPreAuthenticationProvider::postAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), JobRunner::run(), MediaWiki\Logger\Monolog\KafkaHandler::send(), OutputPage::sendCacheControl(), ApiMain::sendCacheHeaders(), MediaWiki\Session\CookieSessionProvider::setForceHTTPSCookie(), EditPage::setPostEditCookie(), SpecialUndelete::showFile(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), ApiOptionsTest::testChange(), ApiMainTest::testConditionalRequestHeadersOutput(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetAuthenticationRequests(), ResourceLoaderTest::testMakeModuleResponseError(), ResourceLoaderTest::testMakeModuleResponseStartupError(), ApiOptionsTest::testMultiSelect(), ApiOptionsTest::testOptionResetValue(), ApiOptionsTest::testOptionWithValue(), BatchRowUpdateTest::testReaderBasicIterate(), ApiOptionsTest::testReset(), ApiOptionsTest::testResetChangeOption(), ApiOptionsTest::testResetKinds(), ApiOptionsTest::testSpecialOption(), ApiOptionsTest::testUnknownOption(), ApiOptionsTest::testUserjsOption(), MediaWiki\Session\ImmutableSessionProviderWithCookie::unpersistSession(), MediaWiki\Session\CookieSessionProvider::unpersistSession(), and wfStreamThumb().

◆ $ret

either a unescaped string or a HtmlArmor object after in associative array form & $ret

Definition at line 1956 of file hooks.txt.

Referenced by MediaWiki\Auth\ConfirmLinkAuthenticationRequest::__set_state(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::__set_state(), CaptchaAuthenticationRequest::__set_state(), MediaWiki\Auth\ButtonAuthenticationRequest::__set_state(), MediaWiki\Auth\AuthenticationRequest::__set_state(), MemcachedClient::_load_items(), Benchmarker::addResult(), ApiResult::applyTransformations(), ArrayUtils::arrayDiffAssocRecursive(), MediaWiki\Auth\AuthManager::autoCreateUser(), ExternalStoreDB::batchFetchBlobs(), ExternalStoreDB::batchFetchFromURLs(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Linker\LinkRenderer::buildAElement(), LocalSettingsGenerator::buildMemcachedServerList(), SpecialPageFactory::capturePath(), SpecialCiteThisPage::citationTag(), CategoryViewer::columnList(), UploadFromChunks::concatenateChunks(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), LanguageZh::convertForSearchResult(), MediaHandler::convertMetadataVersion(), MagicVariableTest::createProviderUpTo(), MultiWriteBagOStuff::deleteObjectsExpiringBefore(), DatabaseOracle::doCommit(), CachedBagOStuff::doGet(), Wikimedia\Rdbms\Database::doProfiledQuery(), Wikimedia\Rdbms\DatabaseMysql::doQuery(), DatabaseInstaller::doUpgrade(), MultiWriteBagOStuff::doWrite(), Installer::envCheckShellLocale(), ApiTag::execute(), ApiManageTags::execute(), HHVMMakeRepo::execute(), ApiQueryAuthManagerInfo::execute(), DeleteOldFancyCaptchas::execute(), GenerateFancyCaptchas::execute(), FindHooks::execute(), SpecialEmailUser::execute(), PPFrame_Hash::expand(), PPFrame_DOM::expand(), Html::expandAttributes(), ApiRevisionDelete::extractStatusInfo(), Wikimedia\Rdbms\MssqlBlob::fetch(), ExternalStoreDB::fetchBlob(), ExternalStoreDB::fetchFromURL(), ORAResult::fetchObject(), ORAResult::fetchRow(), TestResourceLoaderWikiModule::fetchTitleInfo(), ForeignAPIRepo::findBySha1(), ApiAuthManagerHelper::formatAuthenticationResponse(), ApiErrorFormatter_BackCompat::formatException(), ApiAuthManagerHelper::formatFields(), ApiParamInfo::formatHelpMessages(), ProtectLogFormatter::formatParametersForApi(), RightsLogFormatter::formatParametersForApi(), BlockLogFormatter::formatParametersForApi(), DeleteLogFormatter::formatParametersForApi(), ApiErrorFormatter::formatRawMessage(), ApiAuthManagerHelper::formatRequests(), SpecialPagesWithProp::formatResult(), DeletedContribsPager::formatRevisionRow(), DeletedContribsPager::formatRow(), ContribsPager::formatRow(), GetConfiguration::formatVarDump(), CoreParserFunctions::gender(), Preferences::generateSkinOptions(), ApiFormatPhp::getAllowedParams(), ApiResetPassword::getAllowedParams(), ApiFormatJson::getAllowedParams(), ApiAMCreateAccount::getAllowedParams(), ApiFeedRecentChanges::getAllowedParams(), ApiQueryExtLinksUsage::getAllowedParams(), ApiFeedContributions::getAllowedParams(), ApiQueryAllRevisions::getAllowedParams(), ApiFeedWatchlist::getAllowedParams(), ApiQueryAllPages::getAllowedParams(), ApiQueryCategoryMembers::getAllowedParams(), ApiFormatBase::getAllowedParams(), ApiQueryAllImages::getAllowedParams(), ApiQueryBacklinksprop::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), ApiQueryLogEvents::getAllowedParams(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), HTMLDateTimeField::getAttributes(), HTMLFormField::getAttributes(), ApiLogin::getAuthenticationResponseLogData(), ApiQueryUserInfo::getCentralUserInfo(), RevisionDeleter::getChanges(), Preferences::getDateOptions(), HTMLFormFieldCloner::getDefault(), UserOptions::getDefaultOptionsNames(), MediaWiki\Session\TestUtils::getDummySessionBackend(), ApiResetPassword::getExamplesMessages(), ApiBase::getExamplesMessages(), MediaWiki\Auth\PasswordAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), MediaWiki\Auth\PasswordDomainAuthenticationRequest::getFieldInfo(), ApiHelp::getHelpInternal(), MWDebug::getHTMLDebugLog(), Preferences::getImageSizes(), FileRepo::getInfo(), HTMLAutoCompleteSelectField::getInputHTML(), MediaWiki\Auth\PasswordAuthenticationRequestTest::getInstance(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::getInstance(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::getInstance(), TablePager::getLimitSelectList(), Title::getLinkURL(), SpecialVersion::getMediaWikiCredits(), ApiParamInfo::getModuleInfo(), User::getPasswordFactory(), ApiAuthManagerHelper::getPreservedRequest(), ApiResult::getResultData(), DatabaseTest::getSharedTableName(), ApiAuthManagerHelper::getStandardParams(), TablePager::getStartBody(), Preferences::getThumbSizes(), ParserOutput::getTimes(), User::getToken(), ApiMain::getVal(), SpecialVersion::getWgHooks(), SiteConfiguration::getWikiParams(), MWGrants::grantNames(), UserrightsPage::groupCheckboxes(), Wikimedia\Rdbms\LBFactory::hasMasterChanges(), Wikimedia\Rdbms\LBFactory::hasOrMadeRecentMasterChanges(), Html::htmlHeader(), ExtParserFunctions::ifexpr(), Wikimedia\Rdbms\DatabaseMssql::insert(), Wikimedia\Rdbms\DatabaseSqlite::insert(), Wikimedia\Rdbms\LBFactory::laggedReplicaUsed(), HTMLFormFieldCloner::loadDataFromRequest(), HTMLFormField::lookupOptionsKeys(), MediaWiki\Linker\LinkRenderer::makeBrokenLink(), Linker::makeHeadline(), Linker::makeMediaLinkFile(), MediaWiki\Linker\LinkRenderer::makePreloadedLink(), Linker::makeSelfLinkObj(), UserPasswordPolicy::maxOfPolicies(), MediaWiki\Linker\LinkRenderer::mergeAttribs(), ExternalStoreDB::mergeBatchResult(), SiteConfiguration::mergeParams(), Html::namespaceSelector(), Wikimedia\Rdbms\DatabaseMssql::nativeInsertSelect(), MediaWiki\Auth\AuthenticationResponse::newAbstain(), MediaWiki\Auth\AuthenticationResponse::newFail(), MediaWiki\Auth\AuthenticationResponse::newPass(), MediaWiki\Auth\AuthenticationResponse::newRedirect(), MediaWiki\Auth\AuthenticationResponse::newRestart(), MediaWiki\Auth\AuthenticationResponse::newUI(), Linker::normaliseSpecialPage(), MediaWiki\Site\MediaWikiPageNameNormalizer::normalizePageName(), Linker::normalizeSubpageLink(), File::normalizeTitle(), MediaWiki\Auth\AuthManager::normalizeUsername(), CoreParserFunctions::nse(), Wikimedia\Rdbms\DatabaseMssql::numRows(), ForeignAPIFile::parseMetadata(), MediaWiki::parseTitle(), User::passwordChangeInputAttribs(), ApiResult::path(), MWRestrictionsTest::provideCheck(), ApiDocumentationTest::provideDocumentationExists(), LocalIdLookupTest::provideIsAttachedShared(), MediaWiki\Auth\AuthManager::providerArrayFromSpecs(), Wikimedia\Rdbms\Database::query(), XmlTypeCheck::readNext(), EnhancedChangesList::recentChangesLine(), KkConverter::regsConverter(), ApiResult::removeValue(), Wikimedia\Rdbms\DatabaseSqlite::replace(), CategoryFinder::run(), MemcachedClient::run_command(), MediaWiki\Linker\LinkRenderer::runBeginHook(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), DatabaseUpdater::runUpdates(), Wikimedia\Rdbms\DatabaseMssql::select(), UserMailer::sendInternal(), Cookie::serializeToHttpRequest(), WebRequest::setVal(), SpecialCiteThisPage::showCitations(), ApiErrorFormatter::stripMarkup(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), ApiLoginTest::testApiLoginBadPass(), ApiLoginTest::testApiLoginGoodPass(), MWRestrictionsTest::testArray(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthenticationRequestTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), WANObjectCacheTest::testBusyValue(), ParserMethodsTest::testCallParserFunction(), ApiMainTest::testCheckConditionalRequestHeaders(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::testConstructor(), MediaWiki\Auth\AuthenticationResponseTest::testConstructors(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), ApiFormatPhpTest::testCrossDomainMangling(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordAuthenticationRequestTest::testDescribeCredentials(), MediaWiki\Auth\PasswordDomainAuthenticationRequestTest::testDescribeCredentials(), ApiMainTest::testExceptionErrors(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testFailResponse(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequestsRequired(), MWRestrictionsTest::testJson(), MediaWiki\Auth\AuthenticationRequestTestCase::testLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::testLoadFromSubmission(), WANObjectCacheTest::testLockTSE(), WANObjectCacheTest::testLockTSESlow(), MediaWiki\Session\SessionTest::testMethods(), MWRestrictionsTest::testNewDefault(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequestTest::testNewInvalid(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWikiTest::testTryNormaliseRedirect(), ExifBitmapHandler::transformImageMagick(), SrConverter::translate(), KkConverter::translate(), Language::truncate_skip(), Language::truncateHtml(), SqlBagOStuff::unserialize(), WebRequest::unsetVal(), ApiResult::unsetValue(), StripState::unstripCallback(), WikiPage::updateIfNewerOn(), and UserOptions::USAGER().

◆ $returnTo

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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect& $returnTo

◆ $returnToQuery

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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string& $returnToQuery

◆ $retval

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

Definition at line 246 of file hooks.txt.

Referenced by ExternalStoreMedium::batchFetchFromURLs(), ExternalStore::batchFetchFromURLs(), PPTemplateFrame_Hash::cachedExpand(), PPTemplateFrame_DOM::cachedExpand(), MediaWiki\Tidy\RaggettExternal::cleanWrapped(), MediaWiki\Tidy\RaggettInternalHHVM::cleanWrapped(), MediaWiki\Tidy\RaggettInternalPHP::cleanWrapped(), HTMLForm::displaySection(), PdfHandler::doTransform(), DjVuHandler::doTransform(), ApiUndelete::execute(), ApiEmailUser::execute(), ApiPatrol::execute(), ApiExpandTemplates::execute(), ApiUnblock::execute(), ApiBlock::execute(), ApiRollback::execute(), NamespaceConflictChecker::execute(), ResourceLoaderContext::expandModuleNames(), Wikimedia\Rdbms\Database::fieldNamesWithAlias(), ArrayDiffFormatter::format(), ApiQueryBacklinks::getAllowedParams(), MediaWiki\Interwiki\ClassicInterwikiLookup::getAllPrefixesDB(), FindHooks::getHooksFromOnlineDocCategory(), TransformationalImageHandler::getMagickVersion(), UnusedimagesPage::getQueryInfo(), LinkSearchPage::getQueryInfo(), ApiQueryUserInfo::getRateLimits(), SiteConfiguration::getSetting(), Maintenance::getTermSize(), WikiPage::insertRedirect(), MediaHandler::logErrorForExternalProcess(), ApiMove::moveSubpages(), Title::moveSubpages(), RecentChange::parseToRCType(), ApiQueryImageInfo::processMetaData(), WfExpandUrlTest::provideExpandableUrls(), SvgHandler::rasterize(), Maintenance::readlineEmulation(), DoubleRedirectsPage::reallyGetQueryInfo(), MediaHandler::removeBadFile(), PdfImage::retrieveMetaData(), JpegHandler::rotate(), BitmapHandler::rotate(), Hooks::run(), SpecialInterwiki::showList(), EmailConfirmation::showRequestForm(), ExifBitmapHandler::swapICCProfile(), Wikimedia\Rdbms\Database::tableNamesWithAlias(), MediaWiki\Session\SessionTest::testMethods(), JpegPixelFormatTest::testPixelFormatRendering(), BitmapHandler::transformCustom(), BitmapHandler::transformImageMagick(), MediaWiki\Tidy\RaggettBase::validate(), RandomImageGenerator::writeImageWithApi(), and RandomImageGenerator::writeImageWithCommandLine().

◆ $rev

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

Definition at line 1741 of file hooks.txt.

Referenced by RevisionStorageTest::assertRevEquals(), DummyLinker::buildRollbackLink(), Linker::buildRollbackLink(), cleanupArticle(), CleanupSpam::cleanupArticle(), HistoryPager::curLink(), DifferenceEngine::deletedLink(), HistoryPager::diffButtons(), SpecialUndelete::diffHeader(), PopulateRevisionLength::doDBUpdates(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), PoolWorkArticleView::doWork(), ApiExpandTemplates::execute(), ApiPatrol::execute(), ApiSetNotificationTimestamp::execute(), CheckBadRedirects::execute(), ApiQueryDeletedrevs::execute(), ApiParse::execute(), GetTextMaint::execute(), ImportTextFiles::execute(), HistoryAction::feedItem(), MediaWikiGadgetsDefinitionRepo::fetchStructuredList(), SpecialRecentChanges::filterByCategories(), FeedUtils::formatDiffRow(), DeletedContribsPager::formatRevisionRow(), SpecialMergeHistory::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), DeletedContribsPager::formatRow(), SpecialNewpages::formatRow(), ContribsPager::formatRow(), DummyLinker::generateRollback(), Linker::generateRollback(), RevDelRevisionItem::getApiData(), ContentHandler::getAutoDeleteReason(), CoreParserFunctions::getCachedRevisionObject(), CategoryMembershipChangeJob::getCategoriesAtRev(), WikiPage::getContentModel(), EditPage::getCurrentContent(), Title::getEarliestRevTime(), GadgetDefinitionNamespaceRepo::getGadget(), User::getNewMessageLinks(), WikiPage::getOldestRevision(), SpecialUndelete::getPageLink(), DifferenceEngine::getParserOutput(), RawAction::getRawText(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), DifferenceEngine::getRevisionHeader(), DummyLinker::getRollbackEditCount(), Linker::getRollbackEditCount(), BackupReader::handleLogItem(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), FixDefaultJsonContentPages::handleRow(), HistoryPager::historyLine(), ChangesList::insertRollback(), MovePage::isValidMoveTarget(), Title::isValidMoveTarget(), Revision::loadFromConds(), DifferenceEngine::loadRevisionData(), SimpleCaptcha::loadText(), RevisionStorageTest::makeRevision(), Revision::newFromConds(), Revision::newKnownCurrent(), RevisionTest::newTestRevision(), RollbackAction::onView(), CoreParserFunctions::pagesize(), MediaWiki::parseTitle(), RebuildTextIndex::populateSearchIndex(), BaseDump::prefetch(), PreprocessDump::processRevision(), CompareParsers::processRevision(), SearchDump::processRevision(), LocalFile::recordUpload2(), WikiPage::replaceSectionAtRev(), WikiPage::replaceSectionContent(), DummyLinker::revComment(), Linker::revComment(), Diff::reverse(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), DifferenceEngine::revisionDeleteLink(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), HistoryPager::revLink(), DummyLinker::revUserLink(), Linker::revUserLink(), DummyLinker::revUserTools(), Linker::revUserTools(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryRevisions::run(), Article::showDiffPage(), SpecialBookSources::showList(), SpecialUndelete::showRevision(), RevDelRevisionList::suggestTarget(), RevisionStorageTest::testConstructFromRow(), RevisionTest::testConstructWithContent(), RevisionTest::testConstructWithText(), RevisionStorageTest::testGetContent(), RevisionTest::testGetContent(), RevisionStorageTest::testGetContent_failure(), RevisionTest::testGetContentClone(), RevisionTest::testGetContentFormat(), RevisionStorageTest::testGetContentFormat(), RevisionTest::testGetContentHandler(), RevisionTest::testGetContentModel(), RevisionStorageTest::testGetContentModel(), RevisionTest::testGetContentUncloned(), RevisionStorageTest::testGetPage(), WikiPageTest::testGetRevision(), RevisionTest::testGetSha1(), RevisionTest::testGetSize(), ApiRevisionDeleteTest::testHidingRevisions(), RevisionStorageTest::testNewFromArchiveRow(), RevisionStorageTest::testNewFromId(), RevisionStorageTest::testNewFromRow(), RevisionStorageTest::testNewNullRevision(), Maintenance::updateSearchIndexForPage(), ChangeTags::updateTagsWithChecks(), PopulateRevisionSha1::upgradeLegacyArchiveRow(), PopulateRevisionLength::upgradeRow(), PopulateRevisionSha1::upgradeRow(), DumpFilter::writeLogItem(), DumpMultiWriter::writeRevision(), DumpFilter::writeRevision(), and ExportProgressFilter::writeRevision().

◆ $revert

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI& $revert

◆ $revId

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 $revId

◆ $rollback

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending in case the handler function wants to provide a converted Content object Note that $result getContentModel () must return $toModel. 'CustomEditor' also included in $newHeader $rollback

Definition at line 1167 of file hooks.txt.

Referenced by DifferenceEngine::showDiffPage().

◆ $rowAugmentors

the value to return A Title object or null for latest all implement SearchIndexField must implement ResultSetAugmentor& $rowAugmentors

◆ $section

usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template $section

Definition at line 2929 of file hooks.txt.

Referenced by JobQueueFederated::__construct(), HTMLForm::__construct(), HTMLForm::addFooterText(), CategoryViewer::addFragmentToTitle(), HTMLForm::addHeaderText(), ParserOutput::addHeadItem(), ApiQuerySearch::addInterwikiResults(), SkinTemplate::buildContentNavigationUrls(), HTMLForm::displaySection(), SimpleCaptcha::doConfirmEdit(), Skin::doEditSectionLink(), IndexPager::doQuery(), TestFileEditor::emitTest(), TestFileEditor::execute(), VectorTemplate::execute(), ApiEditPage::execute(), Linker::formatAutocomments(), DummyLinker::formatTemplates(), Linker::formatTemplates(), Linker::generateTOC(), Wikimedia\Rdbms\LBFactoryMulti::getAllMainLBs(), HTMLForm::getFooterText(), OOUIHTMLForm::getHeaderText(), HTMLForm::getHeaderText(), Wikimedia\Rdbms\LBFactoryMulti::getMainLB(), GadgetHooks::getPreferences(), RawAction::getRawText(), Wikimedia\Rdbms\LBFactoryMulti::getSectionForDomain(), MediaWikiGadgetsDefinitionRepo::listFromDefinition(), SimpleCaptcha::loadText(), Exif::makeFilteredData(), Wikimedia\Rdbms\LBFactoryMulti::newMainLB(), WebInstallerOutput::outputFooter(), TestFileEditor::parseTest(), EditPageTest::provideAutoMerge(), MediaWiki\Widget\Search\FullSearchResultWidget::render(), ProfilerSectionOnly::scopedProfileIn(), SectionProfiler::scopedProfileIn(), ProfilerXhprof::scopedProfileIn(), SectionProfiler::scopedProfileOut(), Profiler::scopedProfileOut(), FileBackend::scopedProfileSection(), HTMLForm::setFooterText(), HTMLForm::setHeaderText(), SimpleCaptcha::shouldCheck(), SpecialGadgets::showMainForm(), EditPageTest::testExtractSectionTitle(), EditPageTest::testSectionEdit(), Exif::validate(), OOUIHTMLForm::wrapFieldSetSection(), and HTMLForm::wrapFieldSetSection().

◆ $sectionContent

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& $sectionContent

◆ $services

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services the preferred way to define a new service is the $wgServiceWiringFiles array $services
static
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 2179 of file hooks.txt.

Referenced by LinksDeletionUpdate::batchDeleteByPK(), MediaWiki\MediaWikiServices::disableStorageBackend(), MediaWikiTestCase::doLightweightServiceReset(), LinksDeletionUpdate::doUpdate(), DatabaseInstaller::enableLB(), GetLagTimes::execute(), DeferredUpdates::execute(), MediaWiki\MediaWikiServices::forceGlobalInstance(), Linker::getLinkColour(), LinksUpdate::incrTableUpdate(), PurgeJobUtils::invalidatePages(), Linker::link(), MediaWikiTestCase::makeTestConfigFactoryInstantiator(), MediaWikiTestCase::overrideMwServices(), MediaWikiTestCase::prepareServices(), MWExceptionHandler::rollbackMasterChangesAndLog(), RefreshLinksJob::runForTitle(), MediaWiki::setDBProfilingAgent(), CaptchaPreAuthenticationProviderTest::setUp(), ServiceContainerTest::testApplyWiring(), MediaWikiServicesTest::testDefaultServiceInstantiation(), ServiceContainerTest::testDefineService(), ServiceContainerTest::testDefineService_fail_duplicate(), ServiceContainerTest::testDestroy(), ServiceContainerTest::testDisableService(), ServiceContainerTest::testDisableService_fail_undefined(), MediaWikiServicesTest::testGetInstance(), ServiceContainerTest::testGetService(), MediaWikiServicesTest::testGetService(), ServiceContainerTest::testGetService_fail_unknown(), ServiceContainerTest::testGetServiceNames(), MediaWikiServicesTest::testGetters(), ServiceContainerTest::testHasService(), ServiceContainerTest::testImportWiring(), ServiceContainerTest::testLoadWiringFiles(), ServiceContainerTest::testLoadWiringFiles_fail_duplicate(), ServiceContainerTest::testPeekService(), ServiceContainerTest::testPeekService_fail_unknown(), ServiceContainerTest::testRedefineService(), ServiceContainerTest::testRedefineService_disabled(), ServiceContainerTest::testRedefineService_fail_in_use(), ServiceContainerTest::testRedefineService_fail_undefined(), MediaWikiServicesTest::testResetServiceForTesting(), and MediaWikiServicesTest::testResetServiceForTesting_noDestroy().

◆ $skin

◆ $special

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 $special

◆ $status

return $status = Status::newGood()` to allow deletion
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 1049 of file hooks.txt.

Referenced by WikiImporter::__construct(), LocalFileLockError::__construct(), StatusValue::__toString(), TitleBlacklistHooks::abortNewAccount(), FileBackendMultiWrite::accessibilityCheck(), PoolCounterRedis::acquireForAnyone(), PoolCounterRedis::acquireForMe(), RevDelList::acquireItemLocks(), UploadFromChunks::addChunk(), ApiErrorFormatter::addMessagesFromStatus(), SwiftFileBackend::addMissingMetadata(), DumpTestCase::addRevision(), FetchTextTest::addRevision(), MediaWiki\Auth\AuthManager::allowsAuthenticationDataChange(), ApiErrorFormatter::arrayFromStatus(), ApiErrorFormatter_BackCompat::arrayFromStatus(), FileBackendTest::assertBackendPathsConsistent(), EditPageTest::assertEdit(), FileBackendTest::assertGoodStatus(), FileOpBatch::attempt(), FileOp::attempt(), EditPage::attemptSave(), MediaWiki\Auth\AuthManager::autoCreateUser(), Wikimedia\Rdbms\Database::begin(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\AuthManager::canCreateAccount(), MssqlInstaller::canCreateAccounts(), MysqlInstaller::canCreateAccounts(), PostgresInstaller::canCreateObjectsForWebUser(), ChangeTags::canDeleteTag(), User::changeAuthenticationData(), MWRestrictions::check(), MediaWiki\Auth\AuthManager::checkAccountCreatePermissions(), SpecialBlock::checkExecutePermissions(), SpecialPasswordReset::checkExecutePermissions(), PasswordPolicyChecks::checkMaximalPasswordLength(), PasswordPolicyChecks::checkMinimalPasswordLength(), PasswordPolicyChecks::checkMinimumPasswordLengthToLogin(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), User::checkPasswordValidity(), MovePage::checkPermissions(), SpecialCreateAccount::checkPermissions(), MergeHistory::checkPermissions(), UserPasswordPolicy::checkPolicies(), PasswordPolicyChecks::checkPopularPasswordBlacklist(), FileRepo::cleanDir(), LocalFileRestoreBatch::cleanup(), FileRepo::cleanupBatch(), LocalRepo::cleanupDeletedBatch(), FSLockManager::closeLockHandles(), QuorumLockManager::collectPledgeQuorum(), WikiPage::commitRollback(), FileBackendStore::concatenate(), FileBackendMultiWrite::concatenate(), FileRepo::concatenate(), UploadFromChunks::concatenateChunks(), ConfirmEditHooks::confirmEditMerged(), SimpleCaptcha::confirmEditMerged(), FileBackendMultiWrite::consistencyCheck(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), CopyFileBackend::copyFileBatch(), FileBackendStore::copyInternal(), SwiftFileBackend::createContainer(), DatabaseInstaller::createExtensionTables(), FileBackendStore::createInternal(), Installer::createMainpage(), Installer::createSysop(), OracleInstaller::createTables(), SqliteInstaller::createTables(), PostgresInstaller::createTables(), MssqlInstaller::createTables(), LocalFile::delete(), FileRepo::deleteBatch(), SwiftFileBackend::deleteContainer(), ApiTestCaseUpload::deleteFileByTitle(), FileBackendStore::deleteInternal(), LocalFile::deleteOld(), ChangeTags::deleteTagEverywhere(), CopyFileBackend::delFileBatch(), FileBackendStore::describeInternal(), ApiBase::dieStatus(), ApiUpload::dieStatusWithCode(), AuthManagerSpecialPage::displayForm(), CopyFileOp::doAttempt(), MoveFileOp::doAttempt(), Block::doAutoblock(), FileBackendStore::doClean(), FSFileBackend::doCleanInternal(), SwiftFileBackend::doCleanInternal(), FileBackendStore::doConcatenate(), MemoryFileBackend::doCopyInternal(), FSFileBackend::doCopyInternal(), SwiftFileBackend::doCopyInternal(), WikiPage::doCreate(), MemoryFileBackend::doCreateInternal(), FSFileBackend::doCreateInternal(), SwiftFileBackend::doCreateInternal(), FileDeleteForm::doDelete(), Article::doDelete(), WikiPage::doDeleteArticle(), WikiPage::doDeleteArticleReal(), MemoryFileBackend::doDeleteInternal(), FSFileBackend::doDeleteInternal(), SwiftFileBackend::doDeleteInternal(), SwiftFileBackend::doDescribeInternal(), SwiftFileBackend::doDirectoryExists(), FileBackendMultiWrite::doDirectoryOp(), WikiPage::doEditContent(), Installer::doEnvironmentChecks(), FSFileBackend::doExecuteOpHandlesInternal(), Installer::doGenerateKeys(), PostgreSqlLockManager::doGetLocksOnServer(), MySqlLockManager::doGetLocksOnServer(), FSLockManager::doLock(), QuorumLockManager::doLockByType(), LockManager::doLockByType(), DBFileJournal::doLogChangeBatch(), WikiPage::doModify(), FileBackendStore::doMoveInternal(), FSFileBackend::doMoveInternal(), SwiftFileBackend::doMoveInternal(), UploadStashCleanup::doOperations(), FileBackendMultiWrite::doOperationsInternal(), FileBackendStore::doOperationsInternal(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), TestFileOpPerformance::doPerfTest(), DeleteFileOp::doPrecheck(), DescribeFileOp::doPrecheck(), CreateFileOp::doPrecheck(), CopyFileOp::doPrecheck(), MoveFileOp::doPrecheck(), StoreFileOp::doPrecheck(), RevDelFileList::doPreCommitUpdates(), FileBackendStore::doPrepare(), FSFileBackend::doPrepareInternal(), SwiftFileBackend::doPrepareInternal(), FileBackendStore::doPublish(), FSFileBackend::doPublishInternal(), SwiftFileBackend::doPublishInternal(), DBFileJournal::doPurgeOldLogs(), FileBackendMultiWrite::doQuickOperationsInternal(), FileBackendStore::doQuickOperationsInternal(), FileBackendStore::doSecure(), FSFileBackend::doSecureInternal(), SwiftFileBackend::doSecureInternal(), FSLockManager::doSingleLock(), FSLockManager::doSingleUnlock(), MemoryFileBackend::doStoreInternal(), FSFileBackend::doStoreInternal(), SwiftFileBackend::doStoreInternal(), FileBackendStore::doStreamFile(), SwiftFileBackend::doStreamFile(), MovePageForm::doSubmit(), FileBackendTest::doTestConcatenate(), FileBackendTest::doTestCopy(), FileBackendTest::doTestCreate(), FileBackendTest::doTestDelete(), FileBackendTest::doTestDescribe(), FileBackendTest::doTestDoOperations(), FileBackendTest::doTestDoOperationsFailing(), FileBackendTest::doTestDoOperationsPipeline(), FileBackendTest::doTestDoQuickOperations(), FileBackendTest::doTestGetDirectoryList(), FileBackendTest::doTestGetFileContents(), FileBackendTest::doTestGetFileHttpUrl(), FileBackendTest::doTestGetFileList(), FileBackendTest::doTestGetFileStat(), FileBackendTest::doTestGetLocalCopy(), FileBackendTest::doTestGetLocalReference(), FileBackendTest::doTestLockCalls(), FileBackendTest::doTestMove(), FileBackendTest::doTestPrepareAndClean(), FileBackendTest::doTestRecursiveClean(), FileBackendTest::doTestStore(), FileBackendTest::doTestStreamFile(), FileBackendTest::doTestStreamFileRange(), SvgHandler::doTransform(), FSLockManager::doUnlock(), QuorumLockManager::doUnlockByType(), LockManager::doUnlockByType(), WatchAction::doUnwatch(), WatchAction::doWatch(), EditPage::edit(), WikiEditorHooks::editPageAttemptSaveAfter(), UserrightsPage::editUserGroupsForm(), DatabaseInstaller::enableLB(), WebInstallerInstall::endStage(), Installer::envCheckDB(), PoolCounterWorkViaCallback::error(), PoolWorkArticleView::error(), ApiBase::errorArrayToStatus(), WebInstallerDBConnect::execute(), WebInstallerDBSettings::execute(), WebInstallerExistingWiki::execute(), WebInstallerWelcome::execute(), ApiImageRotate::execute(), ApiManageTags::execute(), ApiProtect::execute(), ApiMergeHistory::execute(), ApiMove::execute(), ApiRevisionDelete::execute(), ApiChangeAuthenticationData::execute(), ApiUpload::execute(), ApiEditPage::execute(), SpecialUnlinkAccounts::execute(), ApiUnblock::execute(), SpecialLinkAccounts::execute(), ApiFileRevert::execute(), ApiBlock::execute(), ApiDelete::execute(), ChangePassword::execute(), MigrateFileRepoLayout::execute(), Protect::execute(), ApiRemoveAuthenticationData::execute(), EditCLI::execute(), ApiStashEdit::execute(), ApiSetPageLanguage::execute(), ImportTextFiles::execute(), ApiResetPassword::execute(), MoveBatch::execute(), CreateAndPromote::execute(), RebuildLocalisationCache::execute(), ApiLogin::execute(), FileDeleteForm::execute(), SpecialChangeCredentials::execute(), UserrightsPage::execute(), CommandLineInstaller::execute(), ApiQueryUsers::execute(), PoolCounterWork::execute(), ImportImages::execute(), PasswordReset::execute(), ZipDirectoryReader::execute(), LoginSignupSpecialPage::execute(), LocalFileRestoreBatch::execute(), LocalFileMoveBatch::execute(), JobRunner::executeJob(), ApiRevisionDelete::extractStatusInfo(), SpecialEditTags::failure(), SpecialRevisionDelete::failure(), SpamBlacklistHooks::filterMergedContent(), MemcLockManager::freeLocksOnServer(), RedisLockManager::freeLocksOnServer(), File::generateAndSaveThumb(), DifferenceEngine::generateTextDiffBody(), Wikimedia\Rdbms\Database::getCacheSetOptions(), ApiUpload::getChunkResult(), PostgresInstaller::getConnection(), DatabaseInstaller::getConnection(), SwiftFileBackend::getDirListPageInternal(), MysqlInstaller::getEngines(), ApiBase::getErrorFromStatus(), HTMLForm::getErrorsOrWarnings(), SwiftFileBackend::getFileListPageInternal(), PostgresInstaller::getInstallUserPermissions(), RedisLockManager::getLocksOnServer(), MemcLockManager::getLocksOnServer(), DBLockManager::getLocksOnServer(), Wikimedia\Rdbms\DatabaseMysqlBase::getMysqlStatus(), PostgresInstaller::getPgConnection(), ApiCSPReport::getReport(), FileBackend::getScopedFileLocks(), FileBackendDBRepoWrapper::getScopedLocksForOps(), FileBackendMultiWrite::getScopedLocksForOps(), FileBackendStore::getScopedLocksForOps(), ApiUserrights::getUrUser(), WebInstallerExistingWiki::handleExistingUpgrade(), EditPage::handleStatus(), ThumbnailRenderJob::hitThumbUrl(), ForeignAPIRepo::httpGet(), WikiRevision::importUpload(), WebInstallerExistingWiki::importVariables(), FileRepo::initDirectory(), FileRepo::initZones(), EditPage::internalAttemptSave(), WANObjectCacheReaper::invoke(), PasswordReset::isAllowed(), MovePage::isValidFileMove(), MergeHistory::isValidMerge(), MovePage::isValidMove(), RecompressTracked::killReplicaProcs(), MessageCache::loadFromDBWithLock(), LocalFile::lock(), LockManager::lockByType(), ApiAuthManagerHelper::logAuthenticationResult(), SpecialUserLogin::logAuthResult(), SpecialCreateAccount::logAuthResult(), PoolCounterWork::logError(), BotPassword::login(), Wikimedia\Rdbms\DatabaseMysqlBase::masterPosWait(), SpecialBlock::maybeAlterFormDefaults(), MergeHistory::merge(), MovePage::move(), LocalFile::move(), FileBackendStore::moveInternal(), CapsCleanup::movePage(), ApiMove::moveSubpages(), Title::moveTo(), MovePage::moveToInternal(), DatabaseInstaller::needsUpgrade(), FileRepo::newFatal(), FileRepo::newGood(), SwiftFileBackend::objectListing(), GadgetHooks::onEditFilterMergedContent(), SwiftFileBackend::onError(), TitleBlacklistHooks::onMovePageCheckPermissions(), SpecialChangeContentModel::onSubmit(), SpecialExpandTemplates::onSubmitInput(), MysqlInstaller::openConnection(), OracleInstaller::openConnection(), SqliteInstaller::openConnection(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionToAnyDB(), PostgresInstaller::openConnectionWithParams(), PostgresInstaller::openPgConnection(), OracleInstaller::openSYSDBAConnection(), SpecialUploadStash::outputRemoteScaledThumb(), AuthManagerSpecialPage::performAuthenticationStep(), Installer::performInstallation(), ApiUpload::performStash(), ApiUpload::performUpload(), DatabaseInstaller::populateInterwikiTable(), Installer::populateSiteStats(), FileOp::precheck(), FileOp::precheckDestExistence(), MysqlInstaller::preUpgrade(), MssqlInstaller::preUpgrade(), SpecialTags::processCreateTagForm(), SpecialBlock::processForm(), ApiTag::processIndividual(), SquidPurgeClient::processStatusLine(), SpecialTags::processTagForm(), SpecialUnblock::processUnblock(), SpecialUpload::processUpload(), MWRestrictionsTest::provideCheck(), StatusTest::provideGetMessage(), StatusTest::provideGetWikiTextAndHtml(), FSLockManager::pruneKeyLockFiles(), FileRepo::publish(), FileRepo::publishBatch(), LocalFile::publishTo(), FileRepo::quickCleanDir(), FileRepo::quickImportBatch(), FileRepo::quickPurgeBatch(), ZipDirectoryReaderTest::readZipAssertError(), ZipDirectoryReaderTest::readZipAssertSuccess(), UploadFromUrl::reallyFetchFile(), LocalFile::recordUpload2(), MediaWiki\Session\Session\BotPasswordSessionProvider::refreshSessionInfo(), PoolCounterRedis::release(), PostgreSqlLockManager::releaseAllLocks(), MySqlLockManager::releaseAllLocks(), RevDelList::releaseItemLocks(), QuorumLockManager::releasePledges(), Http::request(), LocalFile::restore(), FileBackendMultiWrite::resyncFiles(), ThumbnailRenderJob::run(), EmaillingJob::run(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQuerySearch::run(), ApiQueryRevisions::run(), MigrateFileRepoLayout::runBatch(), FileOpBatch::runParallelBatches(), EditPage::runPostMergeFilters(), ProtectionForm::save(), EraseArchivedFile::scrubVersion(), ApiAuthManagerHelper::securitySensitiveOperation(), MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus(), UserMailer::send(), UserMailer::sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), SwiftFileBackend::setContainerAccess(), DatabaseUpdater::setFileAccess(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), User::setPasswordInternal(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::setPasswordResetFlag(), WikiImporter::setTargetRootPage(), MigrateFileRepoLayoutTest::setUp(), SqliteInstaller::setupDatabase(), OracleInstaller::setupDatabase(), PostgresInstaller::setupDatabase(), MssqlInstaller::setupDatabase(), MysqlInstaller::setupDatabase(), PostgresInstaller::setupPLpgSQL(), PostgresInstaller::setupSchema(), DatabaseInstaller::setupSchemaVars(), SqliteInstaller::setupSearchIndex(), OracleInstaller::setupUser(), MysqlInstaller::setupUser(), MssqlInstaller::setupUser(), PostgresInstaller::setupUser(), RevDelList::setVisibility(), WebInstaller::showStatusBox(), WebInstaller::showStatusMessage(), ForkController::start(), DatabaseInstaller::stepApplySourceFile(), FileRepo::store(), FileRepo::storeBatch(), FileBackendStore::storeInternal(), FileBackendStore::streamFile(), FileRepo::streamFileWithStatus(), WebInstallerName::submit(), SpecialEmailUser::submit(), SpecialEditTags::submit(), SpecialRevisionDelete::submit(), PostgresInstaller::submitConnectForm(), OracleInstaller::submitConnectForm(), MysqlInstaller::submitConnectForm(), MssqlInstaller::submitConnectForm(), EmailConfirmation::submitSend(), PostgresInstaller::submitSettingsForm(), MysqlInstaller::submitSettingsForm(), SyncFileBackend::syncBackends(), SyncFileBackend::syncFileBatch(), Job::teardown(), MediaWikiTestCase::tearDown(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MWHttpRequestTestCase::testBasicAuthentication(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), ApiMainTest::testCheckConditionalRequestHeaders(), MergeHistoryTest::testCheckPermissions(), UserPasswordPolicyTest::testCheckUserPassword(), StatusTest::testCleanParams(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), ApiErrorFormatterTest::testErrorFormatter(), ApiErrorFormatterTest::testErrorFormatterBC(), StatusTest::testErrorWithMessage(), PasswordResetTest::testExecute_email(), StatusTest::testFatalWithMessage(), HTMLRestrictionsFieldTest::testForm(), StatusTest::testGetErrorMessage(), StatusTest::testGetErrorMessageArray(), StatusTest::testGetErrorsByType(), StatusTest::testGetErrorsWarningsOnlyStatus(), MWHttpRequestTestCase::testgetFinalUrl(), StatusTest::testGetHtml(), StatusTest::testGetMessage(), MWHttpRequestTestCase::testGetResponseHeaders(), MWHttpRequestTestCase::testGetStatus(), StatusTest::testGetStatusArrayWithNonObjectMessages(), StatusTest::testGetValue(), StatusTest::testGetWikiText(), StatusTest::testHasMessage(), StatusTest::testIsGood(), StatusTest::testIsOk(), MWHttpRequestTestCase::testIsRedirect(), MergeHistoryTest::testIsValidMerge(), MergeHistoryTest::testIsValidMergeRevisionLimit(), MovePageTest::testIsValidMove(), BotPasswordTest::testLogin(), StatusTest::testNewFatalWithMessage(), StatusTest::testNewFatalWithString(), StatusTest::testNewGood(), StatusTest::testOkAndErrorsGetters(), StatusTest::testOkSetter(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), StatusTest::testReplaceMessage(), MWHttpRequestTestCase::testSetCallback(), MWHttpRequestTestCase::testSetCookie(), MWHttpRequestTestCase::testSetCookieJar(), MWHttpRequestTestCase::testSetData(), MWHttpRequestTestCase::testSetHeader(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), StatusTest::testSetResult(), MWHttpRequestTestCase::testSetUserAgent(), CaptchaPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), StatusTest::testWakeUpSanitizesCallback(), StatusTest::testWarningWithMessage(), MediaWiki\Tidy\Html5Depurate::tidy(), MediaWiki::triggerAsyncJobs(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), AuthManagerSpecialPage::trySubmit(), SpecialUndelete::undelete(), PageArchive::undeleteRevisions(), LockManager::unlockByType(), ChangeTagsLogList::updateChangeTagsOnAll(), ChangeTagsRevisionList::updateChangeTagsOnAll(), RefreshFileHeaders::updateFileHeaders(), LocalFile::upload(), OldLocalFile::uploadOld(), HTMLRestrictionsField::validate(), SpecialBlock::validateTarget(), SpecialBlock::validateTargetField(), LocalFileMoveBatch::verifyDBUpdates(), PoolCounterRedis::waitForSlotOrNotif(), ApiWatch::watchTitle(), wfGenerateThumbnail(), wfStreamThumb(), wfThumbError(), and wfThumbErrorText().

◆ $suppressed

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException $suppressed

Definition at line 2122 of file hooks.txt.

Referenced by MWExceptionHandler::logError(), and DifferenceEngine::showDiffPage().

◆ $tabindex

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff& $tabindex

◆ $tables

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
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 990 of file hooks.txt.

Referenced by CleanupInvalidDbKeys::__construct(), ChangesListSpecialPage::__construct(), UploadFromUrlTestSuite::addTables(), SiteStatsInit::articles(), ChangesListSpecialPageTest::assertConditions(), SpecialRecentChanges::buildQuery(), SpecialWatchlist::buildQuery(), ChangesListSpecialPage::buildQuery(), IndexPager::buildQueryInfo(), Sqlite::checkSqlSyntax(), CompressOld::compressWithConcat(), SpecialRecentChangesLinked::doMainQuery(), SpecialRecentChanges::doMainQuery(), SpecialWatchlist::doMainQuery(), ChangesListSpecialPage::doMainQuery(), MysqlUpdater::doNamespaceSize(), RevDelArchiveList::doQuery(), WikiExporter::dumpFrom(), FixDoubleRedirects::execute(), CleanupInvalidDbKeys::execute(), ChangesListSpecialPageTest::fetchUsers(), ChangesListSpecialPage::filterOnUserExperienceLevel(), Title::getCascadeProtectionSources(), WikiPage::getContributors(), LocalFile::getHistory(), NewPagesPager::getQueryInfo(), ShortPagesPage::getQueryInfo(), NewFilesPager::getQueryInfo(), LonelyPagesPage::getQueryInfo(), ActiveUsersPager::getQueryInfo(), RandomPage::getQueryInfo(), ContribsPager::getQueryInfo(), LogPager::getQueryInfo(), ImageListPager::getQueryInfoReal(), ChangesListSpecialPage::getRows(), DatabaseLogEntry::getSelectQueryData(), ContribsPager::getUserCond(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ApiPageSet::initFromRevIDs(), PageArchive::listRevisions(), MediaWikiTestCase::listTables(), UserDupes::lock(), LocalIdLookup::lookupCentralIds(), LocalIdLookup::lookupUserNames(), ChangeTags::modifyDisplayQuery(), ChangesListStringOptionsFilterGroup::modifyQuery(), ChangesListBooleanFilter::modifyQuery(), ChangesListStringOptionsFilterGroupTest::modifyQueryHelper(), ContribsPager::reallyDoQuery(), ImageListPager::reallyDoQuery(), IndexPager::reallyDoQuery(), QueryPage::reallyDoQuery(), SpecialRecentChanges::runMainQueryHook(), SpecialWatchlist::runMainQueryHook(), ChangesListSpecialPage::runMainQueryHook(), UserNamePrefixSearch::search(), Wikimedia\Rdbms\Database::selectRowCount(), Wikimedia\Rdbms\Database::tableNamesWithAlias(), Wikimedia\Rdbms\Database::tableNamesWithIndexClauseOrJOIN(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), ChangesListStringOptionsFilterGroupTest::testModifyQuery(), ChangesListStringOptionsFilterGroupTest::testNoOpModifyQuery(), and DatabaseSqliteTest::testUpgrades().

◆ $tag

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 $tag

Definition at line 1028 of file hooks.txt.

Referenced by SqlBagOStuff::__construct(), ChangeTags::activateTagWithChecks(), ApiResult::addArrayType(), ApiResult::addArrayTypeRecursive(), ParserOutput::addHeadItem(), ApiResult::addIndexedTagName(), ApiResult::addIndexedTagNameRecursive(), ApiErrorFormatter::addMessagesFromStatus(), ApiErrorFormatter::addWarningOrError(), ApiErrorFormatter_BackCompat::addWarningOrError(), MediaWiki\Tidy\BalanceStack::adoptionAgency(), SpecialEditTags::buildCheckBoxes(), ChangeTags::canActivateTag(), ChangeTags::canCreateTag(), ChangeTags::canDeactivateTag(), ChangeTags::canDeleteTag(), ChangeTags::createTagWithChecks(), ChangeTags::deactivateTagWithChecks(), ChangeTags::defineTag(), ChangeTags::deleteTagEverywhere(), ChangeTags::deleteTagWithChecks(), XMPReader::doAttribs(), WikiImporter::doImport(), SpecialTags::doTagRow(), XMPReader::endElementModeLi(), XMPReader::endElementModeQDesc(), XMPReader::endElementModeSimple(), XMPReader::endElementNested(), ApiQueryTags::execute(), MediaWiki\Tidy\BalanceActiveFormattingElements::findElementByTag(), ApiParse::formatHeadItems(), SvgHandler::formatMetadata(), MediaHandler::formatMetadataHelper(), ChangeTags::formatSummaryRow(), IPTC::getCharset(), SvgHandler::getCommonMetaArray(), RedisBagOStuff::getConnection(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), ApiParamInfo::getModuleInfo(), SiteConfiguration::getSetting(), WikiImporter::handleContributor(), WikiImporter::handleLogItem(), WikiImporter::handlePage(), WikiImporter::handleRevision(), WikiImporter::handleSiteInfo(), WikiImporter::handleUpload(), Html::htmlHeader(), MediaWiki\Tidy\BalanceStack::inButtonScope(), MediaWiki\Tidy\BalanceStack::indexOf(), MediaWiki\Tidy\BalanceStack::inListItemScope(), MediaWiki\Tidy\BalanceStack::inScope(), MediaWiki\Tidy\BalanceStack::inSelectScope(), ManualLogEntry::insert(), MediaWiki\Tidy\BalanceStack::insertForeignElement(), MediaWiki\Tidy\BalanceStack::insertHTMLElement(), MediaWiki\Tidy\BalanceStack::inSpecificScope(), MediaWiki\Tidy\BalanceStack::inTableScope(), Language::isKnownLanguageTag(), HTMLCheckMatrix::isTagForcedOff(), HTMLCheckMatrix::isTagForcedOn(), ChangeTags::logTagManagementAction(), Exif::makeFilteredData(), FormatMetadata::makeFormattedData(), IPTC::parse(), MediaWiki\Tidy\BalanceStack::popTag(), SpecialTags::processCreateTagForm(), SpecialTags::processTagForm(), SVGReader::read(), Poem::renderPoem(), Linker::revDeleteLink(), IEContentAnalyzer::sampleData(), XMPReader::saveValue(), ApiResult::setIndexedTagName(), ApiQueryGadgets::setIndexedTagNameForMetadata(), ApiResult::setIndexedTagNameRecursive(), SpecialTags::showActivateDeactivateForm(), ChangesList::showCharacterDifference(), SpecialTags::showDeleteTagForm(), SpecialTags::showTagList(), XMPReader::startElement(), XMPReader::startElementModeInitial(), XMPReader::startElementModeSimple(), XMPReader::startElementModeStruct(), ChangeTags::tagDescription(), TagHookTest::testBadFunctionTagHooks(), TagHookTest::testBadTagHooks(), ApiDocumentationTest::testDocumentationExists(), TagHookTest::testFunctionTagHooks(), TagHookTest::testTagHooks(), Language::truncate_endBracket(), Language::truncateHtml(), ChangeTags::undefineTag(), ChangeTags::updateTags(), Exif::validate(), ApiHelp::wrap(), and Xml::wrapClass().

◆ $template

◆ $term

external whereas SearchGetNearMatch runs after $term

Definition at line 2759 of file hooks.txt.

Referenced by ParserTestsMaintenance::execute(), SpecialSearch::execute(), BlockLevelPass::execute(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::footerHtml(), GIFMetadataExtractor::getMetadata(), SearchNearMatcher::getNearMatchInternal(), SpecialSearch::goResult(), ParserEditTests::handleFailure(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::headerHtml(), ParserEditTests::heading(), SearchHighlighter::highlightText(), PageArchive::listPagesBySearch(), MediaWiki\Widget\Search\SearchFormWidget::makeSearchLink(), MediaWiki\Widget\Search\SearchFormWidget::optionsHtml(), SearchMySQL::parseQuery(), SearchSqlite::parseQuery(), SearchPostgres::parseQuery(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), MediaWiki\Widget\Search\SearchFormWidget::profileTabsHtml(), MediaWiki\Widget\Search\DidYouMeanWidget::render(), MediaWiki\Widget\Search\BasicSearchResultSetWidget::render(), MediaWiki\Widget\Search\SearchFormWidget::render(), MediaWiki\Widget\Search\SimpleSearchResultSetWidget::render(), MediaWiki\Widget\Search\InterwikiSearchResultSetWidget::render(), MediaWiki\Widget\Search\DidYouMeanWidget::rewrittenHtml(), SearchSqlite::searchInternal(), SearchMySQL::searchInternal(), SearchPostgres::searchQuery(), SearchMssql::searchText(), SearchPostgres::searchText(), SearchOracle::searchText(), SearchSqlite::searchText(), SearchMySQL::searchText(), SearchPostgres::searchTitle(), SearchMssql::searchTitle(), SearchOracle::searchTitle(), SearchSqlite::searchTitle(), SearchMySQL::searchTitle(), SpecialSearch::setupPage(), MediaWiki\Widget\Search\SearchFormWidget::shortDialogHtml(), SpecialSearch::showResults(), MediaWiki\Widget\Search\SearchFormWidget::startsWithImage(), SpecialSearchTest::testSearchTermIsNotExpanded(), and SearchEngine::transformSearchTerm().

◆ $time

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment $time

Definition at line 1769 of file hooks.txt.

Referenced by OldLocalFile::__construct(), MediaWikiPHPUnitTestListener::addError(), MediaWikiPHPUnitTestListener::addFailure(), MediaWikiPHPUnitTestListener::addIncompleteTest(), MediaWikiPHPUnitTestListener::addSkippedTest(), Wikimedia\Rdbms\LoadBalancer::approveMasterChanges(), ApiFormatBase::closePrinter(), JobRunner::commitMasterChanges(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), DBFileJournal::doGetPositionAtTime(), FileBackendTest::doTestGetFileStat(), PoolWorkArticleView::doWork(), MediaWikiPHPUnitTestListener::endTest(), BenchmarkHooks::execute(), SyncFileBackend::execute(), RepoGroup::findFile(), FileRepo::findFile(), FileRepo::findFileFromKey(), MediaWiki\Logger\LegacyLogger::formatAsWfDebugLog(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), DifferenceEngine::generateTextDiffBody(), WANObjectCache::getCheckKeyTime(), ProtectionForm::getExpiry(), SpecialUndelete::getFileLink(), User::getFirstEditTimestamp(), Language::getHumanTimestamp(), Wikimedia\Rdbms\DatabaseMysqlBase::getLagFromPtHeartbeat(), SpecialUndelete::getPageLink(), FileJournal::getPositionAtTime(), SectionProfiler::getTime(), UIDGenerator::getTimeAndDelay(), UIDGenerator::getTimestampedID128(), UIDGenerator::getTimestampedID88(), UIDGenerator::intervalsSinceGregorianBinary(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::isTimestampValid(), ApiStashEdit::lastEditTime(), SpecialUndelete::loadRequest(), LogEventsList::logLine(), ApiMain::logRequest(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), FormatMetadata::makeFormattedData(), DummyLinker::makeImageLink(), Linker::makeImageLink(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), UIDGenerator::millisecondsSinceEpochBinary(), ForeignAPIRepo::newFile(), FileRepo::newFile(), OldLocalFile::newFromTitle(), User::newTouchedTimestamp(), IPTC::parse(), Preferences::profilePreferences(), ZipDirectoryReader::readCentralDirectory(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), IPTC::timeHelper(), UIDGenerator::timeWaitUntil(), and Language::translateBlockExpiry().

◆ $title

do that in ParserLimitReportFormat instead use this to modify the parameters of the image $title
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 934 of file hooks.txt.

Referenced by WikiFilePage::__construct(), HTMLFileCache::__construct(), WikiPage::__construct(), LinksUpdate::__construct(), LogPage::actionText(), ImageGalleryBase::add(), OutputPage::addAcceptLanguage(), OutputPage::addBacklinkSubtitle(), FancyCaptcha::addCaptchaAPI(), OutputPage::addCategoryLinks(), TextPassDumperDatabaseTest::addDBData(), SpecialMyLanguageTest::addDBDataOnce(), CategoryMembershipChangeTest::addDBDataOnce(), FetchTextTest::addDBDataOnce(), ParserOutput::addInterwikiLink(), ApiQuerySearch::addInterwikiResults(), LinkCache::addLink(), ParserOutput::addLink(), BackupDumperLoggerTest::addLogEntry(), LinkBatch::addResultToCache(), OutputPage::addReturnTo(), ParserOutput::addTemplate(), ApiQueryBase::addTitleInfo(), Skin::addToSidebarPlain(), ParserOutput::addTrackingCategory(), User::addWatch(), OutputPage::addWikiText(), OutputPage::addWikiTextTidy(), OutputPage::addWikiTextTitle(), OutputPage::addWikiTextTitleTidy(), OutputPage::addWikiTextWithTitle(), EditPageTest::assertEdit(), LinksUpdateTest::assertLinksUpdate(), BackupDumperLoggerTest::assertLogItem(), SpecialMyLanguageTest::assertTitle(), RCCacheEntryFactoryTest::assertTitleLink(), EmailConfirmation::attemptConfirm(), CoreParserFunctions::basepagename(), CoreParserFunctions::basepagenamee(), SpecialUserLogin::beforeExecute(), WikiImporter::beforeImportPage(), MessageCache::bigMessageCacheKey(), MediaWiki\Linker\LinkRenderer::buildAElement(), OutputPage::buildBacklinkSubtitle(), SkinTemplate::buildContentNavigationUrls(), ChangesFeed::buildItems(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildRemoveLine(), Linker::buildRollbackLink(), GadgetDefinitionContentHandler::canBeUsedOn(), ChangeTags::canCreateTag(), XmlDumpWriter::canonicalTitle(), SimpleCaptcha::captchaTriggers(), SpecialPageFactory::capturePath(), CoreParserFunctions::cascadingsources(), SpecialPageLanguage::changePageLanguage(), ApiStashEdit::checkCache(), Revision::checkContentModel(), SpecialComparePages::checkExistingTitle(), SpecialPage::checkLoginSecurityLevel(), LocalRepo::checkRedirect(), RepoGroup::checkRedirect(), RevisionDeleter::checkRevisionExistence(), Orphans::checkSeparation(), SpecialEditWatchlist::checkTitle(), Skin::checkTitle(), ApiBase::checkTitleUserPermissions(), cleanupArticle(), CleanupSpam::cleanupArticle(), SpecialEditWatchlist::cleanupWatchlist(), LinkCache::clearBadLink(), TitleBlacklistHooks::clearBlacklist(), RepoGroup::clearCache(), HTMLFileCache::clearFileCache(), User::clearNotification(), DummyLinker::commentBlock(), Linker::commentBlock(), Article::confirmDelete(), SimpleCaptcha::confirmEditMerged(), Language::convertTitle(), Revision::countByTitle(), ApiFeedWatchlist::createFeedItem(), NaiveForeignTitleFactory::createForeignTitle(), NamespaceAwareForeignTitleFactory::createForeignTitle(), RevisionDeleter::createList(), Installer::createMainpage(), PrefixSearch::defaultSearchBackend(), ApiDelete::delete(), Article::delete(), DifferenceEngine::deletedLink(), ApiDelete::deleteFile(), ApiTestCaseUpload::deleteFileByTitle(), ApiQueryWatchlistIntegrationTest::deletePage(), SpecialRedirect::dispatchFile(), TitleBlacklistHooks::displayBlacklistOverrideNotice(), CoreParserFunctions::displaytitle(), ApiQueryWatchlistIntegrationTest::doAnonPageEdit(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), SpecialNuke::doDelete(), DifferenceEngineTest::doEdits(), WikiPage::doEditUpdates(), WikiEditorHooks::doEventLogging(), SpecialExport::doExport(), ApiQuery::doExport(), SpamBlacklist::doLogging(), SpecialRecentChangesLinked::doMainQuery(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), RecompressTracked::doPage(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), JobQueueDB::doPop(), PurgeList::doPurge(), GenderCache::doTitlesArray(), WatchAction::doUnwatch(), LinksDeletionUpdate::doUpdate(), LinkHolderArray::doVariants(), WatchAction::doWatch(), WatchAction::doWatchOrUnwatch(), ApiTestCase::editPage(), ApiImageRotate::execute(), PageExists::execute(), ApiWatch::execute(), CompareParserCache::execute(), Undelete::execute(), ApiQueryTitleBlacklist::execute(), ApiSetNotificationTimestamp::execute(), CheckBadRedirects::execute(), ApiQueryLangLinks::execute(), ViewCLI::execute(), ApiQueryReferences::execute(), ApiQueryAllMessages::execute(), ApiQueryIWLinks::execute(), MaintenanceFormatInstallDoc::execute(), ApiParse::execute(), ApiPurge::execute(), ApiQueryCategoryInfo::execute(), ApiQueryDeletedrevs::execute(), DeleteDefaultMessages::execute(), MakeTestEdits::execute(), ApiQueryFilearchive::execute(), GetTextMaint::execute(), ImportSiteScripts::execute(), NukePage::execute(), ApiQueryLogEvents::execute(), SpecialBlockList::execute(), AttachLatest::execute(), FixDoubleRedirects::execute(), EditCLI::execute(), ApiQueryImageInfo::execute(), SpecialWatchlist::execute(), ApiStashEdit::execute(), RollbackEdits::execute(), DeleteBatch::execute(), ImportTextFiles::execute(), PurgeChangedPages::execute(), NukeNS::execute(), SpecialExpandTemplates::execute(), RandomPage::execute(), RefreshLinks::execute(), RebuildFileCache::execute(), BenchmarkParse::execute(), ConvertLinks::execute(), UpdateCollation::execute(), DeleteEqualMessages::execute(), FileDuplicateSearchPage::execute(), SpecialSearch::execute(), SpecialEmailUser::execute(), ImportImages::execute(), LoginSignupSpecialPage::execute(), ApiQueryInfo::execute(), ChangesListSpecialPage::execute(), SpecialPageFactory::executePath(), WantedFilesPage::existenceCheck(), WantedQueryPage::existenceCheck(), SpecialPageFactory::exists(), PrefixSearch::extractNamespace(), ApiQueryWatchlist::extractOutputData(), ApiQueryInfo::extractPageInfo(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryContributions::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), SpecialEditWatchlist::extractTitles(), WikiPage::factory(), ApiFeedContributions::feedItem(), HistoryAction::feedItem(), SpecialNewpages::feedItem(), QueryPage::feedResult(), Revision::fetchRevision(), MediaWikiGadgetsDefinitionRepo::fetchStructuredList(), ResourceLoaderWikiModule::fetchTitleInfo(), GadgetDefinitionContent::fillParserOutput(), WikitextContent::fillParserOutput(), SpamBlacklist::filter(), SpamBlacklistHooks::filterMergedContent(), RepoGroup::findFile(), FileRepo::findFile(), LocalRepo::findFiles(), FileRepo::findFiles(), SimpleCaptcha::findLinks(), WikiImporter::finishImportPage(), Skin::footerLink(), Skin::footerLinkTitle(), TemplatesOnThisPageFormatter::format(), Linker::formatAutocomments(), ApiParse::formatCategoryLinks(), DummyLinker::formatComment(), Linker::formatComment(), FeedUtils::formatDiffRow(), ApiParse::formatIWLinks(), ApiParse::formatLangLinks(), ApiParse::formatLinks(), DummyLinker::formatLinksInComment(), Linker::formatLinksInComment(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), PageQueryPage::formatResult(), WantedQueryPage::formatResult(), UnusedCategoriesPage::formatResult(), UnusedtemplatesPage::formatResult(), AncientPagesPage::formatResult(), MostcategoriesPage::formatResult(), UncategorizedCategoriesPage::formatResult(), MostinterwikisPage::formatResult(), ShortPagesPage::formatResult(), MostlinkedTemplatesPage::formatResult(), MostlinkedPage::formatResult(), SpecialPagesWithProp::formatResult(), LinkSearchPage::formatResult(), SpecialProtectedtitles::formatRow(), CategoryPager::formatRow(), NewFilesPager::formatRow(), SpecialNewpages::formatRow(), ApiParse::formatSummary(), ProtectedPagesPager::formatValue(), AllMessagesTablePager::formatValue(), SearchSuggestionSet::fromStrings(), SearchSuggestion::fromTitle(), SearchSuggestionSet::fromTitles(), CoreParserFunctions::fullpagename(), CoreParserFunctions::fullpagenamee(), ParserFuzzTest::fuzzTest(), CoreParserFunctions::gender(), MediaWiki\Widget\Search\FullSearchResultWidget::generateAltTitleHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateFileHtml(), SpecialExpandTemplates::generateHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateMainLinkHtml(), Article::generateReason(), MediaWiki\Widget\Search\FullSearchResultWidget::generateRedirectHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateSectionHtml(), MediaWiki\Widget\Search\FullSearchResultWidget::generateSizeHtml(), ProtectLogFormatter::getActionLinks(), BlockLogFormatter::getActionLinks(), LegacyLogFormatter::getActionLinks(), EditPage::getActionURL(), NamespaceConflictChecker::getAlternateTitle(), BaseBlacklist::getArticleText(), ContentHandler::getAutoDeleteReason(), TitleBlacklist::getBlacklistText(), CoreParserFunctions::getCachedRevisionObject(), InfoAction::getCacheKey(), FancyCaptcha::getCaptchaInfo(), Skin::getCategoryLinks(), EditPage::getCheckboxesOOUI(), ResourceLoaderWikiModule::getContent(), WikiPage::getContentModel(), Revision::getContentModel(), ResourceLoaderWikiModule::getContentObj(), RCCacheEntryFactoryTest::getContext(), Skin::getCopyright(), EditPage::getCopyrightWarning(), SpamBlacklist::getCurrentLinks(), AllMessagesTablePager::getCustomisedStatuses(), FileContentHandler::getDataForSearchIndex(), ContentHandler::getDefaultModelFor(), MediaTransformOutput::getDescLinkAttribs(), FeedUtils::getDiffLink(), EditPage::getEditToolbar(), ApiQueryBacklinksprop::getExamplesMessages(), UncategorizedCategoriesPage::getExceptionList(), FormatMetadata::getExtendedMetadataFromFile(), ApiQueryWatchlistIntegrationTest::getExternalRC(), ApiFeedRecentChanges::getFeedObject(), WikiFilePage::getForeignCategories(), FormAction::getForm(), FancyCaptcha::getFormInformation(), ContentHandler::getForTitle(), MediaWikiTitleCodec::getFullText(), GadgetDefinitionNamespaceRepo::getGadget(), PageProps::getGoodIDs(), LinkCache::getGoodLinkID(), UserGroupMembership::getGroupPage(), ChangeTagsLogItem::getHTML(), RevDelLogItem::getHTML(), ImagePageTest::getImagePage(), ImagePage404Test::getImagePage(), LinksUpdate::getInterlangInsertions(), ApiPageSet::getInterwikiTitlesAsResult(), DummyLinker::getInvalidTitleDescription(), Linker::getInvalidTitleDescription(), ApiPageSet::getInvalidTitlesAndRevisions(), JobQueueRedis::getJobFromFields(), JobQueueRedis::getJobFromUidInternal(), OutputPage::getJSVars(), IRCColourfulRCFeedFormatter::getLine(), SpecialExport::getLinks(), SimpleCaptcha::getLinksFromTracker(), MediaWiki\Linker\LinkRenderer::getLinkURL(), RenameuserLogFormatter::getMessageParameters(), BlockLogFormatter::getMessageParameters(), WatchedItemStoreUnitTest::getMockTitle(), MessageCache::getMsgFromNamespace(), FileRepo::getNameFromTitle(), SearchNearMatcher::getNearMatch(), SearchNearMatcher::getNearMatchInternal(), SpecialEditWatchlist::getNormalForm(), WatchedItemStore::getNotificationTimestamp(), Skin::getPageClasses(), ContentHandler::getPageLanguage(), SpecialExport::getPagesFromCategory(), ContentHandler::getPageViewLanguage(), AbstractContent::getParserOutput(), MediaWikiTitleCodec::getPrefixedText(), EditPage::getPreloadedContent(), RenameuserLogFormatter::getPreloadTitles(), BlockLogFormatter::getPreloadTitles(), ApiQueryInfo::getProtectionInfo(), RandomPage::getRandomTitle(), SpecialRandomInCategory::getRandomTitle(), RawAction::getRawText(), SpecialMyLanguage::getRedirect(), AbstractContent::getRedirectChain(), Article::getRedirectHeaderHtml(), CssContent::getRedirectTarget(), JavaScriptContent::getRedirectTarget(), ListredirectsPage::getRedirectTarget(), SearchExactMatchRescorer::getRedirectTarget(), WikitextContent::getRedirectTarget(), WikitextContent::getRedirectTargetAndText(), ApiPageSet::getRedirectTargets(), Skin::getRelevantUser(), LinksUpdate::getRemovedLinks(), SpecialChangeCredentials::getReturnUrl(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), BenchmarkParse::getRevIdForTime(), DifferenceEngine::getRevisionHeader(), TitleArrayFromResultTest::getRowWithTitle(), ApiQuerySearch::getSearchResultData(), GadgetDefinitionContent::getSecondaryDataUpdates(), AbstractContent::getSecondaryDataUpdates(), ApiStashEdit::getStashKey(), User::getTalkPage(), DatabaseLogEntry::getTarget(), RCDatabaseLogEntry::getTarget(), TestRecentChangesHelper::getTestContext(), Revision::getTimestampFromId(), CLIParser::getTitle(), LogEventsList::getTitleInput(), LogPage::getTitleLink(), User::getTokenUrl(), BaseBlacklist::getTypeFromTitle(), ApiQueryInfo::getUnblockToken(), WatchAction::getUnwatchToken(), Interwiki::getURL(), SpecialEditWatchlist::getWatchlist(), SpecialSearch::goResult(), WikiImporter::handlePage(), AuthManagerSpecialPage::handleReauthBeforeExecute(), DumpRenderer::handleRevision(), DumpIterator::handleRevision(), BackupReader::handleRevision(), FixDefaultJsonContentPages::handleRow(), ParserMethodsTest::helperParserFunc(), ExtParserFunctions::ifexistCommon(), ExtParserFunctions::ifexistObj(), ApiPageSet::initFromQueryResult(), ApiPageSet::initFromRevIDs(), SearchResult::initFromTitle(), MediaWiki::initializeArticle(), SideBarTest::initMessagesHref(), ImageGalleryBase::insert(), ChangesList::insertLog(), Revision::insertOn(), MediaWikiTestCase::insertPage(), InfoAction::invalidateCache(), LocalRepo::invalidateImageRedirect(), ResourceLoaderWikiModule::invalidateModuleCache(), LinkCache::invalidateTitle(), LinkCache::isBadLink(), TitleBlacklist::isBlacklisted(), User::isBlockedFrom(), LinkCache::isCacheable(), WikitextContent::isCountable(), BaseBlacklist::isLocalSource(), User::isWatched(), TitleBlacklist::isWhitelisted(), SpecialNuke::listForm(), Revision::loadFromTimestamp(), Revision::loadFromTitle(), SimpleCaptcha::loadText(), SpamBlacklist::logFilterHit(), TitleBlacklistHooks::logFilterHitUsername(), MediaWiki::main(), SkinTemplate::makeArticleUrlDetails(), DummyLinker::makeBrokenImageLinkObj(), Linker::makeBrokenImageLinkObj(), EnhancedChangesList::makeCacheGroupingKey(), DummyLinker::makeCommentLink(), Linker::makeCommentLink(), ContentHandler::makeContent(), DummyLinker::makeExternalLink(), Linker::makeExternalLink(), SpecialExpandTemplates::makeForm(), User::makeGroupLinkHTML(), User::makeGroupLinkWiki(), Skin::makeI18nUrl(), DummyLinker::makeImageLink(), Linker::makeImageLink(), Skin::makeKnownUrlDetails(), MediaWiki\Linker\LinkRenderer::makeLink(), BaseTemplate::makeLink(), Skin::makeMainPageUrl(), DummyLinker::makeMediaLinkFile(), Linker::makeMediaLinkFile(), DummyLinker::makeMediaLinkObj(), Linker::makeMediaLinkObj(), Title::makeName(), Skin::makeNSUrl(), SpecialRecentChanges::makeOptionsLink(), MessageCacheTest::makePage(), RightsLogFormatter::makePageLink(), LogFormatter::makePageLink(), Skin::makeSpecialUrl(), Skin::makeSpecialUrlSubpage(), SkinTemplate::makeTalkUrlDetails(), DummyLinker::makeThumbLink2(), Linker::makeThumbLink2(), DummyLinker::makeThumbLinkObj(), Linker::makeThumbLinkObj(), Title::makeTitle(), Title::makeTitleSafe(), Skin::makeUrl(), Skin::makeUrlDetails(), MostlinkedPage::makeWlhLink(), WantedQueryPage::makeWlhLink(), MostlinkedTemplatesPage::makeWlhLink(), TitleBlacklistEntry::matches(), TitleCleanup::moveIllegalPage(), TitleCleanup::moveInconsistentPage(), CoreParserFunctions::mwnamespace(), RenameuserLogFormatter::myPageLink(), CoreParserFunctions::namespacee(), CoreParserFunctions::namespacenumber(), XmlDumpWriter::namespaces(), ForeignAPIRepo::newFile(), FileRepo::newFile(), LocalRepo::newFromArchiveName(), Title::newFromID(), Category::newFromName(), Category::newFromRow(), SearchResult::newFromTitle(), Article::newFromTitle(), Category::newFromTitle(), CdnCacheUpdate::newFromTitles(), RecentChange::newLogEntry(), Title::newMainPage(), CategoryPage::newPage(), ImagePage::newPage(), WikiPageTest::newPage(), Article::newPage(), CdnCacheUpdate::newSimplePurge(), RevisionTest::newTestRevision(), DummyLinker::normaliseSpecialPage(), SearchEngine::normalizeNamespaces(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), Language::numLink(), ConfirmEditHooks::onAlternateEditPreview(), Article::onArticleCreate(), WikiPage::onArticleCreate(), Article::onArticleDelete(), WikiPage::onArticleDelete(), Article::onArticleEdit(), WikiPage::onArticleEdit(), GadgetHooks::onCodeEditorGetPageLanguage(), onContentGetParserOutput(), CiteHooks::onContentHandlerDefaultModelFor(), GadgetHooks::onContentHandlerDefaultModelFor(), GadgetHooks::onEditFilterMergedContent(), BenchmarkParse::onFetchTemplate(), InputBoxHooks::onMediaWikiPerformAction(), GadgetHooks::onPageContentSaveComplete(), ConfirmEditHooks::onPageContentSaveComplete(), ParsoidVirtualRESTService::onParsoid1Request(), RestbaseVirtualRESTService::onParsoid1Request(), RenameuserHooks::onShowMissingArticle(), CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink(), InputBoxHooks::onSpecialPageBeforeExecute(), SpecialRandomInCategory::onSubmit(), SpecialPageLanguage::onSubmit(), ConfirmEditHooks::onTitleReadWhitelist(), SpamBlacklistHooks::onUploadVerifyUpload(), XmlDumpWriter::openPage(), ParserOptions::optionsHash(), ApiQuery::outputGeneralPageInfo(), SpecialSpecialpages::outputPageList(), ImageQueryPage::outputResults(), WikiExporter::pageByName(), WikiExporter::pageByTitle(), WikiImporter::pageCallback(), InfoAction::pageCounts(), WikiPage::pageDataFromTitle(), Article::pageDataFromTitle(), CoreParserFunctions::pageid(), InfoAction::pageInfo(), CoreParserFunctions::pagename(), CoreParserFunctions::pagenamee(), CoreParserFunctions::pagesincategory(), CoreParserFunctions::pagesize(), MessageCache::parse(), ApiStashEdit::parseAndStash(), MediaWiki::parseTitle(), NamespaceAwareForeignTitleFactory::parseTitleNoNs(), NamespaceAwareForeignTitleFactory::parseTitleWithNs(), BacklinkJobUtils::partitionBacklinkJob(), MediaWiki::performAction(), MediaWiki::performRequest(), ApiPageSet::populateGeneratorData(), PopulateContentModel::populatePage(), PopulateContentModel::populateRevisionOrArchive(), RebuildTextIndex::populateSearchIndex(), SpecialPage::prefixSearchString(), FileDuplicateSearchPage::prefixSearchSubpages(), Skin::preloadExistence(), ResourceLoaderWikiModule::preloadTitleInfo(), WikitextContent::preloadTransform(), WikiPage::prepareContentForEdit(), SkinTemplate::prepareQuickTemplate(), JavaScriptContent::preSaveTransform(), CssContent::preSaveTransform(), WikitextContent::preSaveTransform(), MarkpatrolledAction::preText(), ApiPageSet::processDbRow(), CompareParsers::processRevision(), TitleCleanup::processRow(), ImageCleanup::processRow(), WatchlistCleanup::processRow(), WikiImporter::processTitle(), ApiPageSet::processTitlesArray(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), PurgeList::purgeNamespace(), LinksUpdate::queueRecursiveJobs(), LinksUpdate::queueRecursiveJobsForTable(), DoubleRedirectsPage::reallyGetQueryInfo(), SearchExactMatchRescorer::redirectTargetsToRedirect(), User::removeWatch(), MediaWiki\Widget\Search\SimpleSearchResultWidget::render(), MediaWiki\Widget\Search\InterwikiSearchResultWidget::render(), ImageMap::render(), MessageCache::replace(), LinkHolderArray::replaceInternal(), ApiImportReporter::reportPage(), ImportReporter::reportPage(), WatchedItemStore::resetNotificationTimestamp(), CoreParserFunctions::revisionday(), CoreParserFunctions::revisionday2(), CoreParserFunctions::revisionid(), CoreParserFunctions::revisionmonth(), CoreParserFunctions::revisionmonth1(), ApiComparePages::revisionOrTitleOrId(), CoreParserFunctions::revisiontimestamp(), CoreParserFunctions::revisionuser(), CoreParserFunctions::revisionyear(), SpecialComparePages::revOrTitle(), CoreParserFunctions::rootpagename(), CoreParserFunctions::rootpagenamee(), ApiQueryDeletedRevisions::run(), ApiQueryAllRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryPrefixSearch::run(), ApiQueryIWBacklinks::run(), ApiQueryLangBacklinks::run(), ApiQueryProtectedTitles::run(), ApiQueryImages::run(), ApiQueryExtLinksUsage::run(), ApiQueryCategories::run(), ApiQueryWatchlistRaw::run(), ApiQuerySearch::run(), ApiQueryPagesWithProp::run(), ApiQueryQueryPage::run(), ApiQueryAllPages::run(), ApiQueryCategoryMembers::run(), ApiQueryLinks::run(), ApiQueryRevisions::run(), ApiQueryBacklinksprop::run(), ApiQueryAllLinks::run(), MediaWiki\Linker\LinkRenderer::runLegacyBeginHook(), ApiQueryRandom::runQuery(), ApiQueryBacklinks::runSecondQuery(), RecentChange::save(), ApiOpenSearch::search(), ImageGalleryBase::setContextTitle(), EditPage::setContextTitle(), ApiPageSet::setGeneratorData(), ParserOptions::setRedirectTarget(), SearchSuggestion::setSuggestedTitle(), WikiImporter::setTargetRootPage(), Revision::setTitle(), DifferenceEngineTest::setUp(), MagicVariableTest::setUp(), ParserOptions::setupFakeRevision(), SkinTemplate::setupTemplateForOutput(), CiteThisPageHooks::shouldAddLink(), SimpleCaptcha::shouldCheck(), ProtectionForm::show(), SpecialSearch::showCreateLink(), EditPage::showCustomIntro(), OutputPage::showErrorPage(), SpecialExpandTemplates::showHtmlPreview(), SpecialBookSources::showList(), SpecialUndelete::showList(), SpecialPageLanguage::showLogFragment(), MovePageForm::showLogFragment(), Article::showMissingArticle(), LogEventsList::showOptions(), SpecialProtectedpages::showOptions(), SpecialProtectedtitles::showOptions(), Article::showPatrolFooter(), SpecialPrefixindex::showPrefixChunk(), SpecialSearch::showResults(), MovePageForm::showSubpages(), LoginSignupSpecialPage::showSuccessPage(), SpecialEditWatchlist::showTitles(), SpecialUpload::showViewDeletedLinks(), BackupReader::skippedNamespace(), CoreParserFunctions::special(), ExtraParserTest::statelessFetchTemplate(), CoreParserFunctions::subjectpagename(), CoreParserFunctions::subjectpagenamee(), CoreParserFunctions::subjectspace(), CoreParserFunctions::subjectspacee(), WebInstallerName::submit(), CoreParserFunctions::subpagename(), CoreParserFunctions::subpagenamee(), Skin::subPageSubtitle(), SkinTemplate::tabAction(), CologneBlueTemplate::talkLink(), CoreParserFunctions::talkpagename(), CoreParserFunctions::talkpagenamee(), CoreParserFunctions::talkspace(), CoreParserFunctions::talkspacee(), Scribunto_LuaTitleBlacklistLibrary::test(), WatchedItemUnitTest::testAddWatch(), EditPageTest::testAutoMerge(), ForeignTitleTest::testBasic(), SubpageImportTitleFactoryTest::testBasic(), NaiveForeignTitleFactoryTest::testBasic(), NamespaceImportTitleFactoryTest::testBasic(), NamespaceAwareForeignTitleFactoryTest::testBasic(), NaiveImportTitleFactoryTest::testBasic(), ParserMethodsTest::testCallParserFunction(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), TestSample::testCheckMainPageTitleIsConsideredLocal(), ExtraParserTest::testCleanSig(), ExtraParserTest::testCleanSigDisabled(), ErrorPageErrorTest::testConstruction(), TitleValueTest::testConstruction(), TitleArrayFromResultTest::testConstructionWithRow(), RevisionTest::testConstructWithContent(), ApiQueryRevisionsTest::testContentComesWithContentModelAndFormat(), TestSample::testCreateBasicListOfTitles(), TitleValueTest::testCreateFragmentTitle(), TitleTest::testCreateFragmentTitle(), TitleArrayFromResultTest::testCurrentAfterConstruction(), ContentHandlerTest::testDataIndexFields(), WikitextContentHandlerTest::testDataIndexFieldsFile(), TextContentTest::testDeletionUpdates(), WikiPageTest::testDoEditContent(), ApiEditPageTest::testEdit_redirect(), ApiEditPageTest::testEdit_redirectText(), ApiEditPageTest::testEditConflict(), ApiEditPageTest::testEditConflict_bug41990(), ApiEditPageTest::testEditConflict_newSection(), TitleTest::testExists(), EditPageTest::testExtractSectionTitle(), TitleTest::testFixSpecialNameRetainsParameter(), ForeignTitleTest::testFullText(), ContentHandlerTest::testGetAutosummary(), TitleTest::testGetBaseText(), ResourceLoaderWikiModuleTest::testGetContent(), RevisionTest::testGetContent(), RevisionTest::testGetContentFormat(), ResourceLoaderWikiModuleTest::testGetContentForRedirects(), RevisionTest::testGetContentHandler(), TitleMethodsTest::testGetContentModel(), RevisionTest::testGetContentModel(), ContentHandlerTest::testGetDefaultModelFor(), ContentHandlerTest::testGetForTitle(), TitleTest::testGetFragment(), MediaWikiTitleCodecTest::testGetFullText(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotAllowed(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotWatched(), TitleMethodsTest::testGetOtherPage(), ContentHandlerTest::testGetPageLanguage(), TitleTest::testGetPageViewLanguage(), TextContentTest::testGetParserOutput(), MediaWikiTitleCodecTest::testGetPrefixedDBkey(), MediaWikiTitleCodecTest::testGetPrefixedText(), TitleTest::testGetPrefixedText(), ExtraParserTest::testGetPreloadText(), CssContentTest::testGetRedirectTarget(), JavaScriptContentTest::testGetRedirectTarget(), WikiPageTest::testGetRedirectTarget(), TitleTest::testGetRootText(), WikitextContentTest::testGetSecondaryDataUpdates(), ParserMethodsTest::testGetSections(), TitleTest::testGetSubpageText(), ParserOutputSearchDataExtractorTest::testGetTemplates(), TitleValueTest::testGetText(), MediaWikiTitleCodecTest::testGetText(), SpecialPageTest::testGetTitleFor(), SpecialPageFactoryTest::testGetTitleForAlias(), SpecialPageTest::testGetTitleForWithWarning(), TitleTest::testGetTitleValue(), ImportTest::testHandlePageContainsRedirect(), TitleMethodsTest::testHasContentModel(), TitleMethodsTest::testHasSubjectNamespace(), WikiPageTest::testHasViewableContent(), WikiCategoryPageTest::testHiddenCategory_PropertyNotSet(), TitleMethodsTest::testInNamespace(), ApiResultTest::testInstanceDataMethods(), SpecialPageTest::testInvalidGetTitleFor(), TitleTest::testIsAlwaysKnown(), TitleTest::testIsAlwaysKnownOnInterwiki(), WikiPageTest::testIsCountable(), TitleMethodsTest::testIsCssJsSubpage(), TitleMethodsTest::testIsCssOrJsPage(), TitleMethodsTest::testIsCssSubpage(), TitleMethodsTest::testIsJsSubpage(), WikiPageTest::testIsRedirect(), TitleTest::testIsValidMoveOperation(), WatchedItemUnitTest::testIsWatched(), WatchedItemIntegrationTest::testIsWatched_falseOnNotAllowed(), TitleMethodsTest::testIsWikitextPage(), ExtraParserTest::testLongNumericLinesDontKillTheParser(), ContentHandlerTest::testMakeContent(), CssContentHandlerTest::testMakeRedirectContent(), JavaScriptContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMakeRedirectContent(), TitleTest::testNewFromTitleValue(), LinksUpdateTest::testOnAddingAndRemovingCategory_recentChangesRowIsAdded(), ExportTest::testPageByTitle(), ExtraParserTest::testParse(), ContentHandlerTest::testParserOutputForIndexing(), MediaWikiTitleCodecTest::testParseTitle(), ApiQueryAllPagesTest::testPrefixNormalizationSearchBug(), ExtraParserTest::testPreprocess(), ParserMethodsTest::testPreSaveTransform(), ExtraParserTest::testPreSaveTransform(), CdnCacheUpdateTest::testPurgeMergeWeb(), ParserMethodsTest::testRecursiveParse(), RefreshLinksPartitionTest::testRefreshLinks(), WatchedItemUnitTest::testRemoveWatch(), WatchedItemIntegrationTest::testRemoveWatch_falseOnNotAllowed(), ErrorPageErrorTest::testReport(), SpecialPageTest::testRequireLoginAnon(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), SpecialSearchTest::testRewriteQueryWithSuggestion(), TestSample::testSetUpMainPageTitleForNextTest(), ApiResultTest::testStaticDataMethods(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), TestSample::testTitleObjectFromObject(), TestSample::testTitleObjectStringConversion(), ApiQueryTest::testTitlesAreRejectedIfInvalid(), ExtraParserTest::testTrackingCategory(), ExtraParserTest::testTrackingCategorySpecial(), MediaWikiTest::testTryNormaliseRedirect(), ForeignTitleTest::testUnknownNamespaceCheck(), ForeignTitleTest::testUnknownNamespaceError(), ImportTest::testUnknownXMLTags(), WatchedItemIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreIntegrationTest::testUpdateResetAndSetNotificationTimestamp(), TitleBlacklistHooks::testUserName(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WatchedItemIntegrationTest::testWatchAndUnWatchItem(), GlobalWithDBTest::testWfIsBadImage(), TitleTest::testWgWhitelistReadRegexp(), ExtParserFunctions::titleparts(), Linker::tocList(), MediaWikiSite::toDBKey(), ThumbnailImage::toHtml(), MessageCache::transform(), PHPVersionCheck::triggerError(), MediaWiki::tryNormaliseRedirect(), SpecialEditWatchlist::unwatchTitles(), MockSearch::update(), SearchMssql::update(), SearchOracle::update(), SearchSqlite::update(), SearchMySQL::update(), Language::updateConversionTable(), MessageCache::updateMessageOverride(), Maintenance::updateSearchIndexForPage(), SearchMssql::updateTitle(), SearchOracle::updateTitle(), SearchSqlite::updateTitle(), SearchMySQL::updateTitle(), EditPage::updateWatchlist(), CoreParserFunctions::urlFunction(), TitleBlacklistHooks::userCan(), Revision::userCanBitfield(), TitleBlacklist::userCannot(), OutputPage::userCanPreview(), HTMLTitleTextField::validate(), TitleBlacklistHooks::validateBlacklist(), ApiFileRevert::validateParameters(), ApiBase::validateUser(), CategoryPage::view(), Language::viewPrevNext(), SpamBlacklist::warmCachesForFilter(), ApiWatch::watchTitle(), wfStreamThumb(), SpecialWhatLinksHere::wlhLink(), SkinTemplate::wrapHTML(), XmlDumpWriter::writeLogItem(), and XmlDumpWriter::writeRevision().

◆ $type

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 my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values& $type
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 2536 of file hooks.txt.

Referenced by PoolCounterRedis::__construct(), PoolCounter::__construct(), Installer::__construct(), RedisLockManager::__destruct(), JobQueueGroup::__destruct(), FormOptions::add(), BaseBlacklist::addBlacklistType(), OutputPage::addCategoryLinks(), SpecialLog::addHeader(), FakeAuthTemplate::addInputItem(), ApiQuerySearch::addInterwikiResults(), StripState::addItem(), BackupDumperLoggerTest::addLogEntry(), ApiQueryLogEvents::addLogParams(), BitmapMetadataHandler::addMetadata(), PostgresUpdater::addPgExtIndex(), TestFileReader::addRequirement(), ContentHandler::addSearchField(), SiteStatsUpdate::adjustPending(), ApiResult::applyTransformations(), ApiErrorFormatter::arrayFromStatus(), ApiErrorFormatter_BackCompat::arrayFromStatus(), XhprofDataTest::assertArrayStructure(), LogFormatterTest::assertIRCComment(), BackupDumperLoggerTest::assertLogItem(), MediaWikiTestCase::assertType(), SiteTest::assertTypeOrFalse(), MediaWikiTestCase::assertTypeOrValue(), SpecialBlock::blockLogFlags(), RCCacheEntryFactory::buildCLink(), RCCacheEntryFactory::buildLastLink(), buildSearchEngine(), FeedUtils::checkFeedOutput(), HTMLFileCache::clearFileCache(), Wikimedia\Rdbms\LoadBalancer::closeConnection(), CategoryPage::closeShowCategory(), StreamFile::contentTypeFromPath(), WikiPage::convertSelectType(), SearchEngineFactory::create(), SearchEngine::create(), CategoryMembershipChange::createRecentChangesEntry(), LayeredParameterizedPassword::crypt(), MediaWikiMediaTestCase::dataFile(), Exif::debug(), LCStoreStaticArray::decode(), JobQueueAggregatorRedis::decodeQueueName(), CategoryViewer::doCategoryQuery(), JobQueueAggregatorRedis::doGetAllReadyWikiQueues(), PostgreSqlLockManager::doGetLocksOnServer(), MySqlLockManager::doGetLocksOnServer(), WikiImporter::doImport(), QuorumLockManager::doLock(), FSLockManager::doLock(), QuorumLockManager::doLockByType(), LockManager::doLockByType(), FSLockManager::doSingleLock(), FSLockManager::doSingleUnlock(), QuorumLockManager::doUnlock(), FSLockManager::doUnlock(), QuorumLockManager::doUnlockByType(), LockManager::doUnlockByType(), SiteStatsUpdate::doUpdateContextStats(), Html::dropDefaults(), CSSMin::encodeImageAsDataURI(), CSSMin::encodeStringAsDataURI(), CheckStorage::error(), ApiMain::errorMessagesFromException(), WebInstallerDBConnect::execute(), HHVMMakeRepo::execute(), ApiTokens::execute(), WebInstallerUpgrade::execute(), ApiQueryTokens::execute(), SpecialLog::execute(), SpecialProtectedpages::execute(), SpecialProtectedtitles::execute(), ApiQueryBlocks::execute(), GetLagTimes::execute(), ManageJobs::execute(), Protect::execute(), ApiQueryLogEvents::execute(), UploadStashCleanup::execute(), CopyJobQueue::execute(), ShowJobs::execute(), RunJobs::execute(), ConvertLinks::execute(), UpdateCollation::execute(), ConvertExtensionToRegistration::execute(), PurgeChangedFiles::execute(), CompressOld::execute(), ImportImages::execute(), SiteExporter::exportSite(), ApiQueryWatchlist::extractOutputData(), LogFormatter::extractParameters(), ApiQueryRecentChanges::extractRowInfo(), ScopedLock::factory(), PoolCounter::factory(), ApiTestCaseUpload::fakeUploadChunk(), ApiTestCaseUpload::fakeUploadFile(), HistoryAction::feed(), SpecialNewpages::feed(), FormOptions::fetchValuesFromRequest(), GadgetDefinitionContent::fillParserOutput(), OutputPage::filterModules(), MimeAnalyzer::findMediaType(), JobQueueAggregator::findPendingWikiQueues(), FormatMetadata::flattenArrayContentLang(), FormatMetadata::flattenArrayReal(), TemplatesOnThisPageFormatter::format(), FormatMetadata::formatCoords(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), Linker::formatTemplates(), BlockListPager::formatValue(), MemcLockManager::freeLocksOnServer(), RedisLockManager::freeLocksOnServer(), CategoryViewer::generateLink(), JobQueueGroup::get(), LegacyLogFormatter::getActionLinks(), OutputPage::getAllowedModules(), SpecialBlockList::getBlockListPager(), CachingSiteStore::getCacheKey(), OutputPage::getCategories(), LinksUpdate::getCategoryInsertions(), CategoryMembershipChange::getChangeMessageText(), PPNode_DOM::getChildrenOfType(), JobQueueGroup::getCoalescedQueues(), ResourceLoaderClientHtml::getContext(), Skin::getCopyright(), CategoryViewer::getCountMessage(), SpecialVersion::getCreditsForExtension(), IEContentAnalyzer::getDataFormat(), ResourceLoaderImage::getDataUri(), Language::getDateFormatString(), SqlBagOStuff::getDB(), ForeignDBRepo::getDBFactory(), Installer::getDBInstaller(), LayeredParameterizedPassword::getDefaultParams(), StatusValue::getErrorsByType(), SpecialVersion::getExtensionCategory(), SpecialVersion::getExtensionCredits(), SpecialVersion::getExtensionTypeName(), LogEventsList::getFilterLinks(), SpecialWhatLinksHere::getFilterPanel(), LogPager::getFilterParams(), MediaHandler::getHandler(), MediaHandlerFactory::getHandler(), MockMediaHandlerFactory::getHandlerClass(), MediaHandlerFactory::getHandlerClass(), OutputPage::getHeadLinksArray(), ApiHelp::getHelpInternal(), MWException::getHTML(), HTMLTextField::getInputHTML(), HTMLTextField::getInputOOUI(), BaseBlacklist::getInstance(), File::getIsSafeFileUncached(), OutputPage::getJSVars(), SpecialProtectedtitles::getLevelMenu(), SpecialProtectedpages::getLevelMenu(), MachineReadableRCFeedFormatter::getLine(), EnhancedChangesList::getLineData(), BaseBlacklist::getLocalBlacklists(), RedisLockManager::getLocksOnServer(), MemcLockManager::getLocksOnServer(), DBLockManager::getLocksOnServer(), MWExceptionHandler::getLogMessage(), MimeAnalyzer::getMediaType(), LogFormatter::getMessageKey(), DeleteLogFormatter::getMessageParameters(), BitmapMetadataHandler::getMetadataArray(), IEContentAnalyzer::getMimeTypeForVersion(), ArrayDiffFormatterTest::getMockDiffOp(), OutputPage::getModules(), TablePager::getNavigationBar(), ApiOpenSearch::getOpenSearchTemplate(), Skin::getPageClasses(), IndexPager::getPagingLinks(), ApiBase::getParameterFromSettings(), SiteStatsUpdate::getPendingDeltas(), PostgresInstaller::getPgConnection(), MWExceptionHandler::getPublicLogMessage(), JobQueueGroup::getQueueSizes(), JobQueueGroup::getQueuesWithJobs(), FileBackend::getScopedFileLocks(), InputBox::getSearchForm(), CategoryViewer::getSectionPagingLinks(), Status::getStatusArray(), ZipDirectoryReader::getStructSize(), SpecialBlock::getTargetAndType(), HTMLTextField::getType(), SiteStatsUpdate::getTypeCacheKey(), SpecialProtectedpages::getTypeMenu(), LogEventsList::getTypeSelector(), ForeignAPIFile::getUser(), ArchivedFile::getUser(), LocalFile::getUser(), BaseBlacklist::getWhitelists(), BitmapMetadataHandler::GIF(), FileBackendGroup::guessMimeInternal(), PoolCounter::hashKeyIntoSlots(), PasswordFactory::init(), MediaWiki\Auth\AuthManagerTest::initializeConfig(), Html::input(), Language::internalUserTimeAndDate(), BaseBlacklist::isLocalSource(), Title::isProtected(), Language::isValidBuiltInCode(), MIMEsearchPage::isValidType(), BitmapMetadataHandler::Jpeg(), SearchSqlite::legalSearchChars(), SearchMySQL::legalSearchChars(), SearchOracle::legalSearchChars(), LogPager::limitAction(), LogPager::limitType(), JobRunner::loadBackoffs(), Title::loadRestrictionsFromRows(), LockManager::lock(), FileBackend::lockFiles(), EnhancedChangesList::makeCacheGroupingKey(), FileBackend::makeContentDisposition(), ResourceLoaderClientHtml::makeContext(), FormatMetadata::makeFormattedData(), IndexPager::makeLink(), ImagePage::makeMetadataTable(), SiteImporter::makeSite(), EditPage::makeTemplatesOnThisPageList(), AuthManagerSpecialPage::mapFieldInfoTypeToFormDescriptorType(), AuthManagerSpecialPage::mapSingleFieldInfo(), StripState::merge(), JavaScriptMinifier::minify(), MovePage::move(), DatabaseUpdater::newForDB(), PasswordFactory::newFromCiphertext(), PasswordFactory::newFromType(), RecentChange::newLogEntry(), ContentHandlerTest::newSearchEngine(), LockManager::normalizePathsByType(), RecentChange::notifyLog(), JobQueueAggregator::notifyQueueEmpty(), JobQueueAggregator::notifyQueueNonEmpty(), SwiftFileBackend::objectListing(), SpecialChangeCredentials::onAuthChangeFormFields(), PostgresInstaller::openPgConnection(), SpamBlacklistHooks::pageSaveContent(), CoreParserFunctions::pagesincategory(), CategoryViewer::pagingLinks(), SpecialUploadStash::parseKey(), RecentChange::parseToRCType(), JSMinPlus::parseTree(), LayeredParameterizedPassword::partialCrypt(), Wikimedia\Rdbms\Database::pendingWriteQueryDuration(), BitmapMetadataHandler::PNG(), JobQueueGroup::pop(), PdfImage::postProcessDump(), SpecialBlock::processForm(), ApiTag::processIndividual(), BackupDumper::processOptions(), CoreParserFunctions::protectionexpiry(), CoreParserFunctions::protectionlevel(), PurgeChangedFiles::purgeFromLogType(), JobQueueGroup::push(), UserCache::queryNeeded(), JobQueueGroup::queuesHaveJobs(), TestFileReader::read(), SVGReader::read(), EnhancedChangesList::recentChangesBlockLine(), OutputPage::reduceAllowedModules(), PasswordFactory::register(), SiteStatsUpdate::removePendingDeltas(), ImageMap::render(), LinkHolderArray::replaceTextCallback(), ApiQueryCategoryMembers::run(), ApiQueryBacklinksprop::run(), JobRunner::run(), Wikimedia\Rdbms\LoadBalancer::runMasterPostTrxCallbacks(), User::sendConfirmationMail(), ApiResult::setArrayType(), ApiResult::setArrayTypeRecursive(), AjaxResponse::setContentType(), PasswordFactory::setDefaultType(), User::setEmailWithConfirmation(), OutputPage::setFeedAppendQuery(), CaptchaPreAuthenticationProviderTest::setTriggers(), PasswordTestCase::setUp(), ParserTestTopLevelSuite::setUp(), SpecialRenameuser::showLogExtract(), SpecialProtectedpages::showOptions(), LoginHelper::showReturnToPage(), LoginSignupSpecialPage::showReturnToPage(), LoginSignupSpecialPage::showSuccessPage(), HTTPFileStreamer::stream(), FileBackendDBRepoWrapper::streamFile(), WebInstallerDBConnect::submit(), SpecialEmailUser::submit(), TextSuppressor::suppress(), CheckStyleSuppressor::suppress(), JobRunner::syncBackoffDeltas(), MediaWikiTestCase::teardownTestDB(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccounts(), MediaWiki\Auth\AuthManagerTest::testCanLinkAccounts(), XhprofDataTest::testCompleteMetricsStructure(), TextContentHandlerTest::testFieldsForIndex(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), StatusTest::testGetErrorsWarningsOnlyStatus(), MediaWikiServicesTest::testGetService(), MediaWikiServicesTest::testGetters(), XhprofDataTest::testInclusiveMetricsStructure(), FileContentHandlerTest::testIndexMapping(), ExifRotationTest::testMetadata(), ExifRotationTest::testMetadataAutoRotate(), ExifRotationTest::testMetadataAutoRotateUnsupported(), ExifRotationTest::testMetadataNoAutoRotate(), MWMessagePackTest::testPack(), RecentChangeTest::testParseFromRCType(), RecentChangeTest::testParseToRCType(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), SiteTest::testProtocolRelativePath(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), ExifRotationTest::testRotationRendering(), ExifRotationTest::testRotationRenderingNoAutoRotate(), SearchEngineTest::testSearchIndexFields(), IEContentAnalyzer::translateMimeType(), LogEventsList::typeAction(), LockManager::unlock(), FileBackend::unlockFiles(), ZipDirectoryReader::unpack(), StripState::unstripType(), SpamBlacklistHooks::validate(), FormOptions::validateBounds(), SpecialBlock::validateTarget(), ApiResult::validateValue(), and JobQueueGroup::waitForBackups().

◆ $unhide

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache $unhide

◆ $user

Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 246 of file hooks.txt.

Referenced by UploadFromChunks::__construct(), UploadFromStash::__construct(), ImageListPager::__construct(), ChangesListSpecialPage::__construct(), Wikimedia\Rdbms\Database::__construct(), ParserOptions::__construct(), TitleBlacklistHooks::abortAutoAccount(), SpamBlacklistHooks::abortNewAccount(), TitleBlacklistHooks::abortNewAccount(), ChangeTags::activateTagWithChecks(), EmailNotification::actuallyNotifyOnPageChange(), EditPage::addContentModelChangeLogEntry(), MediaWikiTestCase::addCoreDBData(), BlockTest::addDBData(), ApiBlockTest::addDBDataOnce(), BackupDumperLoggerTest::addLogEntry(), UserrightsPage::addLogEntry(), ChangeTags::addTagsAccompanyingChangeWithChecks(), WatchedItemStore::addWatchBatchForUser(), ChangesListSpecialPageTest::assertConditions(), EditPageTest::assertEdit(), RCCacheEntryFactoryTest::assertUserLinks(), SpecialChangeEmail::attemptChange(), EmailConfirmation::attemptConfirm(), EmailInvalidation::attemptInvalidate(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::autoCreatedAccount(), MediaWiki\Session\SessionManager::autoCreateUser(), MediaWiki\Auth\AuthManager::autoCreateUser(), GadgetHooks::beforePageDisplay(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginLinkAttempt(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\EmailNotificationSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::beginSecondaryAuthentication(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::beginSecondaryAuthentication(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildNavUrls(), ChangesListSpecialPage::buildQuery(), ApiStashEdit::buildStashValue(), EditPage::buildTextboxAttribs(), WatchedItemStore::cache(), ChangeTags::canActivateTag(), ChangeTags::canAddTagsAccompanyingChange(), SpecialBlock::canBlockEmail(), MediaWiki\Auth\AuthManager::canCreateAccount(), ChangeTags::canCreateTag(), ChangeTags::canDeactivateTag(), ChangeTags::canDeleteTag(), User::canSendEmail(), ChangeTags::canUpdateTags(), UserOptions::CHANGER(), ApiQueryTestBase::check(), Title::checkActionPermissions(), ApiMain::checkAsserts(), ApiStashEdit::checkCache(), RevertAction::checkCanExecute(), WatchAction::checkCanExecute(), Action::checkCanExecute(), Title::checkCascadingSourcesRestrictions(), Autopromote::checkCondition(), Title::checkCSSandJSPermissions(), SpecialUnlockdb::checkExecutePermissions(), SpecialLockdb::checkExecutePermissions(), SpecialBlock::checkExecutePermissions(), SpecialChangeEmail::checkExecutePermissions(), SpecialBotPasswords::checkExecutePermissions(), SpecialPasswordReset::checkExecutePermissions(), FormSpecialPage::checkExecutePermissions(), ApiMain::checkExecutePermissions(), CompareParsers::checkOptions(), Title::checkPageRestrictions(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), Title::checkPermissionHooks(), MovePage::checkPermissions(), SpecialCreateAccount::checkPermissions(), MergeHistory::checkPermissions(), ApiUpload::checkPermissions(), UserPasswordPolicy::checkPolicies(), Title::checkQuickPermissions(), Title::checkReadPermissions(), Title::checkSpecialsAndNSPermissions(), ApiBase::checkTitleUserPermissions(), SpecialBlock::checkUnblockSelf(), EmailBlacklist::checkUser(), Title::checkUserBlock(), ApiBase::checkUserRightsAny(), ApiQueryWatchlistIntegrationTest::cleanTestUsersWatchlist(), SpecialEditWatchlist::cleanupWatchlist(), User::clearNotification(), WikiPage::commitRollback(), EmailNotification::compose(), Article::confirmDelete(), ConfirmEditHooks::confirmEditMerged(), ResourceLoaderUserTokensModule::contextUserTokens(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::continueSecondaryAuthentication(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::continueSecondaryAuthentication(), SpecialContributions::contributionsSub(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), WatchedItemStore::countUnreadNotifications(), WatchedItemStore::countWatchedItems(), ApiFeedWatchlist::createFeedItem(), User::createNew(), Installer::createSysop(), ChangeTags::createTagWithChecks(), Preferences::datetimePreferences(), WatchedItemStore::dbCond(), ChangeTags::deactivateTagWithChecks(), ApiDelete::delete(), Article::delete(), ApiDelete::deleteFile(), ChangeTags::deleteTagWithChecks(), SpecialUndelete::diffHeader(), SpecialRedirect::dispatchUser(), ApiTestCase::doApiRequest(), ApiTestCase::doApiRequestWithToken(), ApiQueryWatchlistIntegrationTest::doBotPageEdit(), WikiPage::doCreate(), FileDeleteForm::doDelete(), Article::doDelete(), WikiPage::doDeleteArticle(), Article::doDeleteArticleReal(), WikiPage::doDeleteArticleReal(), WikiPage::doEditContent(), Article::doEditContent(), Article::doEditUpdates(), WikiPage::doEditUpdates(), WikiEditorHooks::doEventLogging(), ApiQuery::doExport(), SpecialWatchlist::doHeader(), SpecialImport::doImport(), ApiQueryWatchlistIntegrationTest::doListWatchlistRequest(), SpamBlacklist::doLogging(), SpecialRecentChanges::doMainQuery(), SpecialWatchlist::doMainQuery(), RecentChange::doMarkPatrolled(), ApiQueryWatchlistIntegrationTest::doMinorPageEdit(), WikiPage::doModify(), ApiQueryWatchlistIntegrationTest::doPageEdit(), ApiQueryWatchlistIntegrationTest::doPatrolledPageEdit(), Article::doRollback(), WikiPage::doRollback(), UserrightsPage::doSaveUserGroups(), UploadFromChunks::doStashFile(), MovePageForm::doSubmit(), WatchAction::doUnwatch(), WikiPage::doUpdateRestrictions(), Article::doUpdateRestrictions(), WikiPage::doViewUpdates(), Article::doViewUpdates(), WatchAction::doWatch(), WatchAction::doWatchOrUnwatch(), EditPage::edit(), Preferences::editingPreferences(), UserrightsPage::editUserGroupsForm(), ApiBase::errorArrayToStatus(), ApiValidatePassword::execute(), SpecialNuke::execute(), SpecialRenameuser::execute(), ApiTag::execute(), ApiManageTags::execute(), SpecialListFiles::execute(), ApiClearHasMsg::execute(), ApiProtect::execute(), ApiUndelete::execute(), ApiMove::execute(), ApiImport::execute(), ApiRevisionDelete::execute(), ApiWatch::execute(), Undelete::execute(), ApiQueryMyStashedFiles::execute(), ApiUpload::execute(), ApiPatrol::execute(), ApiQueryTokens::execute(), SpecialContributions::execute(), ApiEditPage::execute(), ApiLogout::execute(), ApiOptions::execute(), ApiSetNotificationTimestamp::execute(), SpecialUnlinkAccounts::execute(), SpecialUserLogout::execute(), ApiUnblock::execute(), SpecialPreferences::execute(), FixUserRegistration::execute(), ApiPurge::execute(), ApiQueryDeletedrevs::execute(), DeleteDefaultMessages::execute(), InitEditCount::execute(), MakeTestEdits::execute(), MigrateUserGroup::execute(), ApiQueryFilearchive::execute(), ApiBlock::execute(), ApiDelete::execute(), ImportSiteScripts::execute(), DeletedContributionsPage::execute(), ApiRollback::execute(), ChangePassword::execute(), Protect::execute(), ResetUserEmail::execute(), ApiQueryLogEvents::execute(), WrapOldPasswords::execute(), ApiQueryImageInfo::execute(), InvalidateUserSesssions::execute(), SpecialWatchlist::execute(), ApiUserrights::execute(), RollbackEdits::execute(), ApiStashEdit::execute(), DeleteBatch::execute(), ApiSetPageLanguage::execute(), ImportTextFiles::execute(), ResetUserTokens::execute(), MoveBatch::execute(), CreateAndPromote::execute(), ApiLogin::execute(), SpecialEditTags::execute(), SpecialImport::execute(), MovePageForm::execute(), UserrightsPage::execute(), DeleteEqualMessages::execute(), ApiQueryUsers::execute(), SpecialRevisionDelete::execute(), ImportImages::execute(), PasswordReset::execute(), SpecialUndelete::execute(), SpecialUpload::execute(), QueryPage::execute(), SpecialPageExecutor::executeSpecialPage(), SpecialPageTestBase::executeSpecialPage(), ApiQueryWatchlist::extractOutputData(), ApiQueryInfo::extractPageInfo(), ApiQueryRevisionsBase::extractRevisionInfo(), ApiQueryLogEvents::extractRowInfo(), ApiQueryRecentChanges::extractRowInfo(), UserrightsPage::fetchUser(), LocalRepo::findFiles(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::finishAccountCreation(), ProtectLogFormatter::formatExpiry(), SpecialUndelete::formatFileRow(), LogFormatter::formatParameterValue(), LogFormatter::formatParameterValueForApi(), MIMEsearchPage::formatResult(), FileDuplicateSearchPage::formatResult(), DeletedContribsPager::formatRevisionRow(), SpecialMergeHistory::formatRevisionRow(), SpecialUndelete::formatRevisionRow(), SpecialProtectedtitles::formatRow(), NewFilesPager::formatRow(), ActiveUsersPager::formatRow(), UsersPager::formatRow(), ContribsPager::formatRow(), ParserFuzzTest::fuzzTest(), CoreParserFunctions::gender(), Preferences::generateSkinOptions(), SpecialLog::getActionButtons(), DeleteLogFormatter::getActionLinks(), RevDelArchivedFileItem::getApiData(), RevDelLogItem::getApiData(), RevDelRevisionItem::getApiData(), RevDelFileItem::getApiData(), CaptchaPreAuthenticationProvider::getAuthenticationRequests(), TitleBlacklistPreAuthenticationProvider::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationRequestsInternal(), CreditsAction::getAuthor(), Autopromote::getAutopromoteGroups(), Autopromote::getAutopromoteOnceGroups(), MediaWiki\Session\SessionBackendTest::getBackend(), User::getBlockedStatus(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::getBlockedUser(), ImageHistoryPseudoPager::getBody(), WatchedItemStore::getCacheKey(), EnhancedChangesListTest::getCategorizationChange(), ApiQueryUserInfo::getCentralUserInfo(), WikiPage::getComment(), Revision::getComment(), Article::getComment(), WikiPage::getContent(), Revision::getContent(), OldChangesListTest::getContext(), RCCacheEntryFactoryTest::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), WikiPage::getContributors(), WikiPage::getCreator(), Article::getCreator(), ApiQueryUserInfo::getCurrentUserInfo(), Skin::getDefaultModules(), SpecialRecentChanges::getDefaultOptions(), SpecialWatchlist::getDefaultOptions(), UserDupes::getDupes(), EnhancedChangesListTest::getEditChange(), OldChangesListTest::getEditChange(), User::getEffectiveGroups(), LogEventsList::getExcludeClause(), WatchedItemQueryService::getExtraDeletedPageLogEntryRelatedCond(), LogEventsList::getExtraInputs(), LoginSignupSpecialPage::getFakeTemplate(), SpecialUndelete::getFileLink(), RevertAction::getFormFields(), SpecialChangeEmail::getFormFields(), SpecialResetTokens::getFormFields(), SpecialBlock::getFormFields(), Preferences::getFormObject(), User::getGlobalBlock(), UsersPager::getGroupMemberships(), OutputPage::getHeadLinksArray(), MWTimestamp::getHumanTimestamp(), Language::getHumanTimestamp(), ImagePage::getImageLimitsFromOption(), ApiQueryImageInfo::getInfo(), User::getInstanceForUpdate(), OutputPage::getJSVars(), IRCColourfulRCFeedFormatter::getLine(), OldChangesListTest::getLogChange(), DifferenceEngine::getMarkPatrolledLinkInfo(), WatchedItemUnitTest::getMockUser(), OldChangesListTest::getNewBotEditChange(), User::getNewMessageLinks(), Skin::getNewtalks(), Title::getNotificationTimestamp(), WatchedItemStore::getNotificationTimestampsBatch(), Preferences::getOptionFromUser(), UploadForm::getOptionsSection(), EditPage::getOriginalContent(), SpecialUndelete::getPageLink(), ResourceLoaderUserStylesModule::getPages(), ResourceLoaderUserModule::getPages(), Article::getParserOutput(), SpecialEmailUser::getPermissionsError(), UserPasswordPolicy::getPoliciesForUser(), GadgetHooks::getPreferences(), Preferences::getPreferences(), NewPagesPager::getQueryInfo(), NewFilesPager::getQueryInfo(), DeletedContribsPager::getQueryInfo(), ContribsPager::getQueryInfo(), ApiQueryUserInfo::getRateLimits(), ManualLogEntry::getRecentChange(), MWTimestamp::getRelativeTimestamp(), Skin::getRelevantUser(), SpecialPageFactory::getRestrictedPages(), MWNamespace::getRestrictionLevels(), DummyLinker::getRevDeleteLink(), Linker::getRevDeleteLink(), DifferenceEngine::getRevisionHeader(), RollbackEdits::getRollbackTitles(), LogEventsList::getShowHideLinks(), HistoryPager::getStartBody(), ApiStashEdit::getStashKey(), DeletedContributionsPage::getSubTitle(), TestRecentChangesHelper::getTestContext(), ImageHistoryList::getThumbForLine(), ApiQueryTokens::getToken(), ApiTestCase::getTokenList(), ApiTokens::getTokenTypes(), WatchAction::getUnwatchToken(), FileRepo::getUploadStash(), ApiUserrights::getUrUser(), SpecialPageFactory::getUsablePages(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), WikiPage::getUser(), Revision::getUser(), Article::getUser(), LogEventsList::getUserInput(), MediaWiki\Auth\AuthManagerAuthPlugin::getUserInstance(), AuthPlugin::getUserInstance(), Title::getUserPermissionsErrors(), Title::getUserPermissionsErrorsInternal(), WatchedItemQueryService::getUserRelatedConds(), ApiQueryUsers::getUserrightsToken(), WikiPage::getUserText(), Revision::getUserText(), Article::getUserText(), ApiQueryInfo::getVisitingWatcherInfo(), ApiQueryInfo::getWatchedInfo(), WatchedItemStore::getWatchedItem(), WatchedItemQueryService::getWatchedItemsForUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsForUserQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryConds(), WatchedItemQueryService::getWatchedItemsWithRCInfoQueryFilterConds(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), ApiQueryInfo::getWatcherInfo(), WatchedItemQueryService::getWatchlistOwnerId(), ApiBase::getWatchlistUser(), WatchAction::getWatchToken(), UserrightsPage::groupCheckboxes(), DumpRenderer::handleRevision(), HistoryPager::historyLine(), ImageHistoryList::imageHistoryLine(), ParserOptions::initialiseFromUser(), ReassignEdits::initialiseUser(), MediaWiki\Auth\AuthManagerAuthPlugin::initUser(), SimpleCaptcha::injectEmailUser(), MediaWikiTestCase::insertPage(), Article::insertProtectNullRevision(), WikiPage::insertProtectNullRevision(), Language::internalUserTimeAndDate(), MediaWiki\Session\SessionManager::invalidateSessionsForUser(), UploadFromUrl::isAllowed(), PasswordReset::isAllowed(), SpecialUndelete::isAllowed(), Gadget::isAllowed(), LocalIdLookup::isAttached(), User::isEmailConfirmed(), Gadget::isEnabled(), User::isHidden(), User::isLocked(), Title::isNamespaceProtected(), ApiQueryGadgets::isNeeded(), ChangesList::isUnpatrolled(), ApiStashEdit::lastEditTime(), LogPager::limitPerformer(), LogPager::limitTitle(), LogPager::limitType(), CreditsAction::link(), SpecialSearch::load(), User::loadFromSession(), User::loadFromUserObject(), Preferences::loadPreferenceValues(), SpecialUndelete::loadRequest(), WatchedItemStore::loadWatchedItem(), CentralIdLookup::localUserFromCentralId(), TitleBlacklistHooks::logFilterHitUsername(), BotPassword::login(), MssqlInstaller::loginExists(), User::logout(), ChangeTags::logTagManagementAction(), LoginSignupSpecialPage::mainLoginForm(), TestRecentChangesHelper::makeCategorizationRecentChange(), TestRecentChangesHelper::makeDeletedEditRecentChange(), TestRecentChangesHelper::makeEditRecentChange(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::makeFailResponse(), ChangesListSpecialPage::makeLegend(), TestRecentChangesHelper::makeLogRecentChange(), TestRecentChangesHelper::makeNewBotEditRecentChange(), LogFormatter::makeUserLink(), MergeHistory::merge(), MovePage::move(), ApiMove::movePage(), MovePage::moveToInternal(), SpecialPageExecutor::newContext(), EnhancedChangesListTest::newEnhancedChangesList(), RecentChange::newForCategorization(), ChangesList::newFromContext(), RCCacheEntryFactory::newFromRecentChange(), User::newFromRow(), User::newFromSession(), MailAddress::newFromUser(), BotPassword::newFromUser(), ParserOptions::newFromUser(), ParserOptions::newFromUserAndLang(), RecentChange::newLogEntry(), Revision::newNullRevision(), MediaWiki\Session\Session\BotPasswordSessionProvider::newSessionForRequest(), User::newSystemUser(), CategoryMembershipChange::notifyCategorization(), RecentChange::notifyEdit(), RecentChange::notifyLog(), RecentChange::notifyNew(), MWTimestamp::offsetForUser(), WikiPage::onArticleDelete(), SpamBlacklistHooks::onArticleDeleteComplete(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onLocalUserCreated(), TitleBlacklistHooks::onMovePageCheckPermissions(), MarkpatrolledAction::onSubmit(), SpecialResetTokens::onSubmit(), SpecialChangeContentModel::onSubmit(), RevertAction::onSuccess(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::onUserSaveSettings(), RollbackAction::onView(), Wikimedia\Rdbms\DatabaseMssql::open(), Wikimedia\Rdbms\DatabasePostgres::open(), DatabaseOracle::open(), Wikimedia\Rdbms\DatabaseMysqlBase::open(), MssqlInstaller::openConnection(), PostgresInstaller::openConnectionToAnyDB(), PostgresInstaller::openConnectionWithParams(), ImagePage::openShowImage(), SpecialRecentChanges::optionsPanel(), SpecialWatchlist::outputChangesList(), SpecialWatchlist::outputFeedLinks(), InfoAction::pageInfo(), SpamBlacklistHooks::pageSaveContent(), ApiStashEdit::parseAndStash(), SimpleCaptcha::passCaptchaLimited(), SimpleCaptcha::passCaptchaLimitedFromRequest(), AjaxDispatcher::performAction(), MediaWiki::performAction(), MediaWiki::performRequest(), MediaWiki\Session\CookieSessionProvider::persistSession(), User::pingLimiter(), MediaWiki\Auth\UserDataAuthenticationRequest::populateUser(), CaptchaPreAuthenticationProvider::postAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::postAuthentication(), LoginSignupSpecialPage::postProcessFormDescriptor(), SpecialBlock::postText(), MediaWiki\Widget\Search\SearchFormWidget::powerSearchBox(), SpecialListFiles::prefixSearchSubpages(), SpecialUnblock::prefixSearchSubpages(), SpecialNuke::prefixSearchSubpages(), SpecialRenameuser::prefixSearchSubpages(), SpecialEmailUser::prefixSearchSubpages(), SpecialContributions::prefixSearchSubpages(), UserrightsPage::prefixSearchSubpages(), SpecialBlock::prefixSearchSubpages(), Skin::preloadExistence(), WikiPage::prepareContentForEdit(), Article::prepareContentForEdit(), ApiQueryContributions::prepareQuery(), ApiQueryBlocks::prepareUsername(), JavaScriptContent::preSaveTransform(), CssContent::preSaveTransform(), WikitextContent::preSaveTransform(), SpecialBlock::processForm(), Preferences::profilePreferences(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerRevokeAccessForUser(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), WatchedItemUnitTest::provideUserTitleTimestamp(), Title::quickUserCan(), Preferences::rcPreferences(), RebuildRecentchanges::rebuildRecentChangesTablePass4(), Autopromote::recCheckCondition(), PatrolLog::record(), SpecialRecentChanges::registerFilters(), SpecialWatchlist::registerFilters(), WatchedItemStore::removeWatch(), RenameuserSQL::rename(), WatchedItemStore::resetNotificationTimestamp(), AssembleUploadChunksJob::run(), PublishStashedFileJob::run(), ApiQueryDeletedRevisions::run(), ApiQueryAllDeletedRevisions::run(), ApiQueryWatchlistRaw::run(), ApiQueryWatchlist::run(), ApiQueryRevisions::run(), ApiQueryRecentChanges::run(), RefreshLinksJob::runForTitle(), EditPage::runPostMergeFilters(), ApiTokensTest::runTokenTest(), ProtectionForm::save(), SpecialSearch::saveNamespaces(), UserrightsPage::saveUserGroups(), UserNamePrefixSearch::search(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendNewAccountEmail(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::sendPasswordResetEmail(), MediaWiki\Session\CookieSessionProvider::sessionDataToExport(), Block::setBlocker(), MediaWiki\Auth\AuthManager::setDefaultUserOptions(), PreferencesForm::setModifiedUser(), WatchedItemStore::setNotificationTimestampsForUser(), Article::setOldSubtitle(), MediaWiki\Auth\AuthManagerAuthPlugin::setPassword(), MediaWiki\Session\TestBagOStuff::setSession(), MediaWiki\Session\TestBagOStuff::setSessionData(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), LoginSignupSpecialPage::setSessionUserForCurrentRequest(), SpecialWatchlist::setTopText(), TextContentTest::setUp(), CssContentTest::setUp(), ParserOptions::setupFakeRevision(), ApiQueryWatchlistIntegrationTest::setupPatrolledSpecificFixtures(), SkinTemplate::setupTemplateForOutput(), MediaWiki\Session\Session::setUser(), SimpleCaptcha::shouldCheck(), EditAction::show(), PurgeAction::show(), SpecialTags::showActivateDeactivateForm(), Article::showDeletedRevisionHeader(), SpecialTags::showDeleteTagForm(), RCCacheEntryFactory::showDiffLinks(), DifferenceEngine::showDiffPage(), Article::showDiffPage(), UserrightsPage::showEditUserGroupsForm(), SpecialUndelete::showFileConfirmationForm(), MovePageForm::showForm(), SpecialImport::showForm(), SpecialExpandTemplates::showHtmlPreview(), EditPage::showIntro(), LogEventsList::showLogExtract(), UserrightsPage::showLogFragment(), Article::showMissingArticle(), LogEventsList::showOptions(), Article::showPatrolFooter(), EmailConfirmation::showRequestForm(), SpecialUndelete::showRevision(), ChangeTags::showTagEditingUI(), SpecialTags::showTagList(), SpecialUpload::showViewDeletedLinks(), Preferences::skinPreferences(), UploadFromChunks::stashFile(), WebInstallerName::submit(), SpecialPreferences::submitReset(), MssqlInstaller::submitSettingsForm(), SpecialChangeCredentials::success(), SpecialCreateAccount::successfulAction(), SpecialUserLogin::successfulAction(), MediaWiki\Auth\AbstractPreAuthenticationProviderTest::testAbstractPreAuthenticationProvider(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testAbstractPrimaryAuthenticationProvider(), MediaWiki\Auth\AbstractSecondaryAuthenticationProviderTest::testAbstractSecondaryAuthenticationProvider(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAccountCreationEmail(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), UserGroupMembershipTest::testAddAndRemoveGroups(), WatchedItemUnitTest::testAddWatch(), WatchedItemStoreUnitTest::testAddWatchBatchReturnsTrue_whenGivenEmptyList(), ApiQueryWatchlistIntegrationTest::testAllRevParam(), ApiLoginTest::testApiLoginBadPass(), ApiLoginTest::testApiLoginGoodPass(), ApiLoginTest::testApiLoginGotCookie(), ApiMainTest::testAssert(), ApiMainTest::testAssertUser(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testBasics(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testBasics(), BotPasswordTest::testBasics(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginLinkAttempt(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testBeginSecondaryAuthentication(), ApiLoginTest::testBotPassword(), SpecialPreferencesTest::testBug41337(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), MediaWiki\Auth\AuthManagerTest::testCheckAccountCreatePermissions(), CentralIdLookupTest::testCheckAudience(), EditPageTest::testCheckDirectEditingDisallowed_forNonTextContent(), MediaWiki\Session\BotPasswordSessionProviderTest::testCheckSessionInfo(), UserPasswordPolicyTest::testCheckUserPassword(), MediaWiki\Session\SessionTest::testClear(), SpecialEditWatchlistTest::testClearPage_hasClearButtonForm(), ApiQueryWatchlistIntegrationTest::testCommentPropParameter(), WatchedItemUnitTest::testConstruction(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), ApiQueryWatchlistIntegrationTest::testContinueParam(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAccountCreation(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueSecondaryAuthentication(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), WatchedItemStoreUnitTest::testCountUnreadNotifications(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_overLimit(), WatchedItemStoreUnitTest::testCountUnreadNotifications_withUnreadLimit_underLimit(), WatchedItemStoreUnitTest::testCountWatchedItems(), BlockTest::testCrappyCrossWikiBlocks(), LinkRendererFactoryTest::testCreateForUser(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), EditPageTest::testCreatePage(), EditPageTest::testCreatePageTrx(), ApiQueryWatchlistIntegrationTest::testDirParams(), WatchedItemIntegrationTest::testDuplicateAllAssociatedEntries(), WatchedItemStoreIntegrationTest::testDuplicateAllAssociatedEntries(), SpecialEditWatchlistTest::testEditRawPage_hasTitlesBox(), ApiQueryWatchlistIntegrationTest::testEmptyPropParameter(), ApiBaseTest::testErrorArrayToStatus(), ApiQueryWatchlistIntegrationTest::testExcludeUserParam(), ApiQueryWatchlistIntegrationTest::testExternalTypeParameters(), SpecialWatchlistTest::testFetchOptionsFromRequest(), ApiQueryWatchlistIntegrationTest::testFlagsPropParameter(), SpamBlacklistPreAuthenticationProvider::testForAccountCreation(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAccountCreation(), CaptchaPreAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testForAuthentication(), WikiMapTest::testForeignUserLink(), WatchedItemUnitTest::testFromUserTitle(), ApiQueryWatchlistIntegrationTest::testGeneratorWatchlistPropInfo_returnsWatchedPages(), ApiQueryWatchlistIntegrationTest::testGeneratorWatchlistPropRevisions_returnsWatchedItemsRevisions(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProviderTest::testGetNewPasswordExpiry(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotAllowed(), WatchedItemIntegrationTest::testGetNotificationTimestamp_falseOnNotWatched(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_allItemsCached(), WatchedItemStoreUnitTest::testGetNotificationTimestampsBatch_cachedItem(), UserPasswordPolicyTest::testGetPoliciesForUser(), ApiTokensTest::testGettingToken(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_fromUntilStartFromOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemStoreUnitTest::testGetWatchedItemsForUser_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_allRevisionsOptionAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_extension(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_filterPatrolledAndUserWithNoPatrolRights(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_invalidOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_mysqlIndexOptimization(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_optionsAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_usedInGeneratorAllRevisionsOptions(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_usedInGeneratorOptionAndEmptyResult(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_userPermissionRelatedExtraChecks(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerAndInvalidToken(), WatchedItemQueryServiceUnitTest::testGetWatchedItemsWithRecentChangeInfo_watchlistOwnerOptionAndEmptyResult(), ApiRevisionDeleteTest::testHidingRevisions(), MWTimestampTest::testHumanTimestamp(), ApiQueryWatchlistIntegrationTest::testIdsPropParameter(), RequestContextTest::testImportScopedSession(), MediaWiki\Session\SessionManagerTest::testInvalidateSessionsForUser(), PasswordResetTest::testIsAllowed(), WatchedItemUnitTest::testIsWatched(), WatchedItemIntegrationTest::testIsWatched_falseOnNotAllowed(), ApiQueryWatchlistIntegrationTest::testLimitParam(), ApiQueryWatchlistIntegrationTest::testListWatchlist_returnsWatchedItemsWithRCInfo(), CentralIdLookupTest::testLocalUserFromCentralId(), ApiUploadTest::testLogin(), ApiQueryWatchlistIntegrationTest::testLogTypeParameters(), ApiBlockTest::testMakeNormalBlock(), ApiBlockTest::testMakeNormalBlockId(), ApiQueryWatchlistIntegrationTest::testNamespaceParam(), ApiQueryWatchlistIntegrationTest::testNewAndEditTypeParameters(), RCCacheEntryFactoryTest::testNewForDeleteChange(), RCCacheEntryFactoryTest::testNewForRevUserDeleteChange(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), RCCacheEntryFactoryTest::testNewFromRecentChange(), MailAddressTest::testNewFromUser(), MediaWiki\Session\UserInfoTest::testNewFromUser(), MediaWiki\Session\BotPasswordSessionProviderTest::testNewSessionInfoForRequest(), RCFeedIntegrationTest::testNotify(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnLocalUserCreated(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testOnUserSaveSettings(), ApiQueryWatchlistIntegrationTest::testParsedCommentPropParameter(), ApiQueryWatchlistIntegrationTest::testPatrolPropParameter(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSession(), MediaWiki\Session\CookieSessionProviderTest::testPersistSessionWithHook(), CaptchaPreAuthenticationProviderTest::testPingLimiter(), MediaWiki\Auth\UserDataAuthenticationRequestTest::testPopulateUser(), CaptchaPreAuthenticationProviderTest::testPostAuthentication(), CaptchaPreAuthenticationProviderTest::testPostAuthentication_disabled(), ParserMethodsTest::testPreSaveTransform(), MediaWiki\Auth\AbstractPrimaryAuthenticationProviderTest::testPrimaryAccountLink(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testProviderChangeAuthenticationDataEmail(), MediaWiki\Session\CookieSessionProviderTest::testProvideSessionInfo(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testRangeBlock(), ChangesListSpecialPageTest::testRcHidebyothersFilter(), ChangesListSpecialPageTest::testRcHidemyselfFilter(), ChangesListSpecialPageTest::testRcHidemyselfHidebyothersFilter(), ChangesListSpecialPageTest::testRcHidepatrolledDisabledFilter(), ChangesListSpecialPageTest::testRcHidepatrolledFilter(), ChangesListSpecialPageTest::testRcHidepatrolledHideunpatrolledFilter(), ChangesListSpecialPageTest::testRcHideunpatrolledDisabledFilter(), ChangesListSpecialPageTest::testRcHideunpatrolledFilter(), MWTimestampTest::testRelativeTimestamp(), WatchedItemUnitTest::testRemoveWatch(), WatchedItemIntegrationTest::testRemoveWatch_falseOnNotAllowed(), MediaWiki\Session\SessionBackendTest::testRenew(), SpecialPageTest::testRequireLoginAnon(), SpecialPageTest::testRequireLoginNotAnon(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_futureNotificationTimestampNotForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_item(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_noItemForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_notWatchedPageForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedLatestRevisionForced(), WatchedItemStoreUnitTest::testResetNotificationTimestamp_oldidSpecifiedNotLatestRevisionForced(), SpecialEditWatchlistTest::testRootPage_displaysExplanationMessage(), ApiLoginTest::testRunLogin(), MediaWiki\Session\SessionBackendTest::testSave(), MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus(), MediaWiki\Auth\AuthManagerTest::testSetDefaultUserOptions(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_allRows(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_nullTimestamp(), WatchedItemStoreUnitTest::testSetNotificationTimestampsForUser_specificTargets(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testSetPasswordResetFlag(), MediaWiki\Session\SessionBackendTest::testSetUser(), ApiQueryWatchlistIntegrationTest::testShowAnonParams(), ApiQueryWatchlistIntegrationTest::testShowBotParams(), ApiQueryWatchlistIntegrationTest::testShowMinorParams(), ApiQueryWatchlistIntegrationTest::testShowPatrolledParams(), ApiQueryWatchlistIntegrationTest::testShowUnreadParams(), ApiQueryWatchlistIntegrationTest::testSizesPropParameter(), ApiPageSetTest::testSpecialRedirects(), ApiQueryWatchlistIntegrationTest::testStartEndParams(), ApiSetNotificationTimestampIntegrationTest::testStuff(), TemplateCategoriesTest::testTemplateCategories(), ArticleTablesTest::testTemplatelinksUsesContentLanguage(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::testTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testTestForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), CaptchaPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::testTestUserCanAuthenticate(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProviderTest::testTestUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), ApiQueryWatchlistIntegrationTest::testTimestampPropParameter(), ApiQueryWatchlistIntegrationTest::testTitlePropParameter(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProviderTest::testTryReset(), ApiRevisionDeleteTest::testUnhidingOutput(), BotPasswordTest::testUnsaved(), WatchedItemIntegrationTest::testUpdateAndResetNotificationTimestamp(), WatchedItemStoreUnitTest::testUpdateNotificationTimestamp_clearsCachedItems(), EditPageTest::testUpdatePage(), EditPageTest::testUpdatePageTrx(), WatchedItemStoreIntegrationTest::testUpdateResetAndSetNotificationTimestamp(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserCanAuthenticateInternal(), TitleBlacklistPreAuthenticationProvider::testUserForCreation(), MediaWiki\Auth\CheckBlocksSecondaryAuthenticationProvider::testUserForCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider::testUserForCreation(), ApiQueryWatchlistIntegrationTest::testUserIdPropParameter(), ApiQueryWatchlistIntegrationTest::testUserParam(), ApiQueryWatchlistIntegrationTest::testUserPropParameter(), SpecialWatchlistTest::testUserWithNoWatchedItems_displaysNoWatchlistMessage(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), WatchedItemIntegrationTest::testWatchAndUnWatchItem(), TitleTest::testWgWhitelistReadRegexp(), Language::translateBlockExpiry(), Preferences::tryFormSubmit(), MediaWiki\Auth\ResetPasswordSecondaryAuthenticationProvider::tryReset(), SpecialRevisionDelete::tryShowFile(), UploadFromChunks::tryStashFile(), WatchedItemStore::uncache(), WatchedItemStore::uncacheUser(), PageArchive::undelete(), PageArchive::undeleteRevisions(), ChangeTagsLogList::updateChangeTagsOnAll(), ChangeTagsRevisionList::updateChangeTagsOnAll(), MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDB(), MediaWiki\Auth\AuthManagerAuthPlugin::updateExternalDBGroups(), ChangeTags::updateTags(), ChangeTags::updateTagsWithChecks(), MediaWiki\Auth\AuthManagerAuthPlugin::updateUser(), ResetUserTokens::updateUser(), EditPage::updateWatchlist(), UserOptions::USAGER(), HTMLFileCache::useFileCache(), TitleBlacklistHooks::userCan(), LogEventsList::userCan(), ChangesList::userCan(), Revision::userCan(), Title::userCan(), LogEventsList::userCanBitfield(), Revision::userCanBitfield(), SpecialCreateAccount::userCanExecute(), SpecialUndelete::userCanExecute(), SpecialUpload::userCanExecute(), SpecialPage::userCanExecute(), TitleBlacklist::userCannot(), TitleBlacklist::userCanOverride(), OutputPage::userCanPreview(), SpamBlacklistHooks::userCanSendEmail(), ReassignEdits::userConditions(), Language::userDate(), MysqlInstaller::userDefinitelyExists(), MssqlInstaller::userExists(), CreditsAction::userLink(), SearchEngineConfig::userNamespaces(), SearchEngine::userNamespaces(), ReassignEdits::userSpecification(), Language::userTime(), Language::userTimeAndDate(), Linker::userToolLinks(), HTMLUserTextField::validate(), SpecialBlock::validateTarget(), CaptchaPreAuthenticationProvider::verifyCaptcha(), Article::view(), Preferences::watchlistPreferences(), ApiQueryWatchlistIntegrationTest::watchPages(), ApiWatch::watchTitle(), wfStreamThumb(), and UserRightsProxy::whoIs().

◆ $username

this hook is for auditing only or null if authentication failed before getting that far $username

Definition at line 783 of file hooks.txt.

Referenced by UsersPager::__construct(), ActiveUsersPager::__construct(), MediaWiki\Auth\AuthManagerAuthPlugin::authenticate(), MediaWiki\Auth\AuthManager::autoCreateUser(), SimpleCaptcha::badLoginPerUserKey(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAccountCreation(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::beginPrimaryAuthentication(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::beginPrimaryAuthentication(), CaptchaPreAuthenticationProviderTest::blockLogin(), UsersPager::buildGroupLink(), MediaWiki\Auth\AuthManager::canCreateAccount(), BotPassword::canonicalizeLoginData(), UserOptions::CHANGER(), PasswordPolicyChecks::checkPasswordCannotMatchBlacklist(), PasswordPolicyChecks::checkPasswordCannotMatchUsername(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::checkPasswordValidity(), MediaWiki\Auth\Throttler::clear(), LoginForm::clearLoginThrottle(), SpecialRedirect::dispatchUser(), GenderCache::doLinkBatch(), UserrightsPage::editUserGroupsForm(), ApiUnblock::execute(), ImportSiteScripts::execute(), ApiBlock::execute(), CleanupSpam::execute(), InvalidateUserSesssions::execute(), RollbackEdits::execute(), DeleteBatch::execute(), CreateAndPromote::execute(), PasswordReset::execute(), UserrightsPage::fetchUser(), MediaWiki\Auth\AuthManager::fillRequests(), SpecialNewpages::form(), ProtectedPagesPager::formatValue(), CoreParserFunctions::gender(), MediaWiki\Auth\AuthManagerAuthPlugin::getCanonicalName(), AuthPlugin::getCanonicalName(), CaptchaPreAuthenticationProviderTest::getCaptchaRequest(), SwiftFileBackend::getCredsCacheKey(), GenderCache::getGenderOf(), User::getGroupMember(), UserGroupMembership::getGroupMemberName(), TestUserRegistry::getImmutableTestUser(), BlockLogFormatter::getMessageParameters(), SpecialNuke::getNewPages(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::getNewPasswordExpiry(), NewPagesPager::getQueryInfo(), UserArrayFromResultTest::getRowWithUsername(), CategoryMembershipChange::getUser(), DoubleRedirectJob::getUser(), ResourceLoaderContext::getUserObj(), LoginForm::incLoginThrottle(), MediaWiki\Auth\Throttler::increase(), SimpleCaptcha::increaseBadLoginCounter(), LoginForm::incrementLoginThrottle(), ReassignEdits::initialiseUser(), BotPassword::invalidateAllPasswordsForUser(), MediaWiki\Session\SessionManager::isUserSessionPrevented(), SpecialNuke::listForm(), HTMLUsersMultiselectField::loadDataFromRequest(), BotPassword::login(), GenderCache::normalizeUsername(), MediaWiki\Auth\AuthManager::normalizeUsername(), SpecialPasswordReset::onSubmit(), SpecialBotPasswords::onSuccess(), MediaWiki\Session\Session\BotPasswordSessionProvider::preventSessionsForUser(), MediaWiki\Session\SessionManager::preventSessionsForUser(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerAllowsAuthenticationDataChange(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerChangeAuthenticationData(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerNormalizeUsername(), MediaWiki\Auth\AbstractSecondaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::providerRevokeAccessForUser(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::providerRevokeAccessForUser(), BotPassword::removeAllPasswordsForUser(), SimpleCaptcha::resetBadLoginCounter(), MediaWiki\Auth\AuthManager::revokeAccessForUser(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider::setPasswordResetFlag(), EditPage::showEditForm(), EditPage::showIntro(), SpecialRenameuser::showLogExtract(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountCreationLogging(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), BlockTest::testBlockedUserCanNotCreateAccount(), MediaWiki\Auth\AuthManagerTest::testCanCreateAccount(), BotPasswordTest::testCanonicalizeLoginData(), UserPasswordPolicyTest::testCheckUserPassword(), UserArrayFromResultTest::testConstructionWithRow(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), UserArrayFromResultTest::testCurrentAfterConstruction(), BlockTest::testDeprecatedConstructor(), CaptchaPreAuthenticationProvider::testForAccountCreation(), CaptchaPreAuthenticationProvider::testForAuthentication(), MediaWiki\Auth\ThrottlePreAuthenticationProvider::testForAuthentication(), TitleBlacklistPreAuthenticationProviderTest::testGetAuthenticationRequests(), CaptchaPreAuthenticationProviderTest::testGetAuthenticationRequests(), UserTest::testIsValidUserName(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::testState(), GenderCacheTest::testStripSubpages(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestForAuthentication(), MediaWiki\Auth\AbstractPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserCanAuthenticate(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider::testUserExists(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProvider::testUserExists(), GenderCacheTest::testUserName(), GenderCacheTest::testUserObjects(), ResetUserTokens::updateUser(), MediaWiki\Auth\AuthManager::userCanAuthenticate(), MediaWiki\Auth\AuthManager::userExists(), MediaWiki\Auth\AuthManagerTest::usernameForCreation(), and HTMLUsersMultiselectField::validate().

◆ $vars

configuration should be added through ResourceLoaderGetConfigVars instead& $vars
static

Definition at line 2179 of file hooks.txt.

Referenced by MemcachedClient::_load_items(), ApiResult::addMetadataToResultVars(), IEUrlExtension::areServerVarsBad(), ResourceLoaderFileModule::compileLessFile(), Wikimedia\Rdbms\DatabasePostgres::estimateRowCount(), Wikimedia\Rdbms\DatabaseMssql::estimateRowCount(), Wikimedia\Rdbms\DatabaseMysqlBase::estimateRowCount(), WebInstallerExistingWiki::execute(), ConvertExtensionToRegistration::execute(), ResourceLoaderStartUpModule::getConfigSettings(), OutputPage::getJSVars(), ResourceLoaderEditToolbarModule::getLessVars(), WikiEditorHooks::getMagicWords(), OracleInstaller::getSchemaVars(), MysqlUpdater::getSchemaVars(), Wikimedia\Rdbms\DatabaseMysqlBase::getServerUptime(), MWExceptionRenderer::getShowBacktraceError(), WebInstallerExistingWiki::handleExistingUpgrade(), ConvertExtensionToRegistration::handleExtensionMessagesFiles(), WebInstallerExistingWiki::importVariables(), Wikimedia\Rdbms\DatabasePostgres::listTables(), Wikimedia\Rdbms\DatabaseSqlite::listTables(), Wikimedia\Rdbms\DatabaseMysqlBase::listTables(), DatabaseUpdater::loadExtensions(), Wikimedia\Rdbms\DatabasePostgres::makeConnectionString(), WikiEditorHooks::makeGlobalVariablesScript(), CiteHooks::onResourceLoaderGetConfigVars(), Wikimedia\Rdbms\Database::replaceVars(), WikiEditorHooks::resourceLoaderGetConfigVars(), Wikimedia\Rdbms\DatabaseMssql::select(), Wikimedia\Rdbms\Database::select(), DatabaseOracle::selectRow(), Wikimedia\Rdbms\Database::selectRow(), Wikimedia\Rdbms\DatabaseMssql::selectSQLText(), Wikimedia\Rdbms\DatabasePostgres::selectSQLText(), Wikimedia\Rdbms\Database::selectSQLText(), ResourceLoaderClientHtml::setConfig(), Wikimedia\Rdbms\Database::setSchemaVars(), and WatchedItemStoreUnitTest::verifyCallbackJob().

◆ $wgCapitalizeTitle

An extension or a will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgCapitalizeTitle

Definition at line 51 of file hooks.txt.

Referenced by follows().

◆ $wgHooks

◆ $wgNotifyArticle

An extension or a will often add custom code to the function with or without a global variable For someone wanting email notification when an article is shown may $wgNotifyArticle

Definition at line 51 of file hooks.txt.

◆ __pad0__

error __pad0__

Definition at line 2612 of file hooks.txt.

◆ AbortAutoAccount

please add to it if you re going to add events to the MediaWiki code AbortAutoAccount

Definition at line 246 of file hooks.txt.

◆ add

you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough it can even be excluded when not used making for some slight savings in memory and load up performance at runtime Admins who want to have all the reversed titles can add

◆ addition

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In addition

Definition at line 86 of file hooks.txt.

Referenced by RedisLockManager::getLocksOnServer().

◆ admin

An extension or a admin

Definition at line 51 of file hooks.txt.

◆ Alternatively

passed in as a query string parameter to the various URLs constructed here (i.e. $prevlink) $ldel you ll need to handle error etc yourself Alternatively

Definition at line 1252 of file hooks.txt.

◆ article

and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to patches for two options in MediaWiki One reverses the order of a title before displaying the article

Definition at line 23 of file hooks.txt.

◆ ascending

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for ascending

Definition at line 1049 of file hooks.txt.

◆ ATTENTION

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 ATTENTION
inline

Definition at line 783 of file hooks.txt.

◆ AuthPluginAutoCreate

this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that AuthPluginAutoCreate

Definition at line 783 of file hooks.txt.

◆ AutopromoteCondition

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 AutopromoteCondition

Definition at line 783 of file hooks.txt.

◆ based

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 based

Definition at line 2536 of file hooks.txt.

Referenced by wfStreamThumb().

◆ becomes

Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function becomes

Definition at line 73 of file hooks.txt.

◆ BeforeDisplayNoArticleText

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 BeforeDisplayNoArticleText
inline

Definition at line 783 of file hooks.txt.

◆ BeforeInitialize

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 BeforeInitialize
inline

Definition at line 783 of file hooks.txt.

◆ BeforeParserFetchFileAndTitle

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 modifiable modifiable BeforeParserFetchFileAndTitle
inline

Definition at line 783 of file hooks.txt.

◆ BitmapHandlerTransform

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result BitmapHandlerTransform
inline

Definition at line 783 of file hooks.txt.

◆ block

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters block

◆ BlockIp

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput BlockIp
inline

Definition at line 783 of file hooks.txt.

◆ BlockIpComplete

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array BlockIpComplete
inline

Definition at line 783 of file hooks.txt.

◆ bolding

presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do and populate $result with the reason in the form of error messages should be plain text with no special bolding

Definition at line 1721 of file hooks.txt.

◆ broken

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 broken

Definition at line 1956 of file hooks.txt.

Referenced by CleanupInvalidDbKeys::__construct(), and CheckLanguageCLI::help().

◆ case

it s the revision text itself In either case

Definition at line 2749 of file hooks.txt.

◆ ChangeTagCanCreate

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 ChangeTagCanCreate

Definition at line 1028 of file hooks.txt.

◆ ChangeTagCanDelete

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 ChangeTagCanDelete

Definition at line 1028 of file hooks.txt.

◆ check

</code > has no name attribute</span ></p > ! end ! article vol XXI</ref >< references group="klingon"/> ! html< p > Wikipedia rocks< sup id="cite_ref-1" class="reference">< a href="#cite_note-1"> &</p >< div class="mw-references-wrap">< ol class="references">< li id="cite_note-1">< span class="mw-cite-backlink">< a href="#cite_ref-1"> ↑</a ></span >< span class="reference-text"> Proceeds of vol XXI</span ></li ></ol ></div > ! end ! test Bug regression check

◆ classes

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 classes

Definition at line 990 of file hooks.txt.

◆ code

◆ coloring

presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do and populate $result with the reason in the form of error messages should be plain text with no special coloring

Definition at line 1721 of file hooks.txt.

◆ complete

Returning false makes less sense for events where the action is complete

Definition at line 199 of file hooks.txt.

Referenced by XhprofData::getCompleteMetrics(), and CheckLanguageCLI::help().

◆ conditional

namespace addition is conditional
inline

Definition at line 932 of file hooks.txt.

◆ Consider

and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code and make it easier to write extensions Hooks are a principled alternative to patches Consider

Definition at line 23 of file hooks.txt.

◆ ContentHandlerDefaultModelFor

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace ContentHandlerDefaultModelFor

Definition at line 1049 of file hooks.txt.

◆ ContentModelCanBeUsedOn

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core if desired ContentModelCanBeUsedOn

Definition at line 1049 of file hooks.txt.

◆ ContributionsLineEnding

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers please use GetContentModels hook to make them known to core 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 inclusive false for true for descending ContributionsLineEnding

Definition at line 1049 of file hooks.txt.

◆ core

error also a ContextSource you ll probably need to make sure the header is varied on and they can depend only on the ResourceLoaderContext such as when responding to a resource loader request or generating HTML output included in core

Definition at line 2612 of file hooks.txt.

Referenced by LocalisationUpdate\Finder::__construct().

◆ Currently

the other converts the title to all uppercase letters Currently

Definition at line 34 of file hooks.txt.

◆ data

and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data

Definition at line 6 of file hooks.txt.

Referenced by DummyContentForTesting::__construct(), DummyNonTextContent::__construct(), ReplacementArray::__construct(), QuickTemplate::__construct(), PopulateInterwiki::__construct(), BackupReader::__construct(), StripState::__construct(), FauxRequest::__construct(), CleanupInvalidDbKeys::__construct(), WebRequest::__construct(), MediaWiki\Session\SessionBackend::__construct(), Exif::__construct(), LinkBatch::add(), FakeAuthTemplate::addInputItem(), StripState::addItem(), MonoBookTemplate::cactions(), CaptchaHashStore::clear(), CaptchaHashStore::clearAll(), LinkBatch::constructSet(), JobQueueRedis::doAck(), LinkBatch::doGenderQuery(), VectorTemplate::execute(), MonoBookTemplate::execute(), ModernTemplate::execute(), ZipDirectoryReader::execute(), QuickTemplate::extend(), ExternalStoreFOO::fetchFromURL(), LCStoreStaticArray::finishWrite(), QuickTemplate::get(), LCStoreStaticArray::get(), WebRequest::getArray(), ResourceLoaderClientHtml::getData(), BaseTemplate::getFooterLinks(), BaseTemplate::getIndicators(), LocalisationCache::getItem(), WebRequest::getRawVal(), ApiResult::getResultData(), BaseTemplate::getSidebar(), DummyContentForTesting::getSize(), DummyNonTextContent::getSize(), LinkBatch::getSize(), QuickTemplate::getSkin(), LocalisationCache::getSubitem(), StripState::getSubState(), BaseTemplate::getToolbox(), WebRequest::getVal(), WebRequest::getValues(), QuickTemplate::haveData(), QuickTemplate::html(), LocalisationCache::initLanguage(), LocalisationCache::initShallowFallback(), WebRequest::interpolateTitle(), MonoBookTemplate::languageBox(), MessageCache::load(), LocalisationCache::loadItem(), LocalisationCache::loadSubitem(), ReplacementArray::merge(), StripState::merge(), ReplacementArray::mergeArray(), ResourceLoaderImageModuleTest::providerGetStyleDeclarations(), LocalisationCache::recache(), ReplacementArray::removePair(), VectorTemplate::renderNavigation(), VectorTemplate::renderPortals(), ReplacementArray::replace(), ApiResult::reset(), CaptchaHashStore::retrieve(), MediaWiki\Session\SessionBackend::save(), DummyContentForTesting::serialize(), DummyNonTextContent::serialize(), QuickTemplate::set(), LCStoreStaticArray::set(), ReplacementArray::setArray(), LinkBatch::setArray(), ReplacementArray::setPair(), QuickTemplate::setRef(), WebRequest::setVal(), LCStoreStaticArray::startWrite(), CaptchaHashStore::store(), QuickTemplate::text(), LocalisationCacheBulkLoad::trimCache(), LocalisationCache::unload(), WebRequest::unsetVal(), StripState::unstripCallback(), and StripState::unstripType().

◆ deleteAnArticle

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing deleteAnArticle

Definition at line 93 of file hooks.txt.

◆ diff

passed in as a query string parameter to the various URLs constructed here (i.e. $nextlink) $rdel also included in $oldHeader indicating whether we should show just the diff

◆ do

processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom you could do

Definition at line 192 of file hooks.txt.

◆ e

◆ EditPageGetCheckboxesDefinition

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 EditPageGetCheckboxesDefinition

Definition at line 1398 of file hooks.txt.

◆ EmailConfirmed

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections and Diff or overridable Default is either copyrightwarning or copyrightwarning2 overridable Default is editpage tos summary EmailConfirmed

Definition at line 1398 of file hooks.txt.

◆ errors

◆ etc

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing etc

Definition at line 93 of file hooks.txt.

◆ event

and how to run hooks for an event
Initial value:
==Glossary==
event
Something that happens with the wiki. For example: a user logs in. A wiki
page is saved. A wiki page is deleted. Often there are two events
associated with a single action: one before the code is run to make the
event happen

Definition at line 4 of file hooks.txt.

◆ example

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For example

Definition at line 6 of file hooks.txt.

◆ exportArticle

We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing exportArticle

Definition at line 93 of file hooks.txt.

◆ false

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 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 false
inline
Examples
/src/tests/phpunit/MediaWikiTestCase.php.

Definition at line 189 of file hooks.txt.

Referenced by MemcachedPeclBagOStuff::__construct(), ReplicatedBagOStuff::__construct(), ContribsPager::__construct(), ThumbnailImage::__construct(), PPFrame_Hash::__construct(), PPFrame_DOM::__construct(), MemcachedBagOStuff::applyDefaultParams(), IPTest::assertFalseCIDR(), SkinTemplate::buildContentNavigationUrls(), ProtectionForm::buildForm(), SkinTemplate::buildPersonalUrls(), SpecialEditWatchlist::buildTools(), BagOStuff::changeTTL(), DumpTestCase::checkHasGzip(), Title::checkUserBlock(), Block::chooseBlock(), Wikimedia\Rdbms\LoadBalancer::commitAll(), Wikimedia\Rdbms\LoadBalancer::commitMasterChanges(), CopyFileBackend::copyFileBatch(), NaiveForeignTitleFactory::createForeignTitle(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), LocalFile::delete(), SiteStatsInit::doAllAndCommit(), CategoryViewer::doCategoryQuery(), JobQueueRedis::doDelete(), WANObjectCache::doGetWithSetCallback(), MockOggHandler::doTransform(), SpecialRenameuser::execute(), WebInstallerInstall::execute(), CompareParserCache::execute(), FindMissingFiles::execute(), SpecialContributions::execute(), SpecialLog::execute(), ApiEditPage::execute(), SpecialListGroupRights::execute(), SpecialTags::execute(), RefreshLinks::execute(), PasswordReset::execute(), LogFormatter::extractParameters(), EtcdConfig::fetchAllFromEtcdServer(), ExternalStoreDB::fetchBlob(), WikitextContent::fillParserOutput(), RefreshLinks::fixLinksFromArticle(), Linker::formatLinksInComment(), ApiCSPReport::getAllowedParams(), ApiQueryAllDeletedRevisions::getAllowedParams(), CreditsAction::getAuthor(), User::getBlockId(), Wikimedia\Rdbms\Database::getCacheSetOptions(), User::getCanonicalName(), RedisConnectionPool::getConnection(), RedisBagOStuff::getConnection(), Wikimedia\Rdbms\LoadBalancer::getConnection(), Wikimedia\Rdbms\LoadBalancer::getConnectionRef(), FileBackendStore::getContainerHashLevels(), JobQueueDB::getDB(), Wikimedia\Rdbms\LBFactoryMulti::getDBNameAndPrefix(), ChangesListBooleanFilter::getDefault(), SwiftFileBackend::getDirListPageInternal(), WANCacheReapUpdate::getEventAffectedKeys(), OutputPage::getHeadLinksArray(), Block::getIdFromCookieValue(), WebInstaller::getInfoBox(), Wikimedia\Rdbms\LoadBalancer::getLazyConnectionRef(), MachineReadableRCFeedFormatter::getLine(), Wikimedia\Rdbms\LoadBalancer::getMaintenanceConnectionRef(), SearchIndexFieldTest::getMergeCases(), NewUsersLogFormatter::getMessageParameters(), WANObjectCache::getMulti(), WANObjectCacheTest::getMultiWithSetCallback_provider(), SpecialNuke::getNewPages(), BackupReader::getNsIndex(), FSFile::getProps(), WikitextContent::getRedirectTargetAndText(), MediaHandler::getThumbType(), CategoryMembershipChange::getUser(), WatchedItemStore::getWatchedItemsForUser(), WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo(), WANObjectCacheTest::getWithSetCallback_provider(), WANObjectCacheTest::getWithSetCallback_versions_provider(), TitleValueTest::goodConstructorProvider(), FileBackendGroup::guessMimeInternal(), ApiMain::handleApiBeforeMainException(), MediaWiki\Session\SessionProvider::hashToSessionId(), HistoryPager::historyLine(), FileCacheBase::incrMissesRecent(), Wikimedia\Rdbms\DatabaseMssql::indexInfo(), Wikimedia\Rdbms\DatabaseMysqlBase::indexInfo(), EditPage::internalAttemptSave(), CoreParserFunctions::intFunction(), User::isBlockedFrom(), Title::isSubpage(), ApiMain::lacksSameOriginSecurity(), MediaWiki\Session\SessionManager::loadSessionInfoFromStore(), Linker::makeBrokenImageLinkObj(), MediaWikiTestCase::makeTestConfig(), MagicWordArray::matchVariableStartToEnd(), Wikimedia\Rdbms\ChronologyProtector::mergePositions(), moveToExternal(), RefreshLinks::namespaceCond(), RCCacheEntryFactory::newFromRecentChange(), XmlTypeCheck::newFromString(), UnregisteredLocalFile::newFromTitle(), MediaWikiPageNameNormalizerTest::normalizePageTitleProvider(), CoreParserFunctions::ns(), WikiPage::onArticleDelete(), SpecialUploadStash::outputLocallyScaledThumb(), Wikimedia\Rdbms\LoadBalancer::pickReaderIndex(), Wikimedia\Rdbms\Database::ping(), SpecialBlock::postText(), Preprocessor_Hash::preprocessToObj(), LogFormatterTest::provideApiParamFormatting(), GlobalTest::provideArrayToCGI(), ApiMainTest::provideAssert(), WatchedItemUnitTest::provideBooleans(), BlockTest::provideBug29116Data(), BotPasswordTest::provideCanonicalizeLoginData(), JavaScriptMinifierTest::provideCases(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), DatabaseMysqlBaseTest::provideChannelPositions(), VersionCheckerTest::provideCheck(), MWRestrictionsTest::provideCheckIP(), DatabaseMysqlBaseTest::provideComparePositions(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), DatabaseMysqlBaseTest::provideDiapers(), TitleMethodsTest::provideEquals(), ExtensionRegistryTest::provideExportExtractedDataGlobals(), EditPageTest::provideExtractSectionTitle(), WebRequestTest::provideFuzzyBool(), ApiFormatNoneTest::provideGeneralEncoding(), GlobalVarConfigTest::provideGet(), CaptchaPreAuthenticationProviderTest::provideGetAuthenticationRequests(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::provideGetAuthenticationRequests(), UserTest::provideGetCanonicalName(), TitleTest::provideGetPageViewLanguage(), WikiMapTest::provideGetWiki(), MWGrantsTest::provideGrantsAreValid(), TitleMethodsTest::provideHasSubjectNamespace(), WikiPageTest::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), SpecialBooksourcesTest::provideISBNs(), WikiPageTest::provideIsCountable(), TitleMethodsTest::provideIsCssJsSubpage(), TitleMethodsTest::provideIsCssOrJsPage(), TitleMethodsTest::provideIsCssSubpage(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), TitleMethodsTest::provideIsJsSubpage(), StatusTest::provideIsOk(), TitleMethodsTest::provideIsWikitextPage(), ReCaptchaAuthenticationRequestTest::provideLoadFromSubmission(), ReCaptchaNoCaptchaAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\CreationReasonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UsernameAuthenticationRequestTest::provideLoadFromSubmission(), TitleBlacklistAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\CreatedAccountAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), MessageCacheTest::provideMessagesForFallback(), MessageCacheTest::provideMessagesForFullKeys(), MediaWiki\Session\SessionTest::provideMethods(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), FormatJsonTest::provideParse(), ChangesListSpecialPageTest::provideParseParameters(), FormatJsonTest::provideParseTryFixing(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), CaptchaPreAuthenticationProviderTest::providePingLimiter(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), ReadOnlyModeTest::provider(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileTest::providerCanAnimate(), MWExceptionTest::provideRunHooks(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), StatusTest::provideSetResult(), IPTest::provideSplitHostAndPort(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), WebPHandlerTest::provideTestExtractMetaData(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAuthentication(), WebPHandlerTest::provideTestGetImageSize(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), WfParseUrlTest::provideURLs(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), HTMLRestrictionsFieldTest::provideValidate(), LinkFilterTest::provideValidPatterns(), LocalFile::publishTo(), Wikimedia\Rdbms\SavepointPostgres::query(), LocalisationCache::recache(), MediaWiki\Session\PHPSessionHandler::returnFailure(), Wikimedia\Rdbms\LoadBalancer::rollbackMasterChanges(), JobRunner::run(), RefreshLinksJob::runForTitle(), SamplingStatsdClientTest::samplingDataProvider(), MultiWriteBagOStuff::set(), Block::setCookie(), EditPage::setHeaders(), SpecialLog::show(), LockManagerGroup::singleton(), JobQueueGroup::singleton(), SpecialPageFactoryTest::specialPageProvider(), HTTPFileStreamer::stream(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), ApiQueryWatchlistIntegrationTest::testCategorizeTypeParameter(), MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProviderTest::testContinueLinkAttempt(), ReplicatedBagOStuffTest::testGetAbsent(), DerivativeResourceLoaderContextTest::testGetInherited(), FauxRequestTest::testGetSetHeader(), RecentChangeTest::testHiddenCategoryChange(), RevisionStorageTest::testNewNullRevision(), ParserOutputTest::testProperties(), TitlePermissionTest::testQuickPermissions(), ReplicatedBagOStuffTest::testSet(), WatchedItemStoreIntegrationTest::testWatchAndUnWatchItem(), GlobalTest::testWfPercentTest(), File::transform(), PageArchive::undeleteRevisions(), CoreParserFunctions::urlFunction(), Preferences::validateSignature(), Wikimedia\Rdbms\DatabaseMysqlBase::wasReadOnlyError(), Preferences::watchlistPreferences(), and wfStreamThumb().

◆ feeds

Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add feeds

Definition at line 304 of file hooks.txt.

◆ FetchChangesList

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers temp or archived zone FetchChangesList

Definition at line 1459 of file hooks.txt.

◆ file

to their LocalSettings php file

Definition at line 93 of file hooks.txt.

Referenced by LessFileCompilationTest::__construct(), RevDelArchivedFileItem::__construct(), Wikimedia\Rdbms\MySQLMasterPos::__construct(), RevDelFileItem::__construct(), BackupReader::__construct(), CleanupInvalidDbKeys::__construct(), FileDeleteForm::__construct(), TestFileReader::__construct(), Exif::__construct(), ThumbnailImage::__construct(), LocalFileDeleteBatch::__construct(), LocalFileRestoreBatch::__construct(), LocalFileMoveBatch::__construct(), LocalFileDeleteBatch::addCurrent(), LocalFileDeleteBatch::addOld(), LocalFileDeleteBatch::addOlds(), RevDelFileItem::canView(), RevDelFileItem::canViewContent(), TestFileReader::checkSection(), LocalFileRestoreBatch::cleanup(), LocalFileRestoreBatch::cleanupFailedBatch(), LocalFileMoveBatch::cleanupSource(), LocalFileMoveBatch::cleanupTarget(), LocalFileDeleteBatch::doDBDeletes(), LocalFileDeleteBatch::doDBInserts(), ApiFileRevert::execute(), InvalidateUserSesssions::execute(), FileDeleteForm::execute(), FileDuplicateSearchPage::execute(), MWDocGen::execute(), ZipDirectoryReader::execute(), LocalFileDeleteBatch::execute(), LocalFileRestoreBatch::execute(), LocalFileMoveBatch::execute(), RevDelFileItem::getBits(), RevDelFileItem::getComment(), MediaTransformOutput::getDescLinkAttribs(), ZipDirectoryReader::getFileLength(), LocalFileDeleteBatch::getHashes(), RevDelFileItem::getHTML(), RevDelArchivedFileItem::getLink(), RevDelFileItem::getLink(), MediaTransformOutput::getLocalCopyPath(), LocalFileMoveBatch::getMoveTriplets(), ZipDirectoryReader::getSegment(), RevDelFileItem::getUserTools(), CheckLanguageCLI::help(), RevDelFileItem::isDeleted(), User::isLocallyBlockedProxy(), RevDelFileItem::lock(), DatabaseInstaller::populateInterwikiTable(), FileDeleteForm::prepareMessage(), DumpBackup::processOptions(), MergeMessageFileList::readFile(), LocalFileDeleteBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFiles(), LocalFileMoveBatch::removeNonexistentFiles(), LocalFileRestoreBatch::removeNonexistentFromCleanup(), RevDelFileItem::setBits(), MediaTransformOutput::streamFileWithStatus(), TextSuppressor::suppress(), CheckStyleSuppressor::suppress(), LessFileCompilationTest::testLessFileCompilation(), ThumbnailImage::toHtml(), RevDelFileItem::unlock(), ApiFileRevert::validateParameters(), and LocalFileMoveBatch::verifyDBUpdates().

◆ FileDeleteComplete

return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges 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 FileDeleteComplete

Definition at line 1459 of file hooks.txt.

◆ form

Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty irrevocable copyright license to prepare Derivative Works publicly publicly and distribute the Work and such Derivative Works in Source or Object form Grant of Patent License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty have offer to and otherwise transfer the where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed Redistribution You may reproduce and distribute copies of the Work or Derivative Works thereof in any with or without and in Source or Object form

◆ format

◆ framework

For QUnit framework

Definition at line 2742 of file hooks.txt.

◆ function

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 the output can only depend on parameters provided to this hook function

Definition at line 1049 of file hooks.txt.

◆ functions

null for the wiki Added should default to null in handler functions

Definition at line 1572 of file hooks.txt.

◆ GalleryGetModes

null for the wiki Added should default to null in handler for backwards compatibility GalleryGetModes

Definition at line 1572 of file hooks.txt.

◆ Generally

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 Generally

Definition at line 990 of file hooks.txt.

◆ GetCanonicalURL

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options GetCanonicalURL

Definition at line 1572 of file hooks.txt.

◆ GetDefaultSortkey

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list GetDefaultSortkey

Definition at line 1572 of file hooks.txt.

◆ GetDoubleUnderscoreIDs

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs difference engine object to be used for diff GetDoubleUnderscoreIDs

Definition at line 1572 of file hooks.txt.

◆ GetLocalURL

if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys GetLocalURL

Definition at line 1630 of file hooks.txt.

◆ GetRelativeTimestamp

if the prop value should be in the metadata multi language array can modify can modify indexed by page_id indexed by prefixed DB keys can modify can modify can modify this should be populated with an alert message to that effect to be fed to an HTMLForm object GetRelativeTimestamp

Definition at line 1630 of file hooks.txt.

◆ getUserPermissionsErrorsExpensive

presenting them properly to the user as errors is done by the caller return true getUserPermissionsErrorsExpensive

Definition at line 1727 of file hooks.txt.

◆ GitViewers

presenting them properly to the user as errors is done by the caller return true GitViewers

Definition at line 1741 of file hooks.txt.

◆ gzip

gzip

Definition at line 2753 of file hooks.txt.

◆ handler

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 modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves set to a MediaTransformOutput the error message to be returned in an array you should do so by altering $wgNamespaceProtection and $wgNamespaceContentModels outside the handler
inline

Definition at line 783 of file hooks.txt.

Referenced by UnregisteredLocalFile::cachePageDimensions(), File::canRender(), ArchivedFile::getHandler(), File::getHandler(), UnregisteredLocalFile::getImageSize(), UnregisteredLocalFile::getMetadata(), File::isMultipage(), File::mustRender(), ArchivedFile::pageCount(), File::pageCount(), SvgTest::setUp(), JpegTest::setUp(), XCFHandlerTest::setUp(), GIFHandlerTest::setUp(), PNGHandlerTest::setUp(), ExifRotationTest::setUp(), FileContentHandlerTest::setUp(), WikitextContentHandlerTest::setUp(), TiffTest::setUp(), DjVuTest::setUp(), ExifBitmapTest::setUp(), ExifRotationTest::testBitmapExtractPreRotationDimensions(), ExifBitmapTest::testConvertMetadataLatest(), ExifBitmapTest::testConvertMetadataSoftware(), ExifBitmapTest::testConvertMetadataSoftwareNormal(), ExifBitmapTest::testConvertMetadataToOld(), WikitextContentHandlerTest::testGetAutosummary(), PNGHandlerTest::testGetImageArea(), GIFHandlerTest::testGetImageArea(), XCFHandlerTest::testGetImageSize(), DjVuTest::testGetImageSize(), SvgTest::testGetIndependentMetaArray(), JpegTest::testGetIndependentMetaArray(), GIFHandlerTest::testGetIndependentMetaArray(), PNGHandlerTest::testGetIndependentMetaArray(), XCFHandlerTest::testGetMetadata(), GIFHandlerTest::testGetMetadata(), PNGHandlerTest::testGetMetadata(), DjVuTest::testGetPageDimensions(), DjVuTest::testGetPageText(), ExifBitmapTest::testGoodMetadata(), FileContentHandlerTest::testIndexMapping(), JpegTest::testInvalidFile(), PNGHandlerTest::testInvalidFile(), GIFHandlerTest::testInvalidFile(), TiffTest::testInvalidFile(), DjVuTest::testInvalidFile(), PNGHandlerTest::testIsAnimanted(), GIFHandlerTest::testIsAnimanted(), ExifBitmapTest::testIsBrokenFile(), ExifBitmapTest::testIsInvalid(), XCFHandlerTest::testIsMetadataValid(), GIFHandlerTest::testIsMetadataValid(), PNGHandlerTest::testIsMetadataValid(), ExifBitmapTest::testIsOldBroken(), ExifBitmapTest::testIsOldGood(), WikitextContentHandlerTest::testIsSupportedFormat(), JpegTest::testJpegMetadataExtraction(), WikitextContentHandlerTest::testMakeEmptyContent(), WikitextContentHandlerTest::testMakeRedirectContent(), WikitextContentHandlerTest::testMerge3(), ExifRotationTest::testMetadata(), DjVuTest::testPageCount(), ExifBitmapTest::testPagedTiffHandledGracefully(), ExifRotationTest::testRotationRendering(), WikitextContentHandlerTest::testSerializeContent(), ExifBitmapTest::testSwappingICCProfile(), TiffTest::testTiffMetadataExtraction(), WikitextContentHandlerTest::testUnserializeContent(), and ForeignAPIFile::transform().

◆ herself

they could be provided by a third party developer or written by the admin him herself
Initial value:
==Writing hooks==
A hook is a chunk of code run at some particular event. It consists of:
* a function with some optional accompanying data

Definition at line 131 of file hooks.txt.

◆ history

◆ hook

and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a hook
Initial value:
==Rationale==
Hooks allow us to decouple optionally-run code from code that is run for
everyone. It allows MediaWiki hackers

Definition at line 23 of file hooks.txt.

Referenced by SpecialStatistics::execute().

◆ hooks

they could be provided by a third party developer or written by the admin him or *an object with a method and some optional accompanying data Hooks are registered by adding them to the global $wgHooks array for a given event All the following are valid ways to define hooks

Definition at line 73 of file hooks.txt.

Referenced by SpecialUpload::processVerificationError().

◆ However

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place or wrap services However
static

Definition at line 2179 of file hooks.txt.

◆ imagelinks

either a unescaped string or a HtmlArmor object after in associative array form imagelinks

Definition at line 2025 of file hooks.txt.

◆ ImageOpenShowImageInlineBefore

see documentation in includes Linker php for Linker::makeImageLink or false for current used if you return false ImageOpenShowImageInlineBefore

Definition at line 1769 of file hooks.txt.

◆ in

◆ insert

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and insert

Definition at line 2025 of file hooks.txt.

Referenced by Wikimedia\Rdbms\DatabaseSqlite::insert().

◆ Instead

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 Instead

Definition at line 990 of file hooks.txt.

◆ isolated

you don t have to do a grep find to see where the $wgReverseTitle variable is say If the code is well enough isolated

Definition at line 117 of file hooks.txt.

◆ it

presenting them properly to the user as errors is done by the caller return true but is called only if expensive checks are enabled Add a permissions error when permissions errors are checked for Return false if the user can t do it

Definition at line 1727 of file hooks.txt.

◆ key

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation default is conds Array Extra conditions for the No matching items in log is displayed if loglist is empty msgKey Array If you want a nice box with a set this to the key of the message First element is the message key

Definition at line 2114 of file hooks.txt.

◆ link

usually copyright or history_copyright This message must be in HTML not wikitext if the section is included from a template to be included in the link

◆ Live

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Live

Definition at line 1398 of file hooks.txt.

◆ LogEventsListGetExtraInputs

either a unescaped string or a HtmlArmor object after in associative array form externallinks including delete and has completed for all link tables whether this was an auto creation LogEventsListGetExtraInputs

Definition at line 2025 of file hooks.txt.

◆ LogLine

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters LogLine

Definition at line 2122 of file hooks.txt.

◆ lt

logged in & lt
Initial value:
{{int:0750ed4b}}
</td></tr><tr><td>
</td><td>

Definition at line 2121 of file hooks.txt.

◆ MarkPatrolled

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title MarkPatrolled
static

Definition at line 2179 of file hooks.txt.

◆ MediaWiki

those of us who don t want or need it can just leave it out The extensions don t even have to be shipped with MediaWiki

Definition at line 3 of file hooks.txt.

◆ message

◆ messages

◆ ModifyExportQuery

for adding new MIME types to the list ModifyExportQuery

Definition at line 2274 of file hooks.txt.

◆ name

the value to return A Title object or null for latest all implement SearchIndexField must implement ResultSetAugmentor must implement ResultAugmentor Note that lists should be in the format name

Definition at line 6 of file hooks.txt.

◆ Note

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be but other information should still be present in the ParserOutput object to manipulate or replace but no entry for that model exists in $wgContentHandlers Note

Definition at line 1049 of file hooks.txt.

Referenced by BackupReader::__construct(), and LicensesTest::testLicenses().

◆ object

either a unescaped string or a HtmlArmor object

Definition at line 2007 of file hooks.txt.

◆ occur

return true to allow those checks to occur

Definition at line 1459 of file hooks.txt.

Referenced by CleanupInvalidDbKeys::__construct().

◆ occurs

When an event occurs

Definition at line 150 of file hooks.txt.

◆ on

◆ otherwise

within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state otherwise

Definition at line 2749 of file hooks.txt.

◆ page

page as if applicable</td >< td > ve followed a link to a page that doesn &To create the page

Definition at line 2536 of file hooks.txt.

Referenced by DumpBackup::__construct(), CleanupEmptyCategories::__construct(), BlockListPager::__construct(), UpdateCollation::__construct(), LinksDeletionUpdate::__construct(), CleanupInvalidDbKeys::__construct(), PoolWorkArticleView::__construct(), TextPassDumper::__construct(), Action::__construct(), ThumbnailImage::__construct(), EditPage::__construct(), PHPVersionCheck::checkRequiredPHPVersion(), LinksDeletionUpdate::doUpdate(), PoolWorkArticleView::doWork(), UpdateLogging::execute(), PoolWorkArticleView::fallback(), HistoryAction::fetchRevisions(), LinksDeletionUpdate::getAsJobSpecification(), PoolWorkArticleView::getCachedWork(), CachedAction::getCacheKey(), EditPage::getContentObject(), Action::getContext(), CreditsAction::getContributors(), InfoAction::getContributors(), CreditsAction::getCredits(), EditPage::getCurrentContent(), MediaTransformOutput::getDescLinkAttribs(), FormAction::getForm(), RevertAction::getFormFields(), User::getNewtalk(), RawAction::getOldId(), EditPage::getPreviewParserOptions(), ImportTest::getRedirectXML(), Action::getTitle(), ImportTest::getUnknownTagsXML(), CheckLanguageCLI::help(), EditPage::initialiseForm(), EditPage::internalAttemptSave(), Linker::normalizeSubpageLink(), PurgeAction::onSubmit(), RevertAction::onSubmit(), RevertAction::onSuccess(), CreditsAction::onView(), RawAction::onView(), RollbackAction::onView(), InfoAction::onView(), HistoryAction::onView(), InfoAction::pageInfo(), ApiEditPageTest::provideEditAppend(), PdfImage::retrieveMetaData(), EditPage::setPostEditCookie(), SpecialMIMESearchTest::setUp(), UnprotectAction::show(), DeleteAction::show(), ProtectAction::show(), RenderAction::show(), ViewAction::show(), EditPage::showDiff(), EditPage::showEditForm(), MovePageForm::showForm(), EditPage::showHeader(), SpecialMIMESearchTest::testMimeFiltering(), SideBarTest::testTrickyPipe(), DumpLatestFilter::writeClosePage(), and DumpLatestFilter::writeOpenPage().

◆ PageContentSave

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSave

Definition at line 6 of file hooks.txt.

◆ PageContentSaveComplete

and how to run hooks for an and one after Each event has a preferably in CamelCase For PageContentSaveComplete

Definition at line 6 of file hooks.txt.

◆ pagelinks

either a unescaped string or a HtmlArmor object after in associative array form pagelinks

Definition at line 2025 of file hooks.txt.

◆ ParserLimitReportPrepare

namespace are movable Hooks may change this value to override the return value of MWNamespace::isMovable (). 'NewDifferenceEngine' if it s text intended for display in a monospaced font $report should be output in English ParserLimitReportPrepare

Definition at line 2277 of file hooks.txt.

◆ ParserTestTables

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 ParserTestTables

Definition at line 2536 of file hooks.txt.

◆ part

in this case you re responsible for computing and outputting the entire conflict part

Definition at line 1398 of file hooks.txt.

◆ performed

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 modifiable modifiable after all normalizations have been performed
inline

Definition at line 783 of file hooks.txt.

Referenced by UpdateLogging::execute().

◆ PingLimiter

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 my talk my contributions etc etc PingLimiter

Definition at line 2536 of file hooks.txt.

◆ plain

◆ Preview

in this case you re responsible for computing and outputting the entire conflict i the difference between revisions and your text headers and sections Preview

Definition at line 1398 of file hooks.txt.

◆ processing

either a unescaped string or a HtmlArmor object after processing

Definition at line 1956 of file hooks.txt.

Referenced by Exif::__construct(), and MediaWikiTitleCodec::splitTitleString().

◆ RecentChangesLinked

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 RecentChangesLinked

Definition at line 990 of file hooks.txt.

◆ replace

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set but before ordinary actions take place replace
static

Definition at line 2179 of file hooks.txt.

◆ request

div flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS) 'LogException' returning false will NOT prevent logging a wrapping ErrorException instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request

Definition at line 2122 of file hooks.txt.

Referenced by WebRequestUpload::__construct(), ResourceLoaderContext::__construct(), WebInstaller::__construct(), MediaWiki\Auth\AuthManager::__construct(), MediaWiki\Auth\AuthManager::autoCreateUser(), MediaWiki\Auth\AuthManager::beginAccountCreation(), MediaWiki\Auth\AuthManager::beginAccountLink(), MediaWiki\Auth\AuthManager::beginAuthentication(), MediaWiki\Auth\AuthManager::canAuthenticateNow(), MediaWiki\Auth\AuthManager::continueAccountCreation(), MediaWiki\Auth\AuthManager::continueAccountLink(), MediaWiki\Auth\AuthManager::continueAuthentication(), WebInstaller::execute(), MediaWiki\Auth\AuthManager::forcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManager::getAuthenticationRequests(), MediaWiki\Auth\AuthManager::getAuthenticationSessionData(), WebInstaller::getFingerprint(), RedisLockManager::getLocksOnServer(), MediaWiki\Auth\AuthManagerTest::getMockSessionProvider(), RequestContext::getRequest(), DerivativeContext::getRequest(), WebInstaller::getUrl(), MediaWiki\Auth\AuthManagerTest::initializeManager(), WebRequestUpload::isIniSizeOverflow(), WebInstaller::outputCss(), MediaWiki\Auth\AuthManager::removeAuthenticationSessionData(), MediaWiki\Auth\AuthManager::securitySensitiveOperationStatus(), MediaWiki\Auth\AuthManager::setAuthenticationSessionData(), RequestContext::setRequest(), DerivativeContext::setRequest(), MediaWiki\Auth\AuthManager::setSessionDataForUser(), WebInstaller::setupLanguage(), WebInstaller::setVarsFromRequest(), MediaWiki\Auth\AuthManagerTest::testAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAccountLink(), MediaWiki\Auth\AuthManagerTest::testAuthentication(), MediaWiki\Auth\AuthManagerTest::testAutoAccountCreation(), MediaWiki\Auth\AuthManagerTest::testAutoCreateFailOnLogin(), MediaWiki\Auth\AuthManagerTest::testAutoCreateOnLogin(), MediaWiki\Auth\AuthManagerTest::testBeginAccountCreation(), MediaWiki\Auth\AuthManagerTest::testBeginAccountLink(), MediaWiki\Auth\AuthManagerTest::testBeginAuthentication(), MediaWiki\Auth\AuthManagerTest::testContinueAccountCreation(), MediaWiki\Auth\AuthManagerTest::testContinueAccountLink(), MediaWiki\Auth\AuthManagerTest::testCreateFromLogin(), MediaWiki\Auth\AuthManagerTest::testForcePrimaryAuthenticationProviders(), MediaWiki\Auth\AuthManagerTest::testGetAuthenticationRequests(), and MediaWiki\Auth\AuthManagerTest::testSecuritySensitiveOperationStatus().

◆ rollback

presenting them properly to the user as errors is done by the caller return true use this to change the list i e rollback

Definition at line 1741 of file hooks.txt.

◆ rss

Allows to change the fields on the form that will be generated rss

Definition at line 304 of file hooks.txt.

Referenced by outFooter().

◆ saved

This code would result in ircNotify being run twice when an article is saved

Definition at line 177 of file hooks.txt.

◆ SearchableNamespaces

external SearchableNamespaces

Definition at line 2759 of file hooks.txt.

◆ SearchGetNearMatch

set to $title object and return false for a match SearchGetNearMatch

Definition at line 2767 of file hooks.txt.

◆ SearchGetNearMatchBefore

set to $title object and return false for a match SearchGetNearMatchBefore

Definition at line 2772 of file hooks.txt.

◆ SearchGetNearMatchComplete

the value to return A Title object or null SearchGetNearMatchComplete

Definition at line 2782 of file hooks.txt.

◆ SearchIndexFields

the value to return A Title object or null for latest SearchIndexFields

Definition at line 2782 of file hooks.txt.

◆ set

◆ simple

and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code simple

Definition at line 23 of file hooks.txt.

◆ skipped

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 the output can only depend on parameters provided to this hook not on global state indicating whether full HTML should be generated If generation of HTML may be skipped

◆ source

null for the wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify as strings Extensions should add to this list prev or next refreshes the diff cache allow viewing deleted revs difference engine object to be used for diff source

◆ storage

For QUnit the mediawiki tests qunit testrunner dependency will be added to any module it s the URL of the revision text in external storage

Definition at line 2742 of file hooks.txt.

◆ strategy

Using a hook running strategy

Definition at line 73 of file hooks.txt.

◆ string

This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki* some string

Definition at line 177 of file hooks.txt.

Referenced by HTMLFileCache::__construct(), FileBackend::__construct(), ResourceLoaderFileModule::__construct(), Wikimedia\Rdbms\DatabaseSqlite::__toString(), OutputPage::addCategoryLinks(), Wikimedia\Rdbms\DatabaseMysqlBase::addQuotes(), MediaWiki\Session\SessionManager::changeBackendId(), MediaWiki\Session\CookieSessionProvider::cookieDataToExport(), ApiFeedWatchlist::createFeedItem(), SpecialWatchlist::cutoffselector(), Language::dateFormat(), Block::defaultRetroactiveAutoblock(), SpecialContributions::execute(), ApiQueryAuthManagerInfo::execute(), ResourceLoaderFileModule::extractBasePaths(), ResourceLoaderImageModule::extractLocalBasePath(), MessageCache::get(), MediaWiki\Session\SessionBackendTest::getBackend(), Block::getByName(), WatchedItemStore::getCacheKey(), WANObjectCache::getCheckKeyTime(), Block::getDatabaseArray(), ApiBase::getFinalDescription(), SpecialPageLanguage::getFormFields(), ApiParamInfo::getModuleInfo(), MediaWiki\Widget\NamespaceInputWidget::getNamespaceDropdownOptions(), HTMLFormField::getNearestFieldByName(), HTMLFormField::getOptionsOOUI(), Block::getPermissionsError(), MediaWiki\Session\SessionManager::getProviders(), LoginSignupSpecialPage::hasSessionCookie(), StringUtils::isUtf8(), ResourceLoaderImageModule::loadFromDefinition(), Title::loadFromRow(), SpecialBlock::maybeAlterFormDefaults(), Block::newLoad(), JobQueueRedis::pushBlobs(), CologneBlueTemplate::quickBar(), MonoBookTemplate::renderPortals(), VectorTemplate::renderPortals(), MediaWiki\Session\SessionBackend::resetId(), MediaWiki\Session\SessionBackend::save(), WebResponse::setCookie(), FauxResponse::setCookie(), SpecialChangeCredentials::showSubpageList(), Html::srcSet(), FormatJson::stripComments(), MailAddressTest::test__ToString(), ApiLoginTest::testApiLoginGotCookie(), MediaWiki\Session\SessionManagerTest::testBackendRegistration(), MediaWiki\Session\CookieSessionProviderTest::testCookieData(), EditPageTest::testCreatePageTrx(), MediaWiki\Session\SessionManagerTest::testLoadSessionInfoFromStore(), DatabaseSqliteTest::testToString(), Job::toString(), BitmapHandler::transformImageMagick(), BitmapHandler::transformImageMagickExt(), RedisBagOStuff::unserialize(), ApiResult::validateValue(), and MediaWiki\Logger\Monolog\LegacyHandler::write().

◆ structure

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 structure

Definition at line 990 of file hooks.txt.

Referenced by RedisLockManager::freeLocksOnServer().

◆ them

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 them

◆ true

return true

Definition at line 1956 of file hooks.txt.

Referenced by MediaWiki\Tidy\RemexDriver::__construct(), TitleBlacklistHooks::abortNewAccount(), DatabaseUpdater::addExtensionField(), DatabaseUpdater::addExtensionIndex(), DatabaseUpdater::addExtensionTable(), MWHttpRequestTestCase::assertResponseFieldValue(), BotPassword::canonicalizeLoginData(), User::changeAuthenticationData(), SpecialPage::checkLoginSecurityLevel(), FileRepo::cleanupBatch(), FileBackendMultiWrite::consistencyCheck(), CopyFileBackend::copyFileBatch(), CssContentTest::dataEquals(), JavaScriptContentTest::dataEquals(), TextContentTest::dataEquals(), WikitextContentTest::dataEquals(), JavaScriptContentTest::dataIsCountable(), TextContentTest::dataIsCountable(), TextContentTest::dataIsEmpty(), WikitextContentHandlerTest::dataIsSupportedFormat(), ContentHandlerTest::dataMakeContent(), SearchEngineConfig::defaultNamespaces(), FileRepo::deleteBatch(), CopyFileBackend::delFileBatch(), UploadStashCleanup::doOperations(), FileBackendTest::doTestLockCalls(), DatabaseUpdater::dropExtensionField(), DatabaseUpdater::dropExtensionIndex(), DatabaseUpdater::dropExtensionTable(), HHVMMakeRepo::execute(), SpecialRunJobs::execute(), ChangePassword::execute(), MigrateFileRepoLayout::execute(), FixDoubleRedirects::execute(), SpecialTags::execute(), CreateAndPromote::execute(), ApiFormatJson::execute(), ApiQueryUsers::execute(), EtcdConfig::fetchAllFromEtcdServer(), FileOp::fileExists(), CoreParserFunctions::filepath(), FileOp::fileSha1(), ApiValidatePassword::getAllowedParams(), ApiEmailUser::getAllowedParams(), ApiUndelete::getAllowedParams(), ApiRollback::getAllowedParams(), ApiQueryQueryPage::getAllowedParams(), ApiOptions::getAllowedParams(), ApiUserrights::getAllowedParams(), ApiRevisionDelete::getAllowedParams(), ApiWatch::getAllowedParams(), ApiImageRotate::getAllowedParams(), ApiQueryRandom::getAllowedParams(), ApiMove::getAllowedParams(), ApiQueryBlocks::getAllowedParams(), ApiQueryAllPages::getAllowedParams(), ApiQueryUsers::getAllowedParams(), ApiQueryRevisions::getAllowedParams(), ApiStashEdit::getAllowedParams(), ApiQueryDeletedrevs::getAllowedParams(), ApiQueryContributions::getAllowedParams(), ApiQueryRecentChanges::getAllowedParams(), LinksUpdate::getAsJobSpecification(), CreditsAction::getAuthor(), User::getBlockFromCookieValue(), OOUIHTMLForm::getButtons(), EditPage::getContentObject(), ParserCache::getDirty(), MediaWiki\Auth\UserDataAuthenticationRequest::getFieldInfo(), FileRepo::getFileProps(), SearchIndexFieldTest::getMergeCases(), WANObjectCacheTest::getMultiWithSetCallback_provider(), PostgresUpdater::getOldGlobalUpdates(), DatabaseUpdater::getOldGlobalUpdates(), EditPage::getPreviewText(), MWFileProps::getPropsFromPath(), RawAction::getRawText(), ImagePage404Test::getRepoOptions(), UploadForm::getSourceSection(), MediaWiki::getUrlDomainDistance(), WANObjectCacheTest::getWithSetCallback_provider(), WANObjectCacheTest::getWithSetCallback_versions_provider(), TitleValueTest::goodConstructorProvider(), AuthManagerSpecialPage::handleReauthBeforeExecute(), LoginForm::incLoginThrottle(), FileRepo::initDirectory(), Language::internalUserTimeAndDate(), Block::isHardblock(), WikiCategoryPage::isHidden(), User::isItemLoaded(), LoginSignupSpecialPage::load(), ApiAuthManagerHelper::loadAuthenticationRequests(), User::loadFromSession(), Skin::makeKnownUrlDetails(), DatabaseUpdater::modifyExtensionField(), MediaWiki\Session\UserInfo::newAnonymous(), HTMLCacheUpdateJob::newForBacklinks(), XmlTypeCheck::newFromFilename(), DuplicateJob::newFromJob(), ForeignAPIFile::newFromTitle(), ComposerVersionNormalizerTest::nonStringProvider(), RollbackAction::onView(), ApiQuery::outputGeneralPageInfo(), ConverterRule::parse(), ConverterRule::parseFlags(), FileDeleteForm::prepareMessage(), SpecialTags::processTagForm(), LogFormatterTest::provideApiParamFormatting(), MWRestrictionsTest::provideArray(), GlobalTest::provideArrayToCGI(), MediaWiki\Auth\AuthManagerTest::provideAuthentication(), WatchedItemUnitTest::provideBooleans(), BotPasswordTest::provideCanonicalizeLoginData(), WikiCategoryPageTest::provideCategoryContent(), RecentChangeTest::provideCategoryContent(), DatabaseMysqlBaseTest::provideChannelPositions(), VersionCheckerTest::provideCheck(), ApiMainTest::provideCheckConditionalRequestHeaders(), MWRestrictionsTest::provideCheckIP(), DatabaseMysqlBaseTest::provideComparePositions(), DatabaseDomainTest::provideConstruct(), MediaWiki\Session\CookieSessionProviderTest::provideCookieData(), LinkRendererFactoryTest::provideCreateFromLegacyOptions(), EditPageTest::provideCreatePages(), DatabaseMysqlBaseTest::provideDiapers(), TitleMethodsTest::provideEquals(), LanguageTest::provideFormattableTimes(), WebRequestTest::provideFuzzyBool(), ApiFormatNoneTest::provideGeneralEncoding(), CaptchaPreAuthenticationProviderTest::provideGetAuthenticationRequests(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest::provideGetAuthenticationRequests(), ApiBaseTest::provideGetParameterFromSettings(), MWGrantsTest::provideGrantsAreValid(), TitleMethodsTest::provideHasSubjectNamespace(), WikiPageTest::provideHasViewableContent(), TitleMethodsTest::provideInNamespace(), PasswordResetTest::provideIsAllowed(), TitleTest::provideIsAlwaysKnown(), PNGHandlerTest::provideIsAnimated(), GIFHandlerTest::provideIsAnimated(), SpecialBooksourcesTest::provideISBNs(), MWExceptionTest::provideIsCommandLine(), WikiPageTest::provideIsCountable(), TitleMethodsTest::provideIsCssJsSubpage(), TitleMethodsTest::provideIsCssOrJsPage(), TitleMethodsTest::provideIsCssSubpage(), StatusTest::provideIsGood(), RecentChangeTest::provideIsInRCLifespan(), TitleMethodsTest::provideIsJsSubpage(), ResourceLoaderWikiModuleTest::provideIsKnownEmpty(), StatusTest::provideIsOk(), MergeHistoryTest::provideIsValidMerge(), TitleMethodsTest::provideIsWikitextPage(), TitleBlacklistAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\ButtonAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\RememberMeAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\UserDataAuthenticationRequestTest::provideLoadFromSubmission(), MediaWiki\Auth\AuthenticationRequestTest::provideLoadFromSubmission(), CentralIdLookupTest::provideLocalUserFromCentralId(), MediaWiki\Session\SessionTest::provideMethods(), DatabaseDomainTest::provideNewFromId(), MediaWiki\Session\SessionProviderTest::provideNewSessionInfo(), BitmapScalingTest::provideNormaliseParams(), FormatJsonTest::provideParse(), ChangesListSpecialPageTest::provideParseParameters(), FormatJsonTest::provideParseStripComments(), MediaWiki\Session\ImmutableSessionProviderWithCookieTest::providePersistSession(), CaptchaPreAuthenticationProviderTest::providePingLimiter(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), MediaWiki\Auth\LocalPasswordPrimaryAuthenticationProviderTest::provideProviderChangeAuthenticationData(), FileBackendTest::provider_testGetContentType(), FileBackendTest::provider_testGetFileStat(), FileBackendTest::provider_testIsStoragePath(), FileBackendTest::provider_testPrepareAndClean(), FileTest::providerCanAnimate(), MediaWiki\Auth\AuthManagerTest::provideSecuritySensitiveOperationStatus(), StatusTest::provideSetResult(), MediaWiki\Logger\LegacyLoggerTest::provideShouldEmit(), MediaWiki\Auth\CreateFromLoginAuthenticationRequestTest::provideState(), MediaWiki\Auth\ThrottlePreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAccountCreation(), CaptchaPreAuthenticationProviderTest::provideTestForAuthentication(), ApiQueryTest::provideTestTitlePartToKey(), UserArrayFromResultTest::provideTestValid(), TitleArrayFromResultTest::provideTestValid(), MWExceptionTest::provideTextUseOutputPage(), ApiResultTest::provideTransformations(), MediaWiki\Auth\AuthManagerTest::provideUserCanAuthenticate(), MediaWiki\Auth\AuthManagerTest::provideUserExists(), FileRepo::publishBatch(), FileRepo::quickPurgeBatch(), UploadFromUrl::reallyFetchFile(), CSSMin::remap(), DatabaseUpdater::renameExtensionIndex(), MediaWiki\Session\PHPSessionHandler::returnSuccess(), MigrateFileRepoLayout::runBatch(), SamplingStatsdClientTest::samplingDataProvider(), EraseArchivedFile::scrubVersion(), ApiMain::setupModule(), SpecialUndelete::showRevision(), FileRepo::storeBatch(), WebInstallerName::submit(), MediaWiki\Logger\Monolog\KafkaHandlerTest::swallowsExceptionsWhenRequested(), SyncFileBackend::syncBackends(), SkinTemplate::tabAction(), ApiQueryContinueTest::test1List(), ApiQueryContinueTest::test2Lists(), ApiQueryContinue2Test::testA(), SiteTest::testAddInterwikiId(), SiteTest::testAddNavigationId(), DerivativeResourceLoaderContextTest::testDebug(), ExtensionProcessorTest::testExtractConfig2(), SpecialWatchlistTest::testFetchOptionsFromRequest(), TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), ApiQueryContinueTest::testGen1Prop(), ApiQueryContinueTest::testGen1Prop1List(), ApiQueryContinueTest::testGen2Prop(), ApiQueryContinueTest::testGen2Prop2List1Meta(), ComposerLockTest::testGetInstalledDependencies(), ChangesListBooleanFilterGroupTest::testGetJsData(), ChangesListStringOptionsFilterGroupTest::testGetJsData(), ComposerJsonTest::testGetRequiredDependencies(), ChangesListSpecialPageTest::testGetStructuredFilterJsData(), LogFormatterTest::testIrcMsgForLogTypeBlock(), MediaWiki\Session\UserInfoTest::testNewFromId(), MediaWiki\Session\UserInfoTest::testNewFromName(), AbstractChangesListSpecialPageTestCase::testParseParameters(), TitlePermissionTest::testQuickPermissions(), DerivativeResourceLoaderContextTest::testRaw(), ApiQueryContinueTest::testSameGenAndProp(), ApiQueryContinueTest::testSameGenList(), MediaWiki\Auth\LegacyHookPreAuthenticationProviderTest::testTestUserForCreation(), LinksUpdateTest::testUpdate_page_props(), MediaWiki\Logger\Monolog\LogstashFormatterTest::testV1(), MediaWiki\Logger\Monolog\LogstashFormatterTest::testV1WithPrefix(), WANObjectCacheTest::testWritePending(), SpecialUploadStash::tryClearStashedUploads(), and MediaWiki\Session\UserInfo::verified().

◆ understand

Having all this code related to the title reversion option in one place means that it s easier to read and understand

Definition at line 116 of file hooks.txt.

◆ undo

presenting them properly to the user as errors is done by the caller return true use this to change the list i e undo

Definition at line 1741 of file hooks.txt.

◆ up

configuration should be added through ResourceLoaderGetConfigVars instead can be used to get the real title after the basic globals have been set up
static

◆ used

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 my talk my contributions etc etc otherwise the built in rate limiting checks are used

◆ UserLogin

and how to run hooks for an and one after Each event has a preferably in CamelCase For UserLogin

Definition at line 6 of file hooks.txt.

◆ values

◆ weird

We ve cleaned up the code here by removing clumps of weird

Definition at line 86 of file hooks.txt.

◆ writer

saved
This code would result in ircNotify being run twice when an article is saved
Definition: hooks.txt:177
$context
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
Definition: hooks.txt:2612
file
We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition: hooks.txt:93
hooks
Using a hook running we can avoid having all this option specific stuff in our mainline code Using hooks
Definition: hooks.txt:73
is
We use the convention $dbr for read and $dbw for write to help you keep track of whether the database object is a the world will explode Or to be a subsequent write query which succeeded on the master may fail when replicated to the slave due to a unique key collision Replication on the slave will stop and it may take hours to repair the database and get it back online Setting read_only in my cnf on the slave will avoid this but given the dire we prefer to have as many checks as possible We provide a but the wrapper functions like please read the documentation for except in special pages derived from QueryPage It s a common pitfall for new developers to submit code containing SQL queries which examine huge numbers of rows Remember that COUNT * is(N), counting rows in atable is like counting beans in a bucket.------------------------------------------------------------------------ Replication------------------------------------------------------------------------The largest installation of MediaWiki, Wikimedia, uses a large set ofslave MySQL servers replicating writes made to a master MySQL server. Itis important to understand the issues associated with this setup if youwant to write code destined for Wikipedia.It 's often the case that the best algorithm to use for a given taskdepends on whether or not replication is in use. Due to our unabashedWikipedia-centrism, we often just use the replication-friendly version, but if you like, you can use wfGetLB() ->getServerCount() > 1 tocheck to see if replication is in use.===Lag===Lag primarily occurs when large write queries are sent to the master.Writes on the master are executed in parallel, but they are executed inserial when they are replicated to the slaves. The master writes thequery to the binlog when the transaction is committed. The slaves pollthe binlog and start executing the query as soon as it appears. They canservice reads while they are performing a write query, but will not readanything more from the binlog and thus will perform no more writes. Thismeans that if the write query runs for a long time, the slaves will lagbehind the master for the time it takes for the write query to complete.Lag can be exacerbated by high read load. MediaWiki 's load balancer willstop sending reads to a slave when it is lagged by more than 30 seconds.If the load ratios are set incorrectly, or if there is too much loadgenerally, this may lead to a slave permanently hovering around 30seconds lag.If all slaves are lagged by more than 30 seconds, MediaWiki will stopwriting to the database. All edits and other write operations will berefused, with an error returned to the user. This gives the slaves achance to catch up. Before we had this mechanism, the slaves wouldregularly lag by several minutes, making review of recent editsdifficult.In addition to this, MediaWiki attempts to ensure that the user seesevents occurring on the wiki in chronological order. A few seconds of lagcan be tolerated, as long as the user sees a consistent picture fromsubsequent requests. This is done by saving the master binlog positionin the session, and then at the start of each request, waiting for theslave to catch up to that position before doing any reads from it. Ifthis wait times out, reads are allowed anyway, but the request isconsidered to be in "lagged slave mode". Lagged slave mode can bechecked by calling wfGetLB() ->getLaggedSlaveMode(). The onlypractical consequence at present is a warning displayed in the pagefooter.===Lag avoidance===To avoid excessive lag, queries which write large numbers of rows shouldbe split up, generally to write one row at a time. Multi-row INSERT ...SELECT queries are the worst offenders should be avoided altogether.Instead do the select first and then the insert.===Working with lag===Despite our best efforts, it 's not practical to guarantee a low-lagenvironment. Lag will usually be less than one second, but mayoccasionally be up to 30 seconds. For scalability, it 's very importantto keep load on the master low, so simply sending all your queries tothe master is not the answer. So when you have a genuine need forup-to-date data, the following approach is advised:1) Do a quick query to the master for a sequence number or timestamp 2) Run the full query on the slave and check if it matches the data you gotfrom the master 3) If it doesn 't, run the full query on the masterTo avoid swamping the master every time the slaves lag, use of thisapproach should be kept to a minimum. In most cases you should just readfrom the slave and let the user deal with the delay.------------------------------------------------------------------------ Lock contention------------------------------------------------------------------------Due to the high write rate on Wikipedia(and some other wikis), MediaWiki developers need to be very careful to structure their writesto avoid long-lasting locks. By default, MediaWiki opens a transactionat the first query, and commits it before the output is sent. Locks willbe held from the time when the query is done until the commit. So youcan reduce lock time by doing as much processing as possible before youdo your write queries.Often this approach is not good enough, and it becomes necessary toenclose small groups of queries in their own transaction. Use thefollowing syntax:$dbw=wfGetDB(DB_MASTER
wiki
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
Definition: maintenance.txt:1
use
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
Definition: MIT-LICENSE.txt:10
including
within a display generated by the Derivative if and wherever such third party notices normally appear The contents of the NOTICE file are for informational purposes only and do not modify the License You may add Your own attribution notices within Derivative Works that You alongside or as an addendum to the NOTICE text from the provided that such additional attribution notices cannot be construed as modifying the License You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for or distribution of Your or for any such Derivative Works as a provided Your and distribution of the Work otherwise complies with the conditions stated in this License Submission of Contributions Unless You explicitly state any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this without any additional terms or conditions Notwithstanding the nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions Trademarks This License does not grant permission to use the trade service or product names of the except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file Disclaimer of Warranty Unless required by applicable law or agreed to in Licensor provides the WITHOUT WARRANTIES OR CONDITIONS OF ANY either express or including
Definition: APACHE-LICENSE-2.0.txt:147
http
Apache License January http
Definition: APACHE-LICENSE-2.0.txt:3
example
and how to run hooks for an and one after Each event has a preferably in CamelCase For example
Definition: hooks.txt:6
logs
as see the revision history and logs
Definition: MIT-LICENSE.txt:5
File
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition: File.php:51
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:89
user
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 and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Definition: distributors.txt:9
there
has been added to your &Future changes to this page and its associated Talk page will be listed there
Definition: All_system_messages.txt:357
code
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline code
Definition: hooks.txt:23
in
null for the wiki Added in
Definition: hooks.txt:1572
MediaWiki
A helper class for throttling authentication attempts.
$parser
do that in ParserLimitReportFormat instead $parser
Definition: hooks.txt:2536
RequestContext
Group all the pieces relevant to the context of a request into one instance.
Definition: RequestContext.php:33
run
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a and you may at your option offer warranty protection in exchange for a fee You may modify your copy or copies of the Program or any portion of thus forming a work based on the and copy and distribute such modifications or work under the terms of Section provided that you also meet all of these that in whole or in part contains or is derived from the Program or any part to be licensed as a whole at no charge to all third parties under the terms of this License c If the modified program normally reads commands interactively when run
Definition: COPYING.txt:87
hook
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a hook
Definition: hooks.txt:23
captcha-old.action
action
Definition: captcha-old.py:189
amp
& amp
Definition: parserTests.txt:57
some
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the but if you want to contribute without by all means do which work well I also use K &R brace matching style I know that s a religious issue for some
Definition: design.txt:79
language
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
page
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 my talk page
Definition: hooks.txt:2536
are
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types are
Definition: contenthandler.txt:5
from
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
Definition: APACHE-LICENSE-2.0.txt:43
$article
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function array $article
Definition: hooks.txt:78
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
that
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 then executing the whole list after the page is displayed We don t do anything smart like collating updates to the same table or such because the list is almost always going to have just one item on if that
Definition: deferred.txt:11
Hooks\run
static run( $event, array $args=[], $deprecatedVersion=null)
Call hook functions defined in Hooks::register and $wgHooks.
Definition: Hooks.php:131
data
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of data
Definition: hooks.txt:6
Hooks
Hooks class.
Definition: Hooks.php:34
array
the array() calling protocol came about after MediaWiki 1.4rc1.