MediaWiki  master
Hooks Class Reference

Hooks class. More...

Static Public Member Functions

static clear ( $name)
 Clears hooks registered via Hooks::register(). More...
 
static getHandlers ( $name)
 Returns an array of all the event functions attached to a hook This combines functions registered via Hooks::register and with $wgHooks. More...
 
static isRegistered ( $name)
 Returns true if a hook has a function registered to it. More...
 
static register ( $name, $callback)
 Attach an event handler to a given hook. More...
 
static run ( $event, array $args=[], $deprecatedVersion=null)
 Call hook functions defined in Hooks::register and $wgHooks. More...
 
static runWithoutAbort ( $event, array $args=[], $deprecatedVersion=null)
 Call hook functions defined in Hooks::register and $wgHooks. More...
 

Static Protected Attributes

static $handlers = []
 Array of events mapped to an array of callbacks to be run when that event is triggered. More...
 

Static Private Member Functions

static callHook ( $event, $hook, array $args, $deprecatedVersion=null, &$fname=null)
 

Detailed Description

Hooks class.

Used to supersede $wgHooks, because globals are EVIL.

Since
1.18

Definition at line 34 of file Hooks.php.

Member Function Documentation

◆ callHook()

static Hooks::callHook (   $event,
  $hook,
array  $args,
  $deprecatedVersion = null,
$fname = null 
)
staticprivate
Parameters
string$eventEvent name
array | callable$hook
array$argsArray of parameters passed to hook functions
string | null$deprecatedVersion[optional]
string&$fname[optional] Readable name of hook [returned]
Returns
null|string|bool

Definition at line 116 of file Hooks.php.

References $fname, null, and wfDeprecated().

◆ clear()

static Hooks::clear (   $name)
static

Clears hooks registered via Hooks::register().

Does not touch $wgHooks. This is intended for use while testing and will fail if MW_PHPUNIT_TEST is not defined.

Parameters
string$nameThe name of the hook to clear.
Since
1.21
Exceptions
MWExceptionIf not in testing mode.

Definition at line 63 of file Hooks.php.

References $name.

Referenced by TestSetup\applyInitialConfig(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest\hookMailer(), HooksTest\setUp(), ParserTestRunner\setupInterwikis(), ParserTestRunner\staticSetup(), WatchActionTest\tearDown(), and HooksTest\testGetHandlers().

◆ getHandlers()

static Hooks::getHandlers (   $name)
static

Returns an array of all the event functions attached to a hook This combines functions registered via Hooks::register and with $wgHooks.

Since
1.18
Parameters
string$nameName of the hook
Returns
array

Definition at line 94 of file Hooks.php.

References $name, and $wgHooks.

Referenced by HooksTest\testGetHandlers(), and HooksTest\testNewStyleHookInteraction().

◆ isRegistered()

static Hooks::isRegistered (   $name)
static

Returns true if a hook has a function registered to it.

The function may have been registered either via Hooks::register or in $wgHooks.

Since
1.18
Parameters
string$nameName of hook
Returns
bool True if the hook has a function registered to it

Definition at line 80 of file Hooks.php.

References $name, and $wgHooks.

Referenced by MediaWiki\Linker\LinkRenderer\buildAElement(), Article\fetchRevisionRecord(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), MediaWiki\Linker\LinkRenderer\runLegacyBeginHook(), and HooksTest\testNewStyleHookInteraction().

◆ register()

◆ run()

static Hooks::run (   $event,
array  $args = [],
  $deprecatedVersion = null 
)
static

Call hook functions defined in Hooks::register and $wgHooks.

For the given hook event, fetch the array of hook events and process them. Determine the proper callback for each hook and then call the actual hook using the appropriate arguments. Finally, process the return value and return/throw accordingly.

For hook event that are not abortable through a handler's return value, use runWithoutAbort() instead.

Parameters
string$eventEvent name
array$argsArray of parameters passed to hook functions
string | null$deprecatedVersion[optional] Mark hook as deprecated with version number
Returns
bool True if no handler aborted the hook
Exceptions
Exception
FatalError
MWException
Since
1.22 A hook function is not required to return a value for processing to continue. Not returning a value (or explicitly returning null) is equivalent to returning true.

Definition at line 200 of file Hooks.php.

References $args, as, and null.

Referenced by Parser\__clone(), ExtensionsTestSuite\__construct(), UploadForm\__construct(), DatabaseOracle\__construct(), Languages\__construct(), ChangesListSpecialPage\__construct(), LinksUpdate\__construct(), DatabaseUpdater\__construct(), ApiQuery\__construct(), ApiMain\__construct(), RedirectSpecialArticle\__construct(), ResourceLoader\__construct(), EmailNotification\actuallyNotifyOnPageChange(), User\addAutopromoteOnceGroups(), OutputPage\addCategoryLinks(), ApiBase\addDeprecation(), User\addGroup(), OutputPage\addParserOutputMetadata(), Skin\afterContentHook(), SpecialPageLanguage\alterForm(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendStatistics(), ExternalUserNames\applyPrefix(), SpecialChangeEmail\attemptChange(), EditPage\attemptSave(), SearchEngine\augmentSearchResults(), MediaWiki\Auth\AuthManager\autoCreateUser(), MediaWiki\Auth\AuthManager\beginAuthentication(), Skin\bottomScripts(), MediaWiki\Linker\LinkRenderer\buildAElement(), SkinTemplate\buildContentNavigationUrls(), ProtectionForm\buildForm(), SkinTemplate\buildNavUrls(), SpecialEditWatchlist\buildRemoveLine(), Skin\buildSidebar(), ChangeTags\canAddTagsAccompanyingChange(), ContentHandler\canBeUsedOn(), ChangeTags\canCreateTag(), ChangeTags\canDeleteTag(), User\canSendEmail(), EmailNotification\canSendUserTalkEmail(), Autopromote\checkCondition(), ApiMain\checkConditionalRequestHeaders(), ApiMain\checkExecutePermissions(), OutputPage\checkLastModified(), User\checkPasswordValidity(), Title\checkPermissionHooks(), MovePage\checkPermissions(), Title\checkQuickPermissions(), Title\checkReadPermissions(), CleanupUsersWithNoId\cleanup(), User\clearNotification(), Parser\clearState(), ApiFormatBase\closePrinter(), WikiPage\commitRollback(), SearchEngine\completionSearchBackend(), Article\confirmDelete(), User\confirmEmail(), MediaWiki\Auth\AuthManager\continueAccountCreation(), MediaWiki\Auth\AuthManager\continueAuthentication(), AbstractContent\convert(), ContentHandler\createDifferenceEngine(), UploadBase\createFromRequest(), ChangeTags\deleteTagEverywhere(), EditPage\displayViewSourcePage(), Block\doAutoblock(), UsersPager\doBatchLookups(), HistoryPager\doBatchLookups(), CategoryViewer\doCategoryQuery(), MediaWiki\Storage\PageUpdater\doCreate(), FileDeleteForm\doDelete(), Article\doDelete(), WikiPage\doDeleteArticleBatched(), WikiPage\doDeleteArticleReal(), Skin\doEditSectionLink(), WikiImporter\doImport(), RecentChange\doMarkPatrolled(), MediaWiki\Storage\PageUpdater\doModify(), RevDelRevisionList\doPostCommitUpdates(), WikiPage\doPurge(), RefreshLinks\doRefreshLinks(), Block\doRetroactiveAutoblock(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), TransformationalImageHandler\doTransform(), WatchAction\doUnwatch(), LinksUpdate\doUpdate(), WikiPage\doUpdateRestrictions(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), LinkHolderArray\doVariants(), WikiPage\doViewUpdates(), WatchAction\doWatch(), WikiExporter\dumpPages(), EditPage\edit(), MediaWikiPHPUnitTestListener\endTest(), ApiValidatePassword\execute(), ApiUndelete\execute(), ApiEditPage\execute(), ApiLogout\execute(), ApiExpandTemplates\execute(), ApiChangeAuthenticationData\execute(), SpecialLog\execute(), ApiOptions\execute(), SpecialStatistics\execute(), SpecialUserLogout\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), BenchmarkHooks\execute(), ApiParse\execute(), ApiRemoveAuthenticationData\execute(), CleanupPreferences\execute(), SpecialImport\execute(), ApiLogin\execute(), ApiOpenSearch\execute(), SpecialSearch\execute(), PasswordReset\execute(), SpecialUpload\execute(), ApiQuery\execute(), ApiMain\executeAction(), ApiPageSet\executeInternal(), Title\exists(), ApiQueryWatchlist\extractOutputData(), ApiQueryInfo\extractPageInfo(), Collation\factory(), WikiPage\factory(), ApiFeedContributions\feedItem(), FormatMetadata\fetchExtendedMetadata(), Article\fetchRevisionRecord(), AuthManagerSpecialPage\fieldInfoToFormDescriptor(), WikiImporter\finishImportPage(), Parser\firstCallInit(), Linker\formatAutocomments(), Parser\formatHeadings(), UsersPager\formatRow(), DeletedContribsPager\formatRow(), SpecialNewpages\formatRow(), ContribsPager\formatRow(), File\generateAndSaveThumb(), CategoryViewer\generateLink(), MediaWiki\Widget\Search\FullSearchResultWidget\generateMainLinkHtml(), ParserCache\get(), MessageCache\get(), LegacyLogFormatter\getActionLinks(), BaseTemplate\getAfterPortlet(), ApiImport\getAllowedImportSources(), User\getAllRights(), ChangesList\getArticleLink(), MediaWiki\Storage\PageUpdater\getAtomicSectionUpdate(), Autopromote\getAutopromoteGroups(), User\getBlockedStatus(), OutputPage\getCacheVaryCookies(), MWNamespace\getCanonicalNamespaces(), Title\getCanonicalURL(), Title\getCategorySortkey(), Title\getCdnUrls(), CheckLanguageCLI\getCheckBlacklist(), EditPage\getCheckboxesDefinition(), BacklinkCache\getConditions(), ResourceLoaderStartUpModule\getConfigSettings(), ContentHandler\getContentModels(), Skin\getCopyright(), EditPage\getCopyrightWarning(), ContentHandler\getDataForSearchIndex(), Revision\MainSlotRoleHandler\getDefaultModel(), User\getDefaultOptions(), UsersPager\getDefaultQuery(), ParserOptions\getDefaults(), WikiPage\getDeletionUpdates(), ResourceLoaderForeignApiModule\getDependencies(), HistoryAction\getDescription(), DifferenceEngine\getDiffBody(), MagicWordFactory\getDoubleUnderscoreArray(), EditPage\getEditButtons(), Title\getEditNotices(), EditPage\getEditToolbar(), User\getEffectiveGroups(), User\getEmail(), User\getEmailAuthenticationTimestamp(), FormatMetadata\getExtendedMetadataFromHook(), WatchedItemQueryService\getExtensions(), SpecialVersion\getExtensionTypes(), LogEventsList\getExtraInputsDesc(), SpecialRecentChanges\getExtraOptions(), ApiBase\getFinalDescription(), ApiBase\getFinalParamDescription(), ApiBase\getFinalParams(), FormAction\getForm(), FormSpecialPage\getForm(), SpecialContributions\getForm(), MediaWiki\Preferences\DefaultPreferencesFactory\getFormDescriptor(), SpecialBlock\getFormFields(), ContentHandler\getForModelID(), Title\getFullURL(), User\getGlobalBlock(), OutputPage\getHeadLinksArray(), ApiHelp\getHelpInternal(), LocalFile\getHistory(), Language\getHumanTimestamp(), SpecialUpload\getInitialPageText(), Title\getInternalURL(), OutputPage\getJSVars(), RequestContext\getLanguage(), SkinTemplate\getLanguages(), PreferencesFormOOUI\getLegend(), IRCColourfulRCFeedFormatter\getLine(), EnhancedChangesList\getLineData(), Title\getLocalURL(), EnhancedChangesList\getLogText(), SpecialLog\getLogTypesOnUser(), DifferenceEngine\getMarkPatrolledLinkInfo(), Language\getMessagesFileName(), MediaHandler\getMetadataVersion(), MessageCache\getMsgFromNamespace(), Language\getNamespaces(), SearchNearMatcher\getNearMatch(), SearchNearMatcher\getNearMatchInternal(), User\getNewMessageLinks(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider\getNewPasswordExpiry(), Skin\getNewtalks(), SpecialEditWatchlist\getNormalForm(), UsersPager\getPageHeader(), ContentHandler\getPageLanguage(), MediaWiki\Special\SpecialPageFactory\getPageList(), QueryPage\getPages(), AbstractContent\getParserOutput(), WebRequest\getPathInfo(), SpecialEmailUser\getPermissionsError(), UserPasswordPolicy\getPoliciesForUser(), Skin\getPoweredBy(), LanguageConverter\getPreferredVariant(), BacklinkCache\getPrefix(), EditPage\getPreviewLimitReport(), EditPage\getPreviewText(), NewPagesPager\getQueryInfo(), ShortPagesPage\getQueryInfo(), AncientPagesPage\getQueryInfo(), LonelyPagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), UsersPager\getQueryInfo(), RandomPage\getQueryInfo(), ContribsPager\getQueryInfo(), HistoryPager\getQueryInfo(), RandomPage\getRandomTitle(), MWTimestamp\getRelativeTimestamp(), Title\getRestrictionTypes(), User\getRights(), ApiRsd\getRsdApiList(), ResourceLoaderJqueryMsgModule\getScript(), SearchEngine\getSearchIndexFields(), SpecialSearch\getSearchProfiles(), AbstractContent\getSecondaryDataUpdates(), MediaWiki\Storage\DerivedPageDataUpdater\getSecondaryDataUpdates(), BaseTemplate\getSidebar(), Skin\getSiteNotice(), RequestContext\getSkin(), ContentHandler\getSlotDiffRenderer(), UploadForm\getSourceSection(), ApiQueryRevisions\getTokenFunctions(), ApiQueryRecentChanges\getTokenFunctions(), ApiQueryUsers\getTokenFunctions(), ApiQueryInfo\getTokenFunctions(), SpecialResetTokens\getTokensList(), ApiTokens\getTokenTypes(), ApiQueryTokens\getTokenTypeSalts(), BaseTemplate\getToolbox(), SpecialContributions\getUserLinks(), LoginHelper\getValidErrorMessages(), MagicWordFactory\getVariableIDs(), Parser\getVariableValue(), GitInfo\getViewers(), SpecialVersion\getwgVersionLinked(), SpecialSearch\goResult(), ApiMain\handleException(), WikiImporter\handleLogItem(), WikiImporter\handlePage(), WikiImporter\handleRevision(), EditPage\handleStatus(), WikiImporter\handleUpload(), OutputPage\headElement(), HistoryPager\historyLine(), ImageHistoryList\imageHistoryLine(), EditPage\importFormData(), LinksUpdate\incrTableUpdate(), ChangesList\initChangesListRows(), SearchResult\initFromTitle(), MediaWiki\initializeArticle(), MediaWiki\Auth\AuthManagerAuthPlugin\initUser(), Revision\RevisionStore\insertRevisionOn(), MediaWikiTestCase\installMockMwServices(), EditPage\internalAttemptSave(), Parser\internalParse(), Parser\internalParseHalfParsed(), User\invalidateEmail(), UploadFromUrl\isAllowedUrl(), Title\isAlwaysKnown(), User\isBlockedFrom(), User\isBot(), User\isEmailConfirmed(), User\isEveryoneAllowed(), Article\isFileCacheable(), User\isHidden(), TransformationalImageHandler\isImageAreaOkForThumbnaling(), User\isLocked(), MWNamespace\isMovable(), Title\isMovable(), ProxyLookup\isTrustedProxy(), User\isUsableName(), MovePage\isValidMove(), ApiMain\lacksSameOriginSecurity(), SpecialWhatLinksHere\listItem(), ChangeTags\listSoftwareActivatedTags(), ChangeTags\listSoftwareDefinedTags(), ParserTestRunner\listTables(), MediaWiki\Interwiki\ClassicInterwikiLookup\load(), User\load(), User\loadDefaults(), ImagePage\loadFile(), User\loadFromDatabase(), User\loadFromSession(), ImageGalleryBase\loadModes(), DifferenceEngine\loadNewText(), User\loadOptions(), DifferenceEngine\loadRevisionIds(), MediaWiki\Session\SessionManager\loadSessionInfoFromStore(), DifferenceEngine\loadText(), MWExceptionHandler\logError(), MWExceptionHandler\logException(), BotPassword\loginHook(), LogEventsList\logLine(), User\logout(), MediaWiki\main(), ContentSecurityPolicy\makeCSPDirectives(), Linker\makeExternalImage(), Linker\makeExternalLink(), Parser\makeImage(), Linker\makeImageLink(), Parser\makeLimitReport(), Linker\makeMediaLinkFile(), ApiParse\makeParserOptions(), MediaWiki\Shell\Shell\makeScriptCommand(), Linker\makeSelfLinkObj(), DifferenceEngine\markPatrolledLink(), MergeHistory\merge(), MovePage\move(), MovePage\moveToInternal(), ChangesList\newFromContext(), UserArray\newFromResult(), TitleArray\newFromResult(), Article\newFromTitle(), MediaWiki\MediaWikiServices\newInstance(), EditPage\noSuchSectionPage(), SpecialChangeCredentials\onAuthChangeFormFields(), SpecialChangeContentModel\onSubmit(), RawAction\onView(), InfoAction\onView(), HistoryAction\onView(), XmlDumpWriter\openPage(), ImagePage\openShowImage(), ParserOptions\optionsHash(), MediaWiki\Widget\Search\SearchFormWidget\optionsHtml(), OutputPage\output(), WikiPage\pageData(), Parser\parse(), ApiStashEdit\parseAndStash(), SearchEngine\parseNamespacePrefixes(), MediaWiki\performAction(), AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\performRequest(), UploadBase\performUpload(), MediaWiki\Session\CookieSessionProvider\persistSession(), ParserTestRunner\perTestSetup(), User\pingLimiter(), MediaWiki\Widget\Search\SearchFormWidget\powerSearchBox(), Skin\preloadExistence(), MediaWiki\Storage\DerivedPageDataUpdater\prepareContent(), SkinTemplate\prepareQuickTemplate(), Parser\preprocess(), SpecialBlock\preText(), SpecialBlock\processForm(), ApiQueryBase\processRow(), SpecialUnblock\processUnblock(), SpecialUpload\processUpload(), RecentChangesUpdateJob\purgeExpiredRows(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbnails(), DeletedContribsPager\reallyDoQuery(), ContribsPager\reallyDoQuery(), LocalisationCache\recache(), EnhancedChangesList\recentChangesBlockLine(), OldChangesList\recentChangesLine(), LocalFile\recordUpload2(), Parser\recursiveTagParse(), MessageCache\refreshAndReplaceInternal(), SpecialWatchlist\registerFilters(), ChangesListSpecialPage\registerFilters(), ResourceLoader\registerTestModules(), User\removeGroup(), MediaWiki\Widget\Search\FullSearchResultWidget\render(), Parser\renderImageGallery(), DifferenceEngine\renderNewRevision(), LinkHolderArray\replaceInternal(), Parser\replaceInternalLinks2(), WikitextContent\replaceSection(), ImportReporter\reportPage(), User\requiresHTTPS(), User\resetOptions(), ApiQueryWatchlist\run(), SpecialPage\run(), MediaWiki\Linker\LinkRenderer\runBeginHook(), MediaWiki\Linker\LinkRenderer\runLegacyBeginHook(), ChangesListSpecialPage\runMainQueryHook(), EditPage\runPostMergeFilters(), UploadBase\runUploadStashFileHook(), SpecialEditWatchlist\runWatchUnwatchCompleteHook(), ProtectionForm\save(), ParserCache\save(), RecentChange\save(), MediaWiki\Session\SessionBackend\save(), MediaWiki\Preferences\DefaultPreferencesFactory\saveFormData(), User\saveOptions(), MediaWiki\Storage\PageUpdater\saveRevision(), User\saveSettings(), SearchEngineConfig\searchableNamespaces(), PrefixSearch\searchBackend(), MediaWiki\Auth\AuthManager\securitySensitiveOperationStatus(), ApiQueryBase\select(), UserMailer\send(), SpecialEmailUser\sendEmailForm(), UserMailer\sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendNewAccountEmail(), WebResponse\setCookie(), User\setEmail(), User\setEmailAuthenticationTimestamp(), Article\setOldSubtitle(), MediaWiki\Auth\AuthManager\setSessionDataForUser(), SpecialNewpages\setup(), MediaWikiTestCase\setupTestDB(), EditAction\show(), EditPage\showConflict(), SpecialSearch\showCreateLink(), DifferenceEngine\showDiff(), EditPage\showDiff(), DifferenceEngine\showDiffPage(), EditPage\showEditForm(), SpecialUndelete\showHistory(), SpecialAutoblockList\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), LogEventsList\showLogExtract(), ProtectionForm\showLogExtract(), Article\showMissingArticle(), Article\showPatrolFooter(), EditPage\showPreview(), Article\showRedirectedFromHeader(), SpecialSearch\showResults(), LoginHelper\showReturnToPage(), SpecialUndelete\showRevision(), EditPage\showStandardInputs(), ImagePage\showTOC(), EditPage\showTosSummary(), Article\showViewFooter(), SpecialVersion\softwareInformation(), MediaWikiPHPUnitTestListener\startTest(), Parser\statelessFetchTemplate(), SpecialEmailUser\submit(), Skin\subPageSubtitle(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), SkinTemplate\tabAction(), MediaWikiTestCase\teardownTestDB(), HooksTest\testCallHook_Deprecated(), HooksTest\testCallHook_FalseHook(), HooksTest\testCallHook_UnknownDatatype(), HooksTest\testFalseReturn(), HooksTest\testFatalError(), MediaWiki\Auth\ThrottlePreAuthenticationProvider\testForAccountCreation(), HooksTest\testNewStyleHookInteraction(), HooksTest\testNewStyleHooks(), HooksTest\testNullReturn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnLocalUserCreated(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserSaveSettings(), HooksTest\testUncallableFunction(), TraditionalImageGallery\toHTML(), ThumbnailImage\toHtml(), WikiPage\triggerOpportunisticLinksUpdate(), MediaWiki\tryNormaliseRedirect(), AuthManagerSpecialPage\trySubmit(), PageArchive\undelete(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), WikiPage\updateCategoryCounts(), ChangeTags\updateTags(), MediaWiki\Auth\AuthManagerAuthPlugin\updateUser(), HTMLFileCache\useFileCache(), Linker\userToolLinks(), Sanitizer\validateEmail(), UploadBase\verifyFile(), UploadBase\verifyUpload(), CategoryPage\view(), ImagePage\view(), Article\view(), wfCanIPUseHTTPS(), wfIsBadImage(), wfShellWikiCmd(), and XmlDumpWriter\writeRevision().

◆ runWithoutAbort()

static Hooks::runWithoutAbort (   $event,
array  $args = [],
  $deprecatedVersion = null 
)
static

Call hook functions defined in Hooks::register and $wgHooks.

Parameters
string$eventEvent name
array$argsArray of parameters passed to hook functions
string | null$deprecatedVersion[optional] Mark hook as deprecated with version number
Returns
bool Always true
Exceptions
MWExceptionIf a callback is invalid, unknown
UnexpectedValueExceptionIf a callback returns an abort value.
Since
1.30

Definition at line 231 of file Hooks.php.

References $args, $fname, as, and null.

Referenced by OutputPage\addParserOutputMetadata(), OutputPage\addParserOutputText(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildPersonalUrls(), ApiMain\getMaxLag(), ParserOutput\getText(), OutputPage\output(), HooksTest\testRunWithoutAbort(), and HooksTest\testRunWithoutAbortWarning().

Member Data Documentation

◆ $handlers

Hooks::$handlers = []
staticprotected

Array of events mapped to an array of callbacks to be run when that event is triggered.

Definition at line 39 of file Hooks.php.


The documentation for this class was generated from the following file: