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.
addMemberToGroup(
string $recipientAddress, string $groupId
)
:
Zend_Gdata_Gapps_MemberEntryAdd an email address to a group as a member
addOwnerToGroup(
string $email, string $groupId
)
:
Zend_Gdata_Gapps_OwnerEntryAdd an email as an owner of a group
addRecipientToEmailList(
string $recipientAddress, string $emailList
)
:
Zend_Gdata_Gapps_EmailListRecipientEntryAdd a specified recipient to an existing emailList.
DetailscreateEmailList(
string $emailList
)
:
Zend_Gdata_Gapps_EmailListEntryCreate a new email list.
DetailscreateGroup(
string $groupId, string $groupName, string $description
=
null, string $emailPermission
=
null
)
:
Zend_Gdata_Gapps_GroupEntryCreate a new group.
createNickname(
string $username, string $nickname
)
:
Zend_Gdata_Gapps_NicknameEntryCreate a nickname for a given user.
DetailscreateUser(
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.
DetailsdeleteEmailList(
string $emailList
)
:
Delete a specified email list.
DetailsdeleteGroup(
string $groupId
)
:
Delete a group
deleteNickname(
string $nickname
)
:
Delete a specified nickname.
DetailsdeleteUser(
string $username
)
:
Delete a user by username.
DetailsisMember(
string $memberId, string $groupId
)
:
boolCheck to see if a member id or group id is a member of group
isOwner(
string $email, string $groupId
)
:
boolChecks to see if an email is an owner of a group
removeMemberFromGroup(
string $memberId, string $groupId
)
:
Remove a member id from a group
removeOwnerFromGroup(
string $email, string $groupId
)
:
Remove email as an owner of a group
removeRecipientFromEmailList(
string $recipientAddress, string $emailList
)
:
Remove a specified recipient from an email list.
DetailsrestoreUser(
string $username
)
:
Zend_Gdata_Gapps_UserEntryMark a given user as not suspended.
DetailsretrieveAllEmailLists(
)
:
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.
DetailsretrieveAllGroups(
)
:
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.
retrieveAllMembers(
string $groupId
)
:
Zend_Gdata_Gapps_MemberFeedRetrieves all the members of a 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.
DetailsretrieveAllRecipients(
$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.
DetailsretrieveAllUsers(
)
:
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.
DetailsretrieveEmailLists(
$recipient
)
:
Zend_Gdata_Gapps_EmailListFeedRetrieve all email lists associated with a recipient.
DetailsretrieveGroup(
string $groupId
)
:
Zend_Gdata_Gapps_GroupEntryRetrieves a group based on group id
retrieveGroupOwners(
string $groupId
)
:
Zend_Gdata_Gapps_OwnerFeedRetrieves all the owners of a group
retrieveGroups(
string $memberId, bool $directOnly
=
null
)
:
Zend_Gdata_Gapps_GroupFeedRetrieve all of the groups that a user is a member of
retrieveNickname(
string $nickname
)
:
Zend_Gdata_Gapps_NicknameEntryRetrieve the entry for a specified nickname.
DetailsretrieveNicknames(
string $username
)
:
Zend_Gdata_Gapps_NicknameFeedRetrieve all nicknames associated with a specific username.
DetailsretrievePageOfEmailLists(
$startNickname
=
null
)
:
Zend_Gdata_Gapps_EmailListFeedRetrieve a page of email lists in alphabetical order, starting with the provided email list.
DetailsretrievePageOfGroups(
string $startGroup
=
null
)
:
Zend_Gdata_Gapps_GroupFeedRetrieve a page of groups in alphabetical order, starting with the provided group.
DetailsretrievePageOfMembers(
string $groupId, string $startMember
=
null
)
:
Zend_Gdata_Gapps_MemberFeedGets page of Members
retrievePageOfNicknames(
string $startNickname
=
null
)
:
Zend_Gdata_Gapps_NicknameFeedRetrieve a page of nicknames in alphabetical order, starting with the provided nickname.
DetailsretrievePageOfRecipients(
$emailList, string $startRecipient
=
null
)
:
Zend_Gdata_Gapps_EmailListRecipientFeedRetrieve a page of email list recipients in alphabetical order, starting with the provided email list recipient.
DetailsretrievePageOfUsers(
string $startUsername
=
null
)
:
Zend_Gdata_Gapps_UserFeedRetrieve a page of users in alphabetical order, starting with the provided username.
DetailsretrieveUser(
string $username
)
:
Zend_Gdata_Gapps_UserEntryRetrieve a user based on their username.
DetailssuspendUser(
string $username
)
:
Zend_Gdata_Gapps_UserEntryMark a given user as suspended.
DetailsupdateGroup(
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
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.
DetailsService 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.
APPS_BASE_FEED_URI = 'https://apps-apis.google.com/a/feeds'
Details AUTH_SERVICE_NAME = 'apps'
Details APPS_USER_PATH = '/user/2.0'
Path to user feeds on the Google Apps server.
Details APPS_NICKNAME_PATH = '/nickname/2.0'
Path to nickname feeds on the Google Apps server.
Details APPS_GROUP_PATH = '/group/2.0'
Path to group feeds on the Google Apps server.
Details APPS_EMAIL_LIST_PATH = '/emailList/2.0'
Path to email list feeds on the Google Apps server.
Details APPS_EMAIL_LIST_RECIPIENT_POSTFIX = '/recipient'
Path to email list recipient feeds on the Google Apps server.
Detailsstring $_domain = 'null'The domain which is being administered via the Provisioning API.
Details $args = ''
Details $method = ''
Detailsarray $namespaces = 'array'Namespaces used for Zend_Gdata_Gapps
Details__call(
string $method, array $args
)
:
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.
Details__construct(
Zend_Http_Client $client
=
null, string $domain
=
null, string $applicationId
=
MyCompany-MyApp-1.0
)
:
Create Gdata_Gapps object
Detailsdelete(
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.
Detailsget(
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.
DetailsgetBaseUrl(
string $domain
=
null
)
:
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.
DetailsgetDomain(
)
:
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.
DetailsgetEmailListEntry(
mixed $location
)
:
Zend_Gdata_Gapps_EmailListEntryRetreive a single EmailListEntry object.
DetailsgetEmailListFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_EmailListFeedRetreive EmailListFeed object containing multiple EmailListEntry objects.
DetailsgetEmailListRecipientEntry(
mixed $location
)
:
Zend_Gdata_Gapps_EmailListRecipientEntryRetreive a single EmailListRecipientEntry object.
DetailsgetEmailListRecipientFeed(
mixed $location
)
:
Zend_Gdata_Gapps_EmailListRecipientFeedRetreive EmailListRecipientFeed object containing multiple EmailListRecipientEntry objects.
DetailsgetGroupEntry(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_GroupEntryRetreive a single GroupEntry object.
DetailsgetGroupFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_GroupFeedRetreive GroupFeed object containing multiple GroupEntry objects.
DetailsgetMemberEntry(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_MemberEntryRetreive a single MemberEntry object.
DetailsgetMemberFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_MemberFeedRetreive MemberFeed object containing multiple MemberEntry objects.
DetailsgetNicknameEntry(
mixed $location
)
:
Zend_Gdata_Gapps_NicknameEntryRetreive a single NicknameEntry object.
DetailsgetNicknameFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_NicknameFeedRetreive NicknameFeed object containing multiple NicknameEntry objects.
DetailsgetOwnerEntry(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_OwnerEntryRetreive a single OwnerEntry object.
DetailsgetOwnerFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_OwnerFeedRetreive OwnerFeed object containing multiple OwnerEntry objects.
DetailsgetUserEntry(
mixed $location
)
:
Zend_Gdata_Gapps_UserEntryRetreive a single UserEntry object.
DetailsgetUserFeed(
mixed $location
=
null
)
:
Zend_Gdata_Gapps_UserFeedRetrieve a UserFeed containing multiple UserEntry objects.
Detailsimport(
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.
DetailsinsertEmailList(
Zend_Gdata_Gapps_EmailListEntry $emailList, string $uri
=
null
)
:
Zend_Gdata_Gapps_EmailListEntryCreate a new email list from an EmailListEntry.
DetailsinsertEmailListRecipient(
Zend_Gdata_Gapps_EmailListRecipientEntry $recipient, string $uri
=
null
)
:
Zend_Gdata_Gapps_EmailListRecipientEntryCreate a new email list recipient from an EmailListRecipientEntry.
DetailsinsertGroup(
Zend_Gdata_Gapps_GroupEntry $group, string $uri
=
null
)
:
Zend_Gdata_Gapps_GroupEntryCreate a new group from a GroupEntry.
DetailsinsertMember(
Zend_Gdata_Gapps_MemberEntry $member, string $uri
=
null
)
:
Zend_Gdata_Gapps_MemberEntryCreate a new member from a MemberEntry.
DetailsinsertNickname(
Zend_Gdata_Gapps_NicknameEntry $nickname, string $uri
=
null
)
:
Zend_Gdata_Gapps_NicknameEntryCreate a new nickname from a NicknameEntry.
DetailsinsertOwner(
Zend_Gdata_Gapps_OwnerEntry $owner, string $uri
=
null
)
:
Zend_Gdata_Gapps_OwnerEntryCreate a new group from a OwnerEntry.
DetailsinsertUser(
Zend_Gdata_Gapps_UserEntry $user, string $uri
=
null
)
:
Zend_Gdata_Gapps_UserEntryCreate a new user from a UserEntry.
Detailspost(
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.
Detailsput(
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.
DetailssetDomain(
string $value
)
:
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.
DetailsthrowServiceExceptionIfDetected(
Zend_Gdata_Exception $e
)
:
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.
Details