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