TwistPHP Documentation

Register

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

Type: Model

Register — Register Shutdown and Event handlers, also handlers can be canceled if required

Example Usage

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

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

Method List

Method Access Returns
handlerpublicvoid
cancelHandlerpublicvoid
shutdownEventpublicvoid
cancelShutdownEventpublicvoid