PHP 클래스 eZExecution

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.
파일 보기 프로젝트 열기: ezsystems/ezpublish-legacy 1 사용 예제들

공개 메소드들

메소드 설명
addCleanupHandler ( $handler ) *! Adds a cleanup handler to the end of the list, \a $handler must contain the name of the function to call.
addFatalErrorHandler ( $handler ) *! Adds a fatal error handler to the end of the list, \a $handler must contain the name of the function to call.
cleanExit ( ) *! Sets the clean exit flag and exits the page.
cleanup ( ) *! Calls the cleanup handlers to make sure that the script is ready to exit.
cleanupHandlers ( ) *! \return An array with cleanup handlers.
defaultExceptionHandler ( $e ) : void Installs the default Exception handler
fatalErrorHandlers ( ) *! \return An array with fatal error handlers.
isCleanExit ( ) *! \return true if the request finished properly.
registerShutdownHandler ( $documentRoot = false ) *! Register ::uncleanShutdownHandler as shutdown function
setCleanExit ( $hasCleanExit = true ) *! Sets the clean exit flag to on, this notifies the exit handler that everything finished properly.
uncleanShutdownHandler ( ) *! Exit handler which called after the script is done, if it detects that eZ Publish did not exit cleanly it will issue an error message and display the debug.

메소드 상세

addCleanupHandler() 정적인 공개 메소드

The function is called at the end of the script execution to do some cleanups.
static public addCleanupHandler ( $handler )

addFatalErrorHandler() 정적인 공개 메소드

The handler will be called whenever a fatal error occurs, which usually happens when the script did not finish.
static public addFatalErrorHandler ( $handler )

cleanExit() 정적인 공개 메소드

Use this if you want premature exits instead of the \c exit function.
static public cleanExit ( )

cleanup() 정적인 공개 메소드

*! Calls the cleanup handlers to make sure that the script is ready to exit.
static public cleanup ( )

cleanupHandlers() 정적인 공개 메소드

*! \return An array with cleanup handlers.
static public cleanupHandlers ( )

defaultExceptionHandler() 공개 정적인 메소드

Installs the default Exception handler
public static defaultExceptionHandler ( $e ) : void
리턴 void

fatalErrorHandlers() 정적인 공개 메소드

*! \return An array with fatal error handlers.
static public fatalErrorHandlers ( )

isCleanExit() 정적인 공개 메소드

*! \return true if the request finished properly.
static public isCleanExit ( )

registerShutdownHandler() 공개 정적인 메소드

*! Register ::uncleanShutdownHandler as shutdown function
public static registerShutdownHandler ( $documentRoot = false )

setCleanExit() 정적인 공개 메소드

*! Sets the clean exit flag to on, this notifies the exit handler that everything finished properly.
static public setCleanExit ( $hasCleanExit = true )

uncleanShutdownHandler() 정적인 공개 메소드

*! Exit handler which called after the script is done, if it detects that eZ Publish did not exit cleanly it will issue an error message and display the debug.
static public uncleanShutdownHandler ( )