getAllFeedback() public static method

Fetches all the feedback that is available
public static getAllFeedback ( integer $limit = 5 ) : array
$limit integer
return array
Example #1
0
 /**
  * Load the data
  */
 private function loadData()
 {
     $allFeedback = BackendFaqModel::getAllFeedback();
     // build the urls
     foreach ($allFeedback as $feedback) {
         $feedback['full_url'] = BackendModel::createURLForAction('Edit', 'Faq') . '&id=' . $feedback['question_id'] . '#tabFeedback';
         $this->feedback[] = $feedback;
     }
 }