import v1.1.0_RC2 | 2009-09-20
This commit is contained in:
@ -15,18 +15,23 @@
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage Twitter
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @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: $
|
||||
* @version $Id: Exception.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Service_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/Exception.php';
|
||||
|
||||
/**
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage Twitter
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Service_Twitter_Exception extends Exception
|
||||
class Zend_Service_Twitter_Exception extends Zend_Service_Exception
|
||||
{
|
||||
}
|
||||
|
@ -15,9 +15,9 @@
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage Twitter
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @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: $
|
||||
* @version $Id: Search.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -44,7 +44,7 @@ require_once 'Zend/Feed.php';
|
||||
* @category Zend
|
||||
* @package Zend_Service
|
||||
* @subpackage Twitter
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
@ -96,6 +96,7 @@ class Zend_Service_Twitter_Search extends Zend_Http_Client
|
||||
public function setResponseType($responseType = 'json')
|
||||
{
|
||||
if(!in_array($responseType, $this->_responseTypes, TRUE)) {
|
||||
require_once 'Zend/Service/Twitter/Exception.php';
|
||||
throw new Zend_Service_Twitter_Exception('Invalid Response Type');
|
||||
}
|
||||
$this->_responseType = $responseType;
|
||||
@ -140,12 +141,12 @@ class Zend_Service_Twitter_Search extends Zend_Http_Client
|
||||
switch($key) {
|
||||
case 'geocode':
|
||||
case 'lang':
|
||||
case 'since_id':
|
||||
$_query[$key] = $param;
|
||||
break;
|
||||
case 'rpp':
|
||||
$_query[$key] = (intval($param) > 100) ? 100 : intval($param);
|
||||
break;
|
||||
case 'since_id':
|
||||
case 'page':
|
||||
$_query[$key] = intval($param);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user