|
static | var_dump ($variable, $title=null, $maxDepth=8, $plainText=false, $ansiColors=true, $return=false, $blacklistedClassNames=null, $blacklistedPropertyNames=null) |
|
|
static | clearState () |
|
static | renderDump ($value, $level, $plainText, $ansiColors) |
|
static | renderArray ($array, $level, $plainText=false, $ansiColors=false) |
|
static | renderObject ($object, $level, $plainText=false, $ansiColors=false) |
|
static | isBlacklisted ($value) |
|
static | isAlreadyRendered ($object) |
|
static | renderHeader ($object, $level, $plainText, $ansiColors) |
|
static | renderContent ($object, $level, $plainText, $ansiColors) |
|
static | renderCollection ($collection, $level, $plainText, $ansiColors) |
|
static | ansiEscapeWrap ($string, $ansiColors, $enable=true) |
|
This class is a backport of the corresponding class of TYPO3 Flow. All credits go to the TYPO3 Flow team. A debugging utility class
http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later
Definition at line 33 of file DebuggerUtility.php.
static ansiEscapeWrap |
( |
|
$string, |
|
|
|
$ansiColors, |
|
|
|
$enable = true |
|
) |
| |
|
staticprotected |
Wrap a string with the ANSI escape sequence for colorful output
- Parameters
-
string | $string | The string to wrap |
string | $ansiColors | The ansi color sequence (e.g. "1;37") |
bool | $enable | If FALSE, the raw string will be returned |
- Returns
- string The wrapped or raw string
Definition at line 376 of file DebuggerUtility.php.
static isAlreadyRendered |
( |
|
$object | ) |
|
|
staticprotected |
Checks if a given object was already rendered.
- Parameters
-
- Returns
- bool TRUE if the given object was already rendered
Definition at line 212 of file DebuggerUtility.php.
static isBlacklisted |
( |
|
$value | ) |
|
|
staticprotected |
Checks if a given object or property should be excluded/filtered
- Parameters
-
object | $value | An ReflectionProperty or other Object |
- Returns
- bool TRUE if the given object should be filtered
Definition at line 195 of file DebuggerUtility.php.
References elseif.
static renderArray |
( |
|
$array, |
|
|
|
$level, |
|
|
|
$plainText = false , |
|
|
|
$ansiColors = false |
|
) |
| |
|
staticprotected |
Renders a dump of the given array
- Parameters
-
array | \Traversable | $array | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string
Definition at line 131 of file DebuggerUtility.php.
static renderCollection |
( |
|
$collection, |
|
|
|
$level, |
|
|
|
$plainText, |
|
|
|
$ansiColors |
|
) |
| |
|
staticprotected |
- Parameters
-
mixed | $collection | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string
Definition at line 355 of file DebuggerUtility.php.
static renderContent |
( |
|
$object, |
|
|
|
$level, |
|
|
|
$plainText, |
|
|
|
$ansiColors |
|
) |
| |
|
staticprotected |
- Parameters
-
object | $object | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string The rendered body content of the Object(Storage)
Definition at line 312 of file DebuggerUtility.php.
static renderDump |
( |
|
$value, |
|
|
|
$level, |
|
|
|
$plainText, |
|
|
|
$ansiColors |
|
) |
| |
|
staticprotected |
Renders a dump of the given value
- Parameters
-
mixed | $value | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string
Definition at line 98 of file DebuggerUtility.php.
References elseif.
static renderHeader |
( |
|
$object, |
|
|
|
$level, |
|
|
|
$plainText, |
|
|
|
$ansiColors |
|
) |
| |
|
staticprotected |
Renders the header of a given object/collection. It is usually the class name along with some flags.
- Parameters
-
object | $object | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string The rendered header with tags
Definition at line 226 of file DebuggerUtility.php.
References debug(), and elseif.
static renderObject |
( |
|
$object, |
|
|
|
$level, |
|
|
|
$plainText = false , |
|
|
|
$ansiColors = false |
|
) |
| |
|
staticprotected |
Renders a dump of the given object
- Parameters
-
object | $object | |
int | $level | |
bool | $plainText | |
bool | $ansiColors | |
- Returns
- string
Definition at line 171 of file DebuggerUtility.php.
static var_dump |
( |
|
$variable, |
|
|
|
$title = null , |
|
|
|
$maxDepth = 8 , |
|
|
|
$plainText = false , |
|
|
|
$ansiColors = true , |
|
|
|
$return = false , |
|
|
|
$blacklistedClassNames = null , |
|
|
|
$blacklistedPropertyNames = null |
|
) |
| |
|
static |
A var_dump function optimized for Extbase's object structures
- Parameters
-
mixed | $variable | The value to dump |
string | $title | optional custom title for the debug output |
int | $maxDepth | Sets the max recursion depth of the dump. De- or increase the number according to your needs and memory limit. |
bool | $plainText | If TRUE, the dump is in plain text, if FALSE the debug output is in HTML format. |
bool | $ansiColors | If TRUE (default), ANSI color codes is added to the output, if FALSE the debug output not colored. |
bool | $return | if TRUE, the dump is returned for custom post-processing (e.g. embed in custom HTML). If FALSE (default), the dump is directly displayed. |
array | $blacklistedClassNames | An array of class names (RegEx) to be filtered. Default is an array of some common class names. |
array | $blacklistedPropertyNames | An array of property names and/or array keys (RegEx) to be filtered. Default is an array of some common property names. |
- Returns
- string if $return is TRUE, the dump is returned. By default, the dump is directly displayed, and nothing is returned.
Definition at line 399 of file DebuggerUtility.php.
Referenced by DebugUtility\debugRows(), DebugViewHelper\renderStatic(), and DebugUtility\viewArray().
Initial value:= array(
'PHPUnit_Framework_MockObject_InvocationMocker',
\TYPO3\CMS\Extbase\Reflection\ReflectionService::class,
\TYPO3\CMS\Extbase\Object\ObjectManager::class,
\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper::class,
\TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager::class,
\TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory::class,
\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class
)
Definition at line 48 of file DebuggerUtility.php.
$blacklistedPropertyNames = array('warning') |
|
staticprotected |
$stylesheetEchoed = false |
|
staticprotected |
const HTML_INDENT = ' ' |
const PLAINTEXT_INDENT = ' ' |