Moodle  2.2.1
http://www.collinsharper.com
repository_webdav Class Reference
Inheritance diagram for repository_webdav:
Collaboration diagram for repository_webdav:

Public Member Functions

 __construct ($repositoryid, $context=SYSCONTEXTID, $options=array())
 check_login ()
 get_file ($url, $title)
 global_search ()
 get_listing ($path='', $page= '')
 instance_config_form ($mform)
 supported_returntypes ()

Static Public Member Functions

static get_instance_option_names ()

Detailed Description

Definition at line 31 of file lib.php.


Constructor & Destructor Documentation

__construct ( repositoryid,
context = SYSCONTEXTID,
options = array() 
)

Definition at line 32 of file lib.php.


Member Function Documentation

To check whether the user is logged in.

Returns:
boolean

Reimplemented from repository.

Definition at line 61 of file lib.php.

get_file ( url,
filename 
)

Download a file, this function can be overridden by subclass.

object $CFG

Parameters:
string$urlthe url of file
string$filenamesave location
Returns:
string the location of the file
See also:
curl package

Reimplemented from repository.

Definition at line 64 of file lib.php.

Here is the call graph for this function:

static get_instance_option_names ( ) [static]

Return names of the instance options By default: no instance option name

Returns:
array

Reimplemented from repository.

Definition at line 155 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

Parameters:
string$path,thisparameter can a folder name, or a identification of folder
string$page,thepage number of file list
Returns:
array the list of files, including meta infomation, containing the following keys manage, url to manage url client_id login, login form repo_id, active repository id login_btn_action, the login button action login_btn_label, the login button label total, number of results perpage, items per page page pages, total pages issearchresult, is it a search result? list, file list path, current path and parent path

Reimplemented from repository.

Definition at line 80 of file lib.php.

Here is the call graph for this function:

is it possible to do glboal search?

Returns:
boolean

Reimplemented from repository.

Definition at line 77 of file lib.php.

instance_config_form ( mform)

Edit/Create Instance Settings Moodle form

Parameters:
object$mformMoodle form (passed by reference)

Reimplemented from repository.

Definition at line 159 of file lib.php.

does it return a file url or a item_id

Returns:
string

Reimplemented from repository.

Definition at line 182 of file lib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations