JsonModel

extends Zend\View\Model\ViewModel

Known subclasses

Omeka\View\Model\ApiJsonModel
Methods Summary
public
# setJsonpCallback( string $callback )
Set the JSONP callback function name
public
# serialize( )
Serialize to JSON
Methods inherited from Zend\View\Model\ViewModel
__construct(), __set(), __get(), __isset(), __unset(), setOption(), getOption(), setOptions(), getOptions(), clearOptions(), getVariable(), setVariable(), setVariables(), getVariables(), clearVariables(), setTemplate(), getTemplate(), addChild(), getChildren(), hasChildren(), clearChildren(), getChildrenByCaptureTo(), setCaptureTo(), captureTo(), setTerminal(), terminate(), setAppend(), isAppend(), count(), getIterator()
Properties Summary
protected string $captureTo
JSON probably won't need to be captured into a a parent container by default.
# NULL
protected string $jsonpCallback
JSONP callback (if set, wraps the return in a function call)
# NULL
protected bool $terminate
JSON is usually terminal
# true
Properties inherited from Zend\View\Model\ViewModel
$captureTo, $children, $options, $template, $terminate, $variables, $append