\Hazaar\View
Layout
Summary
Methods Properties Constants
add
key
has
set
yn
No constants
Properties
$_content
$_content
$_views
$_views
Inherited
$_links
$_links
Inherited
$_methodHandler
$_methodHandler
Inherited
$_postItems
$_postItems
Inherited
$_priority
$_priority
Inherited
$_requires
$_requires
Inherited
$_requires_param
$_requires_param
Inherited
$_scripts
$_scripts
Methods
__construct()
__construct($view = null, $init_default_helpers = true)

Parameters

$view

No description

$init_default_helpers

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
current()
current()
key()
key()
layout()
layout()
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

remove()
remove($key)

Parameters

$key

No description

render()
render()
Render the layout after importing any required files from child views.
rewind()
rewind()
setContent()
setContent($content)

Parameters

$content

No description

valid()
valid()
Inherited
getName()
getName()
Inherited
getViewFile()
getViewFile()
Inherited
has()
has($key)

Parameters

$key

No description

Inherited
hasHelper()
hasHelper($helper)

Parameters

$helper

No description

Inherited
import()
import()
Inherited
initHelpers()
initHelpers()
Inherited
link()
link($href, $rel = null)

Parameters

$href

No description

$rel

No description

Inherited
load()
load($view)

Parameters

$view

No description

Inherited
partial()
partial($view, $data = Array ( ) )

Parameters

$view

No description

$dataarray

No description

Inherited
partialLoop()
partialLoop($view, $data)

Parameters

$view

No description

$dataarray

No description

Inherited
populate()
populate($array)

Parameters

$arrayarray

No description

Inherited
post()
post()
Inherited
registerController()
registerController($controller)
Registers a controller on the view for method callbacks.

Tags

Deprecated

Replaced by Hazaar\View::registerMethodHandler().

Parameters

$controller

No description

Inherited
registerMethodHandler()
registerMethodHandler($handler)
Registers an object on the view for method callbacks.

Tags

Throws

\Exception

Parameters

$handler

No description

Inherited
remove()
remove($key)

Parameters

$key

No description

Inherited
render()
render()
Inherited
requires()
requires($script, $charset = null)

Parameters

$script

No description

$charset

No description

Inherited
script()
script($code)

Parameters

$code

No description

Inherited
set()
set($key, $value)

Parameters

$key

No description

$value

No description

Inherited
setImportPriority()
setImportPriority($priority)

Parameters

$priority

No description

Inherited
setRequiresParam()
setRequiresParam($array)

Parameters

$array

No description

InheritedStatic
timestamp()
timestamp($value)

Parameters

$value

No description

Inherited
yn()
yn($value, $labels = Array ( [0] => Yes ) )

Parameters

$value

No description

$labels

No description