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


Public Member Functions | |
| __construct ($repositoryid, $context=SYSCONTEXTID, $options=array()) | |
| print_login () | |
| get_listing ($encodedpath= '', $page= '') | |
| type_config_form ($mform) | |
| supported_returntypes () | |
| copy_to_area ($encoded, $draftitemid, $new_filepath, $new_filename) | |
| has_moodle_files () | |
Static Public Member Functions | |
| static | get_type_option_names () |
| __construct | ( | $ | repositoryid, |
| $ | context = SYSCONTEXTID, |
||
| $ | options = array() |
||
| ) |
| copy_to_area | ( | $ | encoded, |
| $ | draftitemid, | ||
| $ | new_filepath, | ||
| $ | new_filename | ||
| ) |
This function overwrite the default implement to copying file using file_storage
object $USER object $DB
| string | $encoded | The information of file, it is base64 encoded php serialized data |
| string | $draftitemid | itemid |
| string | $new_filename | The intended name of file |
| string | $new_filepath | the new path in draft area |
Reimplemented from repository.
Definition at line 164 of file lib.php.

| get_listing | ( | $ | encodedpath = '', |
| $ | page = '' |
||
| ) |
Get file listing
| string | $encodedpath | |
| string | $path | not used by this plugin |
Reimplemented from repository.
Definition at line 99 of file lib.php.


| static get_type_option_names | ( | ) | [static] |
Return names of the general options By default: no general option name
Reimplemented from repository.
| has_moodle_files | ( | ) |
| print_login | ( | ) |
recent plugin doesn't require login, so list all files
Reimplemented from repository.
Definition at line 52 of file lib.php.

| type_config_form | ( | $ | mform | ) |