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

Public Member Functions

 init ()
 applicable_formats ()
 get_content ()

Detailed Description

Definition at line 3 of file block_site_main_menu.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 8 of file block_site_main_menu.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

extra fast view mode

slow & hacky editing mode

Casting $course->modinfo to string prevents one notice when the field is null

Reimplemented from block_base.

Definition at line 12 of file block_site_main_menu.php.

Here is the call graph for this function:

init ( )

Definition at line 4 of file block_site_main_menu.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations