Class sloodle_base_view

Description

The base class for viewing a SLOODLE module or feature.

Should be inherited and overridden. Child class MUST be named "sloodle_view_NAME", where NAME replaces the name of the feature or module. For example, "sloodle_view_controller" or "sloodle_view_course". For modules, the NAME must match the "type" specifier in the "sloodle" table, such as "controller", "distributor", or "presenter". Modules should be automatically found, although special features (such as courses or users) will need to coded manually into the main view.php script.

Located in /view/base/base_view.php (line 24)


	
			
Direct descendents
Class Description
 class sloodle_base_view_module The base class for viewing a SLOODLE module.
 class sloodle_view_course Class for rendering a view of SLOODLE course information.
 class sloodle_view_user Class for rendering a view of SLOODLE user information.
 class sloodle_view_users Class for rendering a view of SLOODLE users.
Method Summary
 sloodle_base_view sloodle_base_view ()
 void print_footer ()
 void print_header ()
 void process_form ()
 void process_request ()
 void render ()
 void view ()
Methods
Constructor sloodle_base_view (line 29)

Constructor.

sloodle_base_view sloodle_base_view ()
check_permission (line 78)

Check that the user has permission to access the current resources.

This must be overridden to add functionality.

void check_permission ()

Redefined in descendants as:
print_footer (line 111)

Output the page footer.

This does not usually have to be overridden, unless there is something to be added or a block element to be closed.

void print_footer ()

Redefined in descendants as:
print_header (line 94)

Print the standard page header.

This should usually be overridden to add additional information, such as page title, header, and navigation links.

void print_header ()

Redefined in descendants as:
process_form (line 86)

Process any form data which has been submitted.

This must be overridden to add functionality.

void process_form ()

Redefined in descendants as:
process_request (line 70)

Check for incoming request data identifying a particular course or module.

This must be overridden to add functionality.

void process_request ()

Redefined in descendants as:
render (line 103)

Render the view of the module or feature.

This MUST be overridden to provide functionality.

void render ()

Redefined in descendants as:
view (line 37)

The main viewing function.

This gets called by the system to render the view of the module.

void view ()

Documentation generated on Fri, 17 Jul 2009 11:01:01 +0100 by phpDocumentor 1.4.0