TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
PhpErrorCodeViewHelper.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Install\ViewHelpers\Format
;
3
20
class
PhpErrorCodeViewHelper
extends
\TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
{
21
25
protected
$levelNames
= array(
26
E_ERROR =>
'E_ERROR'
,
27
E_WARNING =>
'E_WARNING'
,
28
E_PARSE =>
'E_PARSE'
,
29
E_NOTICE =>
'E_NOTICE'
,
30
E_CORE_ERROR =>
'E_CORE_ERROR'
,
31
E_CORE_WARNING =>
'E_CORE_WARNING'
,
32
E_COMPILE_ERROR =>
'E_COMPILE_ERROR'
,
33
E_COMPILE_WARNING =>
'E_COMPILE_WARNING'
,
34
E_USER_ERROR
=>
'E_USER_ERROR'
,
35
E_USER_WARNING =>
'E_USER_WARNING'
,
36
E_USER_NOTICE =>
'E_USER_NOTICE'
,
37
E_STRICT =>
'E_STRICT'
,
38
E_RECOVERABLE_ERROR =>
'E_RECOVERABLE_ERROR'
,
39
E_DEPRECATED =>
'E_DEPRECATED'
,
40
E_USER_DEPRECATED =>
'E_USER_DEPRECATED'
,
41
);
42
49
public
function
render
($phpErrorCode) {
50
$levels = array();
51
if
(($phpErrorCode & E_ALL) == E_ALL) {
52
$levels[] =
'E_ALL'
;
53
$phpErrorCode &= ~E_ALL;
54
}
55
foreach
($this->levelNames as $level => $name) {
56
if
(($phpErrorCode & $level) == $level) {
57
$levels[] = $name;
58
}
59
}
60
61
$output =
''
;
62
if
(!empty($levels)) {
63
$output = implode(
' | '
, $levels);
64
}
65
66
return
$output;
67
}
68
69
}
TYPO3\CMS\Install\ViewHelpers\Format\PhpErrorCodeViewHelper
Definition:
PhpErrorCodeViewHelper.php:20
E_USER_ERROR
if(!defined('ADODB_ERROR_HANDLER_TYPE')) define('ADODB_ERROR_HANDLER_TYPE' E_USER_ERROR
Definition:
adodb-errorhandler.inc.php:16
TYPO3\CMS\Install\ViewHelpers\Format\PhpErrorCodeViewHelper\$levelNames
$levelNames
Definition:
PhpErrorCodeViewHelper.php:25
TYPO3\CMS\Install\ViewHelpers\Format
Definition:
CropViewHelper.php:2
TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Definition:
AbstractViewHelper.php:19
TYPO3\CMS\Install\ViewHelpers\Format\PhpErrorCodeViewHelper\render
render($phpErrorCode)
Definition:
PhpErrorCodeViewHelper.php:49
typo3
sysext
install
Classes
ViewHelpers
Format
PhpErrorCodeViewHelper.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13