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
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. |