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

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

__construct ( question)

Constructor.

Definition at line 120 of file previewlib.php.

Here is the call graph for this function:


Member Function Documentation

get_field_types ( ) [protected]
Returns:
array names and param types of the options we read from the request.

Definition at line 148 of file previewlib.php.

Here is the caller graph for this function:

Returns:
string URL fragment. Parameters needed in the URL when continuing this preview.

Definition at line 200 of file previewlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_user_pref_fields ( ) [protected]
Returns:
array names of the options we store in the user preferences table.

Definition at line 140 of file previewlib.php.

Here is the caller graph for this function:

Load the value of the options from the user_preferences table.

Definition at line 166 of file previewlib.php.

Here is the call graph for this function:

save_user_preview_options ( newoptions)

Save a change to the user's preview options to the database.

Parameters:
object$newoptions

Definition at line 178 of file previewlib.php.

Here is the call graph for this function:

Set the value of any fields included in the request.

Definition at line 189 of file previewlib.php.

Here is the call graph for this function:


Field Documentation

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


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