PHP Класс Phalcon\Utils\PrettyExceptions

Prints exception/errors backtraces using a pretty visualization
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_application Reference to the current Phalcon application instance
$_showActive Flag to control that only one exception/error is show at time
$_showApplicationDump Show debug information about the application
$_showBackTrace Print the backtrace
$_showFileFragment Show only the related part of the application
$_showFiles Show the application's code
$_theme CSS theme
$_uri Pretty Exceptions

Открытые методы

Метод Описание
__construct ( Phalcon\Mvc\Application $application = null ) Constructor
getCssSources ( ) : string Returns the css sources
getJsSources ( ) : string Returns the javascript sources
getVersion ( ) Returns the current framework version
handle ( Exception $e, Phalcon\Mvc\Application $application = null ) : boolean Handles exceptions
handleError ( integer $errorCode, string $errorMessage, string $errorFile, integer $errorLine, Phalcon\Mvc\Application $application = null ) Handles errors/warnings/notices
setBaseUri ( string $uri ) Change the base uri for css/javascript sources
setTheme ( string $theme ) Change the CSS theme
showApplicationDump ( boolean $showApplicationDump ) Set to display a dump of the Phalcon application instance
showBackTrace ( boolean $showBackTrace ) Set if the exception/error backtrace must be shown
showFileFragment ( boolean $showFileFragment ) Set if only the file fragment related to the exception must be shown instead of the complete file
showFiles ( boolean $showFiles ) Set if the application's files must be opened an showed as part of the backtrace

Защищенные методы

Метод Описание
_escapeString ( $value )
_getArrayDump ( $argument, $n )
_showTraceItem ( integer $n, array $trace ) Shows a backtrace item
getApplicationDump ( Phalcon\Mvc\Application $application ) Returns human readable dump of the current Phalcon application instance.

Описание методов

__construct() публичный метод

Constructor
public __construct ( Phalcon\Mvc\Application $application = null )
$application Phalcon\Mvc\Application OPTIONAL To display a dump of the current state of the Phalcon application instance.

_escapeString() защищенный метод

protected _escapeString ( $value )

_getArrayDump() защищенный метод

protected _getArrayDump ( $argument, $n )

_showTraceItem() защищенный метод

Shows a backtrace item
protected _showTraceItem ( integer $n, array $trace )
$n integer
$trace array

getApplicationDump() защищенный метод

Returns human readable dump of the current Phalcon application instance.
protected getApplicationDump ( Phalcon\Mvc\Application $application )
$application Phalcon\Mvc\Application OPTIONAL To display a dump of the current state of the Phalcon application instance.

getCssSources() публичный метод

Returns the css sources
public getCssSources ( ) : string
Результат string

getJsSources() публичный метод

Returns the javascript sources
public getJsSources ( ) : string
Результат string

getVersion() публичный метод

Returns the current framework version
public getVersion ( )

handle() публичный метод

Handles exceptions
public handle ( Exception $e, Phalcon\Mvc\Application $application = null ) : boolean
$e Exception
$application Phalcon\Mvc\Application OPTIONAL To display a dump of the current state of the Phalcon application instance.
Результат boolean

handleError() публичный метод

Handles errors/warnings/notices
public handleError ( integer $errorCode, string $errorMessage, string $errorFile, integer $errorLine, Phalcon\Mvc\Application $application = null )
$errorCode integer
$errorMessage string
$errorFile string
$errorLine integer
$application Phalcon\Mvc\Application OPTIONAL To display a dump of the current state of the Phalcon application instance.

setBaseUri() публичный метод

Change the base uri for css/javascript sources
public setBaseUri ( string $uri )
$uri string

setTheme() публичный метод

Change the CSS theme
public setTheme ( string $theme )
$theme string

showApplicationDump() публичный метод

Set to display a dump of the Phalcon application instance
public showApplicationDump ( boolean $showApplicationDump )
$showApplicationDump boolean

showBackTrace() публичный метод

Set if the exception/error backtrace must be shown
public showBackTrace ( boolean $showBackTrace )
$showBackTrace boolean

showFileFragment() публичный метод

Set if only the file fragment related to the exception must be shown instead of the complete file
public showFileFragment ( boolean $showFileFragment )
$showFileFragment boolean

showFiles() публичный метод

Set if the application's files must be opened an showed as part of the backtrace
public showFiles ( boolean $showFiles )
$showFiles boolean

Описание свойств

$_application защищенное свойство

Reference to the current Phalcon application instance
protected $_application

$_showActive защищенное статическое свойство

Flag to control that only one exception/error is show at time
protected static $_showActive

$_showApplicationDump защищенное свойство

Show debug information about the application
protected $_showApplicationDump

$_showBackTrace защищенное свойство

Print the backtrace
protected $_showBackTrace

$_showFileFragment защищенное свойство

Show only the related part of the application
protected $_showFileFragment

$_showFiles защищенное свойство

Show the application's code
protected $_showFiles

$_theme защищенное свойство

CSS theme
protected $_theme

$_uri защищенное свойство

Pretty Exceptions
protected $_uri