|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($client=null, $domain=null, $applicationId= 'MyCompany-MyApp-1.0') | |
| get ($uri, $extraHeaders=array()) | |
| post ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
| put ($data, $uri=null, $remainingRedirects=null, $contentType=null, $extraHeaders=null) | |
| delete ($data, $remainingRedirects=null) | |
| setDomain ($value) | |
| getDomain () | |
| getBaseUrl ($domain=null) | |
| getUserFeed ($location=null) | |
| getNicknameFeed ($location=null) | |
| getEmailListFeed ($location=null) | |
| getEmailListRecipientFeed ($location) | |
| getUserEntry ($location) | |
| getNicknameEntry ($location) | |
| getEmailListEntry ($location) | |
| getEmailListRecipientEntry ($location) | |
| insertUser ($user, $uri=null) | |
| insertNickname ($nickname, $uri=null) | |
| insertEmailList ($emailList, $uri=null) | |
| insertEmailListRecipient ($recipient, $uri=null) | |
| __call ($method, $args) | |
| createUser ($username, $givenName, $familyName, $password, $passwordHashFunction=null, $quotaLimitInMB=null) | |
| retrieveUser ($username) | |
| retrievePageOfUsers ($startUsername=null) | |
| retrieveAllUsers () | |
| updateUser ($username, $userEntry) | |
| suspendUser ($username) | |
| restoreUser ($username) | |
| deleteUser ($username) | |
| createNickname ($username, $nickname) | |
| retrieveNickname ($nickname) | |
| retrieveNicknames ($username) | |
| retrievePageOfNicknames ($startNickname=null) | |
| retrieveAllNicknames () | |
| deleteNickname ($nickname) | |
| createEmailList ($emailList) | |
| retrieveEmailLists ($recipient) | |
| retrievePageOfEmailLists ($startNickname=null) | |
| retrieveAllEmailLists () | |
| deleteEmailList ($emailList) | |
| addRecipientToEmailList ($recipientAddress, $emailList) | |
| retrievePageOfRecipients ($emailList, $startRecipient=null) | |
| retrieveAllRecipients ($emailList) | |
| removeRecipientFromEmailList ($recipientAddress, $emailList) | |
Static Public Member Functions | |
| static | throwServiceExceptionIfDetected ($e) |
| static | import ($uri, $client=null, $className='Zend_Gdata_App_Feed') |
Data Fields | |
| const | APPS_BASE_FEED_URI = 'https://apps-apis.google.com/a/feeds' |
| const | AUTH_SERVICE_NAME = 'apps' |
| const | APPS_USER_PATH = '/user/2.0' |
| const | APPS_NICKNAME_PATH = '/nickname/2.0' |
| const | APPS_EMAIL_LIST_PATH = '/emailList/2.0' |
| const | APPS_EMAIL_LIST_RECIPIENT_POSTFIX = '/recipient' |
Static Public Attributes | |
| static | $namespaces |
Protected Attributes | |
| $_domain = 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 |
Definition at line 118 of file Gapps.php.

| __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 |
Reimplemented from Zend_Gdata_App.
Definition at line 622 of file Gapps.php.

| 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. |
Definition at line 1030 of file Gapps.php.

| createEmailList | ( | $ | emailList | ) |
Create a new email list.
| string | $emailList | The name of the email list to be created. |
Definition at line 944 of file Gapps.php.

| 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. |
Definition at line 834 of file Gapps.php.

| 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. |
Definition at line 675 of file Gapps.php.

| 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) |
| Zend_Gdata_App_HttpException | |
| Zend_Gdata_App_InvalidArgumentException | |
| Zend_Gdata_Gapps_ServiceException |
Reimplemented from Zend_Gdata_App.
Definition at line 270 of file Gapps.php.

| deleteEmailList | ( | $ | emailList | ) |
| deleteNickname | ( | $ | nickname | ) |
| deleteUser | ( | $ | username | ) |
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. |
Reimplemented from Zend_Gdata_App.
Definition at line 199 of file Gapps.php.

| 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 |
Definition at line 317 of file Gapps.php.

| 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.
Definition at line 303 of file Gapps.php.

| getEmailListEntry | ( | $ | location | ) |
Retreive a single EmailListEntry object.
| mixed | $location | The location for the feed, as a URL or Query. |
Definition at line 476 of file Gapps.php.

| getEmailListFeed | ( | $ | location = null | ) |
Retreive EmailListFeed object containing multiple EmailListEntry objects.
| mixed | $location | (optional) The location for the feed, as a URL or Query. |
Definition at line 385 of file Gapps.php.


| getEmailListRecipientEntry | ( | $ | location | ) |
| getEmailListRecipientFeed | ( | $ | location | ) |
| getNicknameEntry | ( | $ | location | ) |
Retreive a single NicknameEntry object.
| mixed | $location | The location for the feed, as a URL or Query. |
Definition at line 453 of file Gapps.php.


| getNicknameFeed | ( | $ | location = null | ) |
Retreive NicknameFeed object containing multiple NicknameEntry objects.
| mixed | $location | (optional) The location for the feed, as a URL or Query. |
Definition at line 362 of file Gapps.php.


| getUserEntry | ( | $ | location | ) |
Retreive a single UserEntry object.
| mixed | $location | The location for the feed, as a URL or Query. |
Definition at line 430 of file Gapps.php.


| getUserFeed | ( | $ | location = null | ) |
Retrieve a UserFeed containing multiple UserEntry objects.
| mixed | $location | (optional) The location for the feed, as a URL or Query. |
Definition at line 340 of file Gapps.php.


| static import | ( | $ | uri, |
| $ | client = null, |
||
| $ | className = 'Zend_Gdata_App_Feed' |
||
| ) | [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 |
Reimplemented from Zend_Gdata.
Definition at line 178 of file Gapps.php.

| 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. |
Definition at line 572 of file Gapps.php.


| 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. |
Definition at line 595 of file Gapps.php.


| 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. |
Definition at line 549 of file Gapps.php.


| 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. |
Definition at line 526 of file Gapps.php.


| 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 |
| Zend_Gdata_App_HttpException | |
| Zend_Gdata_App_InvalidArgumentException | |
| Zend_Gdata_Gapps_ServiceException |
Reimplemented from Zend_Gdata_App.
Definition at line 223 of file Gapps.php.

| 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 |
| Zend_Gdata_App_HttpException | |
| Zend_Gdata_App_InvalidArgumentException | |
| Zend_Gdata_Gapps_ServiceException |
Reimplemented from Zend_Gdata_App.
Definition at line 248 of file Gapps.php.

| removeRecipientFromEmailList | ( | $ | recipientAddress, |
| $ | emailList | ||
| ) |
| restoreUser | ( | $ | username | ) |
Mark a given user as not suspended.
| string | $username | The username associated with the user who should be restored. |
Definition at line 802 of file Gapps.php.

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.
Definition at line 1000 of file Gapps.php.

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.
Definition at line 918 of file Gapps.php.

| 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. |
Definition at line 1076 of file Gapps.php.

| 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.
Definition at line 747 of file Gapps.php.

| retrieveEmailLists | ( | $ | recipient | ) |
Retrieve all email lists associated with a recipient.
| string | $username | The recipient whose associated email lists should be returned. |
Definition at line 963 of file Gapps.php.

| retrieveNickname | ( | $ | nickname | ) |
Retrieve the entry for a specified nickname.
| string | $nickname | The nickname to be retrieved. |
Definition at line 852 of file Gapps.php.

| retrieveNicknames | ( | $ | username | ) |
Retrieve all nicknames associated with a specific username.
| string | $username | The username whose nicknames should be returned. |
Definition at line 879 of file Gapps.php.

| 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. |
Definition at line 982 of file Gapps.php.


| 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. |
Definition at line 900 of file Gapps.php.


| 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. |
Definition at line 1055 of file Gapps.php.


| 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. |
Definition at line 729 of file Gapps.php.


| retrieveUser | ( | $ | username | ) |
Retrieve a user based on their username.
| string | $username | The username to search for. |
Definition at line 701 of file Gapps.php.


| 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. |
Definition at line 785 of file Gapps.php.

| static throwServiceExceptionIfDetected | ( | $ | e | ) | [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 |
Definition at line 136 of file Gapps.php.

| 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. |
Definition at line 769 of file Gapps.php.

$namespaces [static] |
Reimplemented from Zend_Gdata.
| const APPS_BASE_FEED_URI = 'https://apps-apis.google.com/a/feeds' |
| const APPS_EMAIL_LIST_PATH = '/emailList/2.0' |
| const APPS_EMAIL_LIST_RECIPIENT_POSTFIX = '/recipient' |
| const APPS_NICKNAME_PATH = '/nickname/2.0' |
| const APPS_USER_PATH = '/user/2.0' |
| const AUTH_SERVICE_NAME = 'apps' |
Reimplemented from Zend_Gdata.