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


Public Member Functions | |
| is_empty () | |
| html_attributes () | |
Data Fields | |
| $content_type = BLOCK_TYPE_LIST | |
Protected Member Functions | |
| formatted_contents ($output) | |
Definition at line 677 of file moodleblock.class.php.
| formatted_contents | ( | $ | output | ) | [protected] |
Convert the contents of the block to HTML.
This is used by block base classes like block_list to convert the structured $this->content->list and $this->content->icons arrays to HTML. So, in most blocks, you probaby want to override the get_contents() method, which generates that structured representation of the contents.
| $output | The core_renderer to use when generating the output. |
Reimplemented from block_base.
Reimplemented in block_tree.
Definition at line 689 of file moodleblock.class.php.

| html_attributes | ( | ) |
Return any HTML attributes that you want added to the outer
function html_attributes() { $attributes = parent::html_attributes(); $attributes['class'] .= ' mynewclass'; return $attributes; } Reimplemented from block_base.
Definition at line 699 of file moodleblock.class.php.
| is_empty | ( | ) |
Returns true or false, depending on whether this block has any content to display and whether the user has permission to view the block
Reimplemented from block_base.
Definition at line 680 of file moodleblock.class.php.

| $content_type = BLOCK_TYPE_LIST |
The type of content that this block creates. Currently support options - BLOCK_TYPE_LIST, BLOCK_TYPE_TEXT
Reimplemented from block_base.
Reimplemented in block_tree.
Definition at line 678 of file moodleblock.class.php.