LLMS_Question::get_auto_grade_type()
Retrieve the type of automatic grading that can be performed on the question
Return Return
(string|false)
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; } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |