File path: dist/twist/Core/Models/Hooks.model.php
Namespace: Twist\Core\Models
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
<?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 | Access | Returns |
---|---|---|
__construct | construct | void |
register | public | void |
cancel | public | void |
get | public | void |
getAll | public | void |
loadHooks | protected | void |
storeHook | protected | void |
removeHook | protected | void |