\Pop\Form\TemplateStream

Form stream template class

Summary

Methods
Properties
Constants
getTemplate()
setTemplate()
render()
__construct()
No public properties found
No constants found
renderTemplate()
$template
$form
$output
N/A
No private methods found
No private properties found
N/A

Properties

$template

$template : string

Form template

Type

string

$output

$output : string

Form output string

Type

string

Methods

getTemplate()

getTemplate() : string

Get form template

Returns

string

setTemplate()

setTemplate(string  $template) : \Pop\Form\Template\Stream

Set view template with auto-detect

Parameters

string $template

Returns

\Pop\Form\Template\Stream

render()

render(\Pop\Form\Form  $form) : string

Render the view and return the output

Parameters

\Pop\Form\Form $form

Returns

string

__construct()

__construct(string  $template) : \Pop\Form\Template\Stream

Constructor

Instantiate the view stream template object

Parameters

string $template

Returns

\Pop\Form\Template\Stream

renderTemplate()

renderTemplate() : void

Render view template string