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


Public Member Functions | |
| __construct ($repositoryid, $context=SYSCONTEXTID, $options=array()) | |
| check_login () | |
| print_login ($ajax=true) | |
| get_listing ($path='', $page= '') | |
| search ($query) | |
| logout () | |
| get_file ($url, $file) | |
| supported_filetypes () | |
| supported_returntypes () | |
| __construct | ( | $ | repositoryid, |
| $ | context = SYSCONTEXTID, |
||
| $ | options = array() |
||
| ) |
| check_login | ( | ) |
To check whether the user is logged in.
Reimplemented from repository.
Definition at line 46 of file lib.php.


| get_file | ( | $ | url, |
| $ | filename | ||
| ) |
Download a file, this function can be overridden by subclass.
object $CFG
| string | $url | the url of file |
| string | $filename | save location |
Reimplemented from repository.
Definition at line 111 of file lib.php.

| 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.
| logout | ( | ) |
Logout from repository instance By default, this function will return a login form
Reimplemented from repository.
Definition at line 96 of file lib.php.

| print_login | ( | $ | ajax = true | ) |
| search | ( | $ | search_text | ) |
Search files in repository When doing global search, $search_text will be used as keyword.
Reimplemented from repository.
what kind of files will be in this repository?
Reimplemented from repository.