\ManaPHP\MvcViewInterface

Summary

Methods
Constants
setMaxAge()
getMaxAge()
setLayout()
setVar()
setVars()
getVar()
hasVar()
exists()
render()
widget()
block()
setContent()
getContent()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setMaxAge()

setMaxAge(integer  $max_age) : static

Parameters

integer $max_age

Returns

static

getMaxAge()

getMaxAge() : integer

Returns

integer

setLayout()

setLayout(false|string  $layout = 'Default') : static

Parameters

false|string $layout

Returns

static

setVar()

setVar(string  $name, mixed  $value) : static

Adds parameter to view

Parameters

string $name
mixed $value

Returns

static

setVars()

setVars(array  $vars) : static

Adds parameters to view

Parameters

array $vars

Returns

static

getVar()

getVar(string  $name = null) : mixed

Returns a parameter previously set in the view

Parameters

string $name

Returns

mixed

hasVar()

hasVar(string  $name) : boolean

Parameters

string $name

Returns

boolean

exists()

exists(string  $template = null) : string|false

Parameters

string $template

Returns

string|false

render()

render(string  $template = null, array  $vars = array()) : string

Executes render process from dispatching data

Parameters

string $template
array $vars

Returns

string

widget()

widget(string  $widget, array  $vars = array()) : void

Renders a widget

Parameters

string $widget
array $vars

block()

block(string  $path, array  $vars = array()) : void

Parameters

string $path
array $vars

setContent()

setContent(string  $content) : static

Externally sets the view content

Parameters

string $content

Returns

static

getContent()

getContent() : string

Returns cached output from another view stage

Returns

string