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

Public Member Functions

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

Detailed Description

Definition at line 31 of file lib.php.


Constructor & Destructor Documentation

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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 82 of file lib.php.

get_name ( )

Return the name of this instance, can be overridden. object $DB

Returns:
string

Reimplemented from repository.

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

Here is the call graph for this function:

Show the login screen, if required

Reimplemented from repository.

Definition at line 66 of file lib.php.

Here is the call 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 91 of file lib.php.

what kind of files will be in this repository?

Returns:
array return '*' means this repository support any files, otherwise return mimetypes of files, it can be an array

Reimplemented from repository.

Definition at line 117 of file lib.php.

does it return a file url or a item_id

Returns:
string

Reimplemented from repository.

Definition at line 120 of file lib.php.


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