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

Public Member Functions

 prevent_access ()

Static Public Member Functions

static make (quiz $quizobj, $timenow, $canignoretimelimits)

Detailed Description

A rule implementing the ipaddress check against the ->subnet setting.

Definition at line 38 of file rule.php.


Member Function Documentation

static make ( quiz quizobj,
timenow,
canignoretimelimits 
) [static]

Return an appropriately configured instance of this rule, if it is applicable to the given quiz, otherwise return null.

Parameters:
quiz$quizobjinformation about the quiz in question.
int$timenowthe time that should be considered as 'now'.
bool$canignoretimelimitswhether the current user is exempt from time limits by the mod/quiz:ignoretimelimits capability.
Returns:
quiz_access_rule_base|null the rule, if applicable, else null.

Reimplemented from quiz_access_rule_base.

Definition at line 40 of file rule.php.

Here is the call graph for this function:

Whether the user should be blocked from starting a new attempt or continuing an attempt now.

Returns:
string false if access should be allowed, a message explaining the reason if access should be prevented.

Reimplemented from quiz_access_rule_base.

Definition at line 48 of file rule.php.

Here is the call graph for this function:


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