MediaWiki  master
ApiHookRunner.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Api;
4 
6 
14 class ApiHookRunner implements
54 {
56  private $container;
57 
58  public function __construct( HookContainer $container ) {
59  $this->container = $container;
60  }
61 
62  public function onAPIAfterExecute( $module ) {
63  return $this->container->run(
64  'APIAfterExecute',
65  [ $module ]
66  );
67  }
68 
69  public function onApiCheckCanExecute( $module, $user, &$message ) {
70  return $this->container->run(
71  'ApiCheckCanExecute',
72  [ $module, $user, &$message ]
73  );
74  }
75 
76  public function onApiDeprecationHelp( &$msgs ) {
77  return $this->container->run(
78  'ApiDeprecationHelp',
79  [ &$msgs ]
80  );
81  }
82 
83  public function onApiFeedContributions__feedItem( $row, $context, &$feedItem ) {
84  return $this->container->run(
85  'ApiFeedContributions::feedItem',
86  [ $row, $context, &$feedItem ]
87  );
88  }
89 
90  public function onApiFormatHighlight( $context, $text, $mime, $format ) {
91  return $this->container->run(
92  'ApiFormatHighlight',
93  [ $context, $text, $mime, $format ]
94  );
95  }
96 
97  public function onAPIGetAllowedParams( $module, &$params, $flags ) {
98  return $this->container->run(
99  'APIGetAllowedParams',
100  [ $module, &$params, $flags ]
101  );
102  }
103 
104  public function onAPIGetDescriptionMessages( $module, &$msg ) {
105  return $this->container->run(
106  'APIGetDescriptionMessages',
107  [ $module, &$msg ]
108  );
109  }
110 
111  public function onAPIGetParamDescriptionMessages( $module, &$msg ) {
112  return $this->container->run(
113  'APIGetParamDescriptionMessages',
114  [ $module, &$msg ]
115  );
116  }
117 
118  public function onAPIHelpModifyOutput( $module, &$help, $options, &$tocData ) {
119  return $this->container->run(
120  'APIHelpModifyOutput',
121  [ $module, &$help, $options, &$tocData ]
122  );
123  }
124 
125  public function onApiMain__moduleManager( $moduleManager ) {
126  return $this->container->run(
127  'ApiMain::moduleManager',
128  [ $moduleManager ]
129  );
130  }
131 
132  public function onApiMain__onException( $apiMain, $e ) {
133  return $this->container->run(
134  'ApiMain::onException',
135  [ $apiMain, $e ]
136  );
137  }
138 
139  public function onApiMakeParserOptions( $options, $title, $params, $module,
140  &$reset, &$suppressCache
141  ) {
142  return $this->container->run(
143  'ApiMakeParserOptions',
144  [ $options, $title, $params, $module, &$reset, &$suppressCache ]
145  );
146  }
147 
148  public function onApiMaxLagInfo( &$lagInfo ) : void {
149  $this->container->run(
150  'ApiMaxLagInfo',
151  [ &$lagInfo ],
152  [ 'abortable' => false ]
153  );
154  }
155 
156  public function onApiOpenSearchSuggest( &$results ) {
157  return $this->container->run(
158  'ApiOpenSearchSuggest',
159  [ &$results ]
160  );
161  }
162 
163  public function onApiOptions( $apiModule, $user, $changes, $resetKinds ) {
164  return $this->container->run(
165  'ApiOptions',
166  [ $apiModule, $user, $changes, $resetKinds ]
167  );
168  }
169 
170  public function onApiParseMakeOutputPage( $module, $output ) {
171  return $this->container->run(
172  'ApiParseMakeOutputPage',
173  [ $module, $output ]
174  );
175  }
176 
177  public function onAPIQueryAfterExecute( $module ) {
178  return $this->container->run(
179  'APIQueryAfterExecute',
180  [ $module ]
181  );
182  }
183 
184  public function onApiQueryBaseAfterQuery( $module, $result, &$hookData ) {
185  return $this->container->run(
186  'ApiQueryBaseAfterQuery',
187  [ $module, $result, &$hookData ]
188  );
189  }
190 
191  public function onApiQueryBaseBeforeQuery( $module, &$tables, &$fields,
192  &$conds, &$query_options, &$join_conds, &$hookData
193  ) {
194  return $this->container->run(
195  'ApiQueryBaseBeforeQuery',
196  [ $module, &$tables, &$fields, &$conds, &$query_options,
197  &$join_conds, &$hookData ]
198  );
199  }
200 
201  public function onApiQueryBaseProcessRow( $module, $row, &$data, &$hookData ) {
202  return $this->container->run(
203  'ApiQueryBaseProcessRow',
204  [ $module, $row, &$data, &$hookData ]
205  );
206  }
207 
208  public function onAPIQueryGeneratorAfterExecute( $module, $resultPageSet ) {
209  return $this->container->run(
210  'APIQueryGeneratorAfterExecute',
211  [ $module, $resultPageSet ]
212  );
213  }
214 
215  public function onAPIQuerySiteInfoGeneralInfo( $module, &$results ) {
216  return $this->container->run(
217  'APIQuerySiteInfoGeneralInfo',
218  [ $module, &$results ]
219  );
220  }
221 
222  public function onAPIQuerySiteInfoStatisticsInfo( &$results ) {
223  return $this->container->run(
224  'APIQuerySiteInfoStatisticsInfo',
225  [ &$results ]
226  );
227  }
228 
229  public function onApiQueryTokensRegisterTypes( &$salts ) {
230  return $this->container->run(
231  'ApiQueryTokensRegisterTypes',
232  [ &$salts ]
233  );
234  }
235 
236  public function onApiQueryWatchlistExtractOutputData( $module, $watchedItem,
237  $recentChangeInfo, &$vals
238  ) {
239  return $this->container->run(
240  'ApiQueryWatchlistExtractOutputData',
241  [ $module, $watchedItem, $recentChangeInfo, &$vals ]
242  );
243  }
244 
246  $module, $params, &$options
247  ) {
248  return $this->container->run(
249  'ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions',
250  [ $module, $params, &$options ]
251  );
252  }
253 
254  public function onApiQuery__moduleManager( $moduleManager ) {
255  return $this->container->run(
256  'ApiQuery::moduleManager',
257  [ $moduleManager ]
258  );
259  }
260 
261  public function onApiRsdServiceApis( &$apis ) {
262  return $this->container->run(
263  'ApiRsdServiceApis',
264  [ &$apis ]
265  );
266  }
267 
268  public function onApiValidatePassword( $module, &$r ) {
269  return $this->container->run(
270  'ApiValidatePassword',
271  [ $module, &$r ]
272  );
273  }
274 
275  public function onChangeAuthenticationDataAudit( $req, $status ) {
276  return $this->container->run(
277  'ChangeAuthenticationDataAudit',
278  [ $req, $status ]
279  );
280  }
281 
282  public function onEditFormPreloadText( &$text, $title ) {
283  return $this->container->run(
284  'EditFormPreloadText',
285  [ &$text, $title ]
286  );
287  }
288 
289  public function onFileUndeleteComplete( $title, $fileVersions, $user, $reason ) {
290  return $this->container->run(
291  'FileUndeleteComplete',
292  [ $title, $fileVersions, $user, $reason ]
293  );
294  }
295 
296  public function onGetLinkColours( $pagemap, &$classes, $title ) {
297  return $this->container->run(
298  'GetLinkColours',
299  [ $pagemap, &$classes, $title ]
300  );
301  }
302 
303  public function onImportSources( &$importSources ) {
304  return $this->container->run(
305  'ImportSources',
306  [ &$importSources ]
307  );
308  }
309 
310  public function onLanguageLinks( $title, &$links, &$linkFlags ) {
311  return $this->container->run(
312  'LanguageLinks',
313  [ $title, &$links, &$linkFlags ]
314  );
315  }
316 
317  public function onOutputPageCheckLastModified( &$modifiedTimes, $out ) {
318  return $this->container->run(
319  'OutputPageCheckLastModified',
320  [ &$modifiedTimes, $out ]
321  );
322  }
323 
324  public function onRequestHasSameOriginSecurity( $request ) {
325  return $this->container->run(
326  'RequestHasSameOriginSecurity',
327  [ $request ]
328  );
329  }
330 
331  public function onUserLoginComplete( $user, &$inject_html, $direct ) {
332  return $this->container->run(
333  'UserLoginComplete',
334  [ $user, &$inject_html, $direct ]
335  );
336  }
337 
338  public function onUserLogoutComplete( $user, &$inject_html, $oldName ) {
339  return $this->container->run(
340  'UserLogoutComplete',
341  [ $user, &$inject_html, $oldName ]
342  );
343  }
344 }
MediaWiki\Api\ApiHookRunner\onUserLoginComplete
onUserLoginComplete( $user, &$inject_html, $direct)
Use this hook to show custom content after a user has logged in via the web interface.
Definition: ApiHookRunner.php:331
MediaWiki\Api\Hook\APIGetAllowedParamsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIGetAllowedParamsHook.php:14
MediaWiki\Api\ApiHookRunner\onApiCheckCanExecute
onApiCheckCanExecute( $module, $user, &$message)
This hook is called during ApiMain::checkCanExecute.
Definition: ApiHookRunner.php:69
MediaWiki\Api\ApiHookRunner\onApiMaxLagInfo
onApiMaxLagInfo(&$lagInfo)
This hook is called when lag information is being requested via API.
Definition: ApiHookRunner.php:148
MediaWiki\Api\Hook\APIQuerySiteInfoGeneralInfoHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIQuerySiteInfoGeneralInfoHook.php:14
MediaWiki\Api\Hook\APIAfterExecuteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIAfterExecuteHook.php:14
MediaWiki\Api\ApiHookRunner\onAPIQueryGeneratorAfterExecute
onAPIQueryGeneratorAfterExecute( $module, $resultPageSet)
This hook is called after calling the executeGenerator() method of an action=query submodule.
Definition: ApiHookRunner.php:208
MediaWiki\SpecialPage\Hook\ChangeAuthenticationDataAuditHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ChangeAuthenticationDataAuditHook.php:15
MediaWiki\Api\ApiHookRunner\onLanguageLinks
onLanguageLinks( $title, &$links, &$linkFlags)
Use this hook to manipulate a page's language links.
Definition: ApiHookRunner.php:310
MediaWiki\Api\ApiHookRunner\onApiRsdServiceApis
onApiRsdServiceApis(&$apis)
Use this hook to add or remove APIs from the RSD services list.
Definition: ApiHookRunner.php:261
MediaWiki\Api\Hook\ApiFeedContributions__feedItemHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiFeedContributions__feedItemHook.php:17
MediaWiki\Api\ApiHookRunner\onApiQueryWatchlistPrepareWatchedItemQueryServiceOptions
onApiQueryWatchlistPrepareWatchedItemQueryServiceOptions( $module, $params, &$options)
Use this hook to populate the options to be passed from ApiQueryWatchlist to WatchedItemQueryService.
Definition: ApiHookRunner.php:245
MediaWiki\Api\Hook\ApiMaxLagInfoHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiMaxLagInfoHook.php:12
MediaWiki\Api\Hook\ApiRsdServiceApisHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiRsdServiceApisHook.php:12
MediaWiki\Api\ApiHookRunner\onApiMakeParserOptions
onApiMakeParserOptions( $options, $title, $params, $module, &$reset, &$suppressCache)
This hook is called from ApiParse and ApiExpandTemplates to allow extensions to adjust the ParserOpti...
Definition: ApiHookRunner.php:139
MediaWiki\Api\ApiHookRunner\onApiValidatePassword
onApiValidatePassword( $module, &$r)
This hook is called from ApiValidatePassword.
Definition: ApiHookRunner.php:268
MediaWiki\Api\Hook\APIQueryAfterExecuteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIQueryAfterExecuteHook.php:14
MediaWiki\Api\ApiHookRunner\onAPIGetParamDescriptionMessages
onAPIGetParamDescriptionMessages( $module, &$msg)
Use this hook to modify a module's parameter descriptions.
Definition: ApiHookRunner.php:111
MediaWiki\Hook\UserLoginCompleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: UserLoginCompleteHook.php:14
MediaWiki\Api\ApiHookRunner\onApiQueryBaseBeforeQuery
onApiQueryBaseBeforeQuery( $module, &$tables, &$fields, &$conds, &$query_options, &$join_conds, &$hookData)
This hook is called for (some) API query modules before a database query is made.
Definition: ApiHookRunner.php:191
MediaWiki\Hook\EditFormPreloadTextHook
This is a hook handler interface, see docs/Hooks.md.
Definition: EditFormPreloadTextHook.php:14
MediaWiki\Api\ApiHookRunner\onOutputPageCheckLastModified
onOutputPageCheckLastModified(&$modifiedTimes, $out)
This hook is called when checking if the page has been modified since the last visit.
Definition: ApiHookRunner.php:317
MediaWiki\Hook\ImportSourcesHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ImportSourcesHook.php:12
MediaWiki\Api\Hook\APIGetParamDescriptionMessagesHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIGetParamDescriptionMessagesHook.php:15
MediaWiki\Api\Hook\ApiOpenSearchSuggestHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiOpenSearchSuggestHook.php:12
MediaWiki\Api\Hook\ApiQueryBaseProcessRowHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryBaseProcessRowHook.php:15
MediaWiki\Api\ApiHookRunner\onApiOpenSearchSuggest
onApiOpenSearchSuggest(&$results)
This hook is called when constructing the OpenSearch results.
Definition: ApiHookRunner.php:156
MediaWiki\Hook\LanguageLinksHook
This is a hook handler interface, see docs/Hooks.md.
Definition: LanguageLinksHook.php:14
MediaWiki\Api\Hook\APIHelpModifyOutputHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIHelpModifyOutputHook.php:14
MediaWiki\Api\Hook\ApiQueryBaseBeforeQueryHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryBaseBeforeQueryHook.php:14
MediaWiki\Api\Hook\ApiQueryWatchlistPrepareWatchedItemQueryServiceOptionsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryWatchlistPrepareWatchedItemQueryServiceOptionsHook.php:15
MediaWiki\Api\ApiHookRunner\onChangeAuthenticationDataAudit
onChangeAuthenticationDataAudit( $req, $status)
This hook is called when a user changes their password.
Definition: ApiHookRunner.php:275
MediaWiki\Api\ApiHookRunner\onRequestHasSameOriginSecurity
onRequestHasSameOriginSecurity( $request)
Use this hook to determine if the request is somehow flagged to lack same-origin security.
Definition: ApiHookRunner.php:324
MediaWiki\Api\ApiHookRunner
This class provides an implementation of the hook interfaces used by the core Action API,...
Definition: ApiHookRunner.php:54
MediaWiki\Hook\OutputPageCheckLastModifiedHook
This is a hook handler interface, see docs/Hooks.md.
Definition: OutputPageCheckLastModifiedHook.php:14
MediaWiki\Api\Hook\ApiParseMakeOutputPageHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiParseMakeOutputPageHook.php:15
MediaWiki\Api\Hook\RequestHasSameOriginSecurityHook
This is a hook handler interface, see docs/Hooks.md.
Definition: RequestHasSameOriginSecurityHook.php:14
MediaWiki\Api\ApiHookRunner\onAPIAfterExecute
onAPIAfterExecute( $module)
This hook is called after calling the execute() method of an API module.
Definition: ApiHookRunner.php:62
MediaWiki\Api\ApiHookRunner\__construct
__construct(HookContainer $container)
Definition: ApiHookRunner.php:58
MediaWiki\Api\Hook\ApiQuery__moduleManagerHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQuery__moduleManagerHook.php:15
MediaWiki\Api\Hook\ApiMain__moduleManagerHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiMain__moduleManagerHook.php:15
MediaWiki\Api\ApiHookRunner\onAPIHelpModifyOutput
onAPIHelpModifyOutput( $module, &$help, $options, &$tocData)
Use this hook to modify an API module's help output.
Definition: ApiHookRunner.php:118
MediaWiki\Api\Hook\ApiQueryTokensRegisterTypesHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryTokensRegisterTypesHook.php:12
MediaWiki\Api\ApiHookRunner\onApiParseMakeOutputPage
onApiParseMakeOutputPage( $module, $output)
This hook is called when preparing the OutputPage object for ApiParse.
Definition: ApiHookRunner.php:170
MediaWiki\Api\ApiHookRunner\onAPIQuerySiteInfoGeneralInfo
onAPIQuerySiteInfoGeneralInfo( $module, &$results)
Use this hook to add extra information to the site's general information.
Definition: ApiHookRunner.php:215
MediaWiki\Api\ApiHookRunner\onApiOptions
onApiOptions( $apiModule, $user, $changes, $resetKinds)
This hook is called by action=options before applying changes to user preferences.
Definition: ApiHookRunner.php:163
MediaWiki\Api\ApiHookRunner\onFileUndeleteComplete
onFileUndeleteComplete( $title, $fileVersions, $user, $reason)
This hook is called when a file is undeleted.
Definition: ApiHookRunner.php:289
MediaWiki\Api\Hook\ApiMain__onExceptionHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiMain__onExceptionHook.php:16
$title
$title
Definition: testCompression.php:38
MediaWiki\Hook\UserLogoutCompleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: UserLogoutCompleteHook.php:14
MediaWiki\Api\Hook\ApiCheckCanExecuteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiCheckCanExecuteHook.php:17
MediaWiki\Api\Hook\APIQueryGeneratorAfterExecuteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIQueryGeneratorAfterExecuteHook.php:15
MediaWiki\Api\ApiHookRunner\onEditFormPreloadText
onEditFormPreloadText(&$text, $title)
Use this hook to populate the edit form when creating pages.
Definition: ApiHookRunner.php:282
MediaWiki\Api\ApiHookRunner\onAPIGetAllowedParams
onAPIGetAllowedParams( $module, &$params, $flags)
Use this hook to modify a module's parameters.
Definition: ApiHookRunner.php:97
MediaWiki\Api\Hook\ApiQueryWatchlistExtractOutputDataHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryWatchlistExtractOutputDataHook.php:15
MediaWiki\Api\ApiHookRunner\onApiFormatHighlight
onApiFormatHighlight( $context, $text, $mime, $format)
Use this hook to syntax-highlight API pretty-printed output.
Definition: ApiHookRunner.php:90
MediaWiki\Api\ApiHookRunner\onApiQueryWatchlistExtractOutputData
onApiQueryWatchlistExtractOutputData( $module, $watchedItem, $recentChangeInfo, &$vals)
Use this hook to extract row data for ApiQueryWatchlist.
Definition: ApiHookRunner.php:236
MediaWiki\Api\ApiHookRunner\onApiQueryBaseAfterQuery
onApiQueryBaseAfterQuery( $module, $result, &$hookData)
This hook is called for (some) API query modules after the database query has returned.
Definition: ApiHookRunner.php:184
MediaWiki\Api
Definition: ApiHookRunner.php:3
MediaWiki\Api\ApiHookRunner\onGetLinkColours
onGetLinkColours( $pagemap, &$classes, $title)
Use this hook to modify the CSS class of an array of page links.
Definition: ApiHookRunner.php:296
MediaWiki\Api\ApiHookRunner\onApiQueryBaseProcessRow
onApiQueryBaseProcessRow( $module, $row, &$data, &$hookData)
This hook is called for (some) API query modules as each row of the database result is processed.
Definition: ApiHookRunner.php:201
MediaWiki\Api\ApiHookRunner\onApiFeedContributions__feedItem
onApiFeedContributions__feedItem( $row, $context, &$feedItem)
Use this hook to convert the result of ContribsPager into a FeedItem instance that ApiFeedContributio...
Definition: ApiHookRunner.php:83
MediaWiki\Api\ApiHookRunner\$container
HookContainer $container
Definition: ApiHookRunner.php:56
MediaWiki\Api\Hook\ApiDeprecationHelpHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiDeprecationHelpHook.php:14
MediaWiki\Api\Hook\ApiQueryBaseAfterQueryHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiQueryBaseAfterQueryHook.php:15
MediaWiki\Api\Hook\APIGetDescriptionMessagesHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIGetDescriptionMessagesHook.php:15
MediaWiki\Api\ApiHookRunner\onApiMain__onException
onApiMain__onException( $apiMain, $e)
This hook is called by ApiMain::executeActionWithErrorHandling() when an exception is thrown during A...
Definition: ApiHookRunner.php:132
MediaWiki\Hook\GetLinkColoursHook
This is a hook handler interface, see docs/Hooks.md.
Definition: GetLinkColoursHook.php:14
MediaWiki\Api\Hook\ApiOptionsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiOptionsHook.php:15
$help
$help
Definition: mcc.php:32
MediaWiki\HookContainer\HookContainer
HookContainer class.
Definition: HookContainer.php:45
MediaWiki\Api\ApiHookRunner\onAPIQuerySiteInfoStatisticsInfo
onAPIQuerySiteInfoStatisticsInfo(&$results)
Use this hook to add extra information to the site's statistics information.
Definition: ApiHookRunner.php:222
MediaWiki\Api\ApiHookRunner\onApiQueryTokensRegisterTypes
onApiQueryTokensRegisterTypes(&$salts)
Use this hook to add additional token types to action=query&meta=tokens.
Definition: ApiHookRunner.php:229
MediaWiki\Api\Hook\ApiValidatePasswordHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiValidatePasswordHook.php:14
MediaWiki\Api\Hook\APIQuerySiteInfoStatisticsInfoHook
This is a hook handler interface, see docs/Hooks.md.
Definition: APIQuerySiteInfoStatisticsInfoHook.php:12
MediaWiki\Hook\FileUndeleteCompleteHook
This is a hook handler interface, see docs/Hooks.md.
Definition: FileUndeleteCompleteHook.php:15
$mime
$mime
Definition: router.php:60
MediaWiki\Api\ApiHookRunner\onImportSources
onImportSources(&$importSources)
This hook is called when reading from the $wgImportSources configuration variable.
Definition: ApiHookRunner.php:303
MediaWiki\Api\ApiHookRunner\onApiDeprecationHelp
onApiDeprecationHelp(&$msgs)
Use this hook to add messages to the 'deprecation-help' warning generated from ApiBase::addDeprecatio...
Definition: ApiHookRunner.php:76
MediaWiki\$context
IContextSource $context
Definition: MediaWiki.php:39
MediaWiki\Api\ApiHookRunner\onApiQuery__moduleManager
onApiQuery__moduleManager( $moduleManager)
This hook is called when ApiQuery has finished initializing its module manager.
Definition: ApiHookRunner.php:254
MediaWiki\Api\Hook\ApiFormatHighlightHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiFormatHighlightHook.php:14
MediaWiki\Api\ApiHookRunner\onAPIQueryAfterExecute
onAPIQueryAfterExecute( $module)
This hook is called after calling the execute() method of an action=query submodule.
Definition: ApiHookRunner.php:177
MediaWiki\Api\ApiHookRunner\onUserLogoutComplete
onUserLogoutComplete( $user, &$inject_html, $oldName)
This hook is called after a user has logged out.
Definition: ApiHookRunner.php:338
MediaWiki\Api\ApiHookRunner\onApiMain__moduleManager
onApiMain__moduleManager( $moduleManager)
This hook is called when ApiMain has finished initializing its module manager.
Definition: ApiHookRunner.php:125
MediaWiki\Api\Hook\ApiMakeParserOptionsHook
This is a hook handler interface, see docs/Hooks.md.
Definition: ApiMakeParserOptionsHook.php:17
MediaWiki\Api\ApiHookRunner\onAPIGetDescriptionMessages
onAPIGetDescriptionMessages( $module, &$msg)
Use this hook to modify a module's help message.
Definition: ApiHookRunner.php:104