Moodle  2.2.1
http://www.collinsharper.com
google_docs Class Reference

Public Member Functions

 __construct ($google_curl)
 get_file_list ($search= '')
 send_file ($file)
 download_file ($url, $fp)

Static Public Member Functions

static get_sesskey ($userid)
static set_sesskey ($value, $userid)
static delete_sesskey ($userid)

Data Fields

const REALM = 'https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/'
const DOCUMENTFEED_URL = 'https://docs.google.com/feeds/default/private/full'
const USER_PREF_NAME = 'google_authsub_sesskey'

Detailed Description

Definition at line 242 of file googleapi.php.


Constructor & Destructor Documentation

__construct ( google_curl)

Constructor.

Parameters:
objectA google_auth_request object which can be used to do http requests

Definition at line 255 of file googleapi.php.


Member Function Documentation

static delete_sesskey ( userid) [static]

Definition at line 272 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

download_file ( url,
fp 
)

Definition at line 357 of file googleapi.php.

get_file_list ( search = '')

Returns a list of files the user has formated for files api

Parameters:
string$searchA search string to do full text search on the documents
Returns:
mixed Array of files formated for fileapoi

Definition at line 283 of file googleapi.php.

Here is the call graph for this function:

static get_sesskey ( userid) [static]

Definition at line 264 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:

send_file ( file)

Sends a file object to google documents

Parameters:
object$fileFile object
Returns:
boolean True on success

Definition at line 343 of file googleapi.php.

static set_sesskey ( value,
userid 
) [static]

Definition at line 268 of file googleapi.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

const DOCUMENTFEED_URL = 'https://docs.google.com/feeds/default/private/full'

Definition at line 245 of file googleapi.php.

const REALM = 'https://docs.google.com/feeds/ https://spreadsheets.google.com/feeds/ https://docs.googleusercontent.com/'

Definition at line 244 of file googleapi.php.

const USER_PREF_NAME = 'google_authsub_sesskey'

Definition at line 246 of file googleapi.php.


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