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

Public Member Functions

 get_navigation ()
 get_return_url ()
 get ($key)
 heading_summary ()
 set_context ($PAGE)

Protected Attributes

 $cm
 $id
 $course

Detailed Description

base class for module callers this just implements a few of the abstract functions from portfolio_caller_base so that caller authors don't need to.

See http://docs.moodle.org/dev/Adding_a_Portfolio_Button_to_a_page {

See also:
also portfolio_caller_base}

Definition at line 504 of file caller.php.


Member Function Documentation

get ( key)

override the parent get function to make sure when we're asked for a course we retrieve the object from the database as needed

Reimplemented from portfolio_caller_base.

Definition at line 548 of file caller.php.

navigation passed to print_header override this to do something more specific than the module view page

Reimplemented from portfolio_caller_base.

Reimplemented in forum_portfolio_caller.

Definition at line 528 of file caller.php.

the url to return to after export or on cancel defaults to the module 'view' page override this if it's deeper inside the module

Reimplemented from portfolio_caller_base.

Reimplemented in chat_portfolio_caller, and forum_portfolio_caller.

Definition at line 538 of file caller.php.

Here is the caller graph for this function:

return a string to put at the header summarising this export by default, just the display name and the module instance name override this to do something more specific

Reimplemented from portfolio_caller_base.

Definition at line 564 of file caller.php.

Here is the call graph for this function:

set_context ( PAGE)

overridden to return the course module context

Reimplemented from portfolio_caller_base.

Definition at line 571 of file caller.php.


Field Documentation

$cm [protected]

coursemodule object set this in the constructor like $this->cm = get_coursemodule_from_instance('forum', $this->forum->id);

Definition at line 511 of file caller.php.

$course [protected]

stdclass course object

Reimplemented from portfolio_caller_base.

Definition at line 522 of file caller.php.

$id [protected]

int cmid

Definition at line 517 of file caller.php.


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