LLMS_Question::get_auto_grade_type()

Retrieve the type of automatic grading that can be performed on the question


Return Return

(string|false)


Top ↑

Source Source

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

116
117
118
119
120
121
122
123
124
125
126
public function get_auto_grade_type() {
 
    if ( $this->supports( 'choices' ) && $this->supports( 'grading', 'auto' ) ) {
        return 'choices';
    } elseif ( $this->supports( 'grading', 'conditional' ) && llms_parse_bool( $this->get( 'auto_grade' ) ) ) {
        return 'conditional';
    }
 
    return false;
 
}


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.