LLMS_Quiz_Attempt_Question::get_status()

Receive the graded status of the question


Description Description


Return Return

(string) [graded|waiting|none]


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.question.php

	public function get_status() {

		$question = $this->get_question();

		if ( $this->get( 'points' ) >= 1 ) {

			if ( $question->get_auto_grade_type() ) {

				return 'graded';

			} elseif ( $question->supports( 'grading', 'manual' ) || $question->supports( 'grading', 'conditional' ) ) {

				if ( ! $this->get( 'correct' ) ) {
					return 'waiting';
				} else {
					return 'graded';
				}
			}
		}

		return 'none';
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: