/** * The place to check if the data set in the snippet is valid * to generate the snippet. * * When invalid data should result in an error, you can throw it * here but you can also perform the check in the * checkRegistryRequestsAnswers() function from the * {@see \MUtil_Registry_TargetInterface}. * * @return boolean */ public function hasHtmlOutput() { if (parent::hasHtmlOutput()) { return $this->processForm(); } }
/** * Render a string that becomes part of the HtmlOutput of the view * * You should override either getHtmlOutput() or this function to generate output * * @param \Zend_View_Abstract $view * @return string Html output */ public function render(\Zend_View_Abstract $view) { if ($this->_marker) { $this->_marker->setEncoding($view->getEncoding()); } return parent::render($view); }
/** * The place to check if the data set in the snippet is valid * to generate the snippet. * * When invalid data should result in an error, you can throw it * here but you can also perform the check in the * checkRegistryRequestsAnswers() function from the * {@see \MUtil_Registry_TargetInterface}. * * @return boolean */ public function hasHtmlOutput() { if (parent::hasHtmlOutput()) { if ($this->mailer->getDataLoaded()) { return $this->processForm(); } else { $this->addMessage($this->mailer->getMessages()); return true; } } }