eZPublish  3.8
eZExecution Class Reference

Handles proper script execution, fatal error detection and handling. More...

Public Member Functions

 addCleanupHandler ($handler)
 
 addFatalErrorHandler ($handler)
 
 cleanExit ()
 
 cleanup ()
 
cleanupHandlers ()
 
 eZExecution ()
 
fatalErrorHandlers ()
 
 isCleanExit ()
 
 setCleanExit ()
 

Detailed Description

Handles proper script execution, fatal error detection and handling.

By registering a fatal error handler it's possible for the PHP script to catch fatal errors, such as "Call to a member function on a non-object".

By registering a cleanup handler it's possible to make sure the script can end properly.

Member Function Documentation

eZExecution::addCleanupHandler (   $handler)

Adds a cleanup handler to the end of the list, $handler must contain the name of the function to call. The function is called at the end of the script execution to do some cleanups.

Referenced by eZScript\initialize().

eZExecution::addFatalErrorHandler (   $handler)

Adds a fatal error handler to the end of the list, $handler must contain the name of the function to call. The handler will be called whenever a fatal error occurs, which usually happens when the script did not finish.

Referenced by eZScript\initialize().

eZExecution::cleanExit ( )
eZExecution::cleanup ( )

Calls the cleanup handlers to make sure that the script is ready to exit.

Referenced by cleanExit(), eZExecutionUncleanShutdownHandler(), eZScript\initialize(), eZDBInterface\reportError(), and eZScript\shutdown().

& eZExecution::cleanupHandlers ( )
Returns
An array with cleanup handlers.

Referenced by addCleanupHandler(), and cleanup().

eZExecution::eZExecution ( )

Constructor

& eZExecution::fatalErrorHandlers ( )
Returns
An array with fatal error handlers.

Referenced by addFatalErrorHandler(), and eZExecutionUncleanShutdownHandler().

eZExecution::isCleanExit ( )
Returns
true if the request finished properly.

Referenced by eZExecutionUncleanShutdownHandler().

eZExecution::setCleanExit ( )

Sets the clean exit flag to on, this notifies the exit handler that everything finished properly.

Referenced by cleanExit(), eZScript\initialize(), eZDBInterface\reportError(), and eZScript\shutdown().


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