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

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 ()

Detailed Description

A rule representing the safe browser check.

Definition at line 38 of file rule.php.


Member Function Documentation

Checks if browser is safe browser

Returns:
true, if browser is safe browser else false

Definition at line 71 of file rule.php.

Here is the caller graph for this function:

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 ''.

Returns:
mixed a message, or array of messages, explaining the restriction (may be '' if no message is appropriate).

Reimplemented from quiz_access_rule_base.

Definition at line 57 of file rule.php.

static get_browser_security_choices ( ) [static]
Returns:
array key => lang string any choices to add to the quiz Browser security settings menu.

Reimplemented from quiz_access_rule_base.

Definition at line 79 of file rule.php.

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 49 of file rule.php.

Here is the call graph for this function:

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.

Parameters:
moodle_page$pagethe page object to initialise.

Reimplemented from quiz_access_rule_base.

Definition at line 61 of file rule.php.


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