Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes
questionbase.php File Reference

This file defines the class question_definition and its subclasses. More...

Classes

class  question_answer
 Class to represent a question answer, loaded from the question_answers table in the database. More...
 
interface  question_automatically_gradable
 Interface that a question_definition must implement to be usable by the various automatic grading behaviours. More...
 
interface  question_automatically_gradable_with_countback
 Interface that a question_definition must implement to be usable by the interactivecountback behaviour. More...
 
class  question_classified_response
 This class is used in the return value from question_manually_gradable::classify_response(). More...
 
class  question_definition
 The definition of a question of a particular type. More...
 
class  question_first_matching_answer_grading_strategy
 This grading strategy is used by question types like shortanswer an numerical. More...
 
class  question_graded_automatically
 This class represents a question that can be graded automatically. More...
 
class  question_graded_automatically_with_countback
 This class represents a question that can be graded automatically with countback grading in interactive mode. More...
 
class  question_graded_by_strategy
 This class represents a question that can be graded automatically by using a question_grading_strategy. More...
 
interface  question_grading_strategy
 This question_grading_strategy interface. More...
 
class  question_hint
 Class to represent a hint associated with a question. More...
 
class  question_hint_with_parts
 An extension of question_hint for questions like match and multiple choice with multile answers, where there are options for whether to show the number of parts right at each stage, and to reset the wrong parts. More...
 
class  question_information_item
 This class represents a 'question' that actually does not allow the student to respond, like the description 'question' type. More...
 
interface  question_manually_gradable
 Interface that a question_definition must implement to be usable by the manual graded behaviour. More...
 
interface  question_response_answer_comparer
 This interface defines the methods that a question_definition must implement if it is to be graded by the question_first_matching_answer_grading_strategy. More...
 
class  question_with_responses
 This class represents a real question. More...
 

Detailed Description

This file defines the class question_definition and its subclasses.

The type hierarchy is quite complex. Here is a summary:

Other classes:

Other interfaces:

@subpackage questiontypes

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later