Hazaar
View
Summary
MethodsPropertiesConstants
No constants
Properties
$_data
$_data
$_helpers
$_helpers
View Helpers
$_helpers_init
$_helpers_init
Array for storing names of initialised helpers so we only initialise them once
$_methodHandler
$_methodHandler
$_rendering
$_rendering
$_scripts
$_scripts
$_viewfile
$_viewfile
$name
$name
Methods
__call()
__call($method, $args)
__construct()
__construct($view, $init_helpers = Array ( ) )
__get()
__get($helper)
__isset()
__isset($key)
__set()
__set($key, $value)
__unset()
__unset($key)
addHelper()
addHelper($helper, $args = Array ( ) , $alias = null)
date()
date($date) : string
Returns a date string formatted to the current set date format
Static
datetime()
datetime($value, $format = null) : string
Return a formatted date as a string.
extend()
extend($array)
get()
get($helper, $default = null)
getData()
getData()
getHelper()
getHelper($key)
getHelpers()
getHelpers()
getName()
getName()
getViewFile()
getViewFile()
Static
getViewPath()
getViewPath($view, $name)
gravatar()
gravatar($address, $default = null) : \Hazaar\Html\Img
Display a Gravatar icon for a users email address.
has()
has($key)
hasHelper()
hasHelper($helper)
initHelpers()
initHelpers()
load()
load($view)
partial()
partial($view, $data = Array ( ) )
partialLoop()
partialLoop($view, $data) : string
Render a partial view multiple times on an array
populate()
populate($array)
registerController()
registerController($controller)
Registers a controller on the view for method callbacks.
registerMethodHandler()
registerMethodHandler($handler)
Registers an object on the view for method callbacks.
remove()
remove($key)
removeHelper()
removeHelper($helper)
render()
render()
runHelpers()
runHelpers()
script()
script($code)
set()
set($key, $value)
setRequiresParam()
setRequiresParam($array)
Static
timestamp()
timestamp($value) : string
Return a date/time type as a timestamp string.

This is for making it quick and easy to output consistent timestamp strings.

yn()
yn($value, $labels = Array ( [0] => Yes [1] => No ) ) : string
Returns 'Yes' or 'No' text based on a boolean value