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

Public Member Functions

 __construct ($content)
 expected_time ()
 get_navigation ()
 get_sha1 ()
 prepare_package ()
 get_return_url ()
 check_permissions ()
 load_data ()
 set_context ($PAGE)

Static Public Member Functions

static display_name ()
static expected_callbackargs ()
static base_supported_formats ()

Detailed Description

Definition at line 64 of file portfolio_testclass.php.


Constructor & Destructor Documentation

__construct ( content)

Reimplemented from portfolio_caller_base.

Definition at line 67 of file portfolio_testclass.php.


Member Function Documentation

static base_supported_formats ( ) [static]

Reimplemented from portfolio_caller_base.

Definition at line 107 of file portfolio_testclass.php.

callback to do whatever capability checks required in the caller (called during the export process

Reimplemented from portfolio_caller_base.

Definition at line 92 of file portfolio_testclass.php.

static display_name ( ) [static]

nice name to display to the user about this caller location

Reimplemented from portfolio_caller_base.

Definition at line 96 of file portfolio_testclass.php.

static expected_callbackargs ( ) [static]

array of arguments the caller expects to be passed through to it this must be keyed on the argument name, and the array value is a boolean, whether it is required, or just optional eg array( id => true, somethingelse => false, )

Returns:
array

Reimplemented from portfolio_caller_base.

Definition at line 104 of file portfolio_testclass.php.

how long does this reasonably expect to take.. should we offer the user the option to wait.. this is deliberately nonstatic so it can take filesize into account the portfolio plugin can override this. (so for example even if a huge file is being sent, the download portfolio plugin doesn't care )

Returns:
string (see PORTFOLIO_TIME_* constants)

Reimplemented from portfolio_caller_base.

Definition at line 71 of file portfolio_testclass.php.

used for displaying the navigation during the export screens.

this function must be implemented, but can really return anything. an Exporting.. string will be added on the end.

Returns:
array of $extranav and $cm

to pass to build_navigation

Reimplemented from portfolio_caller_base.

Definition at line 75 of file portfolio_testclass.php.

Here is the call graph for this function:

this is the "return to where you were" url

Returns:
string url

Reimplemented from portfolio_caller_base.

Definition at line 88 of file portfolio_testclass.php.

Here is the caller graph for this function:

get_sha1 ( )

Reimplemented from portfolio_caller_base.

Definition at line 80 of file portfolio_testclass.php.

load_data ( )

Reimplemented from portfolio_caller_base.

Definition at line 100 of file portfolio_testclass.php.

called before the portfolio plugin gets control this function should copy all the files it wants to the temporary directory, using {

See also:
copy_existing_file} or {
write_new_file}

Reimplemented from portfolio_caller_base.

Definition at line 84 of file portfolio_testclass.php.

set_context ( PAGE)

return the context for this export. used for $PAGE->set_context

Returns:
stdclass

Reimplemented from portfolio_caller_base.

Definition at line 110 of file portfolio_testclass.php.

Here is the call graph for this function:


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