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

Public Member Functions

 supported_formats ()
 prepare_package ()
 get_interactive_continue_url ()
 expected_time ($callertime)
 send_package ()
 steal_control ($stage)
 post_control ($stage, $params)

Static Public Member Functions

static get_name ()
static allows_multiple_instances ()

Detailed Description

Google Documents Portfolio Plugin

Author:
Dan Poltawski <talktodan@gmail.com> http://www.gnu.org/copyleft/gpl.html GNU Public License

Definition at line 11 of file lib.php.


Member Function Documentation

static allows_multiple_instances ( ) [static]

override this if your plugin doesn't allow multiple instances

Returns:
boolean

Reimplemented from portfolio_plugin_base.

Definition at line 97 of file lib.php.

expected_time ( callertime)

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

Parameters:
string$callertime- what the caller thinks the portfolio plugin instance is given the final say because it might be (for example) download.
Returns:
string (see PORTFOLIO_TIME_* constants)

Reimplemented from portfolio_plugin_base.

Definition at line 39 of file lib.php.

the url for the user to continue to their portfolio during the lifecycle of the request

Returns:
string url or false.

Reimplemented from portfolio_plugin_base.

Definition at line 35 of file lib.php.

static get_name ( ) [static]

returns the user-friendly name for this plugin usually just get_string('pluginname', 'portfolio_something')

Returns:
string

Reimplemented from portfolio_plugin_base.

Definition at line 26 of file lib.php.

post_control ( stage,
params 
)

after a plugin has elected to steal control, and control returns to portfolio/add.php|postcontrol=1, this function is called, and passed the stage that was stolen control from and the request (get and post but not cookie) parameters this is useful for external systems that need to redirect the user back with some extra data in the url (like auth tokens etc) for an example implementation, see boxnet portfolio plugin.

Parameters:
int$stagethe stage before control was stolen
array$paramsa merge of $_GET and $_POST

Reimplemented from portfolio_plugin_base.

Definition at line 81 of file lib.php.

Here is the call graph for this function:

called after the caller has finished having control of its prepare_package function. this function should read all the files from the portfolio working file area and zip them and send them or whatever it wants. {

See also:
get_tempfiles} to get the list of files.

Reimplemented from portfolio_plugin_base.

Definition at line 30 of file lib.php.

this is the function that is responsible for sending the package to the remote system, or whatever request is necessary to initiate the transfer.

Returns:
boolean success

Reimplemented from portfolio_plugin_base.

Definition at line 44 of file lib.php.

steal_control ( stage)

If at any point the caller wants to steal control it can, by returning something that isn't false in this function The controller will redirect to whatever url this function returns. Afterwards, you can redirect back to portfolio/add.php?postcontrol=1 and post_control is called before the rest of the processing for the stage is done

Parameters:
intstage to steal control *before* (see constants PARAM_STAGE_*}
Returns:
boolean or string url

Reimplemented from portfolio_plugin_base.

Definition at line 59 of file lib.php.

Here is the call graph for this function:

array of formats this portfolio supports the intersection of what this function returns and what the caller supports will be used use the constants PORTFOLIO_FORMAT_*

Returns:
array list of formats

Reimplemented from portfolio_plugin_base.

Definition at line 14 of file lib.php.


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