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

Public Member Functions

 __construct ($repositoryid, $context=SYSCONTEXTID, $options=array())
 get_file ($url, $file= '')
 check_login ()
 print_login ()
 get_listing ($path='', $page='')
 analyse_page ($baseurl, $content, &$list)
 guess_filename ($url, $type)
 supported_returntypes ()

Detailed Description

Definition at line 32 of file lib.php.


Constructor & Destructor Documentation

__construct ( repositoryid,
context = SYSCONTEXTID,
options = array() 
)
Parameters:
int$repositoryid
object$context
array$options

Definition at line 39 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

analyse_page ( baseurl,
content,
&$  list 
)

Definition at line 126 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

To check whether the user is logged in.

Returns:
boolean

Reimplemented from repository.

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

Here is the call graph for this function:

get_listing ( path = '',
page = '' 
)
Parameters:
mixed$path
string$search
Returns:
array

Reimplemented from repository.

Definition at line 97 of file lib.php.

Here is the call graph for this function:

guess_filename ( url,
type 
)

Definition at line 143 of file lib.php.

Here is the caller graph for this function:

Returns:
mixed

Reimplemented from repository.

Definition at line 65 of file lib.php.

does it return a file url or a item_id

Returns:
string

Reimplemented from repository.

Definition at line 154 of file lib.php.


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