select('report') ->where('companyId = ?', $companyId); $result = $this->getAdapter()->fetchAll($sql); return ($result); } public function getReportByIdAndType($companyId, $type) { $sql = $this->select() ->where('companyId = ?', $companyId) ->where('type = ?', $type); $result = $this->getAdapter()->fetchRow($sql); return ($result['report']); } public function getReportDate($companyId, $type) { $sql = $this->select('date') ->where('companyId = ?', $companyId) ->where('type = ?', $type); $result = $this->getAdapter()->fetchAll($sql); return ($result); } } ?>