Class htmlbuilder
Builder proxy view for HTML-based outputs.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
- Core\Field\Mutable implements Core\Variator
- Core\View
- Core\View\Driver\html
- Core\View\Driver\htmlbuilder
Package: Core\View\HTMLBuilder
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at View/Driver/htmlbuilder.inc.php
Methods summary
public
|
|
public
|
#
append( string|
Appends a node to the internal node buffer and returns a reference to the node instance. |
public
|
#
appendVerbatim( mixed $data )
Adds an arbitrary object or string verbatim (without encoding) to the internal nodes array. |
public
|
|
public
string
|
#
concatArray( string $elementID, array $dataArray )
Returns a concatenated set of nodes based on the same description string but different data sets. |
public
boolean
|
#
render( )
Renders the internal node array by converting each node into a string and echoing it to the standard output. |
public
|
|
public
|
|
public
|
#
setDataForUndefinedKey( string $key, mixed $value )
Adds a KDC value to the view. Additionally, if the key is the empty string, the value is added to the internal HTML buffer. This allows the use of the array-append operator to append values to the internal HTML buffer verbatim. Additionally, if the given key is the empty string, the new value is added to the internal node set. This enables the use of the array-append operator to append values to the internal node set verbatim. |
Methods inherited from Core\View\Driver\html
Methods inherited from Core\Field\Mutable
offsetSet()
,
offsetUnset()
,
setDataForKey()
,
setDataForKeys()
,
setKeyMasquerade()
,
updateMasqueradedKeys()
Methods inherited from Core\Field
getDataForKey()
,
getDataForKeys()
,
getDataForUndefinedKey()
,
issetDataForKey()
,
offsetExists()
,
offsetGet()
Methods inherited from Core\Set\Mutable
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\View
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_v_nodes
Array of HTML nodes appended to this view. |
#
array ()
|
Properties inherited from Core\View\Driver\html
Properties inherited from Core\View
$_encoder
,
$_v_parameters
,
$_v_proxy
,
$_v_renderers
,
$_v_translator
,
$_v_uri
Properties inherited from Core\Field\Mutable
Properties inherited from Core\Field
Magic properties
public read-only
array
|
$nodes
Array of HTML nodes appended to this view. |
Magic properties inherited from Core\View\Driver\html
Magic properties inherited from Core\View
$encoder
,
$parameters
,
$proxy
,
$renderers
,
$translator
,
$uri