TwistPHP Documentation

storeHook

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

storeHookPermanently store a new hook

Parameters

Name Type Description
$strHookstringn/a
$mxdUniqueKeymixedn/a
$mxdDatamixedn/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';

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