Elgg  Version master
Public Member Functions | List of all members
Elgg\Application\ShutdownHandler Class Reference

Shutdown handler. More...

Public Member Functions

 __construct (protected 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...
 

Detailed Description

Shutdown handler.

Definition at line 14 of file ShutdownHandler.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
Application$appApplication

Definition at line 23 of file ShutdownHandler.php.

Member Function Documentation

Elgg\Application\ShutdownHandler::__invoke ( )

{}

Definition at line 29 of file ShutdownHandler.php.

Elgg\Application\ShutdownHandler::persistCaches ( )

Persist some of the core caches.

Returns
void

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

Elgg\Application\ShutdownHandler::shutdownDatabase ( )

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

Returns
void

Definition at line 43 of file ShutdownHandler.php.


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