Elgg  Version 3.0
Public Member Functions | Protected Attributes | List of all members
Elgg\Application\ShutdownHandler Class Reference

Shutdown handler. More...

Public Member Functions

 __construct (Application $app)
 Constructor. More...
 
 __invoke ()
 {} More...
 
 shutdownDatabase ()
 Shutdown the database, execute delayed queries and do some logging. More...
 
 shutdownApplication ()
 Emits a shutdown:system event upon PHP shutdown, but before database connections are dropped. More...
 
 persistCaches ()
 Persist some of the core caches. More...
 

Protected Attributes

 $app
 

Detailed Description

Shutdown handler.

Definition at line 19 of file ShutdownHandler.php.

Constructor & Destructor Documentation

Elgg\Application\ShutdownHandler::__construct ( Application  $app)

Constructor.

Parameters
Application$appApplication

Definition at line 33 of file ShutdownHandler.php.

Member Function Documentation

Elgg\Application\ShutdownHandler::__invoke ( )

{}

Definition at line 40 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::persistCaches ( )

Persist some of the core caches.

Returns
void

Definition at line 103 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::shutdownApplication ( )

Emits a shutdown:system event upon PHP shutdown, but before database connections are dropped.

Register for the shutdown:system event to perform functions at the end of page loads.

Warning
Using this event to perform long-running functions is not very useful. Servers will hold pages until processing is done before sending them out to the browser.
See also
http://www.php.net/register-shutdown-function

Definition at line 80 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::shutdownDatabase ( )

Shutdown the database, execute delayed queries and do some logging.

Returns
void

Definition at line 54 of file ShutdownHandler.php.

Member Data Documentation

Elgg\Application\ShutdownHandler::$app
protected

Definition at line 26 of file ShutdownHandler.php.


The documentation for this class was generated from the following file: