LLMS_Quiz_Attempt_Question::get_status()
Receive the graded status of the question
Description Description
Return Return
(string) [graded|waiting|none]
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'; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: