public static function getAllFeedbackForQuestion($id) { return (array) BackendModel::getContainer()->get('database')->getRecords('SELECT f.* FROM faq_feedback AS f WHERE f.question_id = ? AND f.processed = ?', array((int) $id, 'N')); }
/** * Get the data */ private function getData() { $this->record = (array) BackendFaqModel::get($this->id); $this->feedback = BackendFaqModel::getAllFeedbackForQuestion($this->id); }