You are here

function question_state_is_closed in Quiz 6.6

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

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

Parameters

object $state:

Return value

boolean true if the state has been closed

1 call to question_state_is_closed()
question_process_responses in includes/moodle/lib/questionlib.php
Processes an array of student responses, grading and saving them as appropriate

File

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

Code

function question_state_is_closed($state) {
  return $state->event == QUESTION_EVENTCLOSE or $state->event == QUESTION_EVENTCLOSEANDGRADE or $state->event == QUESTION_EVENTMANUALGRADE;
}