$description); error_results($array,1); $this->error_state = 1; return true; } // add_error /*! @function has_error @discussion returns true if the name given has an error, false if it doesn't */ function has_error($name) { $results = error_results($name); if (!empty($results)) { return true; } return false; } // has_error /*! @function print_error @discussion prints out the error for a name if it exists */ function print_error($name) { if ($this->has_error($name)) { echo "
" . error_results($name) . "
\n"; } } // print_error } //end error class ?>