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

Public Member Functions | |
| __construct ($course, $cm, $module, $directory) | |
| get_directory () | |
| data_preset_get_file_contents (&$filestorage, &$fileobj, $dir, $filename) | |
| get_preset_settings () | |
| import ($overwritesettings) | |
| cleanup () | |
Protected Attributes | |
| $course | |
| $cm | |
| $module | |
| $directory | |
| __construct | ( | $ | course, |
| $ | cm, | ||
| $ | module, | ||
| $ | directory | ||
| ) |
Constructor
| stdClass | $course | |
| stdClass | $cm | |
| stdClass | $module | |
| string | $directory |
Reimplemented in data_preset_existing_importer, and data_preset_upload_importer.
| cleanup | ( | ) |
Any clean up routines should go here
Reimplemented in data_preset_upload_importer.
Definition at line 2398 of file lib.php.

| data_preset_get_file_contents | ( | &$ | filestorage, |
| &$ | fileobj, | ||
| $ | dir, | ||
| $ | filename | ||
| ) |
Retreive the contents of a file. That file may either be in a conventional directory of the Moodle file storage
| file_storage | $filestorage,. | should be null if using a conventional directory |
| stored_file | $fileobj | the directory to look in. null if using a conventional directory |
| string | $dir | the directory to look in. null if using the Moodle file storage |
| string | $filename | the name of the file we want |
Definition at line 2167 of file lib.php.

| get_directory | ( | ) |
Gets the preset settings moodle_database $DB
Definition at line 2184 of file lib.php.


| import | ( | $ | overwritesettings | ) |