17 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
18 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
19 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
28 use CompileWithRenderStatic;
35 E_WARNING =>
'E_WARNING',
37 E_NOTICE =>
'E_NOTICE',
38 E_CORE_ERROR =>
'E_CORE_ERROR',
39 E_CORE_WARNING =>
'E_CORE_WARNING',
40 E_COMPILE_ERROR =>
'E_COMPILE_ERROR',
41 E_COMPILE_WARNING =>
'E_COMPILE_WARNING',
42 E_USER_ERROR =>
'E_USER_ERROR',
43 E_USER_WARNING =>
'E_USER_WARNING',
44 E_USER_NOTICE =>
'E_USER_NOTICE',
45 E_STRICT =>
'E_STRICT',
46 E_RECOVERABLE_ERROR =>
'E_RECOVERABLE_ERROR',
47 E_DEPRECATED =>
'E_DEPRECATED',
48 E_USER_DEPRECATED =>
'E_USER_DEPRECATED',
56 $this->registerArgument(
'phpErrorCode',
'int',
'',
true);
68 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
70 $phpErrorCode = (int)$arguments[
'phpErrorCode'];
72 if (($phpErrorCode & E_ALL) == E_ALL) {
74 $phpErrorCode &= ~E_ALL;
76 foreach (self::$levelNames as $level => $name) {
77 if (($phpErrorCode & $level) == $level) {
83 if (!empty($levels)) {