Shutdown management class.
More...
|
static | request_shutdown () |
| Standard shutdown sequence.
|
|
|
static array | $callbacks = [] |
| list of custom callbacks
|
|
static bool | $registered = false |
| is this manager already registered?
|
|
static array | $signalcallbacks = [] |
| list of custom signal callbacks
|
|
Shutdown management class.
- Copyright
- 2013 Petr Skoda
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ initialize()
static core_shutdown_manager::initialize |
( |
| ) |
|
|
static |
Register self as main shutdown handler.
to be called from lib/setup.php only!
◆ register_function()
static core_shutdown_manager::register_function |
( |
|
$callback, |
|
|
array |
$params = null |
|
) |
| |
|
static |
Register custom shutdown function.
- Parameters
-
callable | $callback | |
array | $params | |
- Return values
-
◆ register_signal_handler()
static core_shutdown_manager::register_signal_handler |
( |
|
$callback, |
|
|
array |
$params = null |
|
) |
| |
|
static |
Register custom signal handler function.
If a handler returns false the signal will be ignored.
- Parameters
-
callable | $callback | |
array | $params | |
- Return values
-
◆ signal_handler()
static core_shutdown_manager::signal_handler |
( |
int |
$signo | ) |
|
|
static |
Signal handler for SIGINT, and SIGTERM.
- Parameters
-
int | $signo | The signal being handled |
The documentation for this class was generated from the following file: