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

Public Member Functions

 print_login ()
 get_listing ($encodedpath= '')
 get_link ($encoded)
 is_visible ()
 get_name ()
 supported_returntypes ()
 has_moodle_files ()

Static Public Member Functions

static get_type_option_names ()

Detailed Description

Definition at line 28 of file lib.php.


Member Function Documentation

get_link ( url)

Return file URL, for most plugins, the parameter is the original url, but some plugins use a file id, so we need this function to convert file id to original url.

Parameters:
string$urlthe url of file
Returns:
string

Reimplemented from repository.

Definition at line 126 of file lib.php.

Here is the call graph for this function:

get_listing ( encodedpath = '')

Get file listing

Parameters:
string$encodedpath
Returns:
mixed

Definition at line 44 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_name ( )

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

Returns:
string

Reimplemented from repository.

Definition at line 160 of file lib.php.

Here is the call graph for this function:

static get_type_option_names ( ) [static]

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

Returns:
array

Reimplemented from repository.

Definition at line 172 of file lib.php.

Does this repository used to browse moodle files?

Returns:
boolean

Reimplemented from repository.

Definition at line 181 of file lib.php.

Return is the instance is visible (is the type visible ? is the context enable ?)

Returns:
boolean

Reimplemented from repository.

Definition at line 150 of file lib.php.

coursefiles plugin doesn't require login, so list all files

Returns:
mixed

Reimplemented from repository.

Definition at line 34 of file lib.php.

Here is the call graph for this function:

does it return a file url or a item_id

Returns:
string

Reimplemented from repository.

Definition at line 169 of file lib.php.


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