Zend\View\Model\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.
Synopsis
interface ModelInterface
extends Countable, IteratorAggregate
{
- // methods
- public ModelInterface setOption()
- public ModelInterface setOptions()
- public Traversable getOptions()
- public mixed getVariable()
- public ModelInterface setVariable()
- public ModelInterface setVariables()
- public ArrayAccess getVariables()
- public ModelInterface setTemplate()
- public string getTemplate()
- public ModelInterface addChild()
- public array getChildren()
- public bool hasChildren()
- public ModelInterface setCaptureTo()
- public string captureTo()
- public ModelInterface setTerminal()
- public bool terminate()
- public ModelInterface setAppend()
- public bool isAppend()
- // Inherited methods from Countable
- public int count()
- // Inherited methods from IteratorAggregate
- public Traversable getIterator()
Hierarchy
Extends
Implemented by
Methods
public
- addChild() — Add a child model
- captureTo() — Get the name of the variable to which to capture this model
- getChildren() — Return all children.
- getOptions() — Get renderer options/hints
- getTemplate() — Get the template to be used by this model
- getVariable() — Get a single view variable
- getVariables() — Get view variables
- hasChildren() — Does the model have any children?
- isAppend() — Is this append to child with the same capture?
- setAppend() — Set flag indicating whether or not append to child with the same capture
- setCaptureTo() — Set the name of the variable to capture this model to, if it is a child model
- setOption() — Set renderer option/hint
- setOptions() — Set renderer options/hints en masse
- setTemplate() — Set the template to be used by this model
- setTerminal() — Set flag indicating whether or not this is considered a terminal or standalone model
- setVariable() — Set view variable
- setVariables() — Set view variables en masse
- terminate() — Is this considered a terminal or standalone model?
Inherited from Countable
public
- count() — Count elements of an object
Inherited from IteratorAggregate
public
- getIterator() — Retrieve an external iterator