function getEvents() { $data = array(); $where = $this->getSessionWhere(); $date = $this->getSessionDate(); $data = Model_Db_Dashboard::getEvents($date, $where); return $this->rightLogs($data); }
function getEvents() { $data = array(); $where = $this->getSessionWhere(); $date = $this->getSessionDate(); $db = new Model_Db_Dashboard(); $data = $db->getEvents($date, $where); if (count($data) > 0) { $this->dashboard["log_id"] = $data[count($data) - 1]["id"]; } return $this->rightLogs($data); }