Ejemplo n.º 1
0
 /**
  *
  * @param \Simplify\Form\Action $action
  * @return \Simplify\Form\Element[]
  */
 public function getElements(Action $action = null)
 {
     return new ElementIterator($this->elements, $action ? $action->getActionMask() : Form::ACTION_ALL);
 }
Ejemplo n.º 2
0
 /**
  *
  * @return \Simplify\Form\ElementIterator
  */
 public function getElements(\Simplify\Form\Action $action)
 {
     return new \Simplify\Form\ElementIterator($this->elements, $action->getActionMask());
 }