summaryrefslogtreecommitdiffstats
path: root/app/model/master.mod.php
blob: 1ce9b9aa67ba9b45017e54c1b1b2240ac322a07b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php

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);
    }
}

?>