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

Public Member Functions

 init ()
 applicable_formats ()
 get_owning_quiz ()
 instance_config_save ($data)
 get_content ()
 instance_allow_multiple ()

Detailed Description

Definition at line 50 of file block_quiz_results.php.


Member Function Documentation

Which page types this block may appear on.

The information returned here is processed by the blocks_name_allowed_in_format() function. Look there if you need to know exactly how this works.

Default case: everything except mod and tag.

Returns:
array page-type prefix => true/false.

Reimplemented from block_base.

Definition at line 55 of file block_quiz_results.php.

Parent class version of this function simply returns NULL This should be implemented by the derived class to return the content object.

Returns:
stdObject

Reimplemented from block_base.

Definition at line 86 of file block_quiz_results.php.

Here is the call graph for this function:

If this block belongs to a quiz context, then return that quiz's id. Otherwise, return 0.

Returns:
integer the quiz id.

Definition at line 64 of file block_quiz_results.php.

Here is the call graph for this function:

Here is the caller graph for this function:

init ( )

Definition at line 51 of file block_quiz_results.php.

Are you going to allow multiple instances of each block? If yes, then it is assumed that the block WILL USE per-instance configuration

Returns:
boolean

Reimplemented from block_base.

Definition at line 474 of file block_quiz_results.php.

instance_config_save ( data)

Definition at line 79 of file block_quiz_results.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