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

Public Member Functions

 __construct ($repositoryid, $context=SYSCONTEXTID, $options=array())
 print_login ()
 get_listing ($encodedpath= '', $page= '')
 type_config_form ($mform)
 supported_returntypes ()
 copy_to_area ($encoded, $draftitemid, $new_filepath, $new_filename)
 has_moodle_files ()

Static Public Member Functions

static get_type_option_names ()

Detailed Description

Definition at line 29 of file lib.php.


Constructor & Destructor Documentation

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

Initialize recent plugin

Parameters:
int$repositoryid
int$context
array$options

Definition at line 37 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

copy_to_area ( encoded,
draftitemid,
new_filepath,
new_filename 
)

This function overwrite the default implement to copying file using file_storage

object $USER object $DB

Parameters:
string$encodedThe information of file, it is base64 encoded php serialized data
string$draftitemiditemid
string$new_filenameThe intended name of file
string$new_filepaththe new path in draft area
Returns:
array The information of file

Reimplemented from repository.

Definition at line 164 of file lib.php.

Here is the call graph for this function:

get_listing ( encodedpath = '',
page = '' 
)

Get file listing

Parameters:
string$encodedpath
string$pathnot used by this plugin
Returns:
mixed

Reimplemented from repository.

Definition at line 99 of file lib.php.

Here is the call graph for this function:

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

Does this repository used to browse moodle files?

Returns:
boolean

Reimplemented from repository.

Definition at line 233 of file lib.php.

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

Returns:
mixed

Reimplemented from repository.

Definition at line 52 of file lib.php.

Here is the call graph for this function:

This plugin doesn't support to link to external links

Returns:
int

Reimplemented from repository.

Definition at line 150 of file lib.php.

type_config_form ( mform)

Definition at line 135 of file lib.php.

Here is the call graph for this function:


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