ModelInterface

Interface describing a view model. Extends "Countable"; count() should return the number of children attached to the model. Extends "IteratorAggregate"; should allow iterating over children.
implements Countable, IteratorAggregate, Traversable

Known implementers

Omeka\View\Model\ApiJsonModel , Zend\View\Model\JsonModel , Zend\View\Model\ViewModel

Methods Summary
public
# setOption( string $name , mixed $value )
Set renderer option/hint
public
# setOptions( array|\Traversable $options )
Set renderer options/hints en masse
public
# getOptions( )
Get renderer options/hints
public
# getVariable( string $name , mixed|null $default = NULL )
Get a single view variable
public
# setVariable( string $name , mixed $value )
Set view variable
public
# setVariables( array|\ArrayAccess $variables )
Set view variables en masse
public
# getVariables( )
Get view variables
public
# setTemplate( string $template )
Set the template to be used by this model
public
# getTemplate( )
Get the template to be used by this model
public
# addChild( Zend\View\Model\ModelInterface $child , null|string $captureTo = NULL, null|bool $append = false )
Add a child model
public
# getChildren( )
Return all children. Return specifies an array, but may be any iterable object.
public
# hasChildren( )
Does the model have any children?
public
# setCaptureTo( string $capture )
Set the name of the variable to capture this model to, if it is a child model
public
# captureTo( )
Get the name of the variable to which to capture this model
public
# setTerminal( bool $terminate )
Set flag indicating whether or not this is considered a terminal or standalone model
public
# terminate( )
Is this considered a terminal or standalone model?
public
# setAppend( bool $append )
Set flag indicating whether or not append to child with the same capture
public
# isAppend( )
Is this append to child with the same capture?