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

Public Member Functions

 init ()
 user_can_addto ($page)
 user_can_edit ()
 get_content ()

Detailed Description

Definition at line 28 of file block_community.php.


Member Function Documentation

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 52 of file block_community.php.

Here is the call graph for this function:

init ( )

Definition at line 30 of file block_community.php.

user_can_addto ( page)

Allows the block class to have a say in the user's ability to create new instances of this block. The framework has first say in whether this will be allowed (e.g., no adding allowed unless in edit mode) but if the framework does allow it, the block can still decide to refuse. This function has access to the complete page object, the creation related to which is being determined.

Parameters:
moodle_page$page
Returns:
boolean

Reimplemented from block_base.

Definition at line 34 of file block_community.php.

Here is the call graph for this function:

Allows the block class to have a say in the user's ability to edit (i.e., configure) blocks of this type. The framework has first say in whether this will be allowed (e.g., no editing allowed unless in edit mode) but if the framework does allow it, the block can still decide to refuse.

Returns:
boolean

Reimplemented from block_base.

Definition at line 43 of file block_community.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