|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($question) | |
| load_user_defaults () | |
| save_user_preview_options ($newoptions) | |
| set_from_request () | |
| get_url_params () | |
Data Fields | |
| $behaviour | |
| $maxmark | |
| $variant | |
| const | OPTIONPREFIX = 'question_preview_options_' |
Protected Member Functions | |
| get_user_pref_fields () | |
| get_field_types () | |
Displays question preview options as default and set the options Setting default, getting and setting user preferences in question preview options.
Definition at line 104 of file previewlib.php.
| __construct | ( | $ | question | ) |
Constructor.
Definition at line 120 of file previewlib.php.

| get_field_types | ( | ) | [protected] |
Definition at line 148 of file previewlib.php.

| get_url_params | ( | ) |
Definition at line 200 of file previewlib.php.


| get_user_pref_fields | ( | ) | [protected] |
Definition at line 140 of file previewlib.php.

Load the value of the options from the user_preferences table.
Definition at line 166 of file previewlib.php.

| save_user_preview_options | ( | $ | newoptions | ) |
Save a change to the user's preview options to the database.
| object | $newoptions |
Definition at line 178 of file previewlib.php.

| set_from_request | ( | ) |
Set the value of any fields included in the request.
Definition at line 189 of file previewlib.php.

| $behaviour |
Definition at line 106 of file previewlib.php.
Definition at line 109 of file previewlib.php.
| $variant |
Definition at line 112 of file previewlib.php.
| const OPTIONPREFIX = 'question_preview_options_' |
Definition at line 115 of file previewlib.php.