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


Public Member Functions | |
| __construct ($callbackargs) | |
| load_data () | |
| expected_time () | |
| get_sha1 () | |
| prepare_package () | |
| check_permissions () | |
| __wakeup () | |
| has_export_config () | |
| export_config_form (&$mform, $instance) | |
| get_allowed_export_config () | |
Static Public Member Functions | |
| static | expected_callbackargs () |
| static | display_name () |
| static | formats ($fields, $record) |
| static | has_files ($data) |
| static | base_supported_formats () |
Protected Attributes | |
| $recordid | |
The class to handle entry exports of a database module
Definition at line 30 of file locallib.php.
| __construct | ( | $ | callbackargs | ) |
| array | $callbackargs | the arguments passed through |
Reimplemented from portfolio_caller_base.
Definition at line 63 of file locallib.php.
| __wakeup | ( | ) |
| static base_supported_formats | ( | ) | [static] |
base supported formats before we know anything about the export
Reimplemented from portfolio_caller_base.
Definition at line 375 of file locallib.php.
Verify the user can still export this entry
Reimplemented from portfolio_caller_base.
Definition at line 239 of file locallib.php.

| static display_name | ( | ) | [static] |
Reimplemented from portfolio_caller_base.
Definition at line 255 of file locallib.php.
| static expected_callbackargs | ( | ) | [static] |
the required callback arguments for a single-record export
Reimplemented from portfolio_caller_base.
Definition at line 53 of file locallib.php.
| expected_time | ( | ) |
How long we think the export will take Single entry is probably not too long. But we check for filesizes Else base it on the number of records
Reimplemented from portfolio_caller_base.
Definition at line 128 of file locallib.php.

| export_config_form | ( | &$ | mform, |
| $ | instance | ||
| ) |
if this caller wants any additional config items they should be defined here.
| array | $mform | moodleform object (passed by reference) to add elements to |
| object | $instance | subclass of portfolio_plugin_base |
| integer | $userid | id of user exporting content |
Reimplemented from portfolio_caller_base.
Definition at line 389 of file locallib.php.

| static formats | ( | $ | fields, |
| $ | record | ||
| ) | [static] |
Given the fields being exported, and the single record, work out which export format(s) we can use
| array | $fields | array of field objects |
| object | $record | The data record object |
PORTFOLIO_FORMAT_PLAINHTML PORTFOLIO_FORMAT_RICHHTML
Definition at line 343 of file locallib.php.


Similar to the other allowed_config functions if you need export config, you must provide a list of what the fields are.
even if you want to store stuff during export without displaying a form to the user, you can use this.
Reimplemented from portfolio_caller_base.
Definition at line 397 of file locallib.php.
| get_sha1 | ( | ) |
Calculate the shal1 of this export Dependent on the export format.
Reimplemented from portfolio_caller_base.
Definition at line 141 of file locallib.php.

whether this caller wants any additional config during export (eg options or metadata)
Reimplemented from portfolio_caller_base.
Definition at line 379 of file locallib.php.


| static has_files | ( | $ | data | ) | [static] |
| load_data | ( | ) |
load up the data needed for the export
object $DB
Reimplemented from portfolio_caller_base.
Definition at line 79 of file locallib.php.

| prepare_package | ( | ) |
Prepare the package for export
Reimplemented from portfolio_caller_base.
Definition at line 173 of file locallib.php.

$recordid [protected] |
Definition at line 33 of file locallib.php.