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


Public Member Functions | |
| __construct ($repositoryid, $context=SYSCONTEXTID, $options=array()) | |
| get_listing ($path= '', $page= '') | |
| check_login () | |
| print_login () | |
| global_search () | |
| get_file ($file, $title= '') | |
| logout () | |
| set_option ($options=array()) | |
| instance_config_form ($mform) | |
| supported_returntypes () | |
Static Public Member Functions | |
| static | get_instance_option_names () |
| static | create ($type, $userid, $context, $params, $readonly=0) |
| static | instance_form_validation ($mform, $data, $errors) |
| __construct | ( | $ | repositoryid, |
| $ | context = SYSCONTEXTID, |
||
| $ | options = array() |
||
| ) |
| check_login | ( | ) |
| static create | ( | $ | type, |
| $ | userid, | ||
| $ | context, | ||
| $ | params, | ||
| $ | readonly = 0 |
||
| ) | [static] |
Create an instance for this plug-in object $CFG object $DB
| string | $type | the type of the repository |
| integer | $userid | the user id |
| object | $context | the context |
| array | $params | the options for this instance |
| integer | $readonly | whether to create it readonly or not (defaults to not) |
Reimplemented from repository.
Definition at line 183 of file lib.php.

| get_file | ( | $ | file, |
| $ | title = '' |
||
| ) |
| static get_instance_option_names | ( | ) | [static] |
Return names of the instance options By default: no instance option name
Reimplemented from repository.
| get_listing | ( | $ | path = '', |
| $ | page = '' |
||
| ) |
Given a path, and perhaps a search, get a list of files.
See details on http://docs.moodle.org/dev/Repository_plugins
| string | $path,this | parameter can a folder name, or a identification of folder |
| string | $page,the | page number of file list |
Reimplemented from repository.
Definition at line 51 of file lib.php.

| global_search | ( | ) |
| instance_config_form | ( | $ | mform | ) |
Edit/Create Instance Settings Moodle form
| object | $mform | Moodle form (passed by reference) |
Reimplemented from repository.
Definition at line 148 of file lib.php.

| static instance_form_validation | ( | $ | mform, |
| $ | data, | ||
| $ | errors | ||
| ) | [static] |
Reimplemented from repository.
| logout | ( | ) |
Logout from repository instance By default, this function will return a login form
Reimplemented from repository.
| print_login | ( | ) |
Show the login screen, if required
Reimplemented from repository.
| set_option | ( | $ | options = array() | ) |
Save settings for repository instance $repo->set_option(array('api_key'=>'f2188bde132', 'name'=>'dongsheng')); object $DB
| array | $options | settings |
Reimplemented from repository.
Definition at line 142 of file lib.php.
