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

Public Member Functions

 __construct ($repositoryid, $context=SYSCONTEXTID, $options=array())
 check_login ()
 print_login ()
 callback ()
 get_listing ($path= '', $page= '1')
 logout ()
 set_option ($options=array())
 get_option ($config= '')
 get_file ($filepath, $saveas= '')
 type_config_form ($mform)
 supported_filetypes ()
 supported_returntypes ()

Static Public Member Functions

static get_type_option_names ()

Data Fields

 $files
 $logged = false

Detailed Description

Definition at line 32 of file lib.php.


Constructor & Destructor Documentation

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

Constructor of dropbox plugin

Parameters:
int$repositoryid
object$context
array$options

Definition at line 43 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

callback ( )

Request access token

Returns:
array

Reimplemented from repository.

Definition at line 107 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Check if moodle has got access token and secret

Returns:
bool

Reimplemented from repository.

Definition at line 79 of file lib.php.

get_file ( filepath,
saveas = '' 
)
Parameters:
string$photo_id
string$file
Returns:
string

Reimplemented from repository.

Definition at line 252 of file lib.php.

Here is the call graph for this function:

get_listing ( path = '',
page = '1' 
)

Get dropbox files

Parameters:
string$path
int$page
Returns:
array

Reimplemented from repository.

Definition at line 121 of file lib.php.

Here is the call graph for this function:

get_option ( config = '')

Get dropbox options

Parameters:
string$config
Returns:
mixed

Reimplemented from repository.

Definition at line 233 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]

Option names of dropbox plugin

Returns:
array

Reimplemented from repository.

Definition at line 289 of file lib.php.

logout ( )

Logout from dropbox

Returns:
array

Reimplemented from repository.

Definition at line 202 of file lib.php.

Here is the call graph for this function:

Generate dropbox login url

Returns:
array

Reimplemented from repository.

Definition at line 87 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

set_option ( options = array())

Set dropbox option

Parameters:
array$options
Returns:
mixed

Reimplemented from repository.

Definition at line 215 of file lib.php.

Here is the call graph for this function:

Dropbox plugin supports all kinds of files

Returns:
array

Reimplemented from repository.

Definition at line 297 of file lib.php.

User cannot use the external link to dropbox

Returns:
int

Reimplemented from repository.

Definition at line 305 of file lib.php.

type_config_form ( mform)

Add Plugin settings input to Moodle form

Parameters:
object$mform

Definition at line 261 of file lib.php.

Here is the call graph for this function:


Field Documentation

$files

Definition at line 34 of file lib.php.

$logged = false

Definition at line 35 of file lib.php.


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