_errors[] = $e; if ($fail || $this->_alwaysFail) { print($this->getHtml()); exit; } } function errorsExist() { return (count($this->_errors) > 0); } function get() { return $this->_errors; } function clear() { $this->_errors = array(); } function getHtml() { $str = ''; if ($this->errorsExist()) { $str .= '