PHP Класс Neos\Flow\Error\Debugger

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$stylesheetEchoed boolean Is set to TRUE once the CSS file is included in the current page to prevent double inclusions of the CSS file.

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

Свойство Тип Описание
$blacklistedPropertyNames string
$ignoredClassesFallback array This is a fallback in case the classes could not be fetched from the configuration
$ignoredClassesRegex string
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$renderedObjects array

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

Метод Описание
clearState ( ) : void Clear the state of the debugger
getBacktraceCode ( array $trace, boolean $includeCode = true, boolean $plaintext = false ) : string Renders some backtrace
getCodeSnippet ( string $filePathAndName, integer $lineNumber, boolean $plaintext = false ) : string Returns a code snippet from the specified file.
getIgnoredClassesRegex ( ) : string Tries to load the 'Neos.Flow.error.debugger.ignoredClasses' setting to build a regular expression that can be used to filter ignored class names If settings can't be loaded it uses self::$ignoredClassesFallback.
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void Injects the Object Manager
renderDump ( mixed $variable, integer $level, boolean $plaintext = false, boolean $ansiColors = false ) : string Renders a dump of the given variable

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

Метод Описание
ansiEscapeWrap ( string $string, string $ansiColors, boolean $enable = true ) : string Wrap a string with the ANSI escape sequence for colorful output
renderArrayDump ( array $array, integer $level, boolean $plaintext = false, boolean $ansiColors = false ) : string Renders a dump of the given array
renderObjectDump ( object $object, integer $level, boolean $renderProperties = true, boolean $plaintext = false, boolean $ansiColors = false ) : string Renders a dump of the given object

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

ansiEscapeWrap() защищенный статический метод

Wrap a string with the ANSI escape sequence for colorful output
protected static ansiEscapeWrap ( string $string, string $ansiColors, boolean $enable = true ) : string
$string string The string to wrap
$ansiColors string The ansi color sequence (e.g. "1;37")
$enable boolean If FALSE, the raw string will be returned
Результат string The wrapped or raw string

clearState() публичный статический метод

Clear the state of the debugger
public static clearState ( ) : void
Результат void

getBacktraceCode() публичный статический метод

Renders some backtrace
public static getBacktraceCode ( array $trace, boolean $includeCode = true, boolean $plaintext = false ) : string
$trace array The trace
$includeCode boolean Include code snippet
$plaintext boolean
Результат string Backtrace information

getCodeSnippet() публичный статический метод

Returns a code snippet from the specified file.
public static getCodeSnippet ( string $filePathAndName, integer $lineNumber, boolean $plaintext = false ) : string
$filePathAndName string Absolute path and filename of the PHP file
$lineNumber integer Line number defining the center of the code snippet
$plaintext boolean
Результат string The code snippet

getIgnoredClassesRegex() публичный статический метод

Tries to load the 'Neos.Flow.error.debugger.ignoredClasses' setting to build a regular expression that can be used to filter ignored class names If settings can't be loaded it uses self::$ignoredClassesFallback.
public static getIgnoredClassesRegex ( ) : string
Результат string

injectObjectManager() публичный статический метод

Injects the Object Manager
public static injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат void

renderArrayDump() защищенный статический метод

Renders a dump of the given array
protected static renderArrayDump ( array $array, integer $level, boolean $plaintext = false, boolean $ansiColors = false ) : string
$array array
$level integer
$plaintext boolean
$ansiColors boolean
Результат string

renderDump() публичный статический метод

Renders a dump of the given variable
public static renderDump ( mixed $variable, integer $level, boolean $plaintext = false, boolean $ansiColors = false ) : string
$variable mixed
$level integer
$plaintext boolean
$ansiColors boolean
Результат string

renderObjectDump() защищенный статический метод

Renders a dump of the given object
protected static renderObjectDump ( object $object, integer $level, boolean $renderProperties = true, boolean $plaintext = false, boolean $ansiColors = false ) : string
$object object
$level integer
$renderProperties boolean
$plaintext boolean
$ansiColors boolean
Результат string

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

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

protected static string $blacklistedPropertyNames
Результат string

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

This is a fallback in case the classes could not be fetched from the configuration
protected static array $ignoredClassesFallback
Результат array

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

protected static string $ignoredClassesRegex
Результат string

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

protected static ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

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

protected static array $renderedObjects
Результат array

$stylesheetEchoed публичное статическое свойство

Is set to TRUE once the CSS file is included in the current page to prevent double inclusions of the CSS file.
public static bool $stylesheetEchoed
Результат boolean