summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-12-06 00:16:14 -0500
committerM <m@lfurio.us>2015-12-06 00:16:14 -0500
commit9f9d2a9d313122e9cf365e3baf4a8889b611ae28 (patch)
treeaefde69e3842902b0e903dbd18eae577d001a2ee
parente6f3bf746fbb1d4c768a1d43e2a0233d0fb25f47 (diff)
downloadscrott-9f9d2a9d313122e9cf365e3baf4a8889b611ae28.tar.gz
scrott-9f9d2a9d313122e9cf365e3baf4a8889b611ae28.zip
+ Added function to model class to log all error messages from a Form objects populate call
-rw-r--r--app/class/model.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/model.class.php b/app/class/model.class.php
index 4f597f7..85bcf54 100644
--- a/app/class/model.class.php
+++ b/app/class/model.class.php
@@ -64,6 +64,14 @@ abstract class Model extends Framework
{
$this->noticelist[] = $str;
}
+
+ /*
+ * Log errors from a Form
+ */
+ function logFormErrors($obj)
+ {
+ $this->errorlist = array_merge($this->errorlist, $obj->errorlist);
+ }
}
?>