Zend Framework
1.12
|
Public Member Functions | |
__construct ($client=null, $domain=null, $applicationId= 'MyCompany-MyApp-1.0') | |
Create Gdata_Gapps object. | |
get ($uri, $extraHeaders=array()) | |
GET a URI using client object. | |
post ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
POST data with client object. | |
put ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
PUT data with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException. | |
delete ($data, $remainingRedirects=null) | |
DELETE entry with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException. | |
setDomain ($value) | |
Set domain for this service instance. | |
getDomain () | |
Get domain for this service instance. | |
getBaseUrl ($domain=null) | |
Returns the base URL used to access the Google Apps service, based on the current domain. | |
getUserFeed ($location=null) | |
Retrieve a UserFeed containing multiple UserEntry objects. | |
getNicknameFeed ($location=null) | |
Retreive NicknameFeed object containing multiple NicknameEntry objects. | |
getGroupFeed ($location=null) | |
Retreive GroupFeed object containing multiple GroupEntry objects. | |
getMemberFeed ($location=null) | |
Retreive MemberFeed object containing multiple MemberEntry objects. | |
getOwnerFeed ($location=null) | |
Retreive OwnerFeed object containing multiple OwnerEntry objects. | |
getEmailListFeed ($location=null) | |
Retreive EmailListFeed object containing multiple EmailListEntry objects. | |
getEmailListRecipientFeed ($location) | |
Retreive EmailListRecipientFeed object containing multiple EmailListRecipientEntry objects. | |
getUserEntry ($location) | |
Retreive a single UserEntry object. | |
getNicknameEntry ($location) | |
Retreive a single NicknameEntry object. | |
getGroupEntry ($location=null) | |
Retreive a single GroupEntry object. | |
getMemberEntry ($location=null) | |
Retreive a single MemberEntry object. | |
getOwnerEntry ($location=null) | |
Retreive a single OwnerEntry object. | |
getEmailListEntry ($location) | |
Retreive a single EmailListEntry object. | |
getEmailListRecipientEntry ($location) | |
Retreive a single EmailListRecipientEntry object. | |
insertUser ($user, $uri=null) | |
Create a new user from a UserEntry. | |
insertNickname ($nickname, $uri=null) | |
Create a new nickname from a NicknameEntry. | |
insertGroup ($group, $uri=null) | |
Create a new group from a GroupEntry. | |
insertMember ($member, $uri=null) | |
Create a new member from a MemberEntry. | |
insertOwner ($owner, $uri=null) | |
Create a new group from a OwnerEntry. | |
insertEmailList ($emailList, $uri=null) | |
Create a new email list from an EmailListEntry. | |
insertEmailListRecipient ($recipient, $uri=null) | |
Create a new email list recipient from an EmailListRecipientEntry. | |
__call ($method, $args) | |
Provides a magic factory method to instantiate new objects with shorter syntax than would otherwise be required by the Zend Framework naming conventions. | |
createUser ($username, $givenName, $familyName, $password, $passwordHashFunction=null, $quotaLimitInMB=null) | |
Create a new user entry and send it to the Google Apps servers. | |
retrieveUser ($username) | |
Retrieve a user based on their username. | |
retrievePageOfUsers ($startUsername=null) | |
Retrieve a page of users in alphabetical order, starting with the provided username. | |
retrieveAllUsers () | |
Retrieve all users in the current domain. | |
updateUser ($username, $userEntry) | |
Overwrite a specified username with the provided UserEntry. | |
suspendUser ($username) | |
Mark a given user as suspended. | |
restoreUser ($username) | |
Mark a given user as not suspended. | |
deleteUser ($username) | |
Delete a user by username. | |
createNickname ($username, $nickname) | |
Create a nickname for a given user. | |
retrieveNickname ($nickname) | |
Retrieve the entry for a specified nickname. | |
retrieveNicknames ($username) | |
Retrieve all nicknames associated with a specific username. | |
retrievePageOfNicknames ($startNickname=null) | |
Retrieve a page of nicknames in alphabetical order, starting with the provided nickname. | |
retrieveAllNicknames () | |
Retrieve all nicknames in the current domain. | |
deleteNickname ($nickname) | |
Delete a specified nickname. | |
createGroup ($groupId, $groupName, $description=null, $emailPermission=null) | |
Create a new group. | |
retrieveGroup ($groupId) | |
Retrieves a group based on group id. | |
retrieveAllGroups () | |
Retrieve all groups in the current domain. | |
deleteGroup ($groupId) | |
Delete a group. | |
isMember ($memberId, $groupId) | |
Check to see if a member id or group id is a member of group. | |
addMemberToGroup ($recipientAddress, $groupId) | |
Add an email address to a group as a member. | |
removeMemberFromGroup ($memberId, $groupId) | |
Remove a member id from a group. | |
retrieveAllMembers ($groupId) | |
Retrieves all the members of a group. | |
addOwnerToGroup ($email, $groupId) | |
Add an email as an owner of a group. | |
retrieveGroupOwners ($groupId) | |
Retrieves all the owners of a group. | |
isOwner ($email, $groupId) | |
Checks to see if an email is an owner of a group. | |
removeOwnerFromGroup ($email, $groupId) | |
Remove email as an owner of a group. | |
updateGroup ($groupId, $groupName=null, $description=null, $emailPermission=null) | |
Update group properties with new values. | |
retrieveGroups ($memberId, $directOnly=null) | |
Retrieve all of the groups that a user is a member of. | |
retrievePageOfGroups ($startGroup=null) | |
Retrieve a page of groups in alphabetical order, starting with the provided group. | |
retrievePageOfMembers ($groupId, $startMember=null) | |
Gets page of Members. | |
createEmailList ($emailList) | |
Create a new email list. | |
retrieveEmailLists ($recipient) | |
Retrieve all email lists associated with a recipient. | |
retrievePageOfEmailLists ($startNickname=null) | |
Retrieve a page of email lists in alphabetical order, starting with the provided email list. | |
retrieveAllEmailLists () | |
Retrieve all email lists associated with the curent domain. | |
deleteEmailList ($emailList) | |
Delete a specified email list. | |
addRecipientToEmailList ($recipientAddress, $emailList) | |
Add a specified recipient to an existing emailList. | |
retrievePageOfRecipients ($emailList, $startRecipient=null) | |
Retrieve a page of email list recipients in alphabetical order, starting with the provided email list recipient. | |
retrieveAllRecipients ($emailList) | |
Retrieve all recipients associated with an email list. | |
removeRecipientFromEmailList ($recipientAddress, $emailList) | |
Remove a specified recipient from an email list. | |
![]() | |
__construct ($client=null, $applicationId= 'MyCompany-MyApp-1.0') | |
Create Gdata object. | |
getFeed ($location, $className='Zend_Gdata_Feed') | |
Retrieve feed as string or object. | |
getEntry ($location, $className='Zend_Gdata_Entry') | |
Retrieve entry as string or object. | |
performHttpRequest ($method, $url, $headers=array(), $body=null, $contentType=null, $remainingRedirects=null) | |
Performs a HTTP request using the specified method. | |
isAuthenticated () | |
Determines whether service object is authenticated. | |
![]() | |
__construct ($client=null, $applicationId= 'MyCompany-MyApp-1.0') | |
Create Gdata object. | |
registerPackage ($name) | |
Adds a Zend Framework package to the $_registeredPackages array. | |
getFeed ($uri, $className='Zend_Gdata_App_Feed') | |
Retrieve feed as string or object. | |
getEntry ($uri, $className='Zend_Gdata_App_Entry') | |
Retrieve entry as string or object. | |
getHttpClient () | |
Get the Zend_Http_Client object used for communication. | |
setHttpClient ($client, $applicationId= 'MyCompany-MyApp-1.0') | |
Set the Zend_Http_Client object used for communication. | |
setMajorProtocolVersion ($value) | |
Set the major protocol version that should be used. | |
getMajorProtocolVersion () | |
Get the major protocol version that is in use. | |
setMinorProtocolVersion ($value) | |
Set the minor protocol version that should be used. | |
getMinorProtocolVersion () | |
Get the minor protocol version that is in use. | |
prepareRequest ($method, $url=null, $headers=array(), $data=null, $contentTypeOverride=null) | |
Provides pre-processing for HTTP requests to APP services. | |
performHttpRequest ($method, $url, $headers=null, $body=null, $contentType=null, $remainingRedirects=null) | |
Performs a HTTP request using the specified method. | |
importUrl ($url, $className='Zend_Gdata_App_Feed', $extraHeaders=array()) | |
Imports the specified URL (non-statically). | |
get ($uri, $extraHeaders=array()) | |
GET a URI using client object. | |
post ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
POST data with client object. | |
put ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
PUT data with client object. | |
delete ($data, $remainingRedirects=null) | |
DELETE entry with client object. | |
insertEntry ($data, $uri, $className='Zend_Gdata_App_Entry', $extraHeaders=array()) | |
Inserts an entry to a given URI and returns the response as a fully formed Entry. | |
updateEntry ($data, $uri=null, $className=null, $extraHeaders=array()) | |
Update an entry. | |
__call ($method, $args) | |
Provides a magic factory method to instantiate new objects with shorter syntax than would otherwise be required by the Zend Framework naming conventions. | |
retrieveAllEntriesForFeed ($feed) | |
Retrieve all entries for a feed, iterating through pages as necessary. | |
enableRequestDebugLogging ($logfile) | |
This method enables logging of requests by changing the Zend_Http_Client_Adapter used for performing the requests. | |
getNextFeed ($feed, $className=null) | |
Retrieve next set of results based on a given feed. | |
getPreviousFeed ($feed, $className=null) | |
Retrieve previous set of results based on a given feed. | |
generateIfMatchHeaderData ($data, $allowWeek) | |
Returns the data for an If-Match header based on the current Etag property. | |
usingObjectMapping () | |
Determine whether service object is using XML to object mapping. | |
useObjectMapping ($value) | |
Enable/disable the use of XML to object mapping. | |
Static Public Member Functions | |
static | throwServiceExceptionIfDetected ($e) |
Convert an exception to an ServiceException if an AppsForYourDomain XML document is contained within the original exception's HTTP response. | |
static | import ($uri, $client=null, $className='Zend_Gdata_App_Feed', $useObjectMapping=true) |
Imports a feed located at $uri. | |
![]() | |
static | import ($uri, $client=null, $className='Zend_Gdata_Feed', $useObjectMapping=true) |
Imports a feed located at $uri. | |
![]() | |
static | setStaticHttpClient (Zend_Http_Client $httpClient) |
Set the static HTTP client instance. | |
static | getStaticHttpClient () |
Gets the HTTP client object. | |
static | setHttpMethodOverride ($override=true) |
Toggle using POST instead of PUT and DELETE HTTP methods. | |
static | getHttpMethodOverride () |
Get the HTTP override state. | |
static | setGzipEnabled ($enabled=false) |
Toggle requesting gzip encoded responses. | |
static | getGzipEnabled () |
Get the HTTP override state. | |
static | getVerboseExceptionMessages () |
Get whether to use verbose exception messages. | |
static | setVerboseExceptionMessages ($verbose) |
Set whether to use verbose exception messages. | |
static | setMaxRedirects ($maxRedirects) |
Set the maximum number of redirects to follow during HTTP operations. | |
static | getMaxRedirects () |
Get the maximum number of redirects to follow during HTTP operations. | |
static | import ($uri, $client=null, $className='Zend_Gdata_App_Feed', $useObjectMapping=true) |
Imports a feed located at $uri. | |
static | importString ($string, $className='Zend_Gdata_App_Feed', $majorProtocolVersion=null, $minorProtocolVersion=null) |
Imports a feed represented by $string. | |
static | importFile ($filename, $className='Zend_Gdata_App_Feed', $useIncludePath=false) |
Imports a feed from a file located at $filename. | |
Public Attributes | |
const | APPS_BASE_FEED_URI = 'https://apps-apis.google.com/a/feeds' |
const | AUTH_SERVICE_NAME = 'apps' |
const | APPS_USER_PATH = '/user/2.0' |
Path to user feeds on the Google Apps server. | |
const | APPS_NICKNAME_PATH = '/nickname/2.0' |
Path to nickname feeds on the Google Apps server. | |
const | APPS_GROUP_PATH = '/group/2.0' |
Path to group feeds on the Google Apps server. | |
const | APPS_EMAIL_LIST_PATH = '/emailList/2.0' |
Path to email list feeds on the Google Apps server. | |
const | APPS_EMAIL_LIST_RECIPIENT_POSTFIX = '/recipient' |
Path to email list recipient feeds on the Google Apps server. | |
![]() | |
const | AUTH_SERVICE_NAME = 'xapi' |
![]() | |
const | DEFAULT_MAJOR_PROTOCOL_VERSION = 1 |
Default major protocol version. | |
const | DEFAULT_MINOR_PROTOCOL_VERSION = null |
Default minor protocol version. | |
Static Public Attributes | |
static | $namespaces |
![]() | |
static | $namespaces |
Protected Attributes | |
$_domain = null | |
![]() | |
$_defaultPostUri = null | |
$_registeredPackages | |
$_httpClient | |
![]() | |
$_httpClient | |
$_defaultPostUri = null | |
$_registeredPackages | |
$_majorProtocolVersion | |
Indicates the major protocol version that should be used. | |
$_minorProtocolVersion | |
Indicates the minor protocol version that should be used. | |
$_useObjectMapping = true | |
Additional Inherited Members | |
![]() | |
static | $_staticHttpClient = null |
__construct | ( | $client = null , |
|
$domain = null , |
|||
$applicationId = 'MyCompany-MyApp-1.0' |
|||
) |
Create Gdata_Gapps object.
Zend_Http_Client | $client | (optional) The HTTP client to use when when communicating with the Google Apps servers. |
string | $domain | (optional) The Google Apps domain which is to be accessed. |
string | $applicationId | The identity of the app in the form of Company-AppName-Version |
__call | ( | $method, | |
$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.
string | $method | The method name being called |
array | $args | The arguments passed to the call |
Zend_Gdata_App_Exception |
addMemberToGroup | ( | $recipientAddress, | |
$groupId | |||
) |
Add an email address to a group as a member.
string | $recipientAddress | Email address, member id, or group id |
string | $groupId | The unique id of the group |
addOwnerToGroup | ( | $email, | |
$groupId | |||
) |
Add an email as an owner of a group.
string | Owner's email | |
string | $groupId | Group ownership to be checked for |
addRecipientToEmailList | ( | $recipientAddress, | |
$emailList | |||
) |
Add a specified recipient to an existing emailList.
string | $recipientAddress | The address of the recipient to be added to the email list. |
string | $emailList | The name of the email address to which the recipient should be added. |
createEmailList | ( | $emailList | ) |
Create a new email list.
string | $emailList | The name of the email list to be created. |
createGroup | ( | $groupId, | |
$groupName, | |||
$description = null , |
|||
$emailPermission = null |
|||
) |
Create a new group.
string | $groupId | A unique identifier for the group |
string | $groupName | The name of the group |
string | $description | A description of the group |
string | $emailPermission | The subscription permission of the group |
createNickname | ( | $username, | |
$nickname | |||
) |
Create a nickname for a given user.
string | $username | The username to which the new nickname should be associated. |
string | $nickname | The new nickname to be created. |
createUser | ( | $username, | |
$givenName, | |||
$familyName, | |||
$password, | |||
$passwordHashFunction = null , |
|||
$quotaLimitInMB = null |
|||
) |
Create a new user entry and send it to the Google Apps servers.
string | $username | The username for the new user. |
string | $givenName | The given name for the new user. |
string | $familyName | The family name for the new user. |
string | $password | The password for the new user as a plaintext string (if $passwordHashFunction is null) or a SHA-1 hashed value (if $passwordHashFunction = 'SHA-1'). |
string | $quotaLimitInMB | (optional) The quota limit for the new user in MB. |
delete | ( | $data, | |
$remainingRedirects = null |
|||
) |
DELETE entry with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
mixed | $data | The Zend_Gdata_App_Entry or URL to delete |
integer | $remainingRedirects | (optional) |
deleteEmailList | ( | $emailList | ) |
Delete a specified email list.
string | $emailList | The name of the emailList to be deleted. |
deleteGroup | ( | $groupId | ) |
Delete a group.
string | $groupId | The unique identifier for the group |
deleteNickname | ( | $nickname | ) |
Delete a specified nickname.
string | $nickname | The name of the nickname to be deleted. |
deleteUser | ( | $username | ) |
Delete a user by username.
string | $username | The username associated with the user who should be deleted. |
get | ( | $uri, | |
$extraHeaders = array() |
|||
) |
GET a URI using client object.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
string | $uri | GET URI |
array | $extraHeaders | Extra headers to add to the request, as an array of string-based key/value pairs. |
getBaseUrl | ( | $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.
string | $domain | (optional) A fully-qualified domain to use instead of the default domain for this service instance. |
Zend_Gdata_App_InvalidArgumentException |
getDomain | ( | ) |
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 | ( | $location | ) |
Retreive a single EmailListEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getEmailListFeed | ( | $location = null | ) |
Retreive EmailListFeed object containing multiple EmailListEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
getEmailListRecipientEntry | ( | $location | ) |
Retreive a single EmailListRecipientEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getEmailListRecipientFeed | ( | $location | ) |
Retreive EmailListRecipientFeed object containing multiple EmailListRecipientEntry objects.
mixed | $location | The location for the feed, as a URL or Query. |
getGroupEntry | ( | $location = null | ) |
Retreive a single GroupEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getGroupFeed | ( | $location = null | ) |
Retreive GroupFeed object containing multiple GroupEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
getMemberEntry | ( | $location = null | ) |
Retreive a single MemberEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getMemberFeed | ( | $location = null | ) |
Retreive MemberFeed object containing multiple MemberEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
getNicknameEntry | ( | $location | ) |
Retreive a single NicknameEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getNicknameFeed | ( | $location = null | ) |
Retreive NicknameFeed object containing multiple NicknameEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
getOwnerEntry | ( | $location = null | ) |
Retreive a single OwnerEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getOwnerFeed | ( | $location = null | ) |
Retreive OwnerFeed object containing multiple OwnerEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
getUserEntry | ( | $location | ) |
Retreive a single UserEntry object.
mixed | $location | The location for the feed, as a URL or Query. |
getUserFeed | ( | $location = null | ) |
Retrieve a UserFeed containing multiple UserEntry objects.
mixed | $location | (optional) The location for the feed, as a URL or Query. |
|
static |
Imports a feed located at $uri.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
string | $uri | |
Zend_Http_Client | $client | (optional) The client used for communication |
string | $className | (optional) The class which is used as the return type |
insertEmailList | ( | $emailList, | |
$uri = null |
|||
) |
Create a new email list from an EmailListEntry.
Zend_Gdata_Gapps_EmailListEntry | $emailList | The email list entry to insert. |
string | $uri | (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. |
insertEmailListRecipient | ( | $recipient, | |
$uri = null |
|||
) |
Create a new email list recipient from an EmailListRecipientEntry.
Zend_Gdata_Gapps_EmailListRecipientEntry | $recipient | The recipient entry to insert. |
string | $uri | (optional) The URI where the recipient should be uploaded to. If null, the default recipient creation URI for this domain will be used. |
insertGroup | ( | $group, | |
$uri = null |
|||
) |
Create a new group from a GroupEntry.
Zend_Gdata_Gapps_GroupEntry | $group | The group entry to insert. |
string | $uri | (optional) The URI where the group should be uploaded to. If null, the default user creation URI for this domain will be used. |
insertMember | ( | $member, | |
$uri = null |
|||
) |
Create a new member from a MemberEntry.
Zend_Gdata_Gapps_MemberEntry | $member | The member entry to insert. |
string | $uri | (optional) The URI where the group should be uploaded to. If null, the default user creation URI for this domain will be used. |
insertNickname | ( | $nickname, | |
$uri = null |
|||
) |
Create a new nickname from a NicknameEntry.
Zend_Gdata_Gapps_NicknameEntry | $nickname | The nickname entry to insert. |
string | $uri | (optional) The URI where the nickname should be uploaded to. If null, the default nickname creation URI for this domain will be used. |
insertOwner | ( | $owner, | |
$uri = null |
|||
) |
Create a new group from a OwnerEntry.
Zend_Gdata_Gapps_OwnerEntry | $owner | The owner entry to insert. |
string | $uri | (optional) The URI where the owner should be uploaded to. If null, the default user creation URI for this domain will be used. |
insertUser | ( | $user, | |
$uri = null |
|||
) |
Create a new user from a UserEntry.
Zend_Gdata_Gapps_UserEntry | $user | The user entry to insert. |
string | $uri | (optional) The URI where the user should be uploaded to. If null, the default user creation URI for this domain will be used. |
isMember | ( | $memberId, | |
$groupId | |||
) |
Check to see if a member id or group id is a member of group.
string | $memberId | Member id or group group id |
string | $groupId | Group to be checked for |
isOwner | ( | $email, | |
$groupId | |||
) |
Checks to see if an email is an owner of a group.
string | Owner's email | |
string | $groupId | Group ownership to be checked for |
post | ( | $data, | |
$uri = null , |
|||
$remainingRedirects = null , |
|||
$contentType = null , |
|||
$extraHeaders = null |
|||
) |
POST data with client object.
This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
mixed | $data | The Zend_Gdata_App_Entry or XML to post |
string | $uri | (optional) POST URI |
integer | $remainingRedirects | (optional) |
string | $contentType | Content-type of the data |
array | $extraHaders | Extra headers to add tot he request |
put | ( | $data, | |
$uri = null , |
|||
$remainingRedirects = null , |
|||
$contentType = null , |
|||
$extraHeaders = null |
|||
) |
PUT data with client object This method overrides the default behavior of Zend_Gdata_App, providing support for Zend_Gdata_Gapps_ServiceException.
mixed | $data | The Zend_Gdata_App_Entry or XML to post |
string | $uri | (optional) PUT URI |
integer | $remainingRedirects | (optional) |
string | $contentType | Content-type of the data |
array | $extraHaders | Extra headers to add tot he request |
removeMemberFromGroup | ( | $memberId, | |
$groupId | |||
) |
Remove a member id from a group.
string | $memberId | Member id or group id |
string | $groupId | The unique id of the group |
removeOwnerFromGroup | ( | $email, | |
$groupId | |||
) |
Remove email as an owner of a group.
string | Owner's email | |
string | $groupId | The unique identifier for the group |
removeRecipientFromEmailList | ( | $recipientAddress, | |
$emailList | |||
) |
Remove a specified recipient from an email list.
string | $recipientAddress | The recipient to be removed. |
string | $emailList | The list from which the recipient should be removed. |
restoreUser | ( | $username | ) |
Mark a given user as not suspended.
string | $username | The username associated with the user who should be restored. |
retrieveAllEmailLists | ( | ) |
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 | ( | ) |
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 | ( | $groupId | ) |
Retrieves all the members of a group.
string | $groupId | The unique id of the group |
retrieveAllNicknames | ( | ) |
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 | ( | $emailList | ) |
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.
string | $emaiList | The email list which should be searched. |
retrieveAllUsers | ( | ) |
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 | ( | $recipient | ) |
Retrieve all email lists associated with a recipient.
string | $username | The recipient whose associated email lists should be returned. |
retrieveGroup | ( | $groupId | ) |
Retrieves a group based on group id.
string | $groupId | The unique identifier for the group |
retrieveGroupOwners | ( | $groupId | ) |
Retrieves all the owners of a group.
string | $groupId | The unique identifier for the group |
retrieveGroups | ( | $memberId, | |
$directOnly = null |
|||
) |
Retrieve all of the groups that a user is a member of.
string | $memberId | Member username |
bool | $directOnly | (Optional) If true, members with direct association only will be considered |
retrieveNickname | ( | $nickname | ) |
Retrieve the entry for a specified nickname.
string | $nickname | The nickname to be retrieved. |
retrieveNicknames | ( | $username | ) |
Retrieve all nicknames associated with a specific username.
string | $username | The username whose nicknames should be returned. |
retrievePageOfEmailLists | ( | $startNickname = null | ) |
Retrieve a page of email lists in alphabetical order, starting with the provided email list.
string | $startEmailListName | (optional) The first list to retrieve. If null or not defined, the page will begin with the first email list in the domain. |
retrievePageOfGroups | ( | $startGroup = null | ) |
Retrieve a page of groups in alphabetical order, starting with the provided group.
string | $startGroup | (optional) The first group to retrieve. If null or not defined, the page will begin with the first group in the domain. |
retrievePageOfMembers | ( | $groupId, | |
$startMember = null |
|||
) |
Gets page of Members.
string | $groupId | The group id which should be searched. |
string | $startMember | (optinal) The address of the first member, or null to start with the first member in the list. |
retrievePageOfNicknames | ( | $startNickname = null | ) |
Retrieve a page of nicknames in alphabetical order, starting with the provided nickname.
string | $startNickname | (optional) The first nickname to retrieve. If null or not declared, the page will begin with the first nickname in the domain. |
retrievePageOfRecipients | ( | $emailList, | |
$startRecipient = null |
|||
) |
Retrieve a page of email list recipients in alphabetical order, starting with the provided email list recipient.
string | $emaiList | The email list which should be searched. |
string | $startRecipient | (optinal) The address of the first recipient, or null to start with the first recipient in the list. |
retrievePageOfUsers | ( | $startUsername = null | ) |
Retrieve a page of users in alphabetical order, starting with the provided username.
string | $startUsername | (optional) The first username to retrieve. If null or not declared, the page will begin with the first user in the domain. |
retrieveUser | ( | $username | ) |
Retrieve a user based on their username.
string | $username | The username to search for. |
setDomain | ( | $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.
string | $value | The domain to be used for this session. |
suspendUser | ( | $username | ) |
Mark a given user as suspended.
string | $username | The username associated with the user who should be suspended. |
|
static |
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.
Zend_Gdata_Exception | $e | The exception to convert. |
Zend_Gdata_Gapps_ServiceException | |
mixed |
updateGroup | ( | $groupId, | |
$groupName = null , |
|||
$description = null , |
|||
$emailPermission = null |
|||
) |
Update group properties with new values.
any property not defined will not be updated
string | $groupId | A unique identifier for the group |
string | $groupName | The name of the group |
string | $description | A description of the group |
string | $emailPermission | The subscription permission of the group |
updateUser | ( | $username, | |
$userEntry | |||
) |
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.
string | $username | The username whose data will be overwritten. |
Zend_Gdata_Gapps_UserEntry | $userEntry | The user entry which will be overwritten. |
|
protected |
|
static |
const APPS_BASE_FEED_URI = 'https://apps-apis.google.com/a/feeds' |
const APPS_EMAIL_LIST_PATH = '/emailList/2.0' |
Path to email list feeds on the Google Apps server.
const APPS_EMAIL_LIST_RECIPIENT_POSTFIX = '/recipient' |
Path to email list recipient feeds on the Google Apps server.
const APPS_GROUP_PATH = '/group/2.0' |
Path to group feeds on the Google Apps server.
const APPS_NICKNAME_PATH = '/nickname/2.0' |
Path to nickname feeds on the Google Apps server.
const APPS_USER_PATH = '/user/2.0' |
Path to user feeds on the Google Apps server.
const AUTH_SERVICE_NAME = 'apps' |