TwistPHP Documentation

handler

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

handlerRegister a handler for shutdown events, errors and exceptions. All default handlers are registered with this method by TwistPHP.

Parameters

Name Type Description
$strTypestringn/a
$strClassstringn/a
$strFunctionstringn/a
[$strEventKey = null]stringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$strType 'foo';
$strClass 'foo';
$strFunction 'foo';
$strEventKey null;

//Call the function handler with the example vars
$resRegister = new \Twist\Core\Models\Register();
$resRegister -> handler($strType$strClass$strFunction$strEventKey);