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:
@ -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
0
libs/Zend/Gdata/App/Feed.php
Executable file → Normal file
4
libs/Zend/Gdata/App/FeedEntryParent.php
Executable file → Normal file
4
libs/Zend/Gdata/App/FeedEntryParent.php
Executable file → Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
*
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user