$hooks->addHook() $hooks->addHook(Wire $object, $method, $toObject) $hooks->addHook(Wire $object, $method, $toObject, $toMethod = null, array $options = []) | string | Hook a function/method to a hookable method call in this object | |
$hooks->allowPathHooks() $hooks->allowPathHooks() $hooks->allowPathHooks($allow = null) | bool | Get or set whether path hooks are allowed | |
$hooks->className() $hooks->className() $hooks->className() | string | @return string | |
$hooks->filterHooks() $hooks->filterHooks(array $hooks, string $property, $value) $hooks->filterHooks(array $hooks, string $property, $value) | array | Filter and return hooks matching given property and value | |
$hooks->filterPathHooks() $hooks->filterPathHooks(string $requestPath) $hooks->filterPathHooks(string $requestPath, bool $has = false) | array bool | Return path hooks that have potential to match given request path | |
$hooks->getAllLocalHooks() $hooks->getAllLocalHooks() $hooks->getAllLocalHooks() | array | Return the "all local hooks" cache | |
$hooks->getAllPathHooks() $hooks->getAllPathHooks() $hooks->getAllPathHooks() | array | Return all pending path hooks | |
$hooks->getClassParents() $hooks->getClassParents($object) $hooks->getClassParents($object, bool $cache = true) | array | Get an array of parent classes and interfaces for the given object | |
$hooks->getHooks() $hooks->getHooks(Wire $object) $hooks->getHooks(Wire $object, string $method = '', int $getHooks = 0) | array | Return all hooks associated with $object or method (if specified) | |
$hooks->getPathHookRedirect() $hooks->getPathHookRedirect() $hooks->getPathHookRedirect() | string | Return redirect URL required by an applicable path hook, or blank otherwise | |
$hooks->hasHook() $hooks->hasHook(Wire $object, string $method) $hooks->hasHook(Wire $object, string $method) | bool | Similar to isHooked(), returns true if the method or property hooked, false if it isn't. | |
$hooks->hasPathHooks() $hooks->hasPathHooks() $hooks->hasPathHooks(string $requestPath = '') | bool | Return whether or not any path hooks are pending | |
$hooks->isHooked() $hooks->isHooked(string $method) $hooks->isHooked(string $method, $instance = null) | bool | Returns true if the method/property hooked, false if it isn't. | |
$hooks->isMethodHooked() $hooks->isMethodHooked($class, string $method) $hooks->isMethodHooked($class, string $method) | bool | Similar to isHooked() method but also checks parent classes for the hooked method as well | |
$hooks->isPropertyHooked() $hooks->isPropertyHooked($class, string $property) $hooks->isPropertyHooked($class, string $property) | bool | Similar to isHooked() method but also checks parent classes for the hooked property as well | |
$hooks->removeHook() $hooks->removeHook(Wire $object, $hookID) $hooks->removeHook(Wire $object, $hookID) | Wire | Given a Hook ID provided by addHook() this removes the hook | |
$hooks->runHooks() $hooks->runHooks(Wire $object, string $method, array $arguments) $hooks->runHooks(Wire $object, string $method, array $arguments, $type = 'method') | array | Provides the implementation for calling hooks in ProcessWire | |