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


Public Member Functions | |
| prevent_access () | |
Static Public Member Functions | |
| static | make (quiz $quizobj, $timenow, $canignoretimelimits) |
A rule implementing the ipaddress check against the ->subnet setting.
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 48 of file rule.php.
