From 9f9d2a9d313122e9cf365e3baf4a8889b611ae28 Mon Sep 17 00:00:00 2001 From: M Date: Sun, 6 Dec 2015 00:16:14 -0500 Subject: + Added function to model class to log all error messages from a Form objects populate call --- app/class/model.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/class/model.class.php') 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); + } } ?> -- cgit v1.2.3