Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Service class for interacting with the Google Document List data API
DOCUMENTS_LIST_FEED_URI = 'http://docs.google.com/feeds/documents/private/full'
Details DOCUMENTS_FOLDER_FEED_URI = 'http://docs.google.com/feeds/folders/private/full'
Details DOCUMENTS_CATEGORY_SCHEMA = 'http://schemas.google.com/g/2005#kind'
Details DOCUMENTS_CATEGORY_TERM = 'http://schemas.google.com/docs/2007#folder'
Details AUTH_SERVICE_NAME = 'writely'
Details $SUPPORTED_FILETYPES = 'array'
Details $_defaultPostUri = 'self'
Details__construct(
Zend_Http_Client $client
=
null, string $applicationId
=
MyCompany-MyApp-1.0
)
:
Create Gdata_Docs object
DetailscreateFolder(
string $folderName, string|null $folderResourceId
=
null
)
:
Zend_Gdata_EntryCreates a new folder in Google Docs
DetailsgetDoc(
string $docId, string $docType
)
:
Zend_Gdata_Docs_DocumentListEntryRetreive 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.
DetailsgetDocument(
string $id
)
:
Retreive entry object for the desired word processing document.
DetailsgetDocumentListEntry(
mixed $location
=
null
)
:
Zend_Gdata_Docs_DocumentListEntryRetreive entry object representing a single document.
DetailsgetDocumentListFeed(
mixed $location
=
null
)
:
Zend_Gdata_Docs_DocumentListFeedRetreive feed object containing entries for the user's documents.
DetailsgetPresentation(
string $id
)
:
Retreive entry object for the desired presentation.
DetailsgetSpreadsheet(
string $id
)
:
Retreive entry object for the desired spreadsheet.
DetailsinsertDocument(
mixed $data, string $uri, string $className
=
Zend_Gdata_Docs_DocumentListEntry
)
:
Zend_Gdata_Docs_DocumentListEntryInserts an entry to a given URI and returns the response as an Entry.
DetailslookupMimeType(
string $fileExtension
)
:
stringLooks 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.
DetailsuploadFile(
string $fileLocation, string $title
=
null, string $mimeType
=
null, string $uri
=
null
)
:
Zend_Gdata_Docs_DocumentListEntryUpload a local file to create a new Google Document entry.
Details