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 82)
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_GroupEntry
createGroup
(string $groupId, string $groupName, [string $description = null], [string $emailPermission = null])
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_MemberEntry
insertMember
(Zend_Gdata_Gapps_MemberEntry $member, [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)
Zend_Gdata_Gapps_GroupEntry
updateGroup
(string $groupId, [string $groupName = null], [string $description = null], [string $emailPermission = null])
static array
$namespaces
= array(Namespaces used for Zend_Gdata_Gapps
string
$_domain
= null (line 118)
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::$_useObjectMapping
Zend_Gdata_App::$_verboseExceptionMessages
static import (line 198)
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 156)
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.
addMemberToGroup (line 1294)
Add an email address to a group as a member
addOwnerToGroup (line 1344)
Add an email as an owner of a group
addRecipientToEmailList (line 1616)
Add a specified recipient to an existing emailList.
Constructor __construct (line 138)
Create Gdata_Gapps object
createEmailList (line 1530)
Create a new email list.
createGroup (line 1177)
Create a new group.
createNickname (line 1068)
Create a nickname for a given user.
createUser (line 909)
Create a new user entry and send it to the Google Apps servers.
delete (line 290)
DELETE entry with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
deleteEmailList (line 1598)
Delete a specified email list.
deleteGroup (line 1253)
Delete a group
deleteNickname (line 1164)
Delete a specified nickname.
deleteUser (line 1051)
Delete a user by username.
get (line 219)
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 337)
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 323)
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 639)
Retreive a single EmailListEntry object.
getEmailListFeed (line 479)
Retreive EmailListFeed object containing multiple EmailListEntry objects.
getEmailListRecipientEntry (line 662)
Retreive a single EmailListRecipientEntry object.
getEmailListRecipientFeed (line 501)
Retreive EmailListRecipientFeed object containing multiple EmailListRecipientEntry objects.
getGroupEntry (line 570)
Retreive a single GroupEntry object.
getGroupFeed (line 405)
Retreive GroupFeed object containing multiple GroupEntry objects.
getMemberEntry (line 593)
Retreive a single MemberEntry object.
getMemberFeed (line 429)
Retreive MemberFeed object containing multiple MemberEntry objects.
getNicknameEntry (line 547)
Retreive a single NicknameEntry object.
getNicknameFeed (line 382)
Retreive NicknameFeed object containing multiple NicknameEntry objects.
getOwnerEntry (line 616)
Retreive a single OwnerEntry object.
getOwnerFeed (line 454)
Retreive OwnerFeed object containing multiple OwnerEntry objects.
getUserEntry (line 524)
Retreive a single UserEntry object.
getUserFeed (line 360)
Retrieve a UserFeed containing multiple UserEntry objects.
insertEmailList (line 806)
Create a new email list from an EmailListEntry.
insertEmailListRecipient (line 829)
Create a new email list recipient from an EmailListRecipientEntry.
insertGroup (line 734)
Create a new group from a GroupEntry.
insertMember (line 757)
Create a new member from a MemberEntry.
insertNickname (line 712)
Create a new nickname from a NicknameEntry.
insertOwner (line 781)
Create a new group from a OwnerEntry.
insertUser (line 689)
Create a new user from a UserEntry.
isMember (line 1268)
Check to see if a member id or group id is a member of group
isOwner (line 1382)
Checks to see if an email is an owner of a group
post (line 243)
POST data with client object.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
put (line 268)
PUT data with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
removeMemberFromGroup (line 1316)
Remove a member id from a group
removeOwnerFromGroup (line 1407)
Remove email as an owner of a group
removeRecipientFromEmailList (line 1677)
Remove a specified recipient from an email list.
restoreUser (line 1036)
Mark a given user as not suspended.
retrieveAllEmailLists (line 1586)
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.
retrieveAllGroups (line 1243)
Retrieve 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.
retrieveAllMembers (line 1331)
Retrieves all the members of a group
retrieveAllNicknames (line 1152)
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 1662)
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 981)
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 1549)
Retrieve all email lists associated with a recipient.
retrieveGroup (line 1216)
Retrieves a group based on group id
retrieveGroupOwners (line 1367)
Retrieves all the owners of a group
retrieveGroups (line 1474)
Retrieve all of the groups that a user is a member of
retrieveNickname (line 1086)
Retrieve the entry for a specified nickname.
retrieveNicknames (line 1113)
Retrieve all nicknames associated with a specific username.
retrievePageOfEmailLists (line 1568)
Retrieve a page of email lists in alphabetical order, starting with the provided email list.
retrievePageOfGroups (line 1497)
Retrieve a page of groups in alphabetical order, starting with the provided group.
retrievePageOfMembers (line 1513)
Gets page of Members
retrievePageOfNicknames (line 1134)
Retrieve a page of nicknames in alphabetical order, starting with the provided nickname.
retrievePageOfRecipients (line 1641)
Retrieve a page of email list recipients in alphabetical order, starting with the provided email list recipient.
retrievePageOfUsers (line 963)
Retrieve a page of users in alphabetical order, starting with the provided username.
retrieveUser (line 935)
Retrieve a user based on their username.
setDomain (line 310)
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 1019)
Mark a given user as suspended.
updateGroup (line 1425)
Update group properties with new values. any property not defined will not be updated
updateUser (line 1003)
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 856)
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::useObjectMapping()
Zend_Gdata_App::usingObjectMapping()
Zend_Gdata_App::__call()
APPS_BASE_FEED_URI
= 'https://apps-apis.google.com/a/feeds'
(line 85)
APPS_EMAIL_LIST_PATH
= '/emailList/2.0'
(line 106)
Path to email list feeds on the Google Apps server.
APPS_EMAIL_LIST_RECIPIENT_POSTFIX
= '/recipient'
(line 111)
Path to email list recipient feeds on the Google Apps server.
APPS_GROUP_PATH
= '/group/2.0'
(line 101)
Path to group feeds on the Google Apps server.
APPS_NICKNAME_PATH
= '/nickname/2.0'
(line 96)
Path to nickname feeds on the Google Apps server.
APPS_USER_PATH
= '/user/2.0'
(line 91)
Path to user feeds on the Google Apps server.
AUTH_SERVICE_NAME
= 'apps'
(line 86)
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 Tue, 26 Oct 2010 20:08:45 +0400 by phpDocumentor 1.4.2