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


Public Member Functions | |
| init () | |
| applicable_formats () | |
| instance_allow_config () | |
| get_content () | |
This block simply outputs a list of links to recent blog entries, depending on the context of the current page.
Definition at line 32 of file block_blog_recent.php.
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.
Reimplemented from block_base.
Definition at line 39 of file block_blog_recent.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 47 of file block_blog_recent.php.

| init | ( | ) |
Definition at line 34 of file block_blog_recent.php.
Is each block of this type going to have instance-specific configuration? Normally, this setting is controlled by instance_allow_multiple(): if multiple instances are allowed, then each will surely need its own configuration. However, in some cases it may be necessary to provide instance configuration to blocks that do not want to allow multiple instances. In that case, make this function return true. I stress again that this makes a difference ONLY if instance_allow_multiple() returns false.
Reimplemented from block_base.
Definition at line 43 of file block_blog_recent.php.