From e773d1e43fc566604964ffa93f70c1faae3a977d Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 23 Oct 2006 00:32:12 +0000 Subject: [PATCH] just so it will let me renamed it --- lib/class/object_count.class.php | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 lib/class/object_count.class.php 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 "
" . error_results($name) . "
\n"; + } + + } // print_error + +} //end error class +?>