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


Public Member Functions | |
| prevent_access () | |
| description () | |
| setup_attempt_page ($page) | |
| check_safe_browser () | |
Static Public Member Functions | |
| static | make (quiz $quizobj, $timenow, $canignoretimelimits) |
| static | get_browser_security_choices () |
A rule representing the safe browser check.
| description | ( | ) |
Information, such as might be shown on the quiz view page, relating to this restriction. There is no obligation to return anything. If it is not appropriate to tell students about this rule, then just return ''.
Reimplemented from quiz_access_rule_base.
| static get_browser_security_choices | ( | ) | [static] |
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 40 of file rule.php.

| prevent_access | ( | ) |
Whether the user should be blocked from starting a new attempt or continuing an attempt now.
Reimplemented from quiz_access_rule_base.
Definition at line 49 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.