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:
@ -17,7 +17,7 @@
|
||||
* @subpackage Technorati
|
||||
* @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: Utils.php 16211 2009-06-21 19:23:55Z thomas $
|
||||
* @version $Id: Utils.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
|
||||
@ -73,20 +73,20 @@ class Zend_Service_Technorati_Utils
|
||||
/**
|
||||
* @see Zend_Service_Technorati_Exception
|
||||
*/
|
||||
require_once 'Zend/Service/Technorati/Exception.php';
|
||||
require_once 'Zend/Service/Technorati/Exception.php';
|
||||
throw new Zend_Service_Technorati_Exception(
|
||||
"Invalid URL $uri, only HTTP(S) protocols can be used");
|
||||
}
|
||||
|
||||
|
||||
return $uri;
|
||||
}
|
||||
/**
|
||||
* Parses, validates and returns a valid Zend_Date object
|
||||
* from given $input.
|
||||
*
|
||||
*
|
||||
* $input can be either a string, an integer or a Zend_Date object.
|
||||
* If $input is string or int, it will be provided to Zend_Date as it is.
|
||||
* If $input is a Zend_Date object, the object instance will be returned.
|
||||
* If $input is a Zend_Date object, the object instance will be returned.
|
||||
*
|
||||
* @param mixed|Zend_Date $input
|
||||
* @return null|Zend_Date
|
||||
@ -103,12 +103,12 @@ class Zend_Service_Technorati_Utils
|
||||
* @see Zend_Locale
|
||||
*/
|
||||
require_once 'Zend/Locale.php';
|
||||
|
||||
|
||||
// allow null as value and return valid Zend_Date objects
|
||||
if (($input === null) || ($input instanceof Zend_Date)) {
|
||||
return $input;
|
||||
}
|
||||
|
||||
|
||||
// due to a BC break as of ZF 1.5 it's not safe to use Zend_Date::isDate() here
|
||||
// see ZF-2524, ZF-2334
|
||||
if (@strtotime($input) !== FALSE) {
|
||||
@ -121,7 +121,7 @@ class Zend_Service_Technorati_Utils
|
||||
throw new Zend_Service_Technorati_Exception("'$input' is not a valid Date/Time");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @todo public static function xpathQueryAndSet() {}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user