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


Public Member Functions | |
| attempt_must_be_in_popup () | |
| get_popup_options () | |
| setup_attempt_page ($page) | |
Static Public Member Functions | |
| static | make (quiz $quizobj, $timenow, $canignoretimelimits) |
| static | get_browser_security_choices () |
Static Protected Attributes | |
| static | $popupoptions |
A rule for ensuring that the quiz is opened in a popup, with some JavaScript to prevent copying and pasting, etc.
Reimplemented from quiz_access_rule_base.
| static get_browser_security_choices | ( | ) | [static] |
Reimplemented from quiz_access_rule_base.
Reimplemented from quiz_access_rule_base.
Return an appropriately configured instance of this rule, if it is applicable to the given quiz, otherwise return null.
| quiz | $quizobj | information about the quiz in question. |
| int | $timenow | the time that should be considered as 'now'. |
| bool | $canignoretimelimits | whether the current user is exempt from time limits by the mod/quiz:ignoretimelimits capability. |
Reimplemented from quiz_access_rule_base.
Definition at line 55 of file rule.php.

| setup_attempt_page | ( | $ | page | ) |
Sets up the attempt (review or summary) page with any special extra properties required by this rule. securewindow rule is an example of where this is used.
| moodle_page | $page | the page object to initialise. |
Reimplemented from quiz_access_rule_base.
Definition at line 72 of file rule.php.

$popupoptions [static, protected] |