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

Static Public Member Functions

static make_from_quiz ($quiz, $when)

Data Fields

const DURING = 0x10000
const IMMEDIATELY_AFTER = 0x01000
const LATER_WHILE_OPEN = 0x00100
const AFTER_CLOSE = 0x00010
 $attempt = true
 $overallfeedback = self::VISIBLE

Static Protected Member Functions

static extract ($bitmask, $bit, $whenset=self::VISIBLE, $whennotset=self::HIDDEN)

Detailed Description

An extension of question_display_options that includes the extra options used by the quiz.

Definition at line 1320 of file locallib.php.


Member Function Documentation

static extract ( bitmask,
bit,
whenset = self::VISIBLE,
whennotset = self::HIDDEN 
) [static, protected]

Definition at line 1373 of file locallib.php.

Here is the caller graph for this function:

static make_from_quiz ( quiz,
when 
) [static]

Set up the various options from the quiz settings, and a time constant.

Parameters:
object$quizthe quiz settings.
int$oneof the DURING, IMMEDIATELY_AFTER, LATER_WHILE_OPEN or AFTER_CLOSE constants.
Returns:
mod_quiz_display_options set up appropriately.

Definition at line 1350 of file locallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Definition at line 1335 of file locallib.php.

$overallfeedback = self::VISIBLE

Definition at line 1341 of file locallib.php.

const AFTER_CLOSE = 0x00010

Definition at line 1328 of file locallib.php.

const DURING = 0x10000

Definition at line 1325 of file locallib.php.

const IMMEDIATELY_AFTER = 0x01000

Definition at line 1326 of file locallib.php.

const LATER_WHILE_OPEN = 0x00100

Definition at line 1327 of file locallib.php.


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