TwistPHP Documentation

register

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

registerRegister a hook to extend framework or package functionality

Parameters

Name Type Description
$strHookstringn/a
$mxdUniqueKeymixedn/a
$mxdDatamixedn/a
[$blPermanent = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

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

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