public function get_sections() {
        global $DB;
        if ($this->sections === null) {
            $this->sections = array_values($DB->get_records('quiz_sections',
                    array('quizid' => $this->get_quizid()), 'firstslot'));
        }
        return $this->sections;
    }
public function get_sections() {
        global $DB;
        if ($this->sections === null) {
            $this->sections = array_values($DB->get_records('quiz_sections',
                    array('quizid' => $this->get_quizid()), 'firstslot'));
        }
        return $this->sections;
    }
public function get_sections ( ) { global $ DB ; if ( $ this -> sections === null ) { $ this -> sections = array_values ( $ DB -> get_records ( 'quiz_sections' , array ( 'quizid' => $ this -> get_quizid ( ) ) , 'firstslot' ) ) ; } return $ this -> sections ; }
Get all the sections in this quiz.
@return array 0, 1, 2, ... => quiz_sections row from the database.
Get all the sections in this quiz .