diff options
author | M <m@lfurio.us> | 2015-12-06 17:38:02 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-12-06 17:38:02 -0500 |
commit | f1c8aca230a0fc982f98f3dfc9b630b82dbb7dc4 (patch) | |
tree | 9da8822af3205a2027de634b8249f3ccc80c480d | |
parent | 75cb46f665eeec0096dd464fe49444c2c3af5eb1 (diff) | |
download | scrott-f1c8aca230a0fc982f98f3dfc9b630b82dbb7dc4.tar.gz scrott-f1c8aca230a0fc982f98f3dfc9b630b82dbb7dc4.zip |
+ Added functions to Master model for getting merged strings for all error/warning/or notice messages
Diffstat (limited to '')
-rw-r--r-- | app/model/master.mod.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/model/master.mod.php b/app/model/master.mod.php index 2570a8b..1ce9b9a 100644 --- a/app/model/master.mod.php +++ b/app/model/master.mod.php @@ -4,6 +4,38 @@ require_once "class/model.class.php"; class MasterModel extends Model { + /* + * Get string of all logged error messages + */ + function getErrorStr() + { + if (!$this->isError()) + return ""; + + return implode("<br />", $this->errorlist); + } + + /* + * Get string of all logged warning messages + */ + function getWarningStr() + { + if (!$this->isWarning()) + return ""; + + return implode("<br />", $this->warninglist); + } + + /* + * Get string of all logged notice messages + */ + function getNoticeStr() + { + if (!$this->isNotice()) + return ""; + + return implode("<br />", $this->noticelist); + } } ?> |