You are here

function question_state_is_graded in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/questionlib.php \question_state_is_graded()

Determines whether a state has been graded by looking at the event field


object $state:

Return value

boolean true if the state has been graded

3 calls to question_state_is_graded()
question_print_comment_box in includes/moodle/lib/questionlib.php
question_process_responses in includes/moodle/lib/questionlib.php
Processes an array of student responses, grading and saving them as appropriate
save_question_session in includes/moodle/lib/questionlib.php
Saves the current state of the question session to the database


includes/moodle/lib/questionlib.php, line 1035


function question_state_is_graded($state) {
  $gradedevents = explode(',', QUESTION_EVENTS_GRADED);
  return in_array($state->event, $gradedevents);