Elgg  Version 5.1
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 14 of file ShutdownHandler.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Application$appApplication

Definition at line 28 of file ShutdownHandler.php.

Member Function Documentation

Elgg\Application\ShutdownHandler::__invoke ( )

{}

Definition at line 35 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::persistCaches ( )

Persist some of the core caches.

Returns
void

Definition at line 98 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 75 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::shutdownDatabase ( )

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

Returns
void

Definition at line 49 of file ShutdownHandler.php.

Member Data Documentation

Elgg\Application\ShutdownHandler::$app
protected

Definition at line 21 of file ShutdownHandler.php.


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