LLMS_Quiz_Attempt_Question::can_be_manually_graded()

Determine if it’s possible to manually grade the question


Return Return

(boolean)


Top ↑

Source Source

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

56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
public function can_be_manually_graded() {
 
    $question = $this->get_question();
 
    if ( $question && $this->get( 'points' ) >= 1 ) {
 
        // The question is auto-gradable so it cannot be manually graded.
        if ( $question->get_auto_grade_type() ) {
            return false;
        } elseif ( $question->supports( 'grading', 'manual' ) || $question->supports( 'grading', 'conditional' ) ) {
            return true;
        }
    }
 
    return false;
 
}


Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Early bail for deleted questions.
3.16.9 Unknown.
3.16.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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