Gdata/Gapps.php
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.
- Category
- Zend + +
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + +
- License
- New BSD License + +
- Package
- Zend_Gdata + +
- Subpackage
- Gapps + +
- Version
- $Id: Gapps.php 24593 2012-01-05 20:35:02Z matthew $ + +
\Zend_Gdata_Gapps
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.
- Parent(s)
- \Zend_Gdata + < + \Zend_Gdata_App
- Category
- Zend + +
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) + +
- License
- New BSD License + +
- Link
- http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html + +
Constants
string
+ AUTH_SERVICE_NAME
+ = 'apps'- string
+ APPS_EMAIL_LIST_RECIPIENT_POSTFIX
+ = '/recipient'
+ DEFAULT_MAJOR_PROTOCOL_VERSION
+ = 1- Inherited_from
- \Zend_Gdata_App::DEFAULT_MAJOR_PROTOCOL_VERSION + +
- Inherited_from
- \Zend_Gdata::DEFAULT_MAJOR_PROTOCOL_VERSION + +
- See
- \_majorProtocolVersion + +
+ DEFAULT_MINOR_PROTOCOL_VERSION
+ = null- Inherited_from
- \Zend_Gdata_App::DEFAULT_MINOR_PROTOCOL_VERSION + +
- Inherited_from
- \Zend_Gdata::DEFAULT_MINOR_PROTOCOL_VERSION + +
- See
- \_minorProtocolVersion + +
Properties

string $_defaultPostUri = nullnullDetails- Type
- string
- Inherited_from
- \Zend_Gdata::$$_defaultPostUri + +

string $_domain = nullnullDetails- Type
- string

boolean $_gzipEnabled = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Gdata_App::$$_gzipEnabled + +
- Inherited_from
- \Zend_Gdata::$$_gzipEnabled + +

\Zend_Gdata_HttpClient $_httpClient- Type
- \Zend_Gdata_HttpClient
- Inherited_from
- \Zend_Gdata::$$_httpClient + +

boolean $_httpMethodOverride = falsefalseDetails- Type
- boolean
- Inherited_from
- \Zend_Gdata_App::$$_httpMethodOverride + +
- Inherited_from
- \Zend_Gdata::$$_httpMethodOverride + +

$_majorProtocolVersionAt present, recognized values are either 1 or 2. However, any integer +value >= 1 is considered valid.
+ +Under most circumtances, this will be automatically set by +Zend_Gdata_App subclasses.
- Type
- n/a
- Inherited_from
- \Zend_Gdata_App::$$_majorProtocolVersion + +
- Inherited_from
- \Zend_Gdata::$$_majorProtocolVersion + +
- See
- \setMajorProtocolVersion() + +
- See
- \getMajorProtocolVersion() + +

int $_maxRedirects = 55Details- Type
- int
- Inherited_from
- \Zend_Gdata_App::$$_maxRedirects + +
- Inherited_from
- \Zend_Gdata::$$_maxRedirects + +

$_minorProtocolVersionCan be set +to either an integer >= 0, or NULL if no minor version should be sent +to the server.
+ +At present, this field is not used by any Google services, but may be +used in the future.
+ +Under most circumtances, this will be automatically set by +Zend_Gdata_App subclasses.
- Type
- n/a
- Inherited_from
- \Zend_Gdata_App::$$_minorProtocolVersion + +
- Inherited_from
- \Zend_Gdata::$$_minorProtocolVersion + +
- See
- \setMinorProtocolVersion() + +
- See
- \getMinorProtocolVersion() + +

array $_registeredPackages = array('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')array('Zend_Gdata_Kind', 'Zend_Gdata_Extension', 'Zend_Gdata', 'Zend_Gdata_App_Extension', 'Zend_Gdata_App')Details- Type
- array
- Inherited_from
- \Zend_Gdata::$$_registeredPackages + +

\Zend_Gdata_HttpClient $_staticHttpClient = nullnullDetails- Type
- \Zend_Gdata_HttpClient
- Inherited_from
- \Zend_Gdata::$$_staticHttpClient + +

boolean $_useObjectMapping = truetrueDetails- Type
- boolean
- Inherited_from
- \Zend_Gdata_App::$$_useObjectMapping + +
- Inherited_from
- \Zend_Gdata::$$_useObjectMapping + +

boolean $_verboseExceptionMessages = trueIn the case of HTTP errors, +use the body of the HTTP response in the exception message.
trueDetails- Type
- boolean
- Inherited_from
- \Zend_Gdata_App::$$_verboseExceptionMessages + +
- Inherited_from
- \Zend_Gdata::$$_verboseExceptionMessages + +
Methods

__call(string $method, array $args) : voidProvides 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.
| Name | Type | Description |
|---|---|---|
| $method | string | The method name being called |
| $args | array | The arguments passed to the call |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception |
- See
- \Zend_Gdata_App::__call() + +

__construct(\Zend_Http_Client $client = null, string $domain = null, string $applicationId = 'MyCompany-MyApp-1.0') : voidCreate Gdata_Gapps object
| Name | Type | Description |
|---|---|---|
| $client | \Zend_Http_Client | (optional) The HTTP client to use when + when communicating with the Google Apps servers. + |
| $domain | string | (optional) The Google Apps domain which is to be + accessed. + |
| $applicationId | string | The identity of the app in the form of Company-AppName-Version + |

addMemberToGroup(string $recipientAddress, string $groupId) : \Zend_Gdata_Gapps_MemberEntryAdd an email address to a group as a member
| Name | Type | Description |
|---|---|---|
| $recipientAddress | string | Email address, member id, or group id |
| $groupId | string | The unique id of the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberEntry | The member entry returned by the server |

addOwnerToGroup(string $email, string $groupId) : \Zend_Gdata_Gapps_OwnerEntryAdd an email as an owner of a group
| Name | Type | Description |
|---|---|---|
| string | Owner's email + | |
| $groupId | string | Group ownership to be checked for |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_OwnerEntry | The OwnerEntry returned by the server |

addRecipientToEmailList(string $recipientAddress, string $emailList) : \Zend_Gdata_Gapps_EmailListRecipientEntryAdd a specified recipient to an existing emailList.
| Name | Type | Description |
|---|---|---|
| $recipientAddress | string | The address of the recipient to be + added to the email list. |
| $emailList | string | The name of the email address to which the + recipient should be added. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientEntry | The recipient entry + created by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

createEmailList(string $emailList) : \Zend_Gdata_Gapps_EmailListEntryCreate a new email list.
| Name | Type | Description |
|---|---|---|
| $emailList | string | The name of the email list to be created. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListEntry | The email list entry + as created on the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

createGroup(string $groupId, string $groupName, string $description = null, string $emailPermission = null) : \Zend_Gdata_Gapps_GroupEntryCreate a new group.
| Name | Type | Description |
|---|---|---|
| $groupId | string | A unique identifier for the group |
| $groupName | string | The name of the group |
| $description | string | A description of the group |
| $emailPermission | string | The subscription permission of the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupEntry | The group entry as created on the server. |

createNickname(string $username, string $nickname) : \Zend_Gdata_Gapps_NicknameEntryCreate a nickname for a given user.
| Name | Type | Description |
|---|---|---|
| $username | string | The username to which the new nickname should + be associated. |
| $nickname | string | The new nickname to be created. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameEntry | The nickname entry which was + created by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

createUser(string $username, string $givenName, string $familyName, string $password, $passwordHashFunction = null, string $quotaLimitInMB = null) : \Zend_Gdata_Gapps_UserEntryCreate a new user entry and send it to the Google Apps servers.
| Name | Type | Description |
|---|---|---|
| $username | string | The username for the new user. |
| $givenName | string | The given name for the new user. |
| $familyName | string | The family name for the new user. |
| $password | string | The password for the new user as a plaintext string + (if $passwordHashFunction is null) or a SHA-1 hashed + value (if $passwordHashFunction = 'SHA-1'). + |
| $passwordHashFunction | ||
| $quotaLimitInMB | string | (optional) The quota limit for the new user in MB. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | (optional) The new user entry as returned by + server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

delete(mixed $data, integer $remainingRedirects = null) : voidDELETE entry with client object +This method overrides the default behavior of Zend_Gdata_App, +providing support for Zend_Gdata_Gapps_ServiceException.
| Name | Type | Description |
|---|---|---|
| $data | mixed | The Zend_Gdata_App_Entry or URL to delete |
| $remainingRedirects | integer | (optional) + |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_App_InvalidArgumentException | |
| \Zend_Gdata_Gapps_ServiceException |

deleteEmailList(string $emailList) : voidDelete a specified email list.
| Name | Type | Description |
|---|---|---|
| $emailList | string | The name of the emailList to be deleted. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

deleteGroup(string $groupId) : voidDelete a group
| Name | Type | Description |
|---|---|---|
| $groupId | string | The unique identifier for the group |

deleteNickname(string $nickname) : voidDelete a specified nickname.
| Name | Type | Description |
|---|---|---|
| $nickname | string | The name of the nickname to be deleted. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

deleteUser(string $username) : voidDelete a user by username.
| Name | Type | Description |
|---|---|---|
| $username | string | The username associated with the user who + should be deleted. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

enableRequestDebugLogging(string $logfile) : voidThis method enables logging of requests by changing the +Zend_Http_Client_Adapter used for performing the requests.
Inherited from: + \Zend_Gdata_App::enableRequestDebugLogging()\Zend_Gdata::enableRequestDebugLogging()NOTE: This will not work if you have customized the adapter +already to use a proxy server or other interface.
| Name | Type | Description |
|---|---|---|
| $logfile | string | The logfile to use when logging the requests |

generateIfMatchHeaderData( $data, $allowWeek) : string | nullReturns the data for an If-Match header based on the current Etag +property.
Inherited from: + \Zend_Gdata_App::generateIfMatchHeaderData()\Zend_Gdata::generateIfMatchHeaderData()If Etags are not supported by the server or cannot be +extracted from the data, then null will be returned.
| Name | Type | Description |
|---|---|---|
| $data | ||
| $allowWeek |
| Type | Description |
|---|---|
| string | null | $data |

get(string $uri, array $extraHeaders = array()) : \Zend_Http_ResponseGET a URI using client object.
This method overrides the default behavior of Zend_Gdata_App, +providing support for Zend_Gdata_Gapps_ServiceException.
| Name | Type | Description |
|---|---|---|
| $uri | string | GET URI |
| $extraHeaders | array | Extra headers to add to the request, as an + array of string-based key/value pairs. + |
| Type | Description |
|---|---|
| \Zend_Http_Response |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getBaseUrl(string $domain = null) : voidReturns 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.
| Name | Type | Description |
|---|---|---|
| $domain | string | (optional) A fully-qualified domain to use + instead of the default domain for this service instance. + |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |

getDomain() : stringGet 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.
| Type | Description |
|---|---|
| string | The domain to be used for this session, or null if not + set. |

getEmailListEntry(mixed $location) : \Zend_Gdata_Gapps_EmailListEntryRetreive a single EmailListEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getEmailListFeed(mixed $location = null) : \Zend_Gdata_Gapps_EmailListFeedRetreive EmailListFeed object containing multiple EmailListEntry +objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getEmailListRecipientEntry(mixed $location) : \Zend_Gdata_Gapps_EmailListRecipientEntryRetreive a single EmailListRecipientEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getEmailListRecipientFeed(mixed $location) : \Zend_Gdata_Gapps_EmailListRecipientFeedRetreive EmailListRecipientFeed object containing multiple +EmailListRecipientEntry objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getEntry(mixed $location, $className = 'Zend_Gdata_Entry') : string | \Zend_Gdata_App_Entry| Name | Type | Description |
|---|---|---|
| $location | mixed | The location as string or Zend_Gdata_Query |
| $className |
| Type | Description |
|---|---|
| string | \Zend_Gdata_App_Entry | Returns string only if the object + mapping has been disabled explicitly + by passing false to the + useObjectMapping() function. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |

getFeed(mixed $location, string $className = 'Zend_Gdata_Feed') : string | \Zend_Gdata_App_Feed| Name | Type | Description |
|---|---|---|
| $location | mixed | The location as string or Zend_Gdata_Query |
| $className | string | The class type to use for returning the feed |
| Type | Description |
|---|---|
| string | \Zend_Gdata_App_Feed | Returns string only if the object + mapping has been disabled explicitly + by passing false to the + useObjectMapping() function. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |

getGroupEntry(mixed $location = null) : \Zend_Gdata_Gapps_GroupEntryRetreive a single GroupEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getGroupFeed(mixed $location = null) : \Zend_Gdata_Gapps_GroupFeedRetreive GroupFeed object containing multiple GroupEntry +objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getGzipEnabled() : booleanGet the HTTP override state
Inherited from: + \Zend_Gdata_App::getGzipEnabled()\Zend_Gdata::getGzipEnabled()| Type | Description |
|---|---|
| boolean |

getHttpClient() : \Zend_Http_ClientGet the Zend_Http_Client object used for communication
Inherited from: + \Zend_Gdata_App::getHttpClient()\Zend_Gdata::getHttpClient()| Type | Description |
|---|---|
| \Zend_Http_Client |

getHttpMethodOverride() : booleanGet the HTTP override state
Inherited from: + \Zend_Gdata_App::getHttpMethodOverride()\Zend_Gdata::getHttpMethodOverride()| Type | Description |
|---|---|
| boolean |

getMajorProtocolVersion() : intGet the major protocol version that is in use.
Inherited from: + \Zend_Gdata_App::getMajorProtocolVersion()\Zend_Gdata::getMajorProtocolVersion()| Type | Description |
|---|---|
| int | The major protocol version in use. |
- See
- \_majorProtocolVersion + +

getMaxRedirects() : intGet the maximum number of redirects to follow during HTTP operations
Inherited from: + \Zend_Gdata_App::getMaxRedirects()\Zend_Gdata::getMaxRedirects()| Type | Description |
|---|---|
| int | Maximum number of redirects to follow |

getMemberEntry(mixed $location = null) : \Zend_Gdata_Gapps_MemberEntryRetreive a single MemberEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getMemberFeed(mixed $location = null) : \Zend_Gdata_Gapps_MemberFeedRetreive MemberFeed object containing multiple MemberEntry +objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getMinorProtocolVersion() : \(int | \NULL)Get the minor protocol version that is in use.
Inherited from: + \Zend_Gdata_App::getMinorProtocolVersion()\Zend_Gdata::getMinorProtocolVersion()| Type | Description |
|---|---|
| \(int | \NULL) | The major protocol version in use, or NULL if no + minor version is specified. |
- See
- \_minorProtocolVersion + +

getNextFeed(\Zend_Gdata_App_Feed $feed, string $className = null) : \Zend_Gdata_App_Feed | nullRetrieve next set of results based on a given feed.
Inherited from: + \Zend_Gdata_App::getNextFeed()\Zend_Gdata::getNextFeed()| Name | Type | Description |
|---|---|---|
| $feed | \Zend_Gdata_App_Feed | The feed from which to + retreive the next set of results. |
| $className | string | (optional) The class of feed to be returned. + If null, the next feed (if found) will be the same class as + the feed that was given as the first argument. + |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Feed | null | Returns a + Zend_Gdata_App_Feed or null if no next set of results + exists. |

getNicknameEntry(mixed $location) : \Zend_Gdata_Gapps_NicknameEntryRetreive a single NicknameEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getNicknameFeed(mixed $location = null) : \Zend_Gdata_Gapps_NicknameFeedRetreive NicknameFeed object containing multiple NicknameEntry objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getOwnerEntry(mixed $location = null) : \Zend_Gdata_Gapps_OwnerEntryRetreive a single OwnerEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_OwnerEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getOwnerFeed(mixed $location = null) : \Zend_Gdata_Gapps_OwnerFeedRetreive OwnerFeed object containing multiple OwnerEntry +objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_OwnerFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getPreviousFeed(\Zend_Gdata_App_Feed $feed, string $className = null) : \Zend_Gdata_App_Feed | nullRetrieve previous set of results based on a given feed.
Inherited from: + \Zend_Gdata_App::getPreviousFeed()\Zend_Gdata::getPreviousFeed()| Name | Type | Description |
|---|---|---|
| $feed | \Zend_Gdata_App_Feed | The feed from which to + retreive the previous set of results. |
| $className | string | (optional) The class of feed to be returned. + If null, the previous feed (if found) will be the same class as + the feed that was given as the first argument. + |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Feed | null | Returns a + Zend_Gdata_App_Feed or null if no previous set of results + exists. |

getStaticHttpClient() : \Zend_Http_ClientGets the HTTP client object.
Inherited from: + \Zend_Gdata_App::getStaticHttpClient()\Zend_Gdata::getStaticHttpClient()If none is set, a new Zend_Http_Client will be used.
| Type | Description |
|---|---|
| \Zend_Http_Client |

getUserEntry(mixed $location) : \Zend_Gdata_Gapps_UserEntryRetreive a single UserEntry object.
| Name | Type | Description |
|---|---|---|
| $location | mixed | The location for the feed, as a URL or Query. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getUserFeed(mixed $location = null) : \Zend_Gdata_Gapps_UserFeedRetrieve a UserFeed containing multiple UserEntry objects.
| Name | Type | Description |
|---|---|---|
| $location | mixed | (optional) The location for the feed, as a URL + or Query. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserFeed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

getVerboseExceptionMessages() : booleanGet whether to use verbose exception messages
Inherited from: + \Zend_Gdata_App::getVerboseExceptionMessages()\Zend_Gdata::getVerboseExceptionMessages()In the case of HTTP errors, use the body of the HTTP response +in the exception message.
| Type | Description |
|---|---|
| boolean |

import(string $uri, \Zend_Http_Client $client = null, string $className = 'Zend_Gdata_App_Feed') : \Zend_Gdata_App_FeedImports a feed located at $uri.
This method overrides the default behavior of Zend_Gdata_App, +providing support for Zend_Gdata_Gapps_ServiceException.
| Name | Type | Description |
|---|---|---|
| $uri | string | |
| $client | \Zend_Http_Client | (optional) The client used for + communication + |
| $className | string | (optional) The class which is used as the + return type + |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Feed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

importFile(string $filename, string $className = 'Zend_Gdata_App_Feed', string $useIncludePath = false) : \Zend_Gdata_App_FeedImports a feed from a file located at $filename.
Inherited from: + \Zend_Gdata_App::importFile()\Zend_Gdata::importFile()| Name | Type | Description |
|---|---|---|
| $filename | string | |
| $className | string | The class which is used as the return type |
| $useIncludePath | string | Whether the include_path should be searched |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Feed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception |

importString(string $string, string $className = 'Zend_Gdata_App_Feed', $majorProtocolVersion = null, $minorProtocolVersion = null) : \Zend_Gdata_App_FeedImports a feed represented by $string.
Inherited from: + \Zend_Gdata_App::importString()\Zend_Gdata::importString()| Name | Type | Description |
|---|---|---|
| $string | string | |
| $className | string | The class which is used as the return type |
| $majorProtocolVersion | ||
| $minorProtocolVersion |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Feed |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception |

importUrl(string $url, string $className = 'Zend_Gdata_App_Feed', array $extraHeaders = array()) : string | \Zend_Gdata_App_FeedImports the specified URL (non-statically).
Inherited from: + \Zend_Gdata_App::importUrl()\Zend_Gdata::importUrl()| Name | Type | Description |
|---|---|---|
| $url | string | The URL to import |
| $className | string | The class which is used as the return type |
| $extraHeaders | array | Extra headers to add to the request, as an + array of string-based key/value pairs. + |
| Type | Description |
|---|---|
| string | \Zend_Gdata_App_Feed | Returns string only if the object + mapping has been disabled explicitly + by passing false to the + useObjectMapping() function. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception |

insertEmailList(\Zend_Gdata_Gapps_EmailListEntry $emailList, string $uri = null) : \Zend_Gdata_Gapps_EmailListEntryCreate a new email list from an EmailListEntry.
| Name | Type | Description |
|---|---|---|
| $emailList | \Zend_Gdata_Gapps_EmailListEntry | The email list entry + to insert. |
| $uri | string | (optional) The URI where the email list should be + uploaded to. If null, the default email list creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListEntry | The inserted email list entry + as returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertEmailListRecipient(\Zend_Gdata_Gapps_EmailListRecipientEntry $recipient, string $uri = null) : \Zend_Gdata_Gapps_EmailListRecipientEntryCreate a new email list recipient from an EmailListRecipientEntry.
| Name | Type | Description |
|---|---|---|
| $recipient | \Zend_Gdata_Gapps_EmailListRecipientEntry | The recipient + entry to insert. |
| $uri | string | (optional) The URI where the recipient should be + uploaded to. If null, the default recipient creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientEntry | The inserted + recipient entry as returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertEntry(mixed $data, string $uri, string $className = 'Zend_Gdata_App_Entry', array $extraHeaders = array()) : \Zend_Gdata_App_EntryInserts an entry to a given URI and returns the response as a +fully formed Entry.
Inherited from: + \Zend_Gdata_App::insertEntry()\Zend_Gdata::insertEntry()| Name | Type | Description |
|---|---|---|
| $data | mixed | The Zend_Gdata_App_Entry or XML to post |
| $uri | string | POST URI |
| $className | string | The class of entry to be returned. |
| $extraHeaders | array | Extra headers to add to the request, as an + array of string-based key/value pairs. + |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Entry | The entry returned by the service after + insertion. |

insertGroup(\Zend_Gdata_Gapps_GroupEntry $group, string $uri = null) : \Zend_Gdata_Gapps_GroupEntryCreate a new group from a GroupEntry.
| Name | Type | Description |
|---|---|---|
| $group | \Zend_Gdata_Gapps_GroupEntry | The group entry to insert. |
| $uri | string | (optional) The URI where the group should be + uploaded to. If null, the default user creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupEntry | The inserted group entry as + returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertMember(\Zend_Gdata_Gapps_MemberEntry $member, string $uri = null) : \Zend_Gdata_Gapps_MemberEntryCreate a new member from a MemberEntry.
| Name | Type | Description |
|---|---|---|
| $member | \Zend_Gdata_Gapps_MemberEntry | The member entry to insert. |
| $uri | string | (optional) The URI where the group should be + uploaded to. If null, the default user creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberEntry | The inserted member entry as + returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertNickname(\Zend_Gdata_Gapps_NicknameEntry $nickname, string $uri = null) : \Zend_Gdata_Gapps_NicknameEntryCreate a new nickname from a NicknameEntry.
| Name | Type | Description |
|---|---|---|
| $nickname | \Zend_Gdata_Gapps_NicknameEntry | The nickname entry to + insert. |
| $uri | string | (optional) The URI where the nickname should be + uploaded to. If null, the default nickname creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameEntry | The inserted nickname entry as + returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertOwner(\Zend_Gdata_Gapps_OwnerEntry $owner, string $uri = null) : \Zend_Gdata_Gapps_OwnerEntryCreate a new group from a OwnerEntry.
| Name | Type | Description |
|---|---|---|
| $owner | \Zend_Gdata_Gapps_OwnerEntry | The owner entry to insert. |
| $uri | string | (optional) The URI where the owner should be + uploaded to. If null, the default user creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_OwnerEntry | The inserted owner entry as + returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

insertUser(\Zend_Gdata_Gapps_UserEntry $user, string $uri = null) : \Zend_Gdata_Gapps_UserEntryCreate a new user from a UserEntry.
| Name | Type | Description |
|---|---|---|
| $user | \Zend_Gdata_Gapps_UserEntry | The user entry to insert. |
| $uri | string | (optional) The URI where the user should be + uploaded to. If null, the default user creation URI for + this domain will be used. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | The inserted user entry as + returned by the server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

isAuthenticated() : booleanDetermines whether service object is authenticated.
Inherited from: + \Zend_Gdata::isAuthenticated()| Type | Description |
|---|---|
| boolean | True if service object is authenticated, false otherwise. |

isMember(string $memberId, string $groupId) : boolCheck to see if a member id or group id is a member of group
| Name | Type | Description |
|---|---|---|
| $memberId | string | Member id or group group id |
| $groupId | string | Group to be checked for |
| Type | Description |
|---|---|
| bool | True, if given entity is a member |

isOwner(string $email, string $groupId) : boolChecks to see if an email is an owner of a group
| Name | Type | Description |
|---|---|---|
| string | Owner's email + | |
| $groupId | string | Group ownership to be checked for |
| Type | Description |
|---|---|
| bool | True, if given entity is an owner |

performHttpRequest(string $method, string $url, array $headers = array(), string $body = null, string $contentType = null, int $remainingRedirects = null) : \Zend_Http_ResponsePerforms a HTTP request using the specified method.
Inherited from: + \Zend_Gdata::performHttpRequest()Overrides the definition in the parent (Zend_Gdata_App) +and uses the Zend_Gdata_HttpClient functionality +to filter the HTTP requests and responses.
| Name | Type | Description |
|---|---|---|
| $method | string | The HTTP method for the request - + 'GET', 'POST', 'PUT', 'DELETE' + |
| $url | string | The URL to which this request is being performed, + or null if found in $data + |
| $headers | array | An associative array of HTTP headers + for this request |
| $body | string | The body of the HTTP request |
| $contentType | string | The value for the content type of the + request body |
| $remainingRedirects | int | Number of redirects to follow + if requests results in one |
| Type | Description |
|---|---|
| \Zend_Http_Response | The response object |

post(mixed $data, string $uri = null, integer $remainingRedirects = null, string $contentType = null, $extraHeaders = null) : \Zend_Http_ResponsePOST data with client object.
This method overrides the default behavior of Zend_Gdata_App, +providing support for Zend_Gdata_Gapps_ServiceException.
| Name | Type | Description |
|---|---|---|
| $data | mixed | The Zend_Gdata_App_Entry or XML to post |
| $uri | string | (optional) POST URI + |
| $remainingRedirects | integer | (optional) + |
| $contentType | string | Content-type of the data + |
| $extraHeaders |
| Type | Description |
|---|---|
| \Zend_Http_Response |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_App_InvalidArgumentException | |
| \Zend_Gdata_Gapps_ServiceException |

prepareRequest(string $method, string $url = null, array $headers = array(), mixed $data = null, string $contentTypeOverride = null) : arrayProvides pre-processing for HTTP requests to APP services.
Inherited from: + \Zend_Gdata_App::prepareRequest()\Zend_Gdata::prepareRequest()-
+
- Checks the $data element and, if it's an entry, extracts the XML, +multipart data, edit link (PUT,DELETE), etc. +
- If $data is a string, sets the default content-type header as +'application/atom+xml' if it's not already been set. +
- Adds a x-http-method override header and changes the HTTP method +to 'POST' if necessary as per getHttpMethodOverride() +
| Name | Type | Description |
|---|---|---|
| $method | string | The HTTP method for the request - 'GET', 'POST', + 'PUT', 'DELETE' + |
| $url | string | The URL to which this request is being performed, + or null if found in $data + |
| $headers | array | An associative array of HTTP headers for this + request |
| $data | mixed | The Zend_Gdata_App_Entry or XML for the + body of the request |
| $contentTypeOverride | string | The override value for the + content type of the request body |
| Type | Description |
|---|---|
| array | An associative array containing the determined + 'method', 'url', 'data', 'headers', 'contentType' |

put(mixed $data, string $uri = null, integer $remainingRedirects = null, string $contentType = null, $extraHeaders = null) : \Zend_Http_ResponsePUT data with client object +This method overrides the default behavior of Zend_Gdata_App, +providing support for Zend_Gdata_Gapps_ServiceException.
| Name | Type | Description |
|---|---|---|
| $data | mixed | The Zend_Gdata_App_Entry or XML to post |
| $uri | string | (optional) PUT URI + |
| $remainingRedirects | integer | (optional) + |
| $contentType | string | Content-type of the data + |
| $extraHeaders |
| Type | Description |
|---|---|
| \Zend_Http_Response |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_App_InvalidArgumentException | |
| \Zend_Gdata_Gapps_ServiceException |

registerPackage(string $name) : voidAdds a Zend Framework package to the $_registeredPackages array.
Inherited from: + \Zend_Gdata_App::registerPackage()\Zend_Gdata::registerPackage()This array is searched when using the magic __call method below +to instantiante new objects.
| Name | Type | Description |
|---|---|---|
| $name | string | The name of the package (eg Zend_Gdata_App) + |

removeMemberFromGroup(string $memberId, string $groupId) : voidRemove a member id from a group
| Name | Type | Description |
|---|---|---|
| $memberId | string | Member id or group id |
| $groupId | string | The unique id of the group |

removeOwnerFromGroup(string $email, string $groupId) : voidRemove email as an owner of a group
| Name | Type | Description |
|---|---|---|
| string | Owner's email + | |
| $groupId | string | The unique identifier for the group |

removeRecipientFromEmailList(string $recipientAddress, string $emailList) : voidRemove a specified recipient from an email list.
| Name | Type | Description |
|---|---|---|
| $recipientAddress | string | The recipient to be removed. |
| $emailList | string | The list from which the recipient should + be removed. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

restoreUser(string $username) : \Zend_Gdata_Gapps_UserEntryMark a given user as not suspended.
| Name | Type | Description |
|---|---|---|
| $username | string | The username associated with the user who + should be restored. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | The UserEntry for the modified + user. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveAllEmailLists() : \Zend_Gdata_Gapps_EmailListFeedRetrieve 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.
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListFeed | The list of email lists found + as Zend_Gdata_Gapps_EmailListEntry objects. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveAllEntriesForFeed(object $feed) : mixedRetrieve all entries for a feed, iterating through pages as necessary.
Inherited from: + \Zend_Gdata_App::retrieveAllEntriesForFeed()\Zend_Gdata::retrieveAllEntriesForFeed()Be aware that calling this function on a large dataset will take a +significant amount of time to complete. In some cases this may cause +execution to timeout without proper precautions in place.
| Name | Type | Description |
|---|---|---|
| $feed | object | The feed to iterate through. |
| Type | Description |
|---|---|
| mixed | A new feed of the same type as the one originally + passed in, containing all relevent entries. |

retrieveAllGroups() : \Zend_Gdata_Gapps_GroupFeedRetrieve all groups in the current domain.
Be aware that +calling this function on a domain with many groups will take a +signifigant amount of time to complete. On larger domains this may +may cause execution to timeout without proper precautions in place.
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupFeed | Collection of Zend_Gdata_GroupEntry objects + representing all groups apart of the domain. |

retrieveAllMembers(string $groupId) : \Zend_Gdata_Gapps_MemberFeedRetrieves all the members of a group
| Name | Type | Description |
|---|---|---|
| $groupId | string | The unique id of the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberFeed | Collection of MemberEntry objects + representing all members apart of the group. |

retrieveAllNicknames() : \Zend_Gdata_Gapps_NicknameFeedRetrieve 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.
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameFeed | Collection of Zend_Gdata_NicknameEntry + objects representing all nicknames in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveAllRecipients( $emailList) : \Zend_Gdata_Gapps_EmailListRecipientFeedRetrieve 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.
| Name | Type | Description |
|---|---|---|
| $emailList |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientFeed | The list of email lists + found as Zend_Gdata_Gapps_EmailListRecipientEntry objects. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveAllUsers() : \Zend_Gdata_Gapps_UserFeedRetrieve 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.
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserFeed | Collection of Zend_Gdata_UserEntry + objects representing all users in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveEmailLists( $recipient) : \Zend_Gdata_Gapps_EmailListFeedRetrieve all email lists associated with a recipient.
| Name | Type | Description |
|---|---|---|
| $recipient |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListFeed | The list of email lists found as + Zend_Gdata_EmailListEntry objects. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveGroup(string $groupId) : \Zend_Gdata_Gapps_GroupEntryRetrieves a group based on group id
| Name | Type | Description |
|---|---|---|
| $groupId | string | The unique identifier for the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupEntry | The group entry as returned by the server. |

retrieveGroupOwners(string $groupId) : \Zend_Gdata_Gapps_OwnerFeedRetrieves all the owners of a group
| Name | Type | Description |
|---|---|---|
| $groupId | string | The unique identifier for the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_OwnerFeed | Collection of Zend_Gdata_OwnerEntry + objects representing all owners apart of the group. |

retrieveGroups(string $memberId, bool $directOnly = null) : \Zend_Gdata_Gapps_GroupFeedRetrieve all of the groups that a user is a member of
| Name | Type | Description |
|---|---|---|
| $memberId | string | Member username |
| $directOnly | bool | (Optional) If true, members with direct association + only will be considered + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupFeed | Collection of Zend_Gdata_GroupEntry + objects representing all groups member is apart of in the domain. |

retrieveNickname(string $nickname) : \Zend_Gdata_Gapps_NicknameEntryRetrieve the entry for a specified nickname.
| Name | Type | Description |
|---|---|---|
| $nickname | string | The nickname to be retrieved. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameEntry | The requested nickname entry. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveNicknames(string $username) : \Zend_Gdata_Gapps_NicknameFeedRetrieve all nicknames associated with a specific username.
| Name | Type | Description |
|---|---|---|
| $username | string | The username whose nicknames should be + returned. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameFeed | A feed containing all nicknames + for the given user, or null if |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrievePageOfEmailLists( $startNickname = null) : \Zend_Gdata_Gapps_EmailListFeedRetrieve a page of email lists in alphabetical order, starting with the +provided email list.
| Name | Type | Description |
|---|---|---|
| $startNickname |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListFeed | Collection of Zend_Gdata_EmailListEntry + objects representing all nicknames in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrievePageOfGroups(string $startGroup = null) : \Zend_Gdata_Gapps_GroupFeedRetrieve a page of groups in alphabetical order, starting with the +provided group.
| Name | Type | Description |
|---|---|---|
| $startGroup | string | (optional) The first group to + retrieve. If null or not defined, the page will begin + with the first group in the domain. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupFeed | Collection of Zend_Gdata_GroupEntry + objects representing the groups in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrievePageOfMembers(string $groupId, string $startMember = null) : \Zend_Gdata_Gapps_MemberFeedGets page of Members
| Name | Type | Description |
|---|---|---|
| $groupId | string | The group id which should be searched. |
| $startMember | string | (optinal) The address of the first member, + or null to start with the first member in the list. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_MemberFeed | Collection of Zend_Gdata_MemberEntry + objects |

retrievePageOfNicknames(string $startNickname = null) : \Zend_Gdata_Gapps_NicknameFeedRetrieve a page of nicknames in alphabetical order, starting with the +provided nickname.
| Name | Type | Description |
|---|---|---|
| $startNickname | string | (optional) The first nickname to + retrieve. If null or not declared, the page will begin with + the first nickname in the domain. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_NicknameFeed | Collection of Zend_Gdata_NicknameEntry + objects representing all nicknames in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrievePageOfRecipients( $emailList, string $startRecipient = null) : \Zend_Gdata_Gapps_EmailListRecipientFeedRetrieve a page of email list recipients in alphabetical order, +starting with the provided email list recipient.
| Name | Type | Description |
|---|---|---|
| $emailList | ||
| $startRecipient | string | (optinal) The address of the first + recipient, or null to start with the first recipient in + the list. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_EmailListRecipientFeed | Collection of + Zend_Gdata_EmailListRecipientEntry objects representing all + recpients in the specified list. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrievePageOfUsers(string $startUsername = null) : \Zend_Gdata_Gapps_UserFeedRetrieve a page of users in alphabetical order, starting with the +provided username.
| Name | Type | Description |
|---|---|---|
| $startUsername | string | (optional) The first username to retrieve. + If null or not declared, the page will begin with the first + user in the domain. + |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserFeed | Collection of Zend_Gdata_UserEntry + objects representing all users in the domain. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

retrieveUser(string $username) : \Zend_Gdata_Gapps_UserEntryRetrieve a user based on their username.
| Name | Type | Description |
|---|---|---|
| $username | string | The username to search for. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | The username to search for, or null + if no match found. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException | |
| \Zend_Gdata_App_HttpException |

setDomain(string $value) : voidSet 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.
| Name | Type | Description |
|---|---|---|
| $value | string | The domain to be used for this session. |

setGzipEnabled(boolean $enabled = false) : voidToggle requesting gzip encoded responses
Inherited from: + \Zend_Gdata_App::setGzipEnabled()\Zend_Gdata::setGzipEnabled()| Name | Type | Description |
|---|---|---|
| $enabled | boolean | Whether or not to enable gzipped responses |

setHttpClient(\Zend_Http_Client $client, $applicationId = 'MyCompany-MyApp-1.0') : \Zend_Gdata_AppSet the Zend_Http_Client object used for communication
Inherited from: + \Zend_Gdata_App::setHttpClient()\Zend_Gdata::setHttpClient()| Name | Type | Description |
|---|---|---|
| $client | \Zend_Http_Client | The client to use for communication |
| $applicationId |
| Type | Description |
|---|---|
| \Zend_Gdata_App | Provides a fluent interface |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_HttpException |

setHttpMethodOverride(boolean $override = true) : voidToggle using POST instead of PUT and DELETE HTTP methods
Inherited from: + \Zend_Gdata_App::setHttpMethodOverride()\Zend_Gdata::setHttpMethodOverride()Some feed implementations do not accept PUT and DELETE HTTP +methods, or they can't be used because of proxies or other +measures. This allows turning on using POST where PUT and +DELETE would normally be used; in addition, an +X-Method-Override header will be sent with a value of PUT or +DELETE as appropriate.
| Name | Type | Description |
|---|---|---|
| $override | boolean | Whether to override PUT and DELETE with POST. |

setMajorProtocolVersion(int $value) : voidSet the major protocol version that should be used.
Inherited from: + \Zend_Gdata_App::setMajorProtocolVersion()\Zend_Gdata::setMajorProtocolVersion()Values < 1 will +cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
| Name | Type | Description |
|---|---|---|
| $value | int | The major protocol version to use. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |
- See
- \_majorProtocolVersion + +

setMaxRedirects(int $maxRedirects) : voidSet the maximum number of redirects to follow during HTTP operations
Inherited from: + \Zend_Gdata_App::setMaxRedirects()\Zend_Gdata::setMaxRedirects()| Name | Type | Description |
|---|---|---|
| $maxRedirects | int | Maximum number of redirects to follow |

setMinorProtocolVersion(\(int | \NULL) $value) : voidSet the minor protocol version that should be used.
Inherited from: + \Zend_Gdata_App::setMinorProtocolVersion()\Zend_Gdata::setMinorProtocolVersion()If set to NULL, no +minor protocol version will be sent to the server. Values < 0 will +cause a Zend_Gdata_App_InvalidArgumentException to be thrown.
| Name | Type | Description |
|---|---|---|
| $value | \(int | \NULL) | The minor protocol version to use. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |
- See
- \_minorProtocolVersion + +

setStaticHttpClient(\Zend_Http_Client $httpClient) : voidSet the static HTTP client instance
Inherited from: + \Zend_Gdata_App::setStaticHttpClient()\Zend_Gdata::setStaticHttpClient()Sets the static HTTP client object to use for retrieving the feed.
| Name | Type | Description |
|---|---|---|
| $httpClient | \Zend_Http_Client |

setVerboseExceptionMessages(boolean $verbose) : voidSet whether to use verbose exception messages
Inherited from: + \Zend_Gdata_App::setVerboseExceptionMessages()\Zend_Gdata::setVerboseExceptionMessages()In the case of HTTP errors, use the body of the HTTP response +in the exception message.
| Name | Type | Description |
|---|---|---|
| $verbose | boolean | Whether to use verbose exception messages |

suspendUser(string $username) : \Zend_Gdata_Gapps_UserEntryMark a given user as suspended.
| Name | Type | Description |
|---|---|---|
| $username | string | The username associated with the user who + should be suspended. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | The UserEntry for the modified + user. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |

throwServiceExceptionIfDetected(\Zend_Gdata_Exception $e) : voidConvert 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.
| Name | Type | Description |
|---|---|---|
| $e | \Zend_Gdata_Exception | The exception to convert. |
| Exception | Description |
|---|---|
| \Zend_Gdata_Gapps_ServiceException | |
| mixed |

updateEntry(mixed $data, string | null $uri = null, string | null $className = null, array $extraHeaders = array()) : \Zend_Gdata_App_Entry| Name | Type | Description |
|---|---|---|
| $data | mixed | Zend_Gdata_App_Entry or XML (w/ID and link rel='edit') + |
| $uri | string | null | The URI to send requests to, or null if $data + contains the URI. + |
| $className | string | null | The name of the class that should be deserialized + from the server response. If null, then 'Zend_Gdata_App_Entry' + will be used. + |
| $extraHeaders | array | Extra headers to add to the request, as an + array of string-based key/value pairs. + |
| Type | Description |
|---|---|
| \Zend_Gdata_App_Entry | The entry returned from the server |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception |

updateGroup(string $groupId, string $groupName = null, string $description = null, string $emailPermission = null) : \Zend_Gdata_Gapps_GroupEntryUpdate group properties with new values.
any property not defined will not +be updated
| Name | Type | Description |
|---|---|---|
| $groupId | string | A unique identifier for the group |
| $groupName | string | The name of the group |
| $description | string | A description of the group |
| $emailPermission | string | The subscription permission of the group |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_GroupEntry | The group entry as updated on the server. |

updateUser(string $username, \Zend_Gdata_Gapps_UserEntry $userEntry) : \Zend_Gdata_Gapps_UserEntryOverwrite 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.
| Name | Type | Description |
|---|---|---|
| $username | string | The username whose data will be overwritten. |
| $userEntry | \Zend_Gdata_Gapps_UserEntry | The user entry which + will be overwritten. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_UserEntry | The UserEntry returned by the + server. |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | |
| \Zend_Gdata_App_HttpException | |
| \Zend_Gdata_Gapps_ServiceException |
- See
- \Zend_Gdata_App_Entry::save + +

useObjectMapping(boolean $value) : voidEnable/disable the use of XML to object mapping.
Inherited from: + \Zend_Gdata_App::useObjectMapping()\Zend_Gdata::useObjectMapping()| Name | Type | Description |
|---|---|---|
| $value | boolean | Pass in true to use the XML to object mapping. + Pass in false or null to disable it. |

usingObjectMapping() : booleanDetermine whether service object is using XML to object mapping.
Inherited from: + \Zend_Gdata_App::usingObjectMapping()\Zend_Gdata::usingObjectMapping()| Type | Description |
|---|---|
| boolean | True if service object is using XML to object mapping, + false otherwise. |