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

Public Member Functions

 __construct ($repositoryid, $context=SYSCONTEXTID, $options=array())
 get_listing ($path= '', $page= '')
 check_login ()
 print_login ()
 global_search ()
 search ($search_text)
 logout ()
 supported_returntypes ()

Detailed Description

Definition at line 32 of file lib.php.


Constructor & Destructor Documentation

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

Definition at line 33 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

To check whether the user is logged in.

Returns:
boolean

Reimplemented from repository.

Definition at line 48 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 40 of file lib.php.

is it possible to do glboal search?

Returns:
boolean

Reimplemented from repository.

Definition at line 68 of file lib.php.

logout ( )

Logout from repository instance By default, this function will return a login form

Returns:
string

Reimplemented from repository.

Definition at line 79 of file lib.php.

Here is the call graph for this function:

Show the login screen, if required

Reimplemented from repository.

Definition at line 53 of file lib.php.

Here is the caller graph for this function:

search ( search_text)

Search files in repository When doing global search, $search_text will be used as keyword.

Returns:
mixed, see get_listing()

Reimplemented from repository.

Definition at line 71 of file lib.php.

does it return a file url or a item_id

Returns:
string

Reimplemented from repository.

Definition at line 82 of file lib.php.


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