Class Formatter
A formatter transforms an incident into a format for further processing, i.e. renders a text or HTML output with incident details and trace.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Fault\Formatter
Direct known subclasses
Core\Fault\Formatter\Driver\html
,
Core\Fault\Formatter\Driver\plain
Namespace: Core\Fault
Package: Core\Fault
Since: 3.2
Requires: PHP 5.3
Version: 1.0
Located at Fault/Formatter.inc.php
Methods summary
protected
|
|
public static
|
|
public
|
|
abstract public
string
|
#
contentType( )
Returns the content type of the output generated by the formatter. This is used by some reporters that allows a flexible configuration of the formatter being used but need to know the type of output generated. |
public
string
|
#
encodeCDATA( $string )
Encodes CDATA for output. Takes the current character set into account if available. |
abstract public
mixed
|
|
public
string
|
|
abstract public
mixed
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
|
$_charset
Associated character set instance for the formatter. If no character
set is used or the character set fails to load, the value should be set
to |
Magic properties
public read-only
|
$charset
The character set used by the formatter. |
public read-only
string
|
$contentType
Content type of generated output. |