vB_Shutdown
in package
Uses
vB_Trait_NoSerialize
Class to handle shutdown
Tags
Table of Contents
- $callbacks : mixed
- An array of shutdown callbacks to call on shutdown
- $called : mixed
- $instance : vB_Cache_Observer
- A reference to the singleton instance
- __serialize() : mixed
- __sleep() : mixed
- __unserialize() : mixed
- __wakeup() : mixed
- add() : mixed
- Add callback to be executed at shutdown
- instance() : vB_Shutdown
- Returns singleton instance of self.
- setCalled() : mixed
- shutdown() : mixed
- __construct() : mixed
- Constructor protected to enforce singleton use.
Properties
$callbacks
An array of shutdown callbacks to call on shutdown
protected
mixed
$callbacks
$called
protected
mixed
$called
= alse
$instance
A reference to the singleton instance
protected
static vB_Cache_Observer
$instance
Methods
__serialize()
public
__serialize() : mixed
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —__wakeup()
public
__wakeup() : mixed
Return values
mixed —add()
Add callback to be executed at shutdown
public
add(array<string|int, mixed> $callback) : mixed
Parameters
- $callback : array<string|int, mixed>
-
- Call back to call on shutdown
Return values
mixed —instance()
Returns singleton instance of self.
public
static instance() : vB_Shutdown
Return values
vB_Shutdown —setCalled()
public
setCalled() : mixed
Return values
mixed —shutdown()
public
shutdown() : mixed
Return values
mixed —__construct()
Constructor protected to enforce singleton use.
protected
__construct() : mixed