Explorar o código

#2174 Add getData to BxDolObjectQuery

RomanL %!s(int64=7) %!d(string=hai) anos
pai
achega
66bb134e2f
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      inc/classes/BxDolObjectQuery.php

+ 7 - 1
inc/classes/BxDolObjectQuery.php

@@ -81,9 +81,15 @@ class BxDolObjectQuery extends BxDolDb
 
     public function getPerformedBy($iObjectId)
     {
-        $sQuery = $this->prepare("SELECT `author_id` FROM `{$this->_sTableTrack}` WHERE `object_id`=?", $iObjectId);
+        $sQuery = $this->prepare("SELECT `author_id` FROM `{$this->_sTableTrack}` WHERE `object_id` = ?", $iObjectId);
         return $this->getColumn($sQuery);
     }
+    
+    public function getData($iObjectId)
+    {
+        $sQuery = $this->prepare("SELECT * FROM `{$this->_sTableTrack}` WHERE `object_id` = ?", $iObjectId);
+        return $this->getAll($sQuery);
+    }
 
     public function getTrack($iObjectId, $iAuthorId)
     {