File path: dist/twist/Classes/Shutdown.class.php
Namespace: Twist\Classes
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.
<?php
//Call the function callEvents with the example vars
\Twist\Classes\Shutdown::callEvents();
Method | Access | Returns |
---|---|---|
enableHandler | static | void |
registerEvent | static | void |
callEvents | static | void |
cancelEvent | static | void |
cancelEvents | static | void |