You are here

function question_state_is_closed in Quiz 6.5

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

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


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


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


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