MediaWiki  REL1_31
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 119 of file Hooks.php.

References $args, $fname, and wfDeprecated().

Referenced by run(), and runWithoutAbort().

◆ 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 66 of file Hooks.php.

References $name.

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

◆ 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 97 of file Hooks.php.

References $name, $wgHooks, and global.

Referenced by 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 83 of file Hooks.php.

References $name, $wgHooks, and global.

Referenced by MediaWiki\Linker\LinkRenderer\buildAElement(), 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 203 of file Hooks.php.

References $args, $retval, as, and callHook().

Referenced by Parser\__clone(), ApiMain\__construct(), RedirectSpecialArticle\__construct(), ChangesListSpecialPage\__construct(), Languages\__construct(), ExtensionsTestSuite\__construct(), ApiQuery\__construct(), UploadForm\__construct(), DatabaseOracle\__construct(), ResourceLoader\__construct(), DatabaseUpdater\__construct(), LinksUpdate\__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(), HistoryPager\doBatchLookups(), UsersPager\doBatchLookups(), CategoryViewer\doCategoryQuery(), WikiPage\doCreate(), Article\doDelete(), FileDeleteForm\doDelete(), WikiPage\doDeleteArticleReal(), WikiPage\doEditContent(), Skin\doEditSectionLink(), WikiPage\doEditUpdates(), WikiImporter\doImport(), Language\doMagicHook(), RecentChange\doMarkPatrolled(), WikiPage\doModify(), RevDelRevisionList\doPostCommitUpdates(), WikiPage\doPurge(), RefreshLinks\doRefreshLinks(), Block\doRetroactiveAutoblock(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), TransformationalImageHandler\doTransform(), WatchAction\doUnwatch(), LinksUpdate\doUpdate(), WikiPage\doUpdateRestrictions(), LinkHolderArray\doVariants(), WikiPage\doViewUpdates(), WatchAction\doWatch(), WikiExporter\dumpFrom(), EditPage\edit(), SpecialContributions\execute(), SpecialEmailUser\execute(), SpecialImport\execute(), SpecialLog\execute(), SpecialSearch\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), ApiChangeAuthenticationData\execute(), ApiEditPage\execute(), ApiExpandTemplates\execute(), ApiLogin\execute(), ApiLogout\execute(), ApiOpenSearch\execute(), ApiParse\execute(), ApiQuery\execute(), ApiRemoveAuthenticationData\execute(), ApiUndelete\execute(), ApiValidatePassword\execute(), BenchmarkHooks\execute(), CleanupPreferences\execute(), PasswordReset\execute(), ApiMain\executeAction(), ApiPageSet\executeInternal(), Title\exists(), ApiQueryWatchlist\extractOutputData(), ApiQueryInfo\extractPageInfo(), Collation\factory(), WikiPage\factory(), ApiFeedContributions\feedItem(), Article\fetchContentObject(), FormatMetadata\fetchExtendedMetadata(), AuthManagerSpecialPage\fieldInfoToFormDescriptor(), WikiImporter\finishImportPage(), Parser\firstCallInit(), Linker\formatAutocomments(), Parser\formatHeadings(), SpecialNewpages\formatRow(), ContribsPager\formatRow(), DeletedContribsPager\formatRow(), UsersPager\formatRow(), File\generateAndSaveThumb(), CategoryViewer\generateLink(), MediaWiki\Widget\Search\FullSearchResultWidget\generateMainLinkHtml(), ParserCache\get(), MessageCache\get(), LegacyLogFormatter\getActionLinks(), BaseTemplate\getAfterPortlet(), ApiImport\getAllowedImportSources(), User\getAllRights(), ChangesList\getArticleLink(), Autopromote\getAutopromoteGroups(), User\getBlockedStatus(), OutputPage\getCacheVaryCookies(), MWNamespace\getCanonicalNamespaces(), Title\getCanonicalURL(), Title\getCategorySortkey(), Title\getCdnUrls(), CheckLanguageCLI\getCheckBlacklist(), EditPage\getCheckboxesDefinition(), EditPage\getCheckboxesWidget(), BacklinkCache\getConditions(), ResourceLoaderStartUpModule\getConfigSettings(), ContentHandler\getContentModels(), Skin\getCopyright(), EditPage\getCopyrightWarning(), ChangesListSpecialPage\getCustomFilters(), SpecialRecentChanges\getCustomFilters(), SpecialWatchlist\getCustomFilters(), ContentHandler\getDataForSearchIndex(), ContentHandler\getDefaultModelFor(), User\getDefaultOptions(), UsersPager\getDefaultQuery(), ParserOptions\getDefaults(), WikiPage\getDeletionUpdates(), ResourceLoaderForeignApiModule\getDependencies(), DifferenceEngine\getDiffBody(), MagicWord\getDoubleUnderscoreArray(), EditPage\getEditButtons(), Title\getEditNotices(), EditPage\getEditToolbar(), User\getEffectiveGroups(), User\getEmail(), User\getEmailAuthenticationTimestamp(), FormatMetadata\getExtendedMetadataFromHook(), WatchedItemQueryService\getExtensions(), SpecialVersion\getExtensionTypes(), LogEventsList\getExtraInputs(), SpecialRecentChanges\getExtraOptions(), LoginSignupSpecialPage\getFakeTemplate(), 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(), User\getImplicitGroups(), SpecialUpload\getInitialPageText(), Title\getInternalURL(), OutputPage\getJSVars(), RequestContext\getLanguage(), SkinTemplate\getLanguages(), PreferencesForm\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(), SpecialPageFactory\getPageList(), QueryPage\getPages(), AbstractContent\getParserOutput(), WebRequest\getPathInfo(), SpecialEmailUser\getPermissionsError(), UserPasswordPolicy\getPoliciesForUser(), Skin\getPoweredBy(), LanguageConverter\getPreferredVariant(), BacklinkCache\getPrefix(), EditPage\getPreviewLimitReport(), EditPage\getPreviewText(), RandomPage\getQueryInfo(), HistoryPager\getQueryInfo(), ContribsPager\getQueryInfo(), NewPagesPager\getQueryInfo(), UsersPager\getQueryInfo(), LonelyPagesPage\getQueryInfo(), ShortPagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), RandomPage\getRandomTitle(), MWTimestamp\getRelativeTimestamp(), Title\getRestrictionTypes(), User\getRights(), ApiRsd\getRsdApiList(), ResourceLoaderJqueryMsgModule\getScript(), SearchEngine\getSearchIndexFields(), SpecialSearch\getSearchProfiles(), AbstractContent\getSecondaryDataUpdates(), BaseTemplate\getSidebar(), Skin\getSiteNotice(), RequestContext\getSkin(), UploadForm\getSourceSection(), Language\getSpecialPageAliases(), ApiQueryInfo\getTokenFunctions(), ApiQueryRecentChanges\getTokenFunctions(), ApiQueryRevisions\getTokenFunctions(), ApiQueryUsers\getTokenFunctions(), SpecialResetTokens\getTokensList(), ApiTokens\getTokenTypes(), ApiQueryTokens\getTokenTypeSalts(), BaseTemplate\getToolbox(), LoginHelper\getValidErrorMessages(), MagicWord\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\insertOn(), MediaWiki\Storage\RevisionStore\insertRevisionOn(), 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(), User\load(), MediaWiki\Interwiki\ClassicInterwikiLookup\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(), LogEventsList\logLine(), User\logout(), Linker\makeExternalImage(), Linker\makeExternalLink(), Parser\makeImage(), Linker\makeImageLink(), Parser\makeLimitReport(), Linker\makeMediaLinkFile(), ApiParse\makeParserOptions(), MediaWiki\Shell\Shell\makeScriptCommand(), Linker\makeSelfLinkObj(), DifferenceEngine\markPatrolledLink(), MediaWiki\maybeDoHttpsRedirect(), MergeHistory\merge(), MovePage\move(), MovePage\moveToInternal(), ChangesList\newFromContext(), TitleArray\newFromResult(), UserArray\newFromResult(), Article\newFromTitle(), MediaWiki\MediaWikiServices\newInstance(), SearchEngine\normalizeNamespaces(), EditPage\noSuchSectionPage(), SpecialChangeCredentials\onAuthChangeFormFields(), SpecialChangeContentModel\onSubmit(), HistoryAction\onView(), InfoAction\onView(), RawAction\onView(), XmlDumpWriter\openPage(), ImagePage\openShowImage(), ParserOptions\optionsHash(), MediaWiki\Widget\Search\SearchFormWidget\optionsHtml(), OutputPage\output(), MediaWikiTestCase\overrideMwServices(), WikiPage\pageData(), Parser\parse(), ApiStashEdit\parseAndStash(), MediaWiki\performAction(), AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\performRequest(), UploadBase\performUpload(), MediaWiki\Session\CookieSessionProvider\persistSession(), ParserTestRunner\perTestSetup(), User\pingLimiter(), MediaWiki\Widget\Search\SearchFormWidget\powerSearchBox(), Skin\preloadExistence(), WikiPage\prepareContentForEdit(), SkinTemplate\prepareQuickTemplate(), Parser\preprocess(), SpecialBlock\preText(), SpecialBlock\processForm(), ApiQueryBase\processRow(), SpecialUnblock\processUnblock(), SpecialUpload\processUpload(), RecentChangesUpdateJob\purgeExpiredRows(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbnails(), ContribsPager\reallyDoQuery(), DeletedContribsPager\reallyDoQuery(), LocalisationCache\recache(), EnhancedChangesList\recentChangesBlockLine(), OldChangesList\recentChangesLine(), LocalFile\recordUpload2(), Parser\recursiveTagParse(), ChangesListSpecialPage\registerFilters(), SpecialWatchlist\registerFilters(), ResourceLoader\registerTestModules(), User\removeGroup(), MediaWiki\Widget\Search\FullSearchResultWidget\render(), Parser\renderImageGallery(), DifferenceEngine\renderNewRevision(), MessageCache\replace(), LinkHolderArray\replaceInternal(), WikitextContent\replaceSection(), ImportReporter\reportPage(), User\requiresHTTPS(), User\resetOptions(), ApiQueryWatchlist\run(), SpecialPage\run(), MediaWiki\Linker\LinkRenderer\runBeginHook(), MediaWiki\Linker\LinkRenderer\runLegacyBeginHook(), ChangesListSpecialPage\runMainQueryHook(), SpecialRecentChanges\runMainQueryHook(), SpecialWatchlist\runMainQueryHook(), EditPage\runPostMergeFilters(), UploadBase\runUploadStashFileHook(), MediaWiki\Session\SessionBackend\save(), RecentChange\save(), ParserCache\save(), ProtectionForm\save(), MediaWiki\Preferences\DefaultPreferencesFactory\saveFormData(), User\saveOptions(), User\saveSettings(), PrefixSearch\search(), SearchEngineConfig\searchableNamespaces(), PrefixSearch\searchBackend(), MediaWiki\Auth\AuthManager\securitySensitiveOperationStatus(), ApiQueryBase\select(), UserMailer\send(), 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(), SpecialBookSources\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), ProtectionForm\showLogExtract(), LogEventsList\showLogExtract(), Article\showMissingArticle(), EditPage\showPreview(), Article\showRedirectedFromHeader(), SpecialSearch\showResults(), LoginHelper\showReturnToPage(), SpecialUndelete\showRevision(), EditPage\showStandardInputs(), ImagePage\showTOC(), EditPage\showTosSummary(), Article\showViewFooter(), SpecialVersion\softwareInformation(), Parser\statelessFetchTemplate(), SpecialEmailUser\submit(), Skin\subPageSubtitle(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), SkinTemplate\tabAction(), MediaWikiTestCase\teardownTestDB(), HooksTest\testFalseReturn(), HooksTest\testFatalError(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider\testForAccountCreation(), MediaWiki\Auth\ThrottlePreAuthenticationProvider\testForAccountCreation(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider\testForAuthentication(), HooksTest\testNewStyleHookInteraction(), HooksTest\testNewStyleHooks(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnLocalUserCreated(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserGroupsChanged(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserLoggedIn(), MediaWiki\Auth\AuthPluginPrimaryAuthenticationProviderTest\testOnUserSaveSettings(), HooksTest\testUncallableFunction(), MediaWiki\Auth\LegacyHookPreAuthenticationProvider\testUserForCreation(), ThumbnailImage\toHtml(), TraditionalImageGallery\toHTML(), WikiPage\triggerOpportunisticLinksUpdate(), MediaWiki\tryNormaliseRedirect(), AuthManagerSpecialPage\trySubmit(), PageArchive\undelete(), SpecialUndelete\undelete(), PageArchive\undeleteRevisions(), SpecialEditWatchlist\unwatchTitles(), WikiPage\updateCategoryCounts(), ChangeTags\updateTags(), MediaWiki\Auth\AuthManagerAuthPlugin\updateUser(), HTMLFileCache\useFileCache(), Linker\userToolLinks(), Sanitizer\validateEmail(), UploadBase\verifyFile(), UploadBase\verifyUpload(), Article\view(), CategoryPage\view(), ImagePage\view(), wfCanIPUseHTTPS(), wfIsBadImage(), wfRunHooks(), 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 234 of file Hooks.php.

References $args, $fname, $retval, as, and callHook().

Referenced by OutputPage\addParserOutputMetadata(), OutputPage\addParserOutputText(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildPersonalUrls(), 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: