TwistPHP Documentation

Hooks

File path: dist/twist/Core/Models/Hooks.model.php
Namespace: Twist\Core\Models
Extends:

Type: Model

Hooks — Framework hooks that are used throughout the framework, see the docs for a full list of integrated hocks. Register a hook to add in new view tags or extend framework functionality. Custom hooks are available in some packages to all them to be extended easily. The default framework hooks are loaded in the construct

Example Usage

<?php
//Set the variables for the example
$strHook 'foo';
$mxdUniqueKey 'foo-123';
$blPermanent false;

//Call the function cancel with the example vars
$resHooks = new \Twist\Core\Models\Hooks();
$resHooks -> cancel($strHook$mxdUniqueKey$blPermanent);

Method List

Method Access Returns
__constructconstructvoid
registerpublicvoid
cancelpublicvoid
getpublicvoid
getAllpublicvoid
loadHooksprotectedvoid
storeHookprotectedvoid
removeHookprotectedvoid