Zend_Gdata_GappsService class for interacting with the Google Apps Provisioning API.
Like other service classes in this module, this class provides access via an HTTP client to Google servers for working with entries and feeds.
Because of the nature of this API, all access must occur over an authenticated connection.
Located in /Gdata/Gapps.php (line 66)
Zend_Gdata_App | --Zend_Gdata | --Zend_Gdata_Gapps
static Zend_Gdata_App_Feed
import
(string $uri, [Zend_Http_Client $client = null], [string $className = 'Zend_Gdata_App_Feed'])
Zend_Gdata_Gapps_EmailListRecipientEntry
addRecipientToEmailList
(string $recipientAddress, string $emailList)
Zend_Gdata_Gapps
__construct
([Zend_Http_Client $client = null], [string $domain = null], [string $applicationId = 'MyCompany-MyApp-1.0'])
Zend_Gdata_Gapps_UserEntry
createUser
(string $username, string $givenName, string $familyName, string $password, [ $passwordHashFunction = null], [string $quotaLimitInMB = null])
Zend_Gdata_Gapps_EmailListEntry
insertEmailList
(Zend_Gdata_Gapps_EmailListEntry $emailList, [string $uri = null])
Zend_Gdata_Gapps_EmailListRecipientEntry
insertEmailListRecipient
(Zend_Gdata_Gapps_EmailListRecipientEntry $recipient, [string $uri = null])
Zend_Gdata_Gapps_NicknameEntry
insertNickname
(Zend_Gdata_Gapps_NicknameEntry $nickname, [string $uri = null])
Zend_Http_Response
post
(mixed $data, [string $uri = null], [integer $remainingRedirects = null], [string $contentType = null], [ $extraHeaders = null], array $extraHaders)
Zend_Http_Response
put
(mixed $data, [string $uri = null], [integer $remainingRedirects = null], [string $contentType = null], [ $extraHeaders = null], array $extraHaders)
Zend_Gdata_Gapps_EmailListFeed
retrievePageOfEmailLists
([ $startNickname = null], string $startEmailListName)
Zend_Gdata_Gapps_EmailListRecipientFeed
retrievePageOfRecipients
( $emailList, [string $startRecipient = null], string $emaiList)
static array
$namespaces
= array(Namespaces used for Zend_Gdata_Gapps
string
$_domain
= null (line 97)
The domain which is being administered via the Provisioning API.
Inherited from Zend_Gdata
Zend_Gdata::$_defaultPostUri
Zend_Gdata::$_httpClient
Zend_Gdata::$_registeredPackages
Zend_Gdata::$_staticHttpClient
Inherited from Zend_Gdata_App
Zend_Gdata_App::$_gzipEnabled
Zend_Gdata_App::$_httpMethodOverride
Zend_Gdata_App::$_majorProtocolVersion
Zend_Gdata_App::$_maxRedirects
Zend_Gdata_App::$_minorProtocolVersion
Zend_Gdata_App::$_verboseExceptionMessages
static import (line 168)
Imports a feed located at $uri.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
static throwServiceExceptionIfDetected (line 135)
Convert an exception to an ServiceException if an AppsForYourDomain XML document is contained within the original exception's HTTP response. If conversion fails, throw the original error.
addRecipientToEmailList (line 1016)
Add a specified recipient to an existing emailList.
Constructor __construct (line 117)
Create Gdata_Gapps object
createEmailList (line 930)
Create a new email list.
createNickname (line 820)
Create a nickname for a given user.
createUser (line 661)
Create a new user entry and send it to the Google Apps servers.
delete (line 260)
DELETE entry with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
deleteEmailList (line 998)
Delete a specified email list.
deleteNickname (line 916)
Delete a specified nickname.
deleteUser (line 803)
Delete a user by username.
get (line 189)
GET a URI using client object.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
getBaseUrl (line 307)
Returns the base URL used to access the Google Apps service, based on the current domain. The current domain can be temporarily overridden by providing a fully qualified domain as $domain.
getDomain (line 293)
Get domain for this service instance. This should be a fully qualified domain, such as 'foo.example.com'. If no domain is set, null will be returned.
getEmailListEntry (line 466)
Retreive a single EmailListEntry object.
getEmailListFeed (line 375)
Retreive EmailListFeed object containing multiple EmailListEntry objects.
getEmailListRecipientEntry (line 489)
Retreive a single EmailListRecipientEntry object.
getEmailListRecipientFeed (line 397)
Retreive EmailListRecipientFeed object containing multiple EmailListRecipientEntry objects.
getNicknameEntry (line 443)
Retreive a single NicknameEntry object.
getNicknameFeed (line 352)
Retreive NicknameFeed object containing multiple NicknameEntry objects.
getUserEntry (line 420)
Retreive a single UserEntry object.
getUserFeed (line 330)
Retrieve a UserFeed containing multiple UserEntry objects.
insertEmailList (line 562)
Create a new email list from an EmailListEntry.
insertEmailListRecipient (line 585)
Create a new email list recipient from an EmailListRecipientEntry.
insertNickname (line 539)
Create a new nickname from a NicknameEntry.
insertUser (line 516)
Create a new user from a UserEntry.
post (line 213)
POST data with client object.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
put (line 238)
PUT data with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
removeRecipientFromEmailList (line 1077)
Remove a specified recipient from an email list.
restoreUser (line 788)
Mark a given user as not suspended.
retrieveAllEmailLists (line 986)
Retrieve all email lists associated with the curent domain. Be aware that calling this function on a domain with many email lists will take a signifigant amount of time to complete. On larger domains this may may cause execution to timeout without proper precautions in place.
retrieveAllNicknames (line 904)
Retrieve all nicknames in the current domain. Be aware that calling this function on a domain with many nicknames will take a signifigant amount of time to complete. On larger domains this may may cause execution to timeout without proper precautions in place.
retrieveAllRecipients (line 1062)
Retrieve all recipients associated with an email list. Be aware that calling this function on a domain with many email lists will take a signifigant amount of time to complete. On larger domains this may may cause execution to timeout without proper precautions in place.
retrieveAllUsers (line 733)
Retrieve all users in the current domain. Be aware that calling this function on a domain with many users will take a signifigant amount of time to complete. On larger domains this may may cause execution to timeout without proper precautions in place.
retrieveEmailLists (line 949)
Retrieve all email lists associated with a recipient.
retrieveNickname (line 838)
Retrieve the entry for a specified nickname.
retrieveNicknames (line 865)
Retrieve all nicknames associated with a specific username.
retrievePageOfEmailLists (line 968)
Retrieve a page of email lists in alphabetical order, starting with the provided email list.
retrievePageOfNicknames (line 886)
Retrieve a page of nicknames in alphabetical order, starting with the provided nickname.
retrievePageOfRecipients (line 1041)
Retrieve a page of email list recipients in alphabetical order, starting with the provided email list recipient.
retrievePageOfUsers (line 715)
Retrieve a page of users in alphabetical order, starting with the provided username.
retrieveUser (line 687)
Retrieve a user based on their username.
setDomain (line 280)
Set domain for this service instance. This should be a fully qualified domain, such as 'foo.example.com'.
This value is used when calculating URLs for retrieving and posting entries. If no value is specified, a URL will have to be manually constructed prior to using any methods which interact with the Google Apps provisioning service.
suspendUser (line 771)
Mark a given user as suspended.
updateUser (line 755)
Overwrite a specified username with the provided UserEntry. The UserEntry does not need to contain an edit link.
This method is provided for compliance with the Google Apps Provisioning API specification. Normally users will instead want to call UserEntry::save() instead.
__call (line 612)
Provides a magic factory method to instantiate new objects with shorter syntax than would otherwise be required by the Zend Framework naming conventions. For more information, see Zend_Gdata_App::__call().
This overrides the default behavior of __call() so that query classes do not need to have their domain manually set when created with a magic factory method.
Inherited From Zend_Gdata
Zend_Gdata::__construct()
Zend_Gdata::getEntry()
Zend_Gdata::getFeed()
Zend_Gdata::import()
Zend_Gdata::isAuthenticated()
Zend_Gdata::performHttpRequest()
Inherited From Zend_Gdata_App
Zend_Gdata_App::__construct()
Zend_Gdata_App::delete()
Zend_Gdata_App::enableRequestDebugLogging()
Zend_Gdata_App::generateIfMatchHeaderData()
Zend_Gdata_App::get()
Zend_Gdata_App::getEntry()
Zend_Gdata_App::getFeed()
Zend_Gdata_App::getGzipEnabled()
Zend_Gdata_App::getHttpClient()
Zend_Gdata_App::getHttpMethodOverride()
Zend_Gdata_App::getMajorProtocolVersion()
Zend_Gdata_App::getMaxRedirects()
Zend_Gdata_App::getMinorProtocolVersion()
Zend_Gdata_App::getNextFeed()
Zend_Gdata_App::getPreviousFeed()
Zend_Gdata_App::getStaticHttpClient()
Zend_Gdata_App::getVerboseExceptionMessages()
Zend_Gdata_App::import()
Zend_Gdata_App::importFile()
Zend_Gdata_App::importString()
Zend_Gdata_App::importUrl()
Zend_Gdata_App::insertEntry()
Zend_Gdata_App::performHttpRequest()
Zend_Gdata_App::post()
Zend_Gdata_App::prepareRequest()
Zend_Gdata_App::put()
Zend_Gdata_App::registerPackage()
Zend_Gdata_App::retrieveAllEntriesForFeed()
Zend_Gdata_App::setGzipEnabled()
Zend_Gdata_App::setHttpClient()
Zend_Gdata_App::setHttpMethodOverride()
Zend_Gdata_App::setMajorProtocolVersion()
Zend_Gdata_App::setMaxRedirects()
Zend_Gdata_App::setMinorProtocolVersion()
Zend_Gdata_App::setStaticHttpClient()
Zend_Gdata_App::setVerboseExceptionMessages()
Zend_Gdata_App::updateEntry()
Zend_Gdata_App::__call()
APPS_BASE_FEED_URI
= 'https://apps-apis.google.com/a/feeds'
(line 69)
APPS_EMAIL_LIST_PATH
= '/emailList/2.0'
(line 85)
Path to email list feeds on the Google Apps server.
APPS_EMAIL_LIST_RECIPIENT_POSTFIX
= '/recipient'
(line 90)
Path to email list recipient feeds on the Google Apps server.
APPS_NICKNAME_PATH
= '/nickname/2.0'
(line 80)
Path to nickname feeds on the Google Apps server.
APPS_USER_PATH
= '/user/2.0'
(line 75)
Path to user feeds on the Google Apps server.
AUTH_SERVICE_NAME
= 'apps'
(line 70)
Inherited from Zend_Gdata
Zend_Gdata::AUTH_SERVICE_NAME
Inherited from Zend_Gdata_App
Zend_Gdata_App::DEFAULT_MAJOR_PROTOCOL_VERSION
Zend_Gdata_App::DEFAULT_MINOR_PROTOCOL_VERSION
Documentation generated on Mon, 19 Jan 2009 19:02:54 +0300 by phpDocumentor 1.4.2