diff --git a/lib/class/object_count.class.php b/lib/class/object_count.class.php new file mode 100644 index 00000000..013a2e08 --- /dev/null +++ b/lib/class/object_count.class.php @@ -0,0 +1,92 @@ +$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 "