public function set_section_shuffle($id, $shuffle) {
        global $DB;
        $section = $DB->get_record('quiz_sections', array('id' => $id), '*', MUST_EXIST);
        $section->shufflequestions = $shuffle;
        $DB->update_record('quiz_sections', $section);
    }
public function set_section_shuffle($id, $shuffle) {
        global $DB;
        $section = $DB->get_record('quiz_sections', array('id' => $id), '*', MUST_EXIST);
        $section->shufflequestions = $shuffle;
        $DB->update_record('quiz_sections', $section);
    }
public function set_section_shuffle ( $ id , $ shuffle ) { global $ DB ; $ section = $ DB -> get_record ( 'quiz_sections' , array ( 'id' => $ id ) , '*' , MUST_EXIST ) ; $ section -> shufflequestions = $ shuffle ; $ DB -> update_record ( 'quiz_sections' , $ section ) ; }
Change the shuffle setting for a section.
@param int $id the id of the section to change.
@param bool $shuffle whether this section should be shuffled.
Change the shuffle setting for a section .