TwistPHP Documentation

Shutdown

File path: dist/twist/Classes/Shutdown.class.php
Namespace: Twist\Classes
Extends:

Type: Class

Shutdown — Shutdown handler to call registered functions upon completion or failure of the PHP instance. The functions are run in the order that they are registered, using shutdown functions will help to improve page load time by completing tasks after the page has loaded. For example storing/removing cache files, updating last logged in data etc.

Example Usage

<?php
//Call the function callEvents with the example vars
\Twist\Classes\Shutdown::callEvents();

Method List

Method Access Returns
enableHandlerstaticvoid
registerEventstaticvoid
callEventsstaticvoid
cancelEventstaticvoid
cancelEventsstaticvoid