errors = array( RSS_ERROR_ERROR => array(), RSS_ERROR_WARNING => array(), RSS_ERROR_NOTICE => array() ); } function getErrorCount() { return (count($this -> errors[RSS_ERROR_NOTICE]) + count($this -> errors[RSS_ERROR_WARNING]) + count($this -> errors[RSS_ERROR_ERROR])); } function appendError($error, $severity = RSS_ERROR_ERROR) { $this -> errors[$severity][] = $error; } function render() { rss_require(RSS::getTemplateFile("error.php")); } } ?>