Class Formatter
A Formatter transforms arbitrary data sources into a generally readable format according to a chained data output interface (e.g. a view).
- Core\Object implements Core\Chainable
-
Core\Set
implements
Core\Accessor
-
Core\Formatter
Direct known subclasses
Namespace: Core
Package: Core\Formatter
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at Formatter.inc.php
Methods summary
public static
|
|
public
mixed
|
#
__invoke( mixed $var )
Object invocation variant of |
public
boolean
|
#
chain(
Chains a successor formatter instance to this instance. |
public
mixed
|
#
format( mixed $var, array $options = null )
Formats data depending on actual formatter implementation. If a formatter successor is chained to the instance, the result of the formatting operation is also processed by the succeeding formatter prior return. |
Methods inherited from Core\Object
__autocreateFactory(),
__call(),
__processParameters(),
__toString(),
attachMethod(),
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
|
$_v_successor
Subsequent (chained) formatter instance, if any. |
Magic properties
public read-only
|
$successor
Subsequent (chained) formatter instance, if any. |