protected function ensure_question_loaded($id) {
        if (isset($this->questions[$id]->_partiallyloaded)) {
            throw new moodle_quiz_exception($this, 'questionnotloaded', $id);
        }
    }
protected function ensure_question_loaded($id) {
        if (isset($this->questions[$id]->_partiallyloaded)) {
            throw new moodle_quiz_exception($this, 'questionnotloaded', $id);
        }
    }
protected function ensure_question_loaded ( $ id ) { if ( isset ( $ this -> questions [ $ id ] -> _partiallyloaded ) ) { throw new moodle_quiz_exception ( $ this , 'questionnotloaded' , $ id ) ; } }
Check that the definition of a particular question is loaded, and if not throw an exception.
@param $id a questionid.
Check that the definition of a particular question is loaded and if not throw an exception .