[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Gdata/ -> Docs.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 303 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Gdata_Docs:: (11 methods):
  __construct()
  lookupMimeType()
  getDocumentListFeed()
  getDocumentListEntry()
  getDoc()
  getDocument()
  getSpreadsheet()
  getPresentation()
  uploadFile()
  createFolder()
  insertDocument()


Class: Zend_Gdata_Docs  - X-Ref

Service class for interacting with the Google Document List data API

__construct($client = null, $applicationId = 'MyCompany-MyApp-1.0')   X-Ref
Create Gdata_Docs object

param: Zend_Http_Client $client (optional) The HTTP client to use when
param: string $applicationId The identity of the app in the form of Company-AppName-Version

lookupMimeType($fileExtension)   X-Ref
Looks up the mime type based on the file name extension. For example,
calling this method with 'csv' would return
'text/comma-separated-values'. The Mime type is sent as a header in
the upload HTTP POST request.

param: string $fileExtension
return: string The mime type to be sent to the server to tell it how the

getDocumentListFeed($location = null)   X-Ref
Retreive feed object containing entries for the user's documents.

param: mixed $location The location for the feed, as a URL or Query
return: Zend_Gdata_Docs_DocumentListFeed

getDocumentListEntry($location = null)   X-Ref
Retreive entry object representing a single document.

param: mixed $location The location for the entry, as a URL or Query
return: Zend_Gdata_Docs_DocumentListEntry

getDoc($docId, $docType)   X-Ref
Retreive entry object representing a single document.

This method builds the URL where this item is stored using the type
and the id of the document.
param: string $docId The URL key for the document. Examples:
param: string $docType The type of the document as used in the Google
return: Zend_Gdata_Docs_DocumentListEntry

getDocument($id)   X-Ref
Retreive entry object for the desired word processing document.

param: string $id The URL id for the document. Example:

getSpreadsheet($id)   X-Ref
Retreive entry object for the desired spreadsheet.

param: string $id The URL id for the document. Example:

getPresentation($id)   X-Ref
Retreive entry object for the desired presentation.

param: string $id The URL id for the document. Example:

uploadFile($fileLocation, $title=null, $mimeType=null,$uri=null)   X-Ref
Upload a local file to create a new Google Document entry.

param: string $fileLocation The full or relative path of the file to
param: string $title The name that this document should have on the
param: string $mimeType Describes the type of data which is being sent
param: string $uri (optional) The URL to which the upload should be
return: Zend_Gdata_Docs_DocumentListEntry The entry for the newly

createFolder($folderName, $folderResourceId=null)   X-Ref
Creates a new folder in Google Docs

param: string $folderName The folder name to create
param: string|null $folderResourceId The parent folder to create it in
return: Zend_Gdata_Entry The folder entry created.

insertDocument($data, $uri,$className='Zend_Gdata_Docs_DocumentListEntry')   X-Ref
Inserts an entry to a given URI and returns the response as an Entry.

param: mixed  $data The Zend_Gdata_Docs_DocumentListEntry or media
param: string $uri POST URI
param: string $className (optional) The class of entry to be returned.
return: Zend_Gdata_Docs_DocumentListEntry The entry returned by the



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1