diff options
Diffstat (limited to 'app/class')
| -rw-r--r-- | app/class/issue.class.php | 18 | ||||
| -rw-r--r-- | app/class/object.class.php | 18 | 
2 files changed, 18 insertions, 18 deletions
| diff --git a/app/class/issue.class.php b/app/class/issue.class.php index 3127a87..6056457 100644 --- a/app/class/issue.class.php +++ b/app/class/issue.class.php @@ -63,24 +63,6 @@ class issue extends object      }      /* -     * Get all activity for this issue.  Messages are sorted by date -     * created. -     */ -    public function getMesgs_ordByDatetime() : array -    { -        $query = "SELECT guid FROM objects WHERE objtype = 'mesg' AND " . -            "parent = '" . database::esc($this->guid) . "' ORDER BY created"; -        $res = database::query($query); - -        $mesgs = array(); - -        foreach ($res as $m) -            $mesgs[] = new mesg($m['guid']); - -        return $mesgs; -    } - -    /*       * Reset the seen flag and reassign this issue.       */      public function assignTo(user $assignee) : void diff --git a/app/class/object.class.php b/app/class/object.class.php index 7c80b5b..461f1b1 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -163,6 +163,24 @@ class object extends table      }      /* +     * Get all messages on this object.  Messages are sorted by date +     * created. +     */ +    public function getMesgs_ordByDatetime() : array +    { +        $query = "SELECT guid FROM objects WHERE objtype = 'mesg' AND " . +            "parent = '" . database::esc($this->guid) . "' ORDER BY created"; +        $res = database::query($query); + +        $mesgs = array(); + +        foreach ($res as $m) +            $mesgs[] = new mesg($m['guid']); + +        return $mesgs; +    } + +    /*       * Get the URL to the head image resource for this object       */      public function getHeadImg() : string | 
