/** * * @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); }
/** * * @return \Simplify\Form\ElementIterator */ public function getElements(\Simplify\Form\Action $action) { return new \Simplify\Form\ElementIterator($this->elements, $action->getActionMask()); }