public function readFeedbackQuestions($id) {
        $questions = $this->readStoreRecords('feedback_item', ['feedback' => $id]);
        $expandedQuestions = [];
        foreach ($questions as $index => $question) {
            $expandedQuestion = $question;
            $expandedQuestion->template = $this->readStoreRecord('feedback_template', ['id' => $question->template]);
            $expandedQuestion->url = $this->cfg->wwwroot . '/mod/feedback/edit_item.php?id='.$question->id;
            $expandedQuestions[$index] = $expandedQuestion;
        }
        return $expandedQuestions;
    }
public function readFeedbackQuestions($id) {
        $questions = $this->readStoreRecords('feedback_item', ['feedback' => $id]);
        $expandedQuestions = [];
        foreach ($questions as $index => $question) {
            $expandedQuestion = $question;
            $expandedQuestion->template = $this->readStoreRecord('feedback_template', ['id' => $question->template]);
            $expandedQuestion->url = $this->cfg->wwwroot . '/mod/feedback/edit_item.php?id='.$question->id;
            $expandedQuestions[$index] = $expandedQuestion;
        }
        return $expandedQuestions;
    }
public function readFeedbackQuestions ( $ id ) { $ questions = $ this -> readStoreRecords ( 'feedback_item' , [ 'feedback' => $ id ] ) ; $ expandedQuestions = [ ] ; foreach ( $ questions as $ index => $ question ) { $ expandedQuestion = $ question ; $ expandedQuestion -> template = $ this -> readStoreRecord ( 'feedback_template' , [ 'id' => $ question -> template ] ) ; $ expandedQuestion -> url = $ this -> cfg -> wwwroot . '/mod/feedback/edit_item.php?id=' . $ question -> id ; $ expandedQuestions [ $ index ] = $ expandedQuestion ; } return $ expandedQuestions ; }
Reads questions from the store with the given feedback id.
@param String $id
@return PhpArr
Reads questions from the store with the given feedback id .