\Box\Brainy\Compiler\HelpersTemplateBuffer

Summary

Methods
Properties
Constants
to_smarty_php()
to_inline_data()
echo_data()
can_combine_inline_data()
append_subtree()
$data
$subtrees
No constants found
escape_data()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : mixed

Buffer content

Type

mixed

$subtrees

$subtrees : array

Array of template elements

Type

array

Methods

to_smarty_php()

to_smarty_php() : string

Sanitize and merge subtree buffers together

Returns

string —

template code content

to_inline_data()

to_inline_data() : string

Return the raw string contents of the node

Returns

string

echo_data()

echo_data(string  $data) : string

Parameters

string $data

Returns

string

can_combine_inline_data()

can_combine_inline_data() : boolean

Returns

boolean

append_subtree()

append_subtree(\Box\Brainy\Compiler\Helpers\_smarty_parsetree  $subtree) 

Append buffer to subtree

Parameters

\Box\Brainy\Compiler\Helpers\_smarty_parsetree $subtree

escape_data()

escape_data(string  $toEscape) : string

Return escaped data

Parameters

string $toEscape

Returns

string —

escaped string