diff options
| author | M <m@lfurio.us> | 2015-12-06 00:16:14 -0500 | 
|---|---|---|
| committer | M <m@lfurio.us> | 2015-12-06 00:16:14 -0500 | 
| commit | 9f9d2a9d313122e9cf365e3baf4a8889b611ae28 (patch) | |
| tree | aefde69e3842902b0e903dbd18eae577d001a2ee /app/class | |
| parent | e6f3bf746fbb1d4c768a1d43e2a0233d0fb25f47 (diff) | |
| download | scrott-9f9d2a9d313122e9cf365e3baf4a8889b611ae28.tar.gz scrott-9f9d2a9d313122e9cf365e3baf4a8889b611ae28.zip | |
+ Added function to model class to log all error messages from a Form objects populate call
Diffstat (limited to 'app/class')
| -rw-r--r-- | app/class/model.class.php | 8 | 
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); +    }  }  ?> | 
