/** * Stores the form values (and validation status) is session container * * @param bool Whether to store validation status */ public function storeValues($validate = true) { $this->populateFormOnce(); $container = $this->getController()->getSessionContainer(); $id = $this->form->getId(); $container->storeValues($id, (array) $this->form->getValue()); if ($validate) { $container->storeValidationStatus($id, $this->form->validate()); } return $container->getValidationStatus($id); }
/** * Sets the form currently being processed * * @param HTML_QuickForm2 */ public function startForm(HTML_QuickForm2 $form) { $this->formId = $form->getId(); $this->rules[$this->formId] = array(); }