class vB_Shutdown

Class to handle shutdown

Traits

Properties

static protected vB_Cache_Observer $instance A reference to the singleton instance
protected $callbacks An array of shutdown callbacks to call on shutdown
protected $called

Methods

__sleep()

No description

__wakeup()

No description

__construct()

Constructor protected to enforce singleton use.

static vB_Shutdown
instance()

Returns singleton instance of self.

add(array $callback)

Add callback to be executed at shutdown

shutdown()

No description

setCalled()

No description

Details

in vB_Trait_NoSerialize at line 15
__sleep()

at line 102
__wakeup()

at line 42
protected __construct()

Constructor protected to enforce singleton use.

See also

instance()

at line 49
static vB_Shutdown instance()

Returns singleton instance of self.

Return Value

vB_Shutdown

at line 65
add(array $callback)

Add callback to be executed at shutdown

Parameters

array $callback
  • Call back to call on shutdown

at line 76
shutdown()

at line 107
setCalled()