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

Public Member Functions

 supported_formats ()
 prepare_package ()
 send_package ()
 get_interactive_continue_url ()
 expected_time ($callertime)
 admin_config_form (&$mform)
 has_export_config ()
 get_allowed_user_config ()
 steal_control ($stage)
 post_control ($stage, $params)
 export_config_form (&$mform)
 get_allowed_export_config ()
 get_export_summary ()

Static Public Member Functions

static get_name ()
static allows_multiple_instances ()
static get_allowed_config ()
static has_admin_config ()
static allows_multiple_exports ()

Detailed Description

Definition at line 31 of file lib.php.


Member Function Documentation

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)

Parameters:
moodleform$mformpassed by reference, add elements to it.

Reimplemented from portfolio_plugin_base.

Definition at line 99 of file lib.php.

static allows_multiple_exports ( ) [static]

For now, flickr doesn't support this because we can't dynamically construct callbackurl

Reimplemented from portfolio_plugin_base.

Definition at line 246 of file lib.php.

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 79 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 87 of file lib.php.

export_config_form ( &$  mform)

mform to display to the user exporting data using this plugin. if your plugin doesn't need user input at this time, (see has_export_config don't bother overrideing this function

Parameters:
moodleform$mformpassed by reference, add elements to it.

Reimplemented from portfolio_plugin_base.

Definition at line 159 of file lib.php.

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

Returns:
array array of strings (config item names)

Reimplemented from portfolio_plugin_base.

Definition at line 91 of file lib.php.

a list of fields that can be configured by the user. this is used for the save handlers in the config form and as checks in set_export_config and get_export_config.

Returns:
array array of strings (config field names)

Reimplemented from portfolio_plugin_base.

Definition at line 206 of file lib.php.

a list of fields that can be configured by the user. this is used for the save handlers in the config form and as checks in set_user_config and get_user_config.

Returns:
array array of strings (config field names)

Reimplemented from portfolio_plugin_base.

Definition at line 119 of file lib.php.

after the user submits their config they're given a confirm screen summarising what they've chosen.

this function should return a table of nice strings => values of what they've chosen to be displayed in a table.

Returns:
array array of config items.

Reimplemented from portfolio_plugin_base.

Definition at line 210 of file lib.php.

Here is the call graph for this function:

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 83 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 41 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 {

See also:
admin_config_form}

Reimplemented from portfolio_plugin_base.

Definition at line 95 of file lib.php.

does this plugin need configuration during export time?

if you override this to return true, you must implement {

See also:
export_config_form}

Reimplemented from portfolio_plugin_base.

Definition at line 115 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 144 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 45 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 49 of file lib.php.

Here is the call graph for this function:

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 123 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 37 of file lib.php.


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