\Hazaar\View
Layout
Summary
Methods Properties Constants
add
key
lib
No constants
Properties
$_content
$_content
$_links
$_links
$_postItems
$_postItems
$_priority
$_priority
$_rendered_views
$_rendered_views
$_requires
$_requires
$_requires_param
$_requires_param
$_views
$_views
$cacheDir
$cacheDir
Methods
__construct()
__construct($view = null)

Parameters

$view

No description

add()
add($view, $key = null) : \Hazaar\View
Add a view to the layout

This method will add a view based on the supplied argument. If the argument is a string a new Hazaar\View object is created using the view file named in the argument. Alterntively, the argument can be a Hazaar\View object which will simply then be added to the layout.

Parameters

$view

No description

$key

No description

Returns

\Hazaar\View
addPost()
addPost($item)

Parameters

$item

No description

current()
current()
import()
import()
key()
key()
layout()
layout() : string
Render the views contained in this layout view

Returns

string
lib()
lib($type, $request)

Parameters

$type

No description

$request

No description

link()
link($href, $rel = null, $cache_local = null)

Parameters

$href

No description

$rel

No description

$cache_local

No description

next()
next()
offsetExists()
offsetExists($offset)

Parameters

$offset

No description

offsetGet()
offsetGet($offset)

Parameters

$offset

No description

offsetSet()
offsetSet($offset, $value)

Parameters

$offset

No description

$value

No description

offsetUnset()
offsetUnset($offset)

Parameters

$offset

No description

post()
post()
prepare()
prepare($merge_data = true)

Parameters

$merge_data

No description

remove()
remove($key)

Parameters

$key

No description

render()
render()
Render the layout with an optional prepare method
requires()
requires($script, $charset = null, $cache_local = null)

Parameters

$script

No description

$charset

No description

$cache_local

No description

rewind()
rewind()
setContent()
setContent($content)

Parameters

$content

No description

setImportPriority()
setImportPriority($priority)

Parameters

$priority

No description

valid()
valid()