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


Public Member Functions | |
| __wakeup () | |
| supported_formats () | |
| expected_time ($callertime) | |
| admin_config_form (&$mform) | |
| instance_sanity_check () | |
| prepare_package () | |
| send_package () | |
| get_static_continue_url () | |
| resolve_static_continue_url ($remoteurl) | |
| get_interactive_continue_url () | |
| steal_control ($stage) | |
| verify_file_request_params ($params) | |
| send_intent () | |
| cleanup () | |
Static Public Member Functions | |
| static | get_name () |
| static | get_allowed_config () |
| static | has_admin_config () |
| static | plugin_sanity_check () |
| static | fetch_file ($token) |
Protected Member Functions | |
| init () | |
| admin_config_form | ( | &$ | mform | ) |
mform to display to the admin configuring the plugin. if your plugin can't be configured by the admin, (see has_admin_config) don't bother overriding this function
this function can be called statically or non statically, depending on whether it's creating a new instance (statically), or editing an existing one (non statically)
| moodleform | $mform | passed by reference, add elements to it. |
Reimplemented from portfolio_plugin_base.
| cleanup | ( | ) |
perform any required cleanup functions
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.
| static fetch_file | ( | $ | token | ) | [static] |
| static get_allowed_config | ( | ) | [static] |
a list of fields that can be configured per instance. this is used for the save handlers of the config form and as checks in set_config and get_config
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.
Definition at line 246 of file lib.php.

| static get_name | ( | ) | [static] |
returns the user-friendly name for this plugin usually just get_string('pluginname', 'portfolio_something')
Reimplemented from portfolio_plugin_base.
the url to save in the log as the continue url this is passed through resolve_static_continue_url() at display time to the user.
Reimplemented from portfolio_plugin_base.
Definition at line 228 of file lib.php.

| static has_admin_config | ( | ) | [static] |
does this plugin need any configuration by the administrator?
if you override this to return true, you must implement {
Reimplemented from portfolio_plugin_base.
| init | ( | ) | [protected] |
called after __construct - allows plugins to perform initialisation tasks without having to override the constructor.
Reimplemented from portfolio_plugin_base.
Definition at line 53 of file lib.php.

check sanity of instances if this function returns something non empty, the instance will be set to invislbe and not be able to be set back until it's fixed.
Reimplemented from portfolio_plugin_base.
Definition at line 98 of file lib.php.

| static plugin_sanity_check | ( | ) | [static] |
check sanity of plugin if this function returns something non empty, ALL instances of your plugin will be set to invisble and not be able to be set back until it's fixed
Reimplemented from portfolio_plugin_base.
Definition at line 117 of file lib.php.

| 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.
| resolve_static_continue_url | ( | $ | url | ) |
override this function if you need to add something on to the url for post-export continues (eg from the log page) mahara does this, for example, to start a jump session
Reimplemented from portfolio_plugin_base.
Definition at line 239 of file lib.php.


| send_intent | ( | ) |
| 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.
Definition at line 188 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
| int | stage to steal control *before* (see constants PARAM_STAGE_*} |
Reimplemented from portfolio_plugin_base.
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_*
Reimplemented from portfolio_plugin_base.
Definition at line 69 of file lib.php.

| 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.