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

Public Member Functions

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

Detailed Description

Definition at line 29 of file lib.php.


Constructor & Destructor Documentation

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

Youtube plugin constructor

Parameters:
int$repositoryid
object$context
array$options

Definition at line 37 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 44 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 105 of file lib.php.

Youtube plugin doesn't support global search

Reimplemented from repository.

Definition at line 101 of file lib.php.

print_login ( ajax = true)

Generate search form

Definition at line 112 of file lib.php.

search ( search_text)

Return search results

Parameters:
string$search_text
Returns:
array

Reimplemented from repository.

Definition at line 53 of file lib.php.

file types supported by youtube plugin

Returns:
array

Reimplemented from repository.

Definition at line 152 of file lib.php.

Youtube plugin only return external links

Returns:
int

Reimplemented from repository.

Definition at line 160 of file lib.php.


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