TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
fluid
Classes
ViewHelpers
DebugViewHelper.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Fluid\ViewHelpers;
3
4
/* *
5
* This script is part of the TYPO3 project - inspiring people to share! *
6
* *
7
* TYPO3 is free software; you can redistribute it and/or modify it under *
8
* the terms of the GNU General Public License version 2 as published by *
9
* the Free Software Foundation. *
10
* *
11
* This script is distributed in the hope that it will be useful, but *
12
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- *
13
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General *
14
* Public License for more details. *
15
* */
16
17
use
TYPO3\CMS\Extbase\Utility\DebuggerUtility
;
18
use
TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
;
19
use
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
;
20
use
TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface
;
21
41
class
DebugViewHelper
extends
AbstractViewHelper
implements
CompilableInterface
42
{
55
public
function
render
($title = null, $maxDepth = 8, $plainText =
false
, $ansiColors =
false
, $inline =
false
, $blacklistedClassNames = null, $blacklistedPropertyNames = null)
56
{
57
return
static::renderStatic(
58
array(
59
'title'
=> $title,
60
'maxDepth'
=> $maxDepth,
61
'plainText'
=> $plainText,
62
'ansiColors'
=> $ansiColors,
63
'inline'
=> $inline,
64
'blacklistedClassNames'
=> $blacklistedClassNames,
65
'blacklistedPropertyNames'
=> $blacklistedPropertyNames
66
),
67
$this->
buildRenderChildrenClosure
(),
68
$this->renderingContext
69
);
70
}
71
79
public
static
function
renderStatic
(array
$arguments
, \Closure
$renderChildrenClosure
,
RenderingContextInterface
$renderingContext
)
80
{
81
return
DebuggerUtility::var_dump
(
$renderChildrenClosure
(), $arguments[
'title'
], $arguments[
'maxDepth'
], (
bool
)$arguments[
'plainText'
], (
bool
)$arguments[
'ansiColors'
], (
bool
)$arguments[
'inline'
], $arguments[
'blacklistedClassNames'
], $arguments[
'blacklistedPropertyNames'
]);
82
}
83
}
Generated on Wed Nov 11 2015 01:51:54 for TYPO3 by
1.8.3