Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/question/previewlib.php File Reference

Go to the source code of this file.

Data Structures

class  preview_options_form
class  question_preview_options

Namespaces

namespace  moodlecore

Functions

 question_preview_question_pluginfile ($course, $context, $component, $filearea, $qubaid, $slot, $args, $forcedownload)
 question_preview_action_url ($questionid, $qubaid, question_preview_options $options, $context)
 question_preview_form_url ($questionid, $context)
 restart_preview ($previewid, $questionid, $displayoptions, $context)

Function Documentation

question_preview_action_url ( questionid,
qubaid,
question_preview_options options,
context 
)

The the URL to use for actions relating to this preview.

Parameters:
int$questionidthe question being previewed.
int$qubaidthe id of the question usage for this preview.
question_preview_options$optionsthe options in use.

Definition at line 265 of file previewlib.php.

Here is the call graph for this function:

question_preview_form_url ( questionid,
context 
)

The the URL to use for actions relating to this preview.

Parameters:
int$questionidthe question being previewed.
int$qubaidthe id of the question usage for this preview.
question_preview_options$optionsthe options in use.

Definition at line 286 of file previewlib.php.

question_preview_question_pluginfile ( course,
context,
component,
filearea,
qubaid,
slot,
args,
forcedownload 
)

Called via pluginfile.php -> question_pluginfile to serve files belonging to a question in a question_attempt when that attempt is a preview.

Parameters:
object$coursecourse settings object
object$contextcontext object
string$componentthe name of the component we are serving files for.
string$fileareathe name of the file area.
int$qubaidthe question_usage this image belongs to.
int$slotthe relevant slot within the usage.
array$argsthe remaining bits of the file path.
bool$forcedownloadwhether the user must be forced to download the file.
Returns:
bool false if file not found, does not return if found - justsend the file

Definition at line 227 of file previewlib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

restart_preview ( previewid,
questionid,
displayoptions,
context 
)

Delete the current preview, if any, and redirect to start a new preview.

Parameters:
int$previewid
int$questionid
object$displayoptions
object$context

Definition at line 305 of file previewlib.php.

Here is the call graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations