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


Public Member Functions | |
| init () | |
| user_can_addto ($page) | |
| user_can_edit () | |
| get_content () | |
Definition at line 28 of file block_community.php.
| get_content | ( | ) |
Parent class version of this function simply returns NULL This should be implemented by the derived class to return the content object.
Reimplemented from block_base.
Definition at line 52 of file block_community.php.

| 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.
| moodle_page | $page |
Reimplemented from block_base.
Definition at line 34 of file block_community.php.

| user_can_edit | ( | ) |
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.
Reimplemented from block_base.
Definition at line 43 of file block_community.php.
