X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=docs%2Fhooks.txt;h=21e535c95be32e1542183a25dc58e14958aa5551;hp=4ef680ab0cbd053eac53c9009deddef71e1f0c1b;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=e5110cdbeabc214f2507f1ce0adb2bb6babb5c87 diff --git a/docs/hooks.txt b/docs/hooks.txt index 4ef680ab0c..21e535c95b 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1612,7 +1612,7 @@ $out: OutputPage object notifications. &$title: Title object of page &$url: string value as output (out parameter, can modify) -$query: query options passed to Title::getCanonicalURL() +$query: query options as string passed to Title::getCanonicalURL() 'GetContentModels': Add content models to the list of available models. &$models: array containing current model list, as strings. Extensions should add to this list. @@ -1650,7 +1650,7 @@ $single: Only extract the current language; if false, the prop value should 'GetFullURL': Modify fully-qualified URLs used in redirects/export/offsite data. &$title: Title object of page &$url: string value as output (out parameter, can modify) -$query: query options passed to Title::getFullURL() +$query: query options as string passed to Title::getFullURL() 'GetHumanTimestamp': Pre-emptively override the human-readable timestamp generated by MWTimestamp::getHumanTimestamp(). Return false in this hook to use @@ -1664,7 +1664,7 @@ $lang: Language that will be used to render the timestamp 'GetInternalURL': Modify fully-qualified URLs used for squid cache purging. &$title: Title object of page &$url: string value as output (out parameter, can modify) -$query: query options passed to Title::getInternalURL() +$query: query options as string passed to Title::getInternalURL() 'GetIP': modify the ip of the current user (called only once). &$ip: string holding the ip as determined so far @@ -1689,7 +1689,7 @@ be buggy for internal urls on render if you do not re-implement the horrible hack that Title::getLocalURL uses in your own extension. &$title: Title object of page &$url: string value as output (out parameter, can modify) -$query: query options passed to Title::getLocalURL() +$query: query options as string passed to Title::getLocalURL() 'GetLocalURL::Article': Modify local URLs specifically pointing to article paths without any fancy queries or variants. @@ -1699,7 +1699,7 @@ without any fancy queries or variants. 'GetLocalURL::Internal': Modify local URLs to internal pages. &$title: Title object of page &$url: string value as output (out parameter, can modify) -$query: query options passed to Title::getLocalURL() +$query: query options as string passed to Title::getLocalURL() 'GetLogTypesOnUser': Add log types where the target is a userpage &$types: Array of log types @@ -2198,6 +2198,16 @@ Special:LonelyPages. 'MagicWordwgVariableIDs': When defining new magic words IDs. &$variableIDs: array of strings +'MaintenanceUpdateAddParams': allow extensions to add params to the update.php +maintenance script. +&$params: array to populate with the params to be added. Array elements are keyed by +the param name. Each param is an associative array that must include the following keys: + - desc The description of the param to show on --help + - require Is the param required? Defaults to false if not set. + - withArg Is an argument required with this option? Defaults to false if not set. + - shortName Character to use as short name, or false if none. Defaults to false if not set. + - multiOccurrence Can this option be passed multiple times? Defaults to false if not set. + 'MaintenanceRefreshLinksInit': before executing the refreshLinks.php maintenance script. $refreshLinks: RefreshLinks object @@ -2220,6 +2230,7 @@ $rcid: ID of the revision to be marked patrolled $wcOnlySysopsCanPatrol: config setting indicating whether the user needs to be a sysop in order to mark an edit patrolled. $auto: true if the edit is being marked as patrolled automatically +&$tags: the tags to be applied to the patrol log entry 'MarkPatrolledComplete': After an edit is marked patrolled. $rcid: ID of the revision marked as patrolled @@ -2446,10 +2457,14 @@ $userLang: the user language (Language or StubUserLang object) $wikiPage: the WikiPage (object) being saved $user: the user (object) saving the article $content: the new article content, as a Content object -$summary: the article summary (comment) -$isminor: minor flag -$iswatch: watch flag -$section: section # +&$summary: CommentStoreComment object containing the edit comment. Can be replaced with a new one. +$isminor: Boolean flag specifying if the edit was marked as minor. +$iswatch: Previously a watch flag. Currently unused, always null. +$section: Previously the section number being edited. Currently unused, always null. +$flags: All EDIT_… flags (including EDIT_MINOR) as an integer number. See WikiPage::doEditContent + documentation for flags' definition. +$status: StatusValue object for the hook handlers resulting status. Either set $status->fatal() or + return false to abort the save action. 'PageContentSaveComplete': After an article has been updated. $wikiPage: WikiPage modified