import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: App.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: App.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -757,7 +757,7 @@ class Zend_Gdata_App
if (!$this->_useObjectMapping) {
return $feedContent;
}
$protocolVersionStr = $response->getHeader('GData-Version');
$majorProtocolVersion = null;
$minorProtocolVersion = null;

View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: CaptchaRequiredException.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: CaptchaRequiredException.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -46,24 +46,24 @@ class Zend_Gdata_App_CaptchaRequiredException extends Zend_Gdata_App_AuthExcepti
* The Google Accounts URL prefix.
*/
const ACCOUNTS_URL = 'https://www.google.com/accounts/';
/**
* The token identifier from the server.
*
*
* @var string
*/
private $captchaToken;
/**
* The URL of the CAPTCHA image.
*
*
* @var string
*/
private $captchaUrl;
/**
* Constructs the exception to handle a CAPTCHA required response.
*
*
* @param string $captchaToken The CAPTCHA token ID provided by the server.
* @param string $captchaUrl The URL to the CAPTCHA challenge image.
*/
@ -72,23 +72,23 @@ class Zend_Gdata_App_CaptchaRequiredException extends Zend_Gdata_App_AuthExcepti
$this->captchaUrl = Zend_Gdata_App_CaptchaRequiredException::ACCOUNTS_URL . $captchaUrl;
parent::__construct('CAPTCHA challenge issued by server');
}
/**
* Retrieves the token identifier as provided by the server.
*
*
* @return string
*/
public function getCaptchaToken() {
return $this->captchaToken;
}
/**
* Retrieves the URL CAPTCHA image as provided by the server.
*
*
* @return string
*/
public function getCaptchaUrl() {
return $this->captchaUrl;
}
}

0
libs/Zend/Gdata/App/Feed.php Executable file → Normal file
View File

4
libs/Zend/Gdata/App/FeedEntryParent.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: FeedEntryParent.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: FeedEntryParent.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -137,7 +137,7 @@ abstract class Zend_Gdata_App_FeedEntryParent extends Zend_Gdata_App_Base
}
} else {
$this->transferFromDOM($element);
}
}
}
/**

View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: FeedSourceParent.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: FeedSourceParent.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -100,7 +100,7 @@ abstract class Zend_Gdata_App_FeedSourceParent extends Zend_Gdata_App_FeedEntryP
}
return $this;
}
/**
* Set the active service instance for this feed and all enclosed entries.
* This will be used to perform network requests, such as when calling
@ -117,7 +117,7 @@ abstract class Zend_Gdata_App_FeedSourceParent extends Zend_Gdata_App_FeedEntryP
}
return $this;
}
/**
* Make accessing some individual elements of the feed easier.
*

View File

@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
* @version $Id: LoggingHttpClientAdapterSocket.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: LoggingHttpClientAdapterSocket.php 18951 2009-11-12 16:26:19Z alexander $
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@ -27,7 +27,7 @@
require_once 'Zend/Http/Client/Adapter/Socket.php';
/**
* Overrides the traditional socket-based adapter class for Zend_Http_Client to
* Overrides the traditional socket-based adapter class for Zend_Http_Client to
* enable logging of requests. All requests are logged to a location specified
* in the config as $config['logfile']. Requests and responses are logged after
* they are sent and received/processed, thus an error could prevent logging.

View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: MediaFileSource.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: MediaFileSource.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -40,7 +40,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
/**
* The filename which is represented
*
* @var string
* @var string
*/
protected $_filename = null;
@ -50,7 +50,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
* @var string
*/
protected $_contentType = null;
/**
* Create a new Zend_Gdata_App_MediaFileSource object.
*
@ -60,7 +60,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
{
$this->setFilename($filename);
}
/**
* Return the MIME multipart representation of this MediaEntry.
*
@ -69,7 +69,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
*/
public function encode()
{
if ($this->getFilename() !== null &&
if ($this->getFilename() !== null &&
is_readable($this->getFilename())) {
// Retrieves the file, using the include path
@ -84,11 +84,11 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
return $result;
} else {
require_once 'Zend/Gdata/App/IOException.php';
throw new Zend_Gdata_App_IOException("Error reading file - " .
throw new Zend_Gdata_App_IOException("Error reading file - " .
$this->getFilename() . '. File is not readable.');
}
}
/**
* Get the filename associated with this reader.
*
@ -101,7 +101,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
/**
* Set the filename which is to be read.
*
*
* @param string $value The desired file handle.
* @return Zend_Gdata_App_MediaFileSource Provides a fluent interface.
*/
@ -110,8 +110,8 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
$this->_filename = $value;
return $this;
}
/**
/**
* The content type for the file attached (example image/png)
*
* @return string The content type
@ -121,7 +121,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
return $this->_contentType;
}
/**
/**
* Set the content type for the file attached (example image/png)
*
* @param string $value The content type
@ -132,7 +132,7 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
$this->_contentType = $value;
return $this;
}
/**
* Alias for getFilename().
*
@ -142,5 +142,5 @@ class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
{
return $this->getFilename();
}
}

View File

@ -18,7 +18,7 @@
* @subpackage App
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: MediaSource.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: MediaSource.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -39,7 +39,7 @@ interface Zend_Gdata_App_MediaSource
*/
public function encode();
/**
/**
* Set the content type for the file attached (example image/png)
*
* @param string $value The content type
@ -47,7 +47,7 @@ interface Zend_Gdata_App_MediaSource
*/
public function setContentType($value);
/**
/**
* The content type for the file attached (example image/png)
*
* @return string The content type
@ -55,7 +55,7 @@ interface Zend_Gdata_App_MediaSource
public function getContentType();
/**
* Sets the Slug header value. Used by some services to determine the
* Sets the Slug header value. Used by some services to determine the
* title for the uploaded file. A null value indicates no slug header.
*
* @var string The slug value
@ -64,7 +64,7 @@ interface Zend_Gdata_App_MediaSource
public function setSlug($value);
/**
* Returns the Slug header value. Used by some services to determine the
* Returns the Slug header value. Used by some services to determine the
* title for the uploaded file. Returns null if no slug should be used.
*
* @return string The slug value

View File

@ -18,7 +18,7 @@
* @subpackage Gdata
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: AuthSub.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: AuthSub.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -57,26 +57,26 @@ class Zend_Gdata_AuthSub
/**
* Creates a URI to request a single-use AuthSub token.
*
* @param string $next (required) URL identifying the service to be
* @param string $next (required) URL identifying the service to be
* accessed.
* The resulting token will enable access to the specified service only.
* Some services may limit scope further, such as read-only access.
* @param string $scope (required) URL identifying the service to be
* accessed. The resulting token will enable
* @param string $scope (required) URL identifying the service to be
* accessed. The resulting token will enable
* access to the specified service only.
* Some services may limit scope further, such
* Some services may limit scope further, such
* as read-only access.
* @param int $secure (optional) Boolean flag indicating whether the
* authentication transaction should issue a secure
* @param int $secure (optional) Boolean flag indicating whether the
* authentication transaction should issue a secure
* token (1) or a non-secure token (0). Secure tokens
* are available to registered applications only.
* @param int $session (optional) Boolean flag indicating whether
* the one-time-use token may be exchanged for
* @param int $session (optional) Boolean flag indicating whether
* the one-time-use token may be exchanged for
* a session token (1) or not (0).
* @param string $request_uri (optional) URI to which to direct the
* @param string $request_uri (optional) URI to which to direct the
* authentication request.
*/
public static function getAuthSubTokenUri($next, $scope, $secure=0, $session=0,
public static function getAuthSubTokenUri($next, $scope, $secure=0, $session=0,
$request_uri = self::AUTHSUB_REQUEST_URI)
{
$querystring = '?next=' . urlencode($next)
@ -91,21 +91,21 @@ class Zend_Gdata_AuthSub
* Upgrades a single use token to a session token
*
* @param string $token The single use token which is to be upgraded
* @param Zend_Http_Client $client (optional) HTTP client to use to
* @param Zend_Http_Client $client (optional) HTTP client to use to
* make the request
* @param string $request_uri (optional) URI to which to direct
* @param string $request_uri (optional) URI to which to direct
* the session token upgrade
* @return string The upgraded token value
* @throws Zend_Gdata_App_AuthException
* @throws Zend_Gdata_App_HttpException
*/
public static function getAuthSubSessionToken(
$token, $client = null,
$token, $client = null,
$request_uri = self::AUTHSUB_SESSION_TOKEN_URI)
{
$client = self::getHttpClient($token, $client);
if ($client instanceof Zend_Gdata_HttpClient) {
if ($client instanceof Zend_Gdata_HttpClient) {
$filterResult = $client->filterHttpRequest('GET', $request_uri);
$url = $filterResult['url'];
$headers = $filterResult['headers'];
@ -153,7 +153,7 @@ class Zend_Gdata_AuthSub
$request_uri = self::AUTHSUB_REVOKE_TOKEN_URI)
{
$client = self::getHttpClient($token, $client);
if ($client instanceof Zend_Gdata_HttpClient) {
$filterResult = $client->filterHttpRequest('GET', $request_uri);
$url = $filterResult['url'];
@ -186,9 +186,9 @@ class Zend_Gdata_AuthSub
* get token information
*
* @param string $token The token to retrieve information about
* @param Zend_Http_Client $client (optional) HTTP client to use to
* @param Zend_Http_Client $client (optional) HTTP client to use to
* make the request
* @param string $request_uri (optional) URI to which to direct
* @param string $request_uri (optional) URI to which to direct
* the information request
*/
public static function getAuthSubTokenInfo(

0
libs/Zend/Gdata/Books.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Books/VolumeQuery.php Executable file → Normal file
View File

View File

@ -18,7 +18,7 @@
* @subpackage Gdata
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ClientLogin.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: ClientLogin.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -71,7 +71,7 @@ class Zend_Gdata_ClientLogin
* @param string $loginToken The token identifier as provided by the server.
* @param string $loginCaptcha The user's response to the CAPTCHA challenge.
* @param string $accountType An optional string to identify whether the
* account to be authenticated is a google or a hosted account. Defaults to
* account to be authenticated is a google or a hosted account. Defaults to
* 'HOSTED_OR_GOOGLE'. See: http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Request
* @throws Zend_Gdata_App_AuthException
* @throws Zend_Gdata_App_HttpException
@ -119,7 +119,7 @@ class Zend_Gdata_ClientLogin
if ($loginToken || $loginCaptcha) {
if($loginToken && $loginCaptcha) {
$client->setParameterPost('logintoken', (string) $loginToken);
$client->setParameterPost('logincaptcha',
$client->setParameterPost('logincaptcha',
(string) $loginCaptcha);
}
else {

62
libs/Zend/Gdata/Docs.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Docs
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Docs.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Docs.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -80,11 +80,11 @@ class Zend_Gdata_Docs extends Zend_Gdata
/**
* Looks up the mime type based on the file name extension. For example,
* calling this method with 'csv' would return
* 'text/comma-separated-values'. The Mime type is sent as a header in
* calling this method with 'csv' would return
* 'text/comma-separated-values'. The Mime type is sent as a header in
* the upload HTTP POST request.
*
* @param string $fileExtension
* @param string $fileExtension
* @return string The mime type to be sent to the server to tell it how the
* multipart mime data should be interpreted.
*/
@ -135,14 +135,14 @@ class Zend_Gdata_Docs extends Zend_Gdata
*
* This method builds the URL where this item is stored using the type
* and the id of the document.
* @param string $docId The URL key for the document. Examples:
* @param string $docId The URL key for the document. Examples:
* dcmg89gw_62hfjj8m, pKq0CzjiF3YmGd0AIlHKqeg
* @param string $docType The type of the document as used in the Google
* Document List URLs. Examples: document, spreadsheet, presentation
* @return Zend_Gdata_Docs_DocumentListEntry
*/
public function getDoc($docId, $docType) {
$location = 'http://docs.google.com/feeds/documents/private/full/' .
$location = 'http://docs.google.com/feeds/documents/private/full/' .
$docType . '%3A' . $docId;
return $this->getDocumentListEntry($location);
}
@ -150,27 +150,27 @@ class Zend_Gdata_Docs extends Zend_Gdata
/**
* Retreive entry object for the desired word processing document.
*
* @param string $id The URL id for the document. Example:
* @param string $id The URL id for the document. Example:
* dcmg89gw_62hfjj8m
*/
public function getDocument($id) {
return $this->getDoc($id, 'document');
}
/**
* Retreive entry object for the desired spreadsheet.
*
* @param string $id The URL id for the document. Example:
* @param string $id The URL id for the document. Example:
* pKq0CzjiF3YmGd0AIlHKqeg
*/
public function getSpreadsheet($id) {
return $this->getDoc($id, 'spreadsheet');
}
/**
* Retreive entry object for the desired presentation.
*
* @param string $id The URL id for the document. Example:
* @param string $id The URL id for the document. Example:
* dcmg89gw_21gtrjcn
*/
public function getPresentation($id) {
@ -178,35 +178,35 @@ class Zend_Gdata_Docs extends Zend_Gdata
}
/**
* Upload a local file to create a new Google Document entry.
* Upload a local file to create a new Google Document entry.
*
* @param string $fileLocation The full or relative path of the file to
* be uploaded.
* @param string $title The name that this document should have on the
* @param string $title The name that this document should have on the
* server. If set, the title is used as the slug header in the
* POST request. If no title is provided, the location of the
* file will be used as the slug header in the request. If no
* POST request. If no title is provided, the location of the
* file will be used as the slug header in the request. If no
* mimeType is provided, this method attempts to determine the
* mime type based on the slugHeader by looking for .doc,
* mime type based on the slugHeader by looking for .doc,
* .csv, .txt, etc. at the end of the file name.
* Example value: 'test.doc'.
* @param string $mimeType Describes the type of data which is being sent
* to the server. This must be one of the accepted mime types
* to the server. This must be one of the accepted mime types
* which are enumerated in SUPPORTED_FILETYPES.
* @param string $uri (optional) The URL to which the upload should be
* @param string $uri (optional) The URL to which the upload should be
* made.
* Example: 'http://docs.google.com/feeds/documents/private/full'.
* @return Zend_Gdata_Docs_DocumentListEntry The entry for the newly
* @return Zend_Gdata_Docs_DocumentListEntry The entry for the newly
* created Google Document.
*/
public function uploadFile($fileLocation, $title=null, $mimeType=null,
public function uploadFile($fileLocation, $title=null, $mimeType=null,
$uri=null)
{
// Set the URI to which the file will be uploaded.
if ($uri === null) {
$uri = $this->_defaultPostUri;
}
// Create the media source which describes the file.
$fs = $this->newMediaFileSource($fileLocation);
if ($title !== null) {
@ -214,9 +214,9 @@ class Zend_Gdata_Docs extends Zend_Gdata
} else {
$slugHeader = $fileLocation;
}
// Set the slug header to tell the Google Documents server what the
// title of the document should be and what the file extension was
// Set the slug header to tell the Google Documents server what the
// title of the document should be and what the file extension was
// for the original file.
$fs->setSlug($slugHeader);
@ -226,10 +226,10 @@ class Zend_Gdata_Docs extends Zend_Gdata
$fileExtension = end($filenameParts);
$mimeType = self::lookupMimeType($fileExtension);
}
// Set the mime type for the upload request.
$fs->setContentType($mimeType);
// Send the data to the server.
return $this->insertDocument($fs, $uri);
}
@ -237,17 +237,17 @@ class Zend_Gdata_Docs extends Zend_Gdata
/**
* Inserts an entry to a given URI and returns the response as an Entry.
*
* @param mixed $data The Zend_Gdata_Docs_DocumentListEntry or media
* @param mixed $data The Zend_Gdata_Docs_DocumentListEntry or media
* source to post. If it is a DocumentListEntry, the mediaSource
* should already have been set. If $data is a mediaSource, it
* should already have been set. If $data is a mediaSource, it
* should have the correct slug header and mime type.
* @param string $uri POST URI
* @param string $className (optional) The class of entry to be returned.
* @param string $className (optional) The class of entry to be returned.
* The default is a 'Zend_Gdata_Docs_DocumentListEntry'.
* @return Zend_Gdata_Docs_DocumentListEntry The entry returned by the
* @return Zend_Gdata_Docs_DocumentListEntry The entry returned by the
* service after insertion.
*/
public function insertDocument($data, $uri,
public function insertDocument($data, $uri,
$className='Zend_Gdata_Docs_DocumentListEntry')
{
return $this->insertEntry($data, $uri, $className);

0
libs/Zend/Gdata/Docs/DocumentListEntry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Docs/DocumentListFeed.php Executable file → Normal file
View File

10
libs/Zend/Gdata/Docs/Query.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Docs
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Query.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Query.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -55,8 +55,8 @@ class Zend_Gdata_Docs_Query extends Zend_Gdata_Query
protected $_defaultFeedUri = self::DOCUMENTS_LIST_FEED_URI;
/**
* The visibility to be used when querying for the feed. A request for a
* feed with private visbility requires the user to be authenricated.
* The visibility to be used when querying for the feed. A request for a
* feed with private visbility requires the user to be authenricated.
* Private is the only avilable visibility for the documents list.
*
* @var string
@ -81,7 +81,7 @@ class Zend_Gdata_Docs_Query extends Zend_Gdata_Query
}
/**
* Sets the projection for this query. Common values for projection
* Sets the projection for this query. Common values for projection
* include 'full'.
*
* @param string $value
@ -127,7 +127,7 @@ class Zend_Gdata_Docs_Query extends Zend_Gdata_Query
/**
* Sets the title attribute for this query. The title parameter is used
* to restrict the results to documents whose titles either contain or
* to restrict the results to documents whose titles either contain or
* completely match the title.
*
* @param string $value

0
libs/Zend/Gdata/DublinCore.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Entry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Distance.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Exposure.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/FStop.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Flash.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/FocalLength.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/ImageUniqueId.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Iso.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Make.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Model.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Tags.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Extension/Time.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Exif/Feed.php Executable file → Normal file
View File

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: EmailListFeed.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: EmailListFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -32,10 +32,10 @@ require_once 'Zend/Gdata/Feed.php';
require_once 'Zend/Gdata/Gapps/EmailListEntry.php';
/**
* Data model for a collection of Google Apps email list entries, usually
* Data model for a collection of Google Apps email list entries, usually
* provided by the Google Apps servers.
*
* For information on requesting this feed from a server, see the Google
*
* For information on requesting this feed from a server, see the Google
* Apps service class, Zend_Gdata_Gapps.
*
* @category Zend
@ -46,8 +46,8 @@ require_once 'Zend/Gdata/Gapps/EmailListEntry.php';
*/
class Zend_Gdata_Gapps_EmailListFeed extends Zend_Gdata_Feed
{
protected $_entryClassName = 'Zend_Gdata_Gapps_EmailListEntry';
protected $_feedClassName = 'Zend_Gdata_Gapps_EmailListFeed';
}

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: EmailListQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: EmailListQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -27,13 +27,13 @@
require_once('Zend/Gdata/Gapps/Query.php');
/**
* Assists in constructing queries for Google Apps email list entries.
* Instances of this class can be provided in many places where a URL is
* Assists in constructing queries for Google Apps email list entries.
* Instances of this class can be provided in many places where a URL is
* required.
*
*
* For information on submitting queries to a server, see the Google Apps
* service class, Zend_Gdata_Gapps.
*
*
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
@ -44,26 +44,26 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
{
/**
* A string which, if not null, indicates which email list should
* A string which, if not null, indicates which email list should
* be retrieved by this query.
*
*
* @var string
*/
protected $_emailListName = null;
/**
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
*
* @param string $domain (optional) The Google Apps-hosted domain to use
* when constructing query URIs.
* @param string $emailListName (optional) Value for the emailListName
* @param string $emailListName (optional) Value for the emailListName
* property.
* @param string $recipient (optional) Value for the recipient
* @param string $recipient (optional) Value for the recipient
* property.
* @param string $startEmailListName (optional) Value for the
* @param string $startEmailListName (optional) Value for the
* startEmailListName property.
*/
public function __construct($domain = null, $emailListName = null,
public function __construct($domain = null, $emailListName = null,
$recipient = null, $startEmailListName = null)
{
parent::__construct($domain);
@ -73,11 +73,11 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the email list name to query for. When set, only lists with a name
* matching this value will be returned in search results. Set to
* Set the email list name to query for. When set, only lists with a name
* matching this value will be returned in search results. Set to
* null to disable filtering by list name.
*
* @param string $value The email list name to filter search results by,
*
* @param string $value The email list name to filter search results by,
* or null to disable.
*/
public function setEmailListName($value)
@ -86,9 +86,9 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the email list name to query for. If no name is set, null will be
* Get the email list name to query for. If no name is set, null will be
* returned.
*
*
* @see setEmailListName
* @return string The email list name to filter search results by, or null
* if disabled.
@ -99,11 +99,11 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the recipient to query for. When set, only subscribers with an
* email address matching this value will be returned in search results.
* Set the recipient to query for. When set, only subscribers with an
* email address matching this value will be returned in search results.
* Set to null to disable filtering by username.
*
* @param string $value The recipient email address to filter search
*
* @param string $value The recipient email address to filter search
* results by, or null to disable.
*/
public function setRecipient($value)
@ -117,11 +117,11 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the recipient email address to query for. If no recipient is set,
* Get the recipient email address to query for. If no recipient is set,
* null will be returned.
*
*
* @see setRecipient
* @return string The recipient email address to filter search results by,
* @return string The recipient email address to filter search results by,
* or null if disabled.
*/
public function getRecipient()
@ -134,10 +134,10 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the first email list which should be displayed when retrieving
* Set the first email list which should be displayed when retrieving
* a list of email lists.
*
* @param string $value The first email list to be returned, or null to
*
* @param string $value The first email list to be returned, or null to
* disable.
*/
public function setStartEmailListName($value)
@ -150,10 +150,10 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the first email list which should be displayed when retrieving
* Get the first email list which should be displayed when retrieving
* a list of email lists.
*
* @return string The first email list to be returned, or null to
*
* @return string The first email list to be returned, or null to
* disable.
*/
public function getStartEmailListName()
@ -166,15 +166,15 @@ class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
}
/**
* Returns the URL generated for this query, based on it's current
* Returns the URL generated for this query, based on it's current
* parameters.
*
*
* @return string A URL generated based on the state of this query.
* @throws Zend_Gdata_App_InvalidArgumentException
*/
public function getQueryUrl()
{
$uri = $this->getBaseUrl();
$uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH;
if ($this->_emailListName !== null) {

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: EmailListRecipientFeed.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: EmailListRecipientFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -32,10 +32,10 @@ require_once 'Zend/Gdata/Feed.php';
require_once 'Zend/Gdata/Gapps/EmailListRecipientEntry.php';
/**
* Data model for a collection of Google Apps email list recipient entries,
* Data model for a collection of Google Apps email list recipient entries,
* usually provided by the Google Apps servers.
*
* For information on requesting this feed from a server, see the Google
*
* For information on requesting this feed from a server, see the Google
* Apps service class, Zend_Gdata_Gapps.
*
* @category Zend
@ -46,8 +46,8 @@ require_once 'Zend/Gdata/Gapps/EmailListRecipientEntry.php';
*/
class Zend_Gdata_Gapps_EmailListRecipientFeed extends Zend_Gdata_Feed
{
protected $_entryClassName = 'Zend_Gdata_Gapps_EmailListRecipientEntry';
protected $_feedClassName = 'Zend_Gdata_Gapps_EmailListRecipientFeed';
}

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: EmailListRecipientQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: EmailListRecipientQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -27,13 +27,13 @@
require_once('Zend/Gdata/Gapps/Query.php');
/**
* Assists in constructing queries for Google Apps email list recipient
* entries. Instances of this class can be provided in many places where a
* Assists in constructing queries for Google Apps email list recipient
* entries. Instances of this class can be provided in many places where a
* URL is required.
*
*
* For information on submitting queries to a server, see the Google Apps
* service class, Zend_Gdata_Gapps.
*
*
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
@ -42,23 +42,23 @@ require_once('Zend/Gdata/Gapps/Query.php');
*/
class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
{
/**
* If not null, specifies the name of the email list which
* If not null, specifies the name of the email list which
* should be requested by this query.
*
*
* @var string
*/
protected $_emailListName = null;
/**
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
*
* @param string $domain (optional) The Google Apps-hosted domain to use
* when constructing query URIs.
* @param string $emailListName (optional) Value for the emailListName
* @param string $emailListName (optional) Value for the emailListName
* property.
* @param string $startRecipient (optional) Value for the
* @param string $startRecipient (optional) Value for the
* startRecipient property.
*/
public function __construct($domain = null, $emailListName = null,
@ -68,13 +68,13 @@ class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
$this->setEmailListName($emailListName);
$this->setStartRecipient($startRecipient);
}
/**
* Set the email list name to query for. When set, only lists with a name
* matching this value will be returned in search results. Set to
* Set the email list name to query for. When set, only lists with a name
* matching this value will be returned in search results. Set to
* null to disable filtering by list name.
*
* @param string $value The email list name to filter search results by,
*
* @param string $value The email list name to filter search results by,
* or null to disable.
*/
public function setEmailListName($value)
@ -83,10 +83,10 @@ class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the email list name to query for. If no name is set, null will be
* Get the email list name to query for. If no name is set, null will be
* returned.
*
* @param string $value The email list name to filter search results by,
*
* @param string $value The email list name to filter search results by,
* or null if disabled.
*/
public function getEmailListName()
@ -95,10 +95,10 @@ class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the first recipient which should be displayed when retrieving
* Set the first recipient which should be displayed when retrieving
* a list of email list recipients.
*
* @param string $value The first recipient to be returned, or null to
*
* @param string $value The first recipient to be returned, or null to
* disable.
*/
public function setStartRecipient($value)
@ -111,10 +111,10 @@ class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the first recipient which should be displayed when retrieving
* Get the first recipient which should be displayed when retrieving
* a list of email list recipients.
*
* @return string The first recipient to be returned, or null if
*
* @return string The first recipient to be returned, or null if
* disabled.
*/
public function getStartRecipient()
@ -127,15 +127,15 @@ class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
}
/**
* Returns the URL generated for this query, based on it's current
* Returns the URL generated for this query, based on it's current
* parameters.
*
*
* @return string A URL generated based on the state of this query.
* @throws Zend_Gdata_App_InvalidArgumentException
*/
public function getQueryUrl()
{
$uri = $this->getBaseUrl();
$uri .= Zend_Gdata_Gapps::APPS_EMAIL_LIST_PATH;
if ($this->_emailListName !== null) {

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Error.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Error.php 18951 2009-11-12 16:26:19Z alexander $
*/
@ -28,12 +28,12 @@
require_once 'Zend/Gdata/App/Base.php';
/**
* Gdata Gapps Error class. This class is used to represent errors returned
* within an AppsForYourDomainErrors message received from the Google Apps
* Gdata Gapps Error class. This class is used to represent errors returned
* within an AppsForYourDomainErrors message received from the Google Apps
* servers.
*
* Several different errors may be represented by this class, determined by
* the error code returned by the server. For a list of error codes
* Several different errors may be represented by this class, determined by
* the error code returned by the server. For a list of error codes
* available at the time of this writing, see getErrorCode.
*
* @category Zend
@ -44,10 +44,10 @@ require_once 'Zend/Gdata/App/Base.php';
*/
class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
{
// Error codes as defined at
// Error codes as defined at
// http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#appendix_d
const UNKNOWN_ERROR = 1000;
const USER_DELETED_RECENTLY = 1100;
const USER_SUSPENDED = 1101;
@ -68,34 +68,34 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
const INVALID_EMAIL_ADDRESS = 1406;
const INVALID_QUERY_PARAMETER_VALUE = 1407;
const TOO_MANY_RECIPIENTS_ON_EMAIL_LIST = 1500;
protected $_errorCode = null;
protected $_reason = null;
protected $_invalidInput = null;
public function __construct($errorCode = null, $reason = null,
public function __construct($errorCode = null, $reason = null,
$invalidInput = null) {
parent::__construct("Google Apps error received: $errorCode ($reason)");
$this->_errorCode = $errorCode;
$this->_reason = $reason;
$this->_invalidInput = $invalidInput;
}
/**
* Set the error code for this exception. For more information about
* Set the error code for this exception. For more information about
* error codes, see getErrorCode.
*
*
* @see getErrorCode
* @param integer $value The new value for the error code.
*/
public function setErrorCode($value) {
$this->_errorCode = $value;
}
/**
* Get the error code for this exception. Currently valid values are
/**
* Get the error code for this exception. Currently valid values are
* available as constants within this class. These values are:
*
*
* UNKNOWN_ERROR (1000)
* USER_DELETED_RECENTLY (1100)
* USER_SUSPENDED (1101)
@ -116,14 +116,14 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
* INVALID_EMAIL_ADDRESS (1406)
* INVALID_QUERY_PARAMETER_VALUE (1407)
* TOO_MANY_RECIPIENTS_ON_EMAIL_LIST (1500)
*
* Numbers in parenthesis indicate the actual integer value of the
* constant. This list should not be treated as exhaustive, as additional
*
* Numbers in parenthesis indicate the actual integer value of the
* constant. This list should not be treated as exhaustive, as additional
* error codes may be added at any time.
*
* For more information about these codes and their meaning, please
*
* For more information about these codes and their meaning, please
* see Appendix D of the Google Apps Provisioning API Reference.
*
*
* @link http://code.google.com/apis/apps/gdata_provisioning_api_v2.0_reference.html#appendix_d Google Apps Provisioning API Reference: Appendix D - Gdata Error Codes
* @see setErrorCode
* @return integer The error code returned by the Google Apps server.
@ -131,20 +131,20 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
public function getErrorCode() {
return $this->_errorCode;
}
/**
* Set human-readable text describing the reason this exception occurred.
*
*
* @see getReason
* @param string $value The reason this exception occurred.
*/
public function setReason($value) {
$this->_reason = $value;
}
/**
* Get human-readable text describing the reason this exception occurred.
*
*
* @see setReason
* @return string The reason this exception occurred.
*/
@ -154,24 +154,24 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
/**
* Set the invalid input which caused this exception.
*
*
* @see getInvalidInput
* @param string $value The invalid input that triggered this exception.
*/
public function setInvalidInput($value) {
$this->_invalidInput = $value;
}
/**
* Set the invalid input which caused this exception.
*
*
* @see setInvalidInput
* @return string The reason this exception occurred.
*/
public function getInvalidInput() {
return $this->_invalidInput;
}
/**
* Retrieves a DOMElement which corresponds to this element and all
* child properties. This is used to build an entry back into a DOM
@ -195,7 +195,7 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
}
return $element;
}
/**
* Given a DOMNode representing an attribute, tries to map the data into
* instance members. If no mapping is defined, the name and value are
@ -219,10 +219,10 @@ class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
parent::takeAttributeFromDOM($attribute);
}
}
/**
* Get a human readable version of this exception.
*
*
* @return string
*/
public function __toString() {

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: NicknameFeed.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: NicknameFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -32,10 +32,10 @@ require_once 'Zend/Gdata/Feed.php';
require_once 'Zend/Gdata/Gapps/NicknameEntry.php';
/**
* Data model for a collection of Google Apps nickname entries, usually
* Data model for a collection of Google Apps nickname entries, usually
* provided by the Google Apps servers.
*
* For information on requesting this feed from a server, see the Google
*
* For information on requesting this feed from a server, see the Google
* Apps service class, Zend_Gdata_Gapps.
*
* @category Zend
@ -46,8 +46,8 @@ require_once 'Zend/Gdata/Gapps/NicknameEntry.php';
*/
class Zend_Gdata_Gapps_NicknameFeed extends Zend_Gdata_Feed
{
protected $_entryClassName = 'Zend_Gdata_Gapps_NicknameEntry';
protected $_feedClassName = 'Zend_Gdata_Gapps_NicknameFeed';
}

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: NicknameQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: NicknameQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -27,13 +27,13 @@
require_once('Zend/Gdata/Gapps/Query.php');
/**
* Assists in constructing queries for Google Apps nickname entries.
* Instances of this class can be provided in many places where a URL is
* Assists in constructing queries for Google Apps nickname entries.
* Instances of this class can be provided in many places where a URL is
* required.
*
*
* For information on submitting queries to a server, see the Google Apps
* service class, Zend_Gdata_Gapps.
*
*
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
@ -44,26 +44,26 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
{
/**
* If not null, indicates the name of the nickname entry which
* If not null, indicates the name of the nickname entry which
* should be returned by this query.
*
*
* @var string
*/
protected $_nickname = null;
/**
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
*
* @param string $domain (optional) The Google Apps-hosted domain to use
* when constructing query URIs.
* @param string $nickname (optional) Value for the nickname
* @param string $nickname (optional) Value for the nickname
* property.
* @param string $username (optional) Value for the username
* @param string $username (optional) Value for the username
* property.
* @param string $startNickname (optional) Value for the
* @param string $startNickname (optional) Value for the
* startNickname property.
*/
public function __construct($domain = null, $nickname = null,
public function __construct($domain = null, $nickname = null,
$username = null, $startNickname = null)
{
parent::__construct($domain);
@ -73,11 +73,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the nickname to query for. When set, only users with a nickname
* matching this value will be returned in search results. Set to
* Set the nickname to query for. When set, only users with a nickname
* matching this value will be returned in search results. Set to
* null to disable filtering by username.
*
* @param string $value The nickname to filter search results by, or null
*
* @param string $value The nickname to filter search results by, or null
* to disable.
*/
public function setNickname($value)
@ -86,11 +86,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the nickname to query for. If no nickname is set, null will be
* Get the nickname to query for. If no nickname is set, null will be
* returned.
*
*
* @see setNickname
* @return string The nickname to filter search results by, or null if
* @return string The nickname to filter search results by, or null if
* disabled.
*/
public function getNickname()
@ -99,11 +99,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the username to query for. When set, only users with a username
* matching this value will be returned in search results. Set to
* Set the username to query for. When set, only users with a username
* matching this value will be returned in search results. Set to
* null to disable filtering by username.
*
* @param string $value The username to filter search results by, or null
*
* @param string $value The username to filter search results by, or null
* to disable.
*/
public function setUsername($value)
@ -117,11 +117,11 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the username to query for. If no username is set, null will be
* Get the username to query for. If no username is set, null will be
* returned.
*
*
* @see setUsername
* @return string The username to filter search results by, or null if
* @return string The username to filter search results by, or null if
* disabled.
*/
public function getUsername()
@ -134,10 +134,10 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the first nickname which should be displayed when retrieving
* Set the first nickname which should be displayed when retrieving
* a list of nicknames.
*
* @param string $value The first nickname to be returned, or null to
*
* @param string $value The first nickname to be returned, or null to
* disable.
*/
public function setStartNickname($value)
@ -150,10 +150,10 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the first nickname which should be displayed when retrieving
* Get the first nickname which should be displayed when retrieving
* a list of nicknames.
*
* @return string The first nickname to be returned, or null to
*
* @return string The first nickname to be returned, or null to
* disable.
*/
public function getStartNickname()
@ -166,14 +166,14 @@ class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
}
/**
* Returns the URL generated for this query, based on it's current
* Returns the URL generated for this query, based on it's current
* parameters.
*
*
* @return string A URL generated based on the state of this query.
*/
public function getQueryUrl()
{
$uri = $this->getBaseUrl();
$uri .= Zend_Gdata_Gapps::APPS_NICKNAME_PATH;
if ($this->_nickname !== null) {

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Query.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Query.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -32,12 +32,12 @@ require_once('Zend/Gdata/Query.php');
require_once('Zend/Gdata/Gapps.php');
/**
* Assists in constructing queries for Google Apps entries. This class
* Assists in constructing queries for Google Apps entries. This class
* provides common methods used by all other Google Apps query classes.
*
* This class should never be instantiated directly. Instead, instantiate a
* This class should never be instantiated directly. Instead, instantiate a
* class which inherits from this class.
*
*
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
@ -46,18 +46,18 @@ require_once('Zend/Gdata/Gapps.php');
*/
abstract class Zend_Gdata_Gapps_Query extends Zend_Gdata_Query
{
/**
* The domain which is being administered via the Provisioning API.
*
* @var string
*/
protected $_domain = null;
/**
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
*
* @param string $domain (optional) The Google Apps-hosted domain to use
* when constructing query URIs.
*/
public function __construct($domain = null)
@ -65,16 +65,16 @@ abstract class Zend_Gdata_Gapps_Query extends Zend_Gdata_Query
parent::__construct();
$this->_domain = $domain;
}
/**
* Set domain for this service instance. This should be a fully qualified
* 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
* 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.
*
*
* @param string $value The domain to be used for this session.
*/
public function setDomain($value)
@ -83,26 +83,26 @@ abstract class Zend_Gdata_Gapps_Query extends Zend_Gdata_Query
}
/**
* 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
* 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.
*
*
* @see setDomain
* @return string The domain to be used for this session, or null if not
* @return string The domain to be used for this session, or null if not
* set.
*/
public function getDomain()
{
return $this->_domain;
}
/**
* Returns the base URL used to access the Google Apps service, based
* on the current domain. The current domain can be temporarily
* 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.
*
* @see setDomain
* @param string $domain (optional) A fully-qualified domain to use
* @param string $domain (optional) A fully-qualified domain to use
* instead of the default domain for this service instance.
*/
public function getBaseUrl($domain = null)

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ServiceException.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: ServiceException.php 18951 2009-11-12 16:26:19Z alexander $
*/
@ -33,11 +33,11 @@ require_once 'Zend/Exception.php';
require_once 'Zend/Gdata/Gapps/Error.php';
/**
* Gdata Gapps Exception class. This is thrown when an
* AppsForYourDomainErrors message is received from the Google Apps
* Gdata Gapps Exception class. This is thrown when an
* AppsForYourDomainErrors message is received from the Google Apps
* servers.
*
* Several different errors may be represented by this exception. For a list
* Several different errors may be represented by this exception. For a list
* of error codes available, see getErrorCode.
*
* @category Zend
@ -48,20 +48,20 @@ require_once 'Zend/Gdata/Gapps/Error.php';
*/
class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
{
protected $_rootElement = "AppsForYourDomainErrors";
/**
/**
* Array of Zend_Gdata_Error objects indexed by error code.
*
*
* @var array
*/
protected $_errors = array();
/**
* Create a new ServiceException.
*
* @return array An array containing a collection of
* @return array An array containing a collection of
* Zend_Gdata_Gapps_Error objects.
*/
public function __construct($errors = null) {
@ -70,32 +70,32 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
$this->setErrors($errors);
}
}
/**
* Add a single Error object to the list of errors received by the
* Add a single Error object to the list of errors received by the
* server.
*
* @param Zend_Gdata_Gapps_Error $error An instance of an error returned
*
* @param Zend_Gdata_Gapps_Error $error An instance of an error returned
* by the server. The error's errorCode must be set.
* @throws Zend_Gdata_App_Exception
*/
public function addError($error) {
// Make sure that we don't try to index an error that doesn't
// Make sure that we don't try to index an error that doesn't
// contain an index value.
if ($error->getErrorCode() == null) {
require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception("Error encountered without corresponding error code.");
}
$this->_errors[$error->getErrorCode()] = $error;
}
/**
* Set the list of errors as sent by the server inside of an
* Set the list of errors as sent by the server inside of an
* AppsForYourDomainErrors tag.
*
* @param array $array An associative array containing a collection of
* Zend_Gdata_Gapps_Error objects. All errors must have their
*
* @param array $array An associative array containing a collection of
* Zend_Gdata_Gapps_Error objects. All errors must have their
* errorCode value set.
* @throws Zend_Gdata_App_Exception
*/
@ -105,22 +105,22 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
$this->addError($error);
}
}
/**
* Get the list of errors as sent by the server inside of an
* Get the list of errors as sent by the server inside of an
* AppsForYourDomainErrors tag.
*
* @return array An associative array containing a collection of
*
* @return array An associative array containing a collection of
* Zend_Gdata_Gapps_Error objects, indexed by error code.
*/
public function getErrors() {
return $this->_errors;
}
/**
* Return the Error object associated with a specific error code.
*
* @return Zend_Gdata_Gapps_Error The Error object requested, or null
* @return Zend_Gdata_Gapps_Error The Error object requested, or null
* if not found.
*/
public function getError($errorCode) {
@ -131,22 +131,22 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
return null;
}
}
/**
* Check whether or not a particular error code was returned by the
* Check whether or not a particular error code was returned by the
* server.
*
* @param integer $errorCode The error code to check against.
* @return boolean Whether or not the supplied error code was returned
* @return boolean Whether or not the supplied error code was returned
* by the server.
*/
public function hasError($errorCode) {
return array_key_exists($errorCode, $this->_errors);
}
/**
* Import an AppsForYourDomain error from XML.
*
*
* @param string $string The XML data to be imported
* @return Zend_Gdata_Gapps_ServiceException Provides a fluent interface.
* @throws Zend_Gdata_App_Exception
@ -155,21 +155,21 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
if ($string) {
// Check to see if an AppsForYourDomainError exists
//
// track_errors is temporarily enabled so that if an error
// occurs while parsing the XML we can append it to an
// track_errors is temporarily enabled so that if an error
// occurs while parsing the XML we can append it to an
// exception by referencing $php_errormsg
@ini_set('track_errors', 1);
$doc = new DOMDocument();
$success = @$doc->loadXML($string);
@ini_restore('track_errors');
if (!$success) {
require_once 'Zend/Gdata/App/Exception.php';
// $php_errormsg is automatically generated by PHP if
// $php_errormsg is automatically generated by PHP if
// an error occurs while calling loadXML(), above.
throw new Zend_Gdata_App_Exception("DOMDocument cannot parse XML: $php_errormsg");
}
// Ensure that the outermost node is an AppsForYourDomain error.
// If it isn't, something has gone horribly wrong.
$rootElement = $doc->getElementsByTagName($this->_rootElement)->item(0);
@ -177,7 +177,7 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception('No root <' . $this->_rootElement . '> element found, cannot parse feed.');
}
foreach ($rootElement->childNodes as $errorNode) {
if (!($errorNode instanceof DOMText)) {
$error = new Zend_Gdata_Gapps_Error();
@ -190,12 +190,12 @@ class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
require_once 'Zend/Gdata/App/Exception.php';
throw new Zend_Gdata_App_Exception('XML passed to transferFromXML cannot be null');
}
}
/**
* Get a human readable version of this exception.
*
*
* @return string
*/
public function __toString() {

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: UserFeed.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: UserFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -32,10 +32,10 @@ require_once 'Zend/Gdata/Feed.php';
require_once 'Zend/Gdata/Gapps/UserEntry.php';
/**
* Data model for a collection of Google Apps user entries, usually
* Data model for a collection of Google Apps user entries, usually
* provided by the Google Apps servers.
*
* For information on requesting this feed from a server, see the Google
*
* For information on requesting this feed from a server, see the Google
* Apps service class, Zend_Gdata_Gapps.
*
* @category Zend
@ -46,8 +46,8 @@ require_once 'Zend/Gdata/Gapps/UserEntry.php';
*/
class Zend_Gdata_Gapps_UserFeed extends Zend_Gdata_Feed
{
protected $_entryClassName = 'Zend_Gdata_Gapps_UserEntry';
protected $_feedClassName = 'Zend_Gdata_Gapps_UserFeed';
}

View File

@ -18,7 +18,7 @@
* @subpackage Gapps
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: UserQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: UserQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -27,13 +27,13 @@
require_once('Zend/Gdata/Gapps/Query.php');
/**
* Assists in constructing queries for Google Apps user entries.
* Instances of this class can be provided in many places where a URL is
* Assists in constructing queries for Google Apps user entries.
* Instances of this class can be provided in many places where a URL is
* required.
*
*
* For information on submitting queries to a server, see the Google Apps
* service class, Zend_Gdata_Gapps.
*
*
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
@ -44,24 +44,24 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
{
/**
* If not null, specifies the username of the user who should be
* If not null, specifies the username of the user who should be
* retrieved by this query.
*
*
* @var string
*/
protected $_username = null;
/**
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
*
* @param string $domain (optional) The Google Apps-hosted domain to use
* when constructing query URIs.
* @param string $username (optional) Value for the username
* @param string $username (optional) Value for the username
* property.
* @param string $startUsername (optional) Value for the
* @param string $startUsername (optional) Value for the
* startUsername property.
*/
public function __construct($domain = null, $username = null,
public function __construct($domain = null, $username = null,
$startUsername = null)
{
parent::__construct($domain);
@ -70,12 +70,12 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the username to query for. When set, only users with a username
* matching this value will be returned in search results. Set to
* Set the username to query for. When set, only users with a username
* matching this value will be returned in search results. Set to
* null to disable filtering by username.
*
*
* @see getUsername
* @param string $value The username to filter search results by, or null to
* @param string $value The username to filter search results by, or null to
* disable.
*/
public function setUsername($value)
@ -84,10 +84,10 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the username to query for. If no username is set, null will be
* Get the username to query for. If no username is set, null will be
* returned.
*
* @param string $value The username to filter search results by, or
*
* @param string $value The username to filter search results by, or
* null if disabled.
*/
public function getUsername()
@ -96,10 +96,10 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
}
/**
* Set the first username which should be displayed when retrieving
* Set the first username which should be displayed when retrieving
* a list of users.
*
* @param string $value The first username to be returned, or null to
*
* @param string $value The first username to be returned, or null to
* disable.
*/
public function setStartUsername($value)
@ -112,11 +112,11 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
}
/**
* Get the first username which should be displayed when retrieving
* Get the first username which should be displayed when retrieving
* a list of users.
*
*
* @see setStartUsername
* @return string The first username to be returned, or null if
* @return string The first username to be returned, or null if
* disabled.
*/
public function getStartUsername()
@ -130,7 +130,7 @@ class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
/**
* Returns the query URL generated by this query instance.
*
*
* @return string The query URL for this instance.
*/
public function getQueryUrl()

View File

@ -18,7 +18,7 @@
* @subpackage Gbase
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ItemEntry.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: ItemEntry.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -49,7 +49,7 @@ class Zend_Gdata_Gbase_ItemEntry extends Zend_Gdata_Gbase_Entry
/**
* Set the value of the itme_type
*
* @param Zend_Gdata_Gbase_Extension_ItemType $value The desired value for the item_type
* @param Zend_Gdata_Gbase_Extension_ItemType $value The desired value for the item_type
* @return Zend_Gdata_Gbase_ItemEntry Provides a fluent interface
*/
public function setItemType($value)
@ -60,7 +60,7 @@ class Zend_Gdata_Gbase_ItemEntry extends Zend_Gdata_Gbase_Entry
/**
* Adds a custom attribute to the entry in the following format:
* &lt;g:[$name] type='[$type]'&gt;[$value]&lt;/g:[$name]&gt;
* &lt;g:[$name] type='[$type]'&gt;[$value]&lt;/g:[$name]&gt;
*
* @param string $name The name of the attribute
* @param string $value The text value of the attribute
@ -76,7 +76,7 @@ class Zend_Gdata_Gbase_ItemEntry extends Zend_Gdata_Gbase_Entry
/**
* Removes a Base attribute from the current list of Base attributes
*
*
* @param Zend_Gdata_Gbase_Extension_BaseAttribute $baseAttribute The attribute to be removed
* @return Zend_Gdata_Gbase_ItemEntry Provides a fluent interface
*/

View File

@ -18,7 +18,7 @@
* @subpackage Gbase
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ItemQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: ItemQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -54,14 +54,14 @@ class Zend_Gdata_Gbase_ItemQuery extends Zend_Gdata_Gbase_Query
* The default URI for POST methods
*
* @var string
*/
*/
protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI;
/**
* The id of an item
*
* @var string
*/
*/
protected $_id = null;
/**
@ -84,7 +84,7 @@ class Zend_Gdata_Gbase_ItemQuery extends Zend_Gdata_Gbase_Query
/**
* Returns the query URL generated by this query instance.
*
*
* @return string The query URL for this instance.
*/
public function getQueryUrl()

View File

@ -18,7 +18,7 @@
* @subpackage Gbase
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Query.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Query.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -54,7 +54,7 @@ class Zend_Gdata_Gbase_Query extends Zend_Gdata_Query
* The default URI for POST methods
*
* @var string
*/
*/
protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI;
/**

View File

@ -18,7 +18,7 @@
* @subpackage Gbase
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SnippetQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: SnippetQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -53,12 +53,12 @@ class Zend_Gdata_Gbase_SnippetQuery extends Zend_Gdata_Gbase_Query
* The default URI for POST methods
*
* @var string
*/
*/
protected $_defaultFeedUri = self::BASE_SNIPPET_FEED_URI;
/**
* Returns the query URL generated by this query instance.
*
*
* @return string The query URL for this instance.
*/
public function getQueryUrl()

0
libs/Zend/Gdata/Geo.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Geo/Entry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Geo/Extension/GeoRssWhere.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Geo/Extension/GmlPoint.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Geo/Extension/GmlPos.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Geo/Feed.php Executable file → Normal file
View File

12
libs/Zend/Gdata/Health.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Health.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Health.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -62,19 +62,19 @@ class Zend_Gdata_Health extends Zend_Gdata
/**
* URIs of the AuthSub/OAuth feeds.
*/
const AUTHSUB_PROFILE_FEED_URI =
const AUTHSUB_PROFILE_FEED_URI =
'https://www.google.com/health/feeds/profile/default';
const AUTHSUB_REGISTER_FEED_URI =
const AUTHSUB_REGISTER_FEED_URI =
'https://www.google.com/health/feeds/register/default';
/**
* URIs of the ClientLogin feeds.
*/
const CLIENTLOGIN_PROFILELIST_FEED_URI =
const CLIENTLOGIN_PROFILELIST_FEED_URI =
'https://www.google.com/health/feeds/profile/list';
const CLIENTLOGIN_PROFILE_FEED_URI =
const CLIENTLOGIN_PROFILE_FEED_URI =
'https://www.google.com/health/feeds/profile/ui';
const CLIENTLOGIN_REGISTER_FEED_URI =
const CLIENTLOGIN_REGISTER_FEED_URI =
'https://www.google.com/health/feeds/register/ui';
/**

0
libs/Zend/Gdata/Health/Extension/Ccr.php Executable file → Normal file
View File

16
libs/Zend/Gdata/Health/ProfileEntry.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ProfileEntry.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: ProfileEntry.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -57,7 +57,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
* @var Zend_Gdata_Health_Extension_Ccr
*/
protected $_ccrData = null;
/**
* Constructs a new Zend_Gdata_Health_ProfileEntry object.
* @param DOMElement $element (optional) The DOMElement on which to base this object.
@ -85,7 +85,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
if ($this->_ccrData !== null) {
$element->appendChild($this->_ccrData->getDOM($element->ownerDocument));
}
return $element;
}
@ -102,14 +102,14 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
if (strstr($absoluteNodeName, $this->lookupNamespace('ccr') . ':')) {
$ccrElement = new Zend_Gdata_Health_Extension_Ccr();
$ccrElement->transferFromDOM($child);
$this->_ccrData = $ccrElement;
$this->_ccrData = $ccrElement;
} else {
parent::takeChildFromDOM($child);
}
}
/**
/**
* Sets the profile entry's CCR data
* @param string $ccrXMLStr The CCR as an xml string
* @return Zend_Gdata_Health_Extension_Ccr
@ -125,7 +125,7 @@ class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
}
/**
/**
* Returns all the CCR data in a profile entry
* @return Zend_Gdata_Health_Extension_Ccr
*/

4
libs/Zend/Gdata/Health/ProfileFeed.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ProfileFeed.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: ProfileFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -45,7 +45,7 @@ class Zend_Gdata_Health_ProfileFeed extends Zend_Gdata_Feed
* @var string
*/
protected $_entryClassName = 'Zend_Gdata_Health_ProfileEntry';
/**
* Creates a Health Profile feed, representing a user's Health profile
*

10
libs/Zend/Gdata/Health/ProfileListEntry.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ProfileListEntry.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: ProfileListEntry.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -80,16 +80,16 @@ class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
{
parent::takeChildFromDOM($child);
}
/**
/**
* Retrieves the profile ID for the entry, which is contained in <atom:content>
* @return string The profile id
*/
public function getProfileID() {
return $this->getContent()->text;
}
/**
/**
* Retrieves the profile's title, which is contained in <atom:title>
* @return string The profile name
*/

4
libs/Zend/Gdata/Health/ProfileListFeed.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ProfileListFeed.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: ProfileListFeed.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -45,7 +45,7 @@ class Zend_Gdata_Health_ProfileListFeed extends Zend_Gdata_Feed
* @var string
*/
protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
public function getEntries()
{
return $this->entry;

38
libs/Zend/Gdata/Health/Query.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Health
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Query.php 16541 2009-07-07 06:59:03Z bkarwin $
* @version $Id: Query.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -101,7 +101,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
*/
public function setCategory($item, $name = null)
{
$this->_category = $item .
$this->_category = $item .
($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
return $this;
}
@ -133,7 +133,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Returns the value set for the grouped parameter.
*
* @return string grouped parameter.
* @return string grouped parameter.
*/
public function getGrouped()
{
@ -143,11 +143,11 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
return null;
}
}
/**
* Setter for the max-results-group parameter.
*
* @param int $value Specifies the maximum number of groups to be
* @param int $value Specifies the maximum number of groups to be
* retrieved. Must be an integer value greater than zero. This parameter
* is only valid if grouped=true.
* @return Zend_Gdata_Health_Query Provides a fluent interface
@ -159,7 +159,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
require_once 'Zend/Gdata/App/InvalidArgumentException.php';
throw new Zend_Gdata_App_InvalidArgumentException(
'The max-results-group parameter must be set to a value
greater than 0 and can only be used if grouped=true');
greater than 0 and can only be used if grouped=true');
} else {
$this->_params['max-results-group'] = $value;
}
@ -170,7 +170,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Returns the value set for max-results-group.
*
* @return int Returns max-results-group parameter.
* @return int Returns max-results-group parameter.
*/
public function getMaxResultsGroup()
{
@ -184,9 +184,9 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Setter for the max-results-group parameter.
*
* @param int $value Specifies the maximum number of records to be
* retrieved from each group. The limits that you specify with this
* parameter apply to all groups. Must be an integer value greater than
* @param int $value Specifies the maximum number of records to be
* retrieved from each group. The limits that you specify with this
* parameter apply to all groups. Must be an integer value greater than
* zero. This parameter is only valid if grouped=true.
* @return Zend_Gdata_Health_Query Provides a fluent interface
*/
@ -195,8 +195,8 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
if ($value !== null) {
if ($value <= 0 || $this->getGrouped() !== 'true') {
throw new Zend_Gdata_App_InvalidArgumentException(
'The max-results-in-group parameter must be set to a value
greater than 0 and can only be used if grouped=true');
'The max-results-in-group parameter must be set to a value
greater than 0 and can only be used if grouped=true');
} else {
$this->_params['max-results-in-group'] = $value;
}
@ -207,7 +207,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Returns the value set for max-results-in-group.
*
* @return int Returns max-results-in-group parameter.
* @return int Returns max-results-in-group parameter.
*/
public function getMaxResultsInGroup()
{
@ -221,9 +221,9 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Setter for the start-index-group parameter.
*
* @param int $value Retrieves only items whose group ranking is at
* @param int $value Retrieves only items whose group ranking is at
* least start-index-group. This should be set to a 1-based index of the
* first group to be retrieved. The range is applied per category.
* first group to be retrieved. The range is applied per category.
* This parameter is only valid if grouped=true.
* @return Zend_Gdata_Health_Query Provides a fluent interface
*/
@ -231,7 +231,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
{
if ($value !== null && $this->getGrouped() !== 'true') {
throw new Zend_Gdata_App_InvalidArgumentException(
'The start-index-group can only be used if grouped=true');
'The start-index-group can only be used if grouped=true');
} else {
$this->_params['start-index-group'] = $value;
}
@ -241,7 +241,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Returns the value set for start-index-group.
*
* @return int Returns start-index-group parameter.
* @return int Returns start-index-group parameter.
*/
public function getStartIndexGroup()
{
@ -255,7 +255,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Setter for the start-index-in-group parameter.
*
* @param int $value A 1-based index of the records to be retrieved from
* @param int $value A 1-based index of the records to be retrieved from
* each group. This parameter is only valid if grouped=true.
* @return Zend_Gdata_Health_Query Provides a fluent interface
*/
@ -272,7 +272,7 @@ class Zend_Gdata_Health_Query extends Zend_Gdata_Query
/**
* Returns the value set for start-index-in-group.
*
* @return int Returns start-index-in-group parameter.
* @return int Returns start-index-in-group parameter.
*/
public function getStartIndexInGroup()
{

View File

@ -18,7 +18,7 @@
* @subpackage Gdata
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: HttpAdapterStreamingProxy.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: HttpAdapterStreamingProxy.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -59,7 +59,7 @@ class Zend_Gdata_HttpAdapterStreamingProxy extends Zend_Http_Client_Adapter_Prox
{
// If no proxy is set, throw an error
if (! $this->config['proxy_host']) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
require_once 'Zend/Http/Client/Adapter/Exception.php';
throw new Zend_Http_Client_Adapter_Exception('No proxy host set!');
}
@ -86,13 +86,13 @@ class Zend_Gdata_HttpAdapterStreamingProxy extends Zend_Http_Client_Adapter_Prox
$this->config['proxy_user'], $this->config['proxy_pass'], $this->config['proxy_auth']
);
}
// if we are proxying HTTPS, preform CONNECT handshake with the proxy
if ($uri->getScheme() == 'https' && (! $this->negotiated)) {
$this->connectHandshake($uri->getHost(), $uri->getPort(), $http_ver, $headers);
$this->negotiated = true;
}
// Save request method for later
$this->method = $method;

View File

@ -17,7 +17,7 @@
* @subpackage Gdata
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: HttpClient.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: HttpClient.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -253,7 +253,7 @@ class Zend_Gdata_HttpClient extends Zend_Http_Client
*/
public function getAdapter()
{
return $this->adapter;
return $this->adapter;
}
/**
@ -267,7 +267,7 @@ class Zend_Gdata_HttpClient extends Zend_Http_Client
if ($adapter == null) {
$this->adapter = $adapter;
} else {
parent::setAdapter($adapter);
parent::setAdapter($adapter);
}
}

0
libs/Zend/Gdata/Media.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Entry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaCategory.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaContent.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaCopyright.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaCredit.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaDescription.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaGroup.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaHash.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaKeywords.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaPlayer.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaRating.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaRestriction.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaText.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaThumbnail.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Extension/MediaTitle.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Media/Feed.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/AlbumEntry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/AlbumFeed.php Executable file → Normal file
View File

6
libs/Zend/Gdata/Photos/AlbumQuery.php Executable file → Normal file
View File

@ -18,7 +18,7 @@
* @subpackage Photos
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: AlbumQuery.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: AlbumQuery.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -73,7 +73,7 @@ class Zend_Gdata_Photos_AlbumQuery extends Zend_Gdata_Photos_UserQuery
{
$this->_albumId = null;
$this->_albumName = $value;
return $this;
}
@ -104,7 +104,7 @@ class Zend_Gdata_Photos_AlbumQuery extends Zend_Gdata_Photos_UserQuery
{
$this->_albumName = null;
$this->_albumId = $value;
return $this;
}

0
libs/Zend/Gdata/Photos/CommentEntry.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Access.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/AlbumId.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/BytesUsed.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Checksum.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Client.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/CommentCount.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/CommentingEnabled.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Height.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Id.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Location.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Name.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Nickname.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/NumPhotos.php Executable file → Normal file
View File

View File

0
libs/Zend/Gdata/Photos/Extension/PhotoId.php Executable file → Normal file
View File

0
libs/Zend/Gdata/Photos/Extension/Position.php Executable file → Normal file
View File

Some files were not shown because too many files have changed in this diff Show More