public function getXmlAnswers(\DOMDocument $dom, $version) { $answers = array(); foreach ($this->_applicant->findAnswersByPage($this->_applicationPage->getPage()) as $answer) { $answers[] = $this->xmlAnswer($dom, $answer, $version); } return $answers; }
public function do_unskip() { $answers = $this->_applicant->findAnswersByPage($this->_applicationPage->getPage()); if (count($answers) and $answers[0]->getPageStatus() == self::SKIPPED) { $this->_applicant->getAnswers()->removeElement($answers[0]); $this->_controller->getEntityManager()->remove($answers[0]); } }