Moodle  2.2.1
http://www.collinsharper.com
question_answer Class Reference
Inheritance diagram for question_answer:

Public Member Functions

 __construct ($id, $answer, $fraction, $feedback, $feedbackformat)

Data Fields

 $id
 $answer
 $answerformat = FORMAT_PLAIN
 $fraction
 $feedback
 $feedbackformat

Detailed Description

Class to represent a question answer, loaded from the question_answers table in the database.

Definition at line 730 of file questionbase.php.


Constructor & Destructor Documentation

__construct ( id,
answer,
fraction,
feedback,
feedbackformat 
)

Constructor.

Parameters:
int$idthe answer.
string$answerthe answer.
int$answerformatthe format of the answer.
number$fractionthe fraction this answer is worth.
string$feedbackthe feedback for this answer.
int$feedbackformatthe format of the feedback.

Definition at line 758 of file questionbase.php.


Field Documentation

$answer

Definition at line 735 of file questionbase.php.

$answerformat = FORMAT_PLAIN

Definition at line 738 of file questionbase.php.

$feedback

Definition at line 744 of file questionbase.php.

$feedbackformat

Definition at line 747 of file questionbase.php.

$fraction

Definition at line 741 of file questionbase.php.

$id

Definition at line 732 of file questionbase.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations