|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| expected_time ($callertime) | |
| prepare_package () | |
| steal_control ($stage) | |
| send_package () | |
| verify_file_request_params ($params) | |
| get_interactive_continue_url () | |
Static Public Member Functions | |
| static | get_name () |
| static | allows_multiple_instances () |
Protected Attributes | |
| $exportconfig | |
| static allows_multiple_instances | ( | ) | [static] |
override this if your plugin doesn't allow multiple instances
Reimplemented from portfolio_plugin_base.
| 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
| string | $callertime | - what the caller thinks the portfolio plugin instance is given the final say because it might be (for example) download. |
Reimplemented from portfolio_plugin_base.
the url for the user to continue to their portfolio during the lifecycle of the request
Reimplemented from portfolio_plugin_base.
| static get_name | ( | ) | [static] |
returns the user-friendly name for this plugin usually just get_string('pluginname', 'portfolio_something')
Reimplemented from portfolio_plugin_base.
| prepare_package | ( | ) |
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. {
Reimplemented from portfolio_plugin_base.
| send_package | ( | ) |
this is the function that is responsible for sending the package to the remote system, or whatever request is necessary to initiate the transfer.
Reimplemented from portfolio_plugin_base.
| 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
| int | stage to steal control *before* (see constants PARAM_STAGE_*} |
Reimplemented from portfolio_plugin_base.
| verify_file_request_params | ( | $ | params | ) |
before sending the file when the pull is requested, verify the request parameters these might include a token of some sort of whatever
| array | request parameters (POST wins over GET) |
Reimplemented from portfolio_plugin_pull_base.
$exportconfig [protected] |
named array export config during export use get_export_config and export_config to access.
Reimplemented from portfolio_plugin_base.