--- a/web/common.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/common.php Thu Mar 21 19:50:53 2013 +0100
@@ -40,7 +40,7 @@
$configuration = array(
- 'siteUrl' => 'http://twitter.com/oauth',
+ 'siteUrl' => 'https://api.twitter.com/oauth',
'consumerKey' => '***REMOVED***',
'consumerSecret' => '***REMOVED***'
);
--- a/web/lib/Zend/Acl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Acl.php 23358 2010-11-18 16:19:31Z ralph $
+ * @version $Id: Acl.php 24771 2012-05-07 01:13:06Z adamlundrigan $
*/
@@ -53,7 +53,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl
@@ -140,7 +140,7 @@
* will have the least priority, and the last parent added will have the
* highest priority.
*
- * @param Zend_Acl_Role_Interface $role
+ * @param Zend_Acl_Role_Interface|string $role
* @param Zend_Acl_Role_Interface|string|array $parents
* @uses Zend_Acl_Role_Registry::add()
* @return Zend_Acl Provides a fluent interface
@@ -655,7 +655,7 @@
}
unset($rTarget);
}
-
+
// normalize privileges to array
if (null === $privileges) {
$privileges = array();
@@ -726,7 +726,7 @@
}
continue;
}
-
+
if (isset($rules['allPrivileges']['type']) &&
$type === $rules['allPrivileges']['type'])
{
@@ -750,7 +750,7 @@
* since null (all resources) was passed to this setRule() call, we need
* clean up all the rules for the global allResources, as well as the indivually
* set resources (per privilege as well)
- */
+ */
foreach (array_merge(array(null), $allResources) as $resource) {
$rules =& $this->_getRules($resource, $role, true);
if (null === $rules) {
@@ -769,7 +769,7 @@
}
continue;
}
-
+
if (isset($rules['allPrivileges']['type']) && $type === $rules['allPrivileges']['type']) {
unset($rules['allPrivileges']);
}
@@ -1218,6 +1218,11 @@
}
/**
+ * Returns an array of registered roles.
+ *
+ * Note that this method does not return instances of registered roles,
+ * but only the role identifiers.
+ *
* @return array of registered roles
*/
public function getRoles()
@@ -1232,6 +1237,6 @@
{
return array_keys($this->_resources);
}
-
+
}
-
+
--- a/web/lib/Zend/Acl/Assert/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Assert/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Acl_Assert_Interface
--- a/web/lib/Zend/Acl/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl_Exception extends Zend_Exception
--- a/web/lib/Zend/Acl/Resource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Resource.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Resource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl_Resource implements Zend_Acl_Resource_Interface
--- a/web/lib/Zend/Acl/Resource/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Resource/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Acl_Resource_Interface
--- a/web/lib/Zend/Acl/Role.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Role.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Role.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Role.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl_Role implements Zend_Acl_Role_Interface
@@ -44,7 +44,7 @@
/**
* Sets the Role identifier
*
- * @param string $id
+ * @param string $roleId
* @return void
*/
public function __construct($roleId)
--- a/web/lib/Zend/Acl/Role/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Role/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Acl_Role_Interface
--- a/web/lib/Zend/Acl/Role/Registry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Role/Registry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Registry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl_Role_Registry
--- a/web/lib/Zend/Acl/Role/Registry/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Acl/Role/Registry/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Acl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Acl_Role_Registry_Exception extends Zend_Acl_Exception
--- a/web/lib/Zend/Amf/Adobe/Auth.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Adobe/Auth.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Auth.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Auth.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Amf_Auth_Abstract */
@@ -33,7 +33,7 @@
*
* @package Zend_Amf
* @subpackage Adobe
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Adobe_Auth extends Zend_Amf_Auth_Abstract
--- a/web/lib/Zend/Amf/Adobe/DbInspector.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Adobe/DbInspector.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbInspector.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbInspector.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @package Zend_Amf
* @subpackage Adobe
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Adobe_DbInspector
--- a/web/lib/Zend/Amf/Adobe/Introspector.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Adobe/Introspector.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Introspector.php 23316 2010-11-10 16:37:40Z matthew $
+ * @version $Id: Introspector.php 25024 2012-07-30 15:08:15Z rob $
*/
/** @see Zend_Amf_Parse_TypeLoader */
@@ -33,7 +33,7 @@
*
* @package Zend_Amf
* @subpackage Adobe
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Adobe_Introspector
--- a/web/lib/Zend/Amf/Auth/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Auth/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Auth_Adapter_Interface */
@@ -27,7 +27,7 @@
*
* @package Zend_Amf
* @subpackage Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Amf_Auth_Abstract implements Zend_Auth_Adapter_Interface
--- a/web/lib/Zend/Amf/Constants.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Constants.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Constants.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Constants.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
* deserialization to detect the AMF marker and encoding types.
*
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
final class Zend_Amf_Constants
--- a/web/lib/Zend/Amf/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
/**
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Exception extends Zend_Exception
--- a/web/lib/Zend/Amf/Parse/Amf0/Deserializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Amf0/Deserializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse_Amf0
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Deserializer.php 21209 2010-02-27 10:37:15Z yoshida@zend.co.jp $
+ * @version $Id: Deserializer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Constants */
@@ -33,7 +33,7 @@
* @todo Class could be implemented as Factory Class with each data type it's own class
* @package Zend_Amf
* @subpackage Parse_Amf0
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Amf0_Deserializer extends Zend_Amf_Parse_Deserializer
--- a/web/lib/Zend/Amf/Parse/Amf0/Serializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Amf0/Serializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse_Amf0
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
+ * @version $Id: Serializer.php 25179 2012-12-22 21:29:30Z rob $
*/
/** Zend_Amf_Constants */
@@ -32,7 +32,7 @@
* @uses Zend_Amf_Parse_Serializer
* @package Zend_Amf
* @subpackage Parse_Amf0
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Amf0_Serializer extends Zend_Amf_Parse_Serializer
@@ -63,8 +63,8 @@
*/
public function writeTypeMarker(&$data, $markerType = null, $dataByVal = false)
{
- // Workaround for PHP5 with E_STRICT enabled complaining about "Only
- // variables should be passed by reference"
+ // Workaround for PHP5 with E_STRICT enabled complaining about "Only
+ // variables should be passed by reference"
if ((null === $data) && ($dataByVal !== false)) {
$data = &$dataByVal;
}
@@ -127,7 +127,7 @@
case (is_bool($data)):
$markerType = Zend_Amf_Constants::AMF0_BOOLEAN;
break;
- case (is_string($data) && (strlen($data) > 65536)):
+ case (is_string($data) && (($this->_mbStringFunctionsOverloaded ? mb_strlen($data, '8bit') : strlen($data)) > 65536)):
$markerType = Zend_Amf_Constants::AMF0_LONGSTRING;
break;
case (is_string($data)):
@@ -187,23 +187,23 @@
* Check if the given object is in the reference table, write the reference if it exists,
* otherwise add the object to the reference table
*
- * @param mixed $object object reference to check for reference
- * @param $markerType AMF type of the object to write
- * @param mixed $objectByVal object to check for reference
+ * @param mixed $object object reference to check for reference
+ * @param string $markerType AMF type of the object to write
+ * @param mixed $objectByVal object to check for reference
* @return Boolean true, if the reference was written, false otherwise
*/
- protected function writeObjectReference(&$object, $markerType, $objectByVal = false)
+ protected function writeObjectReference(&$object, $markerType, $objectByVal = false)
{
- // Workaround for PHP5 with E_STRICT enabled complaining about "Only
+ // Workaround for PHP5 with E_STRICT enabled complaining about "Only
// variables should be passed by reference"
if ((null === $object) && ($objectByVal !== false)) {
$object = &$objectByVal;
}
- if ($markerType == Zend_Amf_Constants::AMF0_OBJECT
- || $markerType == Zend_Amf_Constants::AMF0_MIXEDARRAY
- || $markerType == Zend_Amf_Constants::AMF0_ARRAY
- || $markerType == Zend_Amf_Constants::AMF0_TYPEDOBJECT
+ if ($markerType == Zend_Amf_Constants::AMF0_OBJECT
+ || $markerType == Zend_Amf_Constants::AMF0_MIXEDARRAY
+ || $markerType == Zend_Amf_Constants::AMF0_ARRAY
+ || $markerType == Zend_Amf_Constants::AMF0_TYPEDOBJECT
) {
$ref = array_search($object, $this->_referenceObjects, true);
//handle object reference
--- a/web/lib/Zend/Amf/Parse/Amf3/Deserializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Amf3/Deserializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse_Amf3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Deserializer.php 21968 2010-04-22 03:53:34Z matthew $
+ * @version $Id: Deserializer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Parse_Deserializer */
@@ -34,7 +34,7 @@
* @todo Class could be implemented as Factory Class with each data type it's own class.
* @package Zend_Amf
* @subpackage Parse_Amf3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Amf3_Deserializer extends Zend_Amf_Parse_Deserializer
@@ -225,7 +225,7 @@
$timestamp = floor($this->_stream->readDouble() / 1000);
require_once 'Zend/Date.php';
- $dateTime = new Zend_Date((int) $timestamp);
+ $dateTime = new Zend_Date($timestamp);
$this->_referenceObjects[] = $dateTime;
return $dateTime;
}
@@ -385,6 +385,7 @@
}
// Add properties back to the return object.
+ if (!is_array($properties)) $properties = array();
foreach($properties as $key=>$value) {
if($key) {
$returnObject->$key = $value;
--- a/web/lib/Zend/Amf/Parse/Amf3/Serializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Amf3/Serializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse_Amf3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Serializer.php 22101 2010-05-04 20:07:13Z matthew $
+ * @version $Id: Serializer.php 25179 2012-12-22 21:29:30Z rob $
*/
/** Zend_Amf_Constants */
@@ -35,7 +35,7 @@
*
* @package Zend_Amf
* @subpackage Parse_Amf3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Amf3_Serializer extends Zend_Amf_Parse_Serializer
@@ -45,7 +45,7 @@
* @var string
*/
protected $_strEmpty = '';
-
+
/**
* An array of reference objects per amf body
* @var array
@@ -78,7 +78,7 @@
*/
public function writeTypeMarker(&$data, $markerType = null, $dataByVal = false)
{
- // Workaround for PHP5 with E_STRICT enabled complaining about "Only
+ // Workaround for PHP5 with E_STRICT enabled complaining about "Only
// variables should be passed by reference"
if ((null === $data) && ($dataByVal !== false)) {
$data = &$dataByVal;
@@ -215,7 +215,7 @@
* @return Zend_Amf_Parse_Amf3_Serializer
*/
protected function writeBinaryString(&$string){
- $ref = strlen($string) << 1 | 0x01;
+ $ref = ($this->_mbStringFunctionsOverloaded ? mb_strlen($string, '8bit') : strlen($string)) << 1 | 0x01;
$this->writeInteger($ref);
$this->_stream->writeBytes($string);
@@ -230,15 +230,17 @@
*/
public function writeString(&$string)
{
- $len = strlen($string);
+ $len = $this->_mbStringFunctionsOverloaded ? mb_strlen($string, '8bit') : strlen($string);
if(!$len){
$this->writeInteger(0x01);
return $this;
}
- $ref = array_search($string, $this->_referenceStrings, true);
- if($ref === false){
- $this->_referenceStrings[] = $string;
+ $ref = array_key_exists($string, $this->_referenceStrings)
+ ? $this->_referenceStrings[$string]
+ : false;
+ if ($ref === false){
+ $this->_referenceStrings[$string] = count($this->_referenceStrings);
$this->writeBinaryString($string);
} else {
$ref <<= 1;
@@ -380,13 +382,16 @@
*/
protected function writeObjectReference(&$object, $objectByVal = false)
{
- // Workaround for PHP5 with E_STRICT enabled complaining about "Only
+ // Workaround for PHP5 with E_STRICT enabled complaining about "Only
// variables should be passed by reference"
if ((null === $object) && ($objectByVal !== false)) {
$object = &$objectByVal;
}
- $ref = array_search($object, $this->_referenceObjects,true);
+ $hash = spl_object_hash($object);
+ $ref = array_key_exists($hash, $this->_referenceObjects)
+ ? $this->_referenceObjects[$hash]
+ : false;
// quickly handle object references
if ($ref !== false){
@@ -394,7 +399,7 @@
$this->writeInteger($ref);
return true;
}
- $this->_referenceObjects[] = $object;
+ $this->_referenceObjects[$hash] = count($this->_referenceObjects);
return false;
}
--- a/web/lib/Zend/Amf/Parse/Deserializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Deserializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Deserializer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Deserializer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @see http://opensource.adobe.com/svn/opensource/blazeds/trunk/modules/core/src/java/flex/messaging/io/amf/
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Amf_Parse_Deserializer
--- a/web/lib/Zend/Amf/Parse/InputStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/InputStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InputStream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InputStream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Util_BinaryStream */
@@ -31,7 +31,7 @@
*
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_InputStream extends Zend_Amf_Util_BinaryStream
--- a/web/lib/Zend/Amf/Parse/OutputStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/OutputStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OutputStream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OutputStream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Util_BinaryStream */
@@ -32,7 +32,7 @@
* @uses Zend_Amf_Util_BinaryStream
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_OutputStream extends Zend_Amf_Util_BinaryStream
--- a/web/lib/Zend/Amf/Parse/Resource/MysqlResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Resource/MysqlResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MysqlResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MysqlResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
*
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Resource_MysqlResult
--- a/web/lib/Zend/Amf/Parse/Resource/MysqliResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Resource/MysqliResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MysqliResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MysqliResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
*
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Resource_MysqliResult
--- a/web/lib/Zend/Amf/Parse/Resource/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Resource/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Parse_Resource_Stream
--- a/web/lib/Zend/Amf/Parse/Serializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/Serializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Serializer.php 21968 2010-04-22 03:53:34Z matthew $
+ * @version $Id: Serializer.php 25179 2012-12-22 21:29:30Z rob $
*/
/**
@@ -25,7 +25,7 @@
*
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Amf_Parse_Serializer
@@ -38,6 +38,13 @@
protected $_stream;
/**
+ * str* functions overloaded using mbstring.func_overload
+ *
+ * @var bool
+ */
+ protected $mbStringFunctionsOverloaded;
+
+ /**
* Constructor
*
* @param Zend_Amf_Parse_OutputStream $stream
@@ -46,6 +53,7 @@
public function __construct(Zend_Amf_Parse_OutputStream $stream)
{
$this->_stream = $stream;
+ $this->_mbStringFunctionsOverloaded = function_exists('mb_strlen') && (ini_get('mbstring.func_overload') !== '') && ((int)ini_get('mbstring.func_overload') & 2);
}
/**
--- a/web/lib/Zend/Amf/Parse/TypeLoader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Parse/TypeLoader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TypeLoader.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TypeLoader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* @todo PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace
* @package Zend_Amf
* @subpackage Parse
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
final class Zend_Amf_Parse_TypeLoader
--- a/web/lib/Zend/Amf/Request.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Request.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Request.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Request.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Amf_Parse_InputStream */
@@ -40,7 +40,7 @@
*
* @todo Currently not checking if the object needs to be Type Mapped to a server object.
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Request
--- a/web/lib/Zend/Amf/Request/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Request/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Amf_Request */
@@ -32,7 +32,7 @@
*
* @package Zend_Amf
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Request_Http extends Zend_Amf_Request
--- a/web/lib/Zend/Amf/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 21968 2010-04-22 03:53:34Z matthew $
+ * @version $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Amf_Constants */
@@ -32,7 +32,7 @@
* Handles converting the PHP object ready for response back into AMF
*
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Response
@@ -95,7 +95,7 @@
$stream->writeByte($header->mustRead);
$stream->writeLong(Zend_Amf_Constants::UNKNOWN_CONTENT_LENGTH);
if (is_object($header->data)) {
- // Workaround for PHP5 with E_STRICT enabled complaining about
+ // Workaround for PHP5 with E_STRICT enabled complaining about
// "Only variables should be passed by reference"
$placeholder = null;
$serializer->writeTypeMarker($placeholder, null, $header->data);
@@ -115,7 +115,7 @@
$bodyData = $body->getData();
$markerType = ($this->_objectEncoding == Zend_Amf_Constants::AMF0_OBJECT_ENCODING) ? null : Zend_Amf_Constants::AMF0_AMF3;
if (is_object($bodyData)) {
- // Workaround for PHP5 with E_STRICT enabled complaining about
+ // Workaround for PHP5 with E_STRICT enabled complaining about
// "Only variables should be passed by reference"
$placeholder = null;
$serializer->writeTypeMarker($placeholder, $markerType, $bodyData);
--- a/web/lib/Zend/Amf/Response/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Response/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 22096 2010-05-04 15:37:23Z wadearnold $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Response */
@@ -28,7 +28,7 @@
*
* @package Zend_Amf
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Response_Http extends Zend_Amf_Response
@@ -41,11 +41,33 @@
public function getResponse()
{
if (!headers_sent()) {
- header('Cache-Control: no-cache, must-revalidate');
+ if ($this->isIeOverSsl()) {
+ header('Cache-Control: cache, must-revalidate');
+ header('Pragma: public');
+ } else {
+ header('Cache-Control: no-cache, must-revalidate');
+ header('Pragma: no-cache');
+ }
header('Expires: Thu, 19 Nov 1981 08:52:00 GMT');
- header('Pragma: no-cache');
header('Content-Type: application/x-amf');
}
return parent::getResponse();
}
+
+ protected function isIeOverSsl()
+ {
+ $ssl = isset($_SERVER['HTTPS']) ? $_SERVER['HTTPS'] : false;
+ if (!$ssl || ($ssl == 'off')) {
+ // IIS reports "off", whereas other browsers simply don't populate
+ return false;
+ }
+
+ $ua = $_SERVER['HTTP_USER_AGENT'];
+ if (!preg_match('/; MSIE \d+\.\d+;/', $ua)) {
+ // Not MicroSoft Internet Explorer
+ return false;
+ }
+
+ return true;
+ }
}
--- a/web/lib/Zend/Amf/Server.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Server.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Amf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Server.php 23256 2010-10-26 12:51:54Z alexander $
+ * @version $Id: Server.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Server_Interface */
@@ -52,7 +52,7 @@
* @todo Make the reflection methods cache and autoload.
* @package Zend_Amf
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Server implements Zend_Server_Interface
@@ -142,12 +142,18 @@
/**
* Set authentication adapter
*
+ * If the authentication adapter implements a "getAcl()" method, populate
+ * the ACL of this instance with it (if none exists already).
+ *
* @param Zend_Amf_Auth_Abstract $auth
* @return Zend_Amf_Server
*/
public function setAuth(Zend_Amf_Auth_Abstract $auth)
{
$this->_auth = $auth;
+ if ((null === $this->getAcl()) && method_exists($auth, 'getAcl')) {
+ $this->setAcl($auth->getAcl());
+ }
return $this;
}
/**
@@ -317,6 +323,7 @@
throw new Zend_Amf_Server_Exception('Class "' . $className . '" does not exist: '.$e->getMessage(), 0, $e);
}
// Add the new loaded class to the server.
+ require_once 'Zend/Amf/Server/Exception.php';
$this->setClass($className, $source);
}
@@ -334,6 +341,8 @@
$params = array_merge($params, $argv);
}
+ $params = $this->_castParameters($info, $params);
+
if ($info instanceof Zend_Server_Reflection_Function) {
$func = $info->getName();
$this->_checkAcl(null, $func);
@@ -494,66 +503,60 @@
// set response encoding
$response->setObjectEncoding($objectEncoding);
- $responseBody = $request->getAmfBodies();
-
- $handleAuth = false;
- if ($this->_auth) {
- $headers = $request->getAmfHeaders();
- if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]) &&
- isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->userid)) {
- $handleAuth = true;
+ // Authenticate, if we have credential headers
+ $error = false;
+ $headers = $request->getAmfHeaders();
+ if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER])
+ && isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->userid)
+ && isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->password)
+ ) {
+ try {
+ if ($this->_handleAuth(
+ $headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->userid,
+ $headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->password
+ )) {
+ // use RequestPersistentHeader to clear credentials
+ $response->addAmfHeader(
+ new Zend_Amf_Value_MessageHeader(
+ Zend_Amf_Constants::PERSISTENT_HEADER,
+ false,
+ new Zend_Amf_Value_MessageHeader(
+ Zend_Amf_Constants::CREDENTIALS_HEADER,
+ false, null
+ )
+ )
+ );
+ }
+ } catch (Exception $e) {
+ // Error during authentication; report it
+ $error = $this->_errorMessage(
+ $objectEncoding,
+ '',
+ $e->getMessage(),
+ $e->getTraceAsString(),
+ $e->getCode(),
+ $e->getLine()
+ );
+ $responseType = Zend_AMF_Constants::STATUS_METHOD;
}
}
// Iterate through each of the service calls in the AMF request
- foreach($responseBody as $body)
+ foreach($request->getAmfBodies() as $body)
{
+ if ($error) {
+ // Error during authentication; just report it and be done
+ $responseURI = $body->getResponseURI() . $responseType;
+ $newBody = new Zend_Amf_Value_MessageBody($responseURI, null, $error);
+ $response->addAmfBody($newBody);
+ continue;
+ }
try {
- if ($handleAuth) {
- if ($this->_handleAuth(
- $headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->userid,
- $headers[Zend_Amf_Constants::CREDENTIALS_HEADER]->password)) {
- // use RequestPersistentHeader to clear credentials
- $response->addAmfHeader(
- new Zend_Amf_Value_MessageHeader(
- Zend_Amf_Constants::PERSISTENT_HEADER,
- false,
- new Zend_Amf_Value_MessageHeader(
- Zend_Amf_Constants::CREDENTIALS_HEADER,
- false, null)));
- $handleAuth = false;
- }
- }
-
- if ($objectEncoding == Zend_Amf_Constants::AMF0_OBJECT_ENCODING) {
- // AMF0 Object Encoding
- $targetURI = $body->getTargetURI();
- $message = '';
-
- // Split the target string into its values.
- $source = substr($targetURI, 0, strrpos($targetURI, '.'));
-
- if ($source) {
- // Break off method name from namespace into source
- $method = substr(strrchr($targetURI, '.'), 1);
- $return = $this->_dispatch($method, $body->getData(), $source);
- } else {
- // Just have a method name.
- $return = $this->_dispatch($targetURI, $body->getData());
- }
- } else {
- // AMF3 read message type
- $message = $body->getData();
- if ($message instanceof Zend_Amf_Value_Messaging_CommandMessage) {
- // async call with command message
- $return = $this->_loadCommandMessage($message);
- } elseif ($message instanceof Zend_Amf_Value_Messaging_RemotingMessage) {
- require_once 'Zend/Amf/Value/Messaging/AcknowledgeMessage.php';
- $return = new Zend_Amf_Value_Messaging_AcknowledgeMessage($message);
- $return->body = $this->_dispatch($message->operation, $message->body, $message->source);
- } else {
- // Amf3 message sent with netConnection
+ switch ($objectEncoding) {
+ case Zend_Amf_Constants::AMF0_OBJECT_ENCODING:
+ // AMF0 Object Encoding
$targetURI = $body->getTargetURI();
+ $message = '';
// Split the target string into its values.
$source = substr($targetURI, 0, strrpos($targetURI, '.'));
@@ -566,7 +569,35 @@
// Just have a method name.
$return = $this->_dispatch($targetURI, $body->getData());
}
- }
+ break;
+ case Zend_Amf_Constants::AMF3_OBJECT_ENCODING:
+ default:
+ // AMF3 read message type
+ $message = $body->getData();
+ if ($message instanceof Zend_Amf_Value_Messaging_CommandMessage) {
+ // async call with command message
+ $return = $this->_loadCommandMessage($message);
+ } elseif ($message instanceof Zend_Amf_Value_Messaging_RemotingMessage) {
+ require_once 'Zend/Amf/Value/Messaging/AcknowledgeMessage.php';
+ $return = new Zend_Amf_Value_Messaging_AcknowledgeMessage($message);
+ $return->body = $this->_dispatch($message->operation, $message->body, $message->source);
+ } else {
+ // Amf3 message sent with netConnection
+ $targetURI = $body->getTargetURI();
+
+ // Split the target string into its values.
+ $source = substr($targetURI, 0, strrpos($targetURI, '.'));
+
+ if ($source) {
+ // Break off method name from namespace into source
+ $method = substr(strrchr($targetURI, '.'), 1);
+ $return = $this->_dispatch($method, $body->getData(), $source);
+ } else {
+ // Just have a method name.
+ $return = $this->_dispatch($targetURI, $body->getData());
+ }
+ }
+ break;
}
$responseType = Zend_AMF_Constants::RESULT_METHOD;
} catch (Exception $e) {
@@ -933,4 +964,85 @@
{
return array_keys($this->_table);
}
+
+ /**
+ * Cast parameters
+ *
+ * Takes the provided parameters from the request, and attempts to cast them
+ * to objects, if the prototype defines any as explicit object types
+ *
+ * @param Reflection $reflectionMethod
+ * @param array $params
+ * @return array
+ */
+ protected function _castParameters($reflectionMethod, array $params)
+ {
+ $prototypes = $reflectionMethod->getPrototypes();
+ $nonObjectTypes = array(
+ 'null',
+ 'mixed',
+ 'void',
+ 'unknown',
+ 'bool',
+ 'boolean',
+ 'number',
+ 'int',
+ 'integer',
+ 'double',
+ 'float',
+ 'string',
+ 'array',
+ 'object',
+ 'stdclass',
+ );
+ $types = array();
+ foreach ($prototypes as $prototype) {
+ foreach ($prototype->getParameters() as $parameter) {
+ $type = $parameter->getType();
+ if (in_array(strtolower($type), $nonObjectTypes)) {
+ continue;
+ }
+ $position = $parameter->getPosition();
+ $types[$position] = $type;
+ }
+ }
+
+ if (empty($types)) {
+ return $params;
+ }
+
+ foreach ($params as $position => $value) {
+ if (!isset($types[$position])) {
+ // No specific type to cast to? done
+ continue;
+ }
+
+ $type = $types[$position];
+
+ if (!class_exists($type)) {
+ // Not a class, apparently. done
+ continue;
+ }
+
+ if ($value instanceof $type) {
+ // Already of the right type? done
+ continue;
+ }
+
+ if (!is_array($value) && !is_object($value)) {
+ // Can't cast scalars to objects easily; done
+ continue;
+ }
+
+ // Create instance, and loop through value to set
+ $object = new $type;
+ foreach ($value as $property => $defined) {
+ $object->{$property} = $defined;
+ }
+
+ $params[$position] = $object;
+ }
+
+ return $params;
+ }
}
--- a/web/lib/Zend/Amf/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Exception */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Amf
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Server_Exception extends Zend_Amf_Exception
--- a/web/lib/Zend/Amf/Util/BinaryStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Util/BinaryStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Util
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BinaryStream.php 22101 2010-05-04 20:07:13Z matthew $
+ * @version $Id: BinaryStream.php 25241 2013-01-22 11:07:36Z frosch $
*/
/**
@@ -25,7 +25,7 @@
*
* @package Zend_Amf
* @subpackage Util
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Util_BinaryStream
@@ -51,6 +51,11 @@
protected $_needle;
/**
+ * @var bool str* functions overloaded using mbstring.func_overload?
+ */
+ protected $_mbStringFunctionsOverloaded;
+
+ /**
* Constructor
*
* Create a reference to a byte stream that is going to be parsed or created
@@ -69,7 +74,8 @@
$this->_stream = $stream;
$this->_needle = 0;
- $this->_streamLength = strlen($stream);
+ $this->_mbStringFunctionsOverloaded = function_exists('mb_strlen') && (ini_get('mbstring.func_overload') !== '') && ((int)ini_get('mbstring.func_overload') & 2);
+ $this->_streamLength = $this->_mbStringFunctionsOverloaded ? mb_strlen($stream, '8bit') : strlen($stream);
$this->_bigEndian = (pack('l', 1) === "\x00\x00\x00\x01");
}
@@ -97,7 +103,7 @@
require_once 'Zend/Amf/Exception.php';
throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $length);
}
- $bytes = substr($this->_stream, $this->_needle, $length);
+ $bytes = $this->_mbStringFunctionsOverloaded ? mb_substr($this->_stream, $this->_needle, $length, '8bit') : substr($this->_stream, $this->_needle, $length);
$this->_needle+= $length;
return $bytes;
}
@@ -120,12 +126,18 @@
* Reads a signed byte
*
* @return int Value is in the range of -128 to 127.
+ * @throws Zend_Amf_Exception
*/
public function readByte()
{
if (($this->_needle + 1) > $this->_streamLength) {
require_once 'Zend/Amf/Exception.php';
- throw new Zend_Amf_Exception('Buffer underrun at needle position: ' . $this->_needle . ' while requesting length: ' . $length);
+ throw new Zend_Amf_Exception(
+ 'Buffer underrun at needle position: '
+ . $this->_needle
+ . ' while requesting length: '
+ . $this->_streamLength
+ );
}
return ord($this->_stream{$this->_needle++});
@@ -184,7 +196,7 @@
*/
public function writeUtf($stream)
{
- $this->writeInt(strlen($stream));
+ $this->writeInt($this->_mbStringFunctionsOverloaded ? mb_strlen($stream, '8bit') : strlen($stream));
$this->_stream.= $stream;
return $this;
}
@@ -209,7 +221,7 @@
*/
public function writeLongUtf($stream)
{
- $this->writeLong(strlen($stream));
+ $this->writeLong($this->_mbStringFunctionsOverloaded ? mb_strlen($stream, '8bit') : strlen($stream));
$this->_stream.= $stream;
}
@@ -255,7 +267,7 @@
*/
public function readDouble()
{
- $bytes = substr($this->_stream, $this->_needle, 8);
+ $bytes = $this->_mbStringFunctionsOverloaded ? mb_substr($this->_stream, $this->_needle, 8, '8bit') : substr($this->_stream, $this->_needle, 8);
$this->_needle+= 8;
if (!$this->_bigEndian) {
--- a/web/lib/Zend/Amf/Value/ByteArray.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/ByteArray.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ByteArray.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ByteArray.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_ByteArray
--- a/web/lib/Zend/Amf/Value/MessageBody.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/MessageBody.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MessageBody.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MessageBody.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_MessageBody
--- a/web/lib/Zend/Amf/Value/MessageHeader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/MessageHeader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MessageHeader.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MessageHeader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_MessageHeader
--- a/web/lib/Zend/Amf/Value/Messaging/AbstractMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/AbstractMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AbstractMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AbstractMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_AbstractMessage
--- a/web/lib/Zend/Amf/Value/Messaging/AcknowledgeMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/AcknowledgeMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AcknowledgeMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AcknowledgeMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Value_Messaging_AsyncMessage */
@@ -32,7 +32,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_AcknowledgeMessage extends Zend_Amf_Value_Messaging_AsyncMessage
--- a/web/lib/Zend/Amf/Value/Messaging/ArrayCollection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/ArrayCollection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ArrayCollection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ArrayCollection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,9 +27,9 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Amf_Value_Messaging_ArrayCollection
+class Zend_Amf_Value_Messaging_ArrayCollection extends ArrayObject
{
}
--- a/web/lib/Zend/Amf/Value/Messaging/AsyncMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/AsyncMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AsyncMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AsyncMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_AsyncMessage extends Zend_Amf_Value_Messaging_AbstractMessage
--- a/web/lib/Zend/Amf/Value/Messaging/CommandMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/CommandMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommandMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommandMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_CommandMessage extends Zend_Amf_Value_Messaging_AsyncMessage
--- a/web/lib/Zend/Amf/Value/Messaging/ErrorMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/ErrorMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ErrorMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ErrorMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Amf_Value_Messaging_AcknowledgeMessage */
@@ -30,7 +30,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_ErrorMessage extends Zend_Amf_Value_Messaging_AcknowledgeMessage
--- a/web/lib/Zend/Amf/Value/Messaging/RemotingMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/Messaging/RemotingMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemotingMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RemotingMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Amf_Value_Messaging_AbstractMessage */
@@ -31,7 +31,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_Messaging_RemotingMessage extends Zend_Amf_Value_Messaging_AbstractMessage
--- a/web/lib/Zend/Amf/Value/TraitsInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Amf/Value/TraitsInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TraitsInfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TraitsInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @package Zend_Amf
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Amf_Value_TraitsInfo
--- a/web/lib/Zend/Application.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Application
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Application.php 23163 2010-10-19 16:30:26Z matthew $
+ * @version $Id: Application.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Application
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application
@@ -376,9 +376,12 @@
protected function _loadConfig($file)
{
$environment = $this->getEnvironment();
- $suffix = strtolower(pathinfo($file, PATHINFO_EXTENSION));
+ $suffix = pathinfo($file, PATHINFO_EXTENSION);
+ $suffix = ($suffix === 'dist')
+ ? pathinfo(basename($file, ".$suffix"), PATHINFO_EXTENSION)
+ : $suffix;
- switch ($suffix) {
+ switch (strtolower($suffix)) {
case 'ini':
$config = new Zend_Config_Ini($file, $environment);
break;
@@ -392,6 +395,7 @@
break;
case 'yaml':
+ case 'yml':
$config = new Zend_Config_Yaml($file, $environment);
break;
--- a/web/lib/Zend/Application/Bootstrap/Bootstrap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Bootstrap/Bootstrap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Bootstrap.php 20885 2010-02-03 19:33:59Z matthew $
+ * @version $Id: Bootstrap.php 25073 2012-11-06 19:31:53Z rob $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Bootstrap_Bootstrap
@@ -120,7 +120,7 @@
public function getResourceLoader()
{
if ((null === $this->_resourceLoader)
- && (false !== ($namespace = $this->getAppNamespace()))
+ && (false != ($namespace = $this->getAppNamespace()))
) {
$r = new ReflectionClass($this);
$path = $r->getFileName();
--- a/web/lib/Zend/Application/Bootstrap/BootstrapAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Bootstrap/BootstrapAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BootstrapAbstract.php 23278 2010-10-30 12:50:21Z ramon $
+ * @version $Id: BootstrapAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Application_Bootstrap_BootstrapAbstract
@@ -352,7 +352,9 @@
continue;
}
- if (class_exists($plugin)) { //@SEE ZF-7550
+ if (class_exists($plugin)
+ && is_subclass_of($plugin, 'Zend_Application_Resource_Resource')
+ ) { //@SEE ZF-7550
$spec = (array) $spec;
$spec['bootstrap'] = $this;
$instance = new $plugin($spec);
@@ -414,7 +416,8 @@
{
if ($this->_pluginLoader === null) {
$options = array(
- 'Zend_Application_Resource' => 'Zend/Application/Resource'
+ 'Zend_Application_Resource' => 'Zend/Application/Resource',
+ 'ZendX_Application_Resource' => 'ZendX/Application/Resource'
);
$this->_pluginLoader = new Zend_Loader_PluginLoader($options);
--- a/web/lib/Zend/Application/Bootstrap/Bootstrapper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Bootstrap/Bootstrapper.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Bootstrapper.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Bootstrapper.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Application_Bootstrap_Bootstrapper
--- a/web/lib/Zend/Application/Bootstrap/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Bootstrap/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Application
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Application
* @uses Zend_Application_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Bootstrap_Exception extends Zend_Application_Exception
--- a/web/lib/Zend/Application/Bootstrap/ResourceBootstrapper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Bootstrap/ResourceBootstrapper.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResourceBootstrapper.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResourceBootstrapper.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Bootstrap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Application_Bootstrap_ResourceBootstrapper
--- a/web/lib/Zend/Application/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Application
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -30,7 +30,7 @@
* @uses Zend_Exception
* @category Zend
* @package Zend_Application
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Exception extends Zend_Exception
--- a/web/lib/Zend/Application/Module/Autoloader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Module/Autoloader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Application
* @subpackage Module
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Autoloader.php 20250 2010-01-12 22:15:20Z dasprid $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Autoloader.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Module
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Module_Autoloader extends Zend_Loader_Autoloader_Resource
--- a/web/lib/Zend/Application/Module/Bootstrap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Module/Bootstrap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Application
* @subpackage Module
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Bootstrap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Bootstrap.php 25024 2012-07-30 15:08:15Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Module
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Application_Module_Bootstrap
@@ -97,9 +97,9 @@
/**
* Get default application namespace
*
- * Proxies to {@link getModuleName()}, and returns the current module
+ * Proxies to {@link getModuleName()}, and returns the current module
* name
- *
+ *
* @return string
*/
public function getAppNamespace()
--- a/web/lib/Zend/Application/Resource/Cachemanager.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Cachemanager.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cachemanager.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Cachemanager.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Application/Resource/ResourceAbstract.php';
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Cachemanager extends Zend_Application_Resource_ResourceAbstract
@@ -57,7 +57,7 @@
{
if (null === $this->_manager) {
$this->_manager = new Zend_Cache_Manager;
-
+
$options = $this->getOptions();
foreach ($options as $key => $value) {
if ($this->_manager->hasCacheTemplate($key)) {
@@ -67,7 +67,7 @@
}
}
}
-
+
return $this->_manager;
}
}
--- a/web/lib/Zend/Application/Resource/Db.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Db.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db.php 22544 2010-07-10 15:01:37Z freak $
+ * @version $Id: Db.php 25123 2012-11-14 18:27:44Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Db extends Zend_Application_Resource_ResourceAbstract
@@ -45,7 +45,7 @@
protected $_adapter = null;
/**
- * @var Zend_Db_Adapter_Interface
+ * @var Zend_Db_Adapter_Abstract
*/
protected $_db;
@@ -66,7 +66,7 @@
/**
* Set the adapter
*
- * @param $adapter string
+ * @param string $adapter
* @return Zend_Application_Resource_Db
*/
public function setAdapter($adapter)
@@ -88,7 +88,7 @@
/**
* Set the adapter params
*
- * @param $adapter string
+ * @param string $adapter
* @return Zend_Application_Resource_Db
*/
public function setParams(array $params)
@@ -132,7 +132,7 @@
/**
* Retrieve initialized DB connection
*
- * @return null|Zend_Db_Adapter_Interface
+ * @return null|Zend_Db_Adapter_Abstract
*/
public function getDbAdapter()
{
@@ -140,6 +140,12 @@
&& (null !== ($adapter = $this->getAdapter()))
) {
$this->_db = Zend_Db::factory($adapter, $this->getParams());
+
+ if ($this->_db instanceof Zend_Db_Adapter_Abstract
+ && $this->isDefaultTableAdapter()
+ ) {
+ Zend_Db_Table::setDefaultAdapter($this->_db);
+ }
}
return $this->_db;
}
@@ -152,16 +158,13 @@
public function init()
{
if (null !== ($db = $this->getDbAdapter())) {
- if ($this->isDefaultTableAdapter()) {
- Zend_Db_Table::setDefaultAdapter($db);
- }
return $db;
}
}
/**
* Set the default metadata cache
- *
+ *
* @param string|Zend_Cache_Core $cache
* @return Zend_Application_Resource_Db
*/
--- a/web/lib/Zend/Application/Resource/Dojo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Dojo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dojo.php 21318 2010-03-04 13:20:01Z freak $
+ * @version $Id: Dojo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Dojo
--- a/web/lib/Zend/Application/Resource/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 22609 2010-07-17 08:47:59Z torio $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Exception extends Zend_Application_Exception
--- a/web/lib/Zend/Application/Resource/Frontcontroller.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Frontcontroller.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Frontcontroller.php 23378 2010-11-18 21:48:27Z bittarman $
+ * @version $Id: Frontcontroller.php 24798 2012-05-12 19:17:41Z adamlundrigan $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Frontcontroller extends Zend_Application_Resource_ResourceAbstract
@@ -101,9 +101,9 @@
case 'plugins':
foreach ((array) $value as $pluginClass) {
- $stackIndex = null;
- if(is_array($pluginClass)) {
- $pluginClass = array_change_key_case($pluginClass, CASE_LOWER);
+ $stackIndex = null;
+ if(is_array($pluginClass)) {
+ $pluginClass = array_change_key_case($pluginClass, CASE_LOWER);
if(isset($pluginClass['class']))
{
if(isset($pluginClass['stackindex'])) {
@@ -135,6 +135,22 @@
}
break;
+ case 'dispatcher':
+ if(!isset($value['class'])) {
+ require_once 'Zend/Application/Exception.php';
+ throw new Zend_Application_Exception('You must specify both ');
+ }
+ if (!isset($value['params'])) {
+ $value['params'] = array();
+ }
+
+ $dispatchClass = $value['class'];
+ if(!class_exists($dispatchClass)) {
+ require_once 'Zend/Application/Exception.php';
+ throw new Zend_Application_Exception('Dispatcher class not found!');
+ }
+ $front->setDispatcher(new $dispatchClass((array)$value['params']));
+ break;
default:
$front->setParam($key, $value);
break;
--- a/web/lib/Zend/Application/Resource/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Layout.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Layout.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Layout
--- a/web/lib/Zend/Application/Resource/Locale.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Locale.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Locale.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Locale.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Locale
@@ -56,7 +56,6 @@
return $this->getLocale();
}
-
/**
* Retrieve locale object
*
@@ -66,7 +65,8 @@
{
if (null === $this->_locale) {
$options = $this->getOptions();
- if(!isset($options['default'])) {
+
+ if (!isset($options['default'])) {
$this->_locale = new Zend_Locale();
} elseif(!isset($options['force']) ||
(bool) $options['force'] == false)
@@ -86,4 +86,32 @@
return $this->_locale;
}
+
+ /**
+ * Set the cache
+ *
+ * @param string|Zend_Cache_Core $cache
+ * @return Zend_Application_Resource_Locale
+ */
+ public function setCache($cache)
+ {
+ if (is_string($cache)) {
+ $bootstrap = $this->getBootstrap();
+ if ($bootstrap instanceof Zend_Application_Bootstrap_ResourceBootstrapper
+ && $bootstrap->hasPluginResource('CacheManager')
+ ) {
+ $cacheManager = $bootstrap->bootstrap('CacheManager')
+ ->getResource('CacheManager');
+ if (null !== $cacheManager && $cacheManager->hasCache($cache)) {
+ $cache = $cacheManager->getCache($cache);
+ }
+ }
+ }
+
+ if ($cache instanceof Zend_Cache_Core) {
+ Zend_Locale::setCache($cache);
+ }
+
+ return $this;
+ }
}
--- a/web/lib/Zend/Application/Resource/Log.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Log.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Log.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Log.php 24607 2012-01-16 16:45:49Z xerkus $
*/
/**
@@ -27,13 +27,13 @@
/**
- * Resource for initializing the locale
+ * Resource for initializing logger
*
* @uses Zend_Application_Resource_ResourceAbstract
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Log
@@ -56,8 +56,8 @@
/**
* Attach logger
- *
- * @param Zend_Log $log
+ *
+ * @param Zend_Log $log
* @return Zend_Application_Resource_Log
*/
public function setLog(Zend_Log $log)
@@ -66,6 +66,11 @@
return $this;
}
+ /**
+ * Retrieve logger object
+ *
+ * @return Zend_Log
+ */
public function getLog()
{
if (null === $this->_log) {
--- a/web/lib/Zend/Application/Resource/Mail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Mail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mail.php 21015 2010-02-11 01:56:02Z freak $
+ * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Mail extends Zend_Application_Resource_ResourceAbstract
@@ -46,7 +46,7 @@
public function init() {
return $this->getMail();
}
-
+
/**
*
* @return Zend_Mail_Transport_Abstract|null
@@ -56,7 +56,7 @@
if (null === $this->_transport) {
$options = $this->getOptions();
foreach($options as $key => $option) {
- $options[strtolower($key)] = $option;
+ $options[strtolower($key)] = $option;
}
$this->setOptions($options);
@@ -73,14 +73,14 @@
Zend_Mail::setDefaultTransport($this->_transport);
}
}
-
+
$this->_setDefaults('from');
$this->_setDefaults('replyTo');
}
return $this->_transport;
}
-
+
protected function _setDefaults($type) {
$key = strtolower('default' . $type);
$options = $this->getOptions();
@@ -99,13 +99,13 @@
}
}
}
-
+
protected function _setupTransport($options)
{
- if(!isset($options['type'])) {
- $options['type'] = 'sendmail';
- }
-
+ if(!isset($options['type'])) {
+ $options['type'] = 'sendmail';
+ }
+
$transportName = $options['type'];
if(!Zend_Loader_Autoloader::autoload($transportName))
{
@@ -122,9 +122,10 @@
}
}
}
-
+
unset($options['type']);
-
+ unset($options['register']); //@see ZF-11022
+
switch($transportName) {
case 'Zend_Mail_Transport_Smtp':
if(!isset($options['host'])) {
@@ -132,7 +133,7 @@
'A host is necessary for smtp transport,'
.' but none was given');
}
-
+
$transport = new $transportName($options['host'], $options);
break;
case 'Zend_Mail_Transport_Sendmail':
--- a/web/lib/Zend/Application/Resource/Modules.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Modules.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Modules.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Modules.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Modules extends Zend_Application_Resource_ResourceAbstract
@@ -62,6 +62,7 @@
*/
public function init()
{
+ $bootstraps = array();
$bootstrap = $this->getBootstrap();
$bootstrap->bootstrap('FrontController');
$front = $bootstrap->getResource('FrontController');
@@ -103,12 +104,28 @@
continue;
}
+ $bootstraps[$module] = $bootstrapClass;
+ }
+
+ return $this->_bootstraps = $this->bootstrapBootstraps($bootstraps);
+ }
+
+ /*
+ * Bootstraps the bootstraps found. Allows for easy extension.
+ * @param array $bootstraps Array containing the bootstraps to instantiate
+ */
+ protected function bootstrapBootstraps($bootstraps)
+ {
+ $bootstrap = $this->getBootstrap();
+ $out = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
+
+ foreach($bootstraps as $module => $bootstrapClass) {
$moduleBootstrap = new $bootstrapClass($bootstrap);
$moduleBootstrap->bootstrap();
- $this->_bootstraps[$module] = $moduleBootstrap;
+ $out[$module] = $moduleBootstrap;
}
- return $this->_bootstraps;
+ return $out;
}
/**
--- a/web/lib/Zend/Application/Resource/Multidb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Multidb.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Multidb.php 22546 2010-07-10 15:18:12Z freak $
+ * @version $Id: Multidb.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Application/Resource/ResourceAbstract.php';
@@ -51,7 +51,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Multidb extends Zend_Application_Resource_ResourceAbstract
@@ -85,7 +85,7 @@
}
foreach ($options as $id => $params) {
- $adapter = $params['adapter'];
+ $adapter = $params['adapter'];
$default = (int) (
isset($params['isDefaultTableAdapter']) && $params['isDefaultTableAdapter']
|| isset($params['default']) && $params['default']
@@ -178,7 +178,7 @@
/**
* Set the default metadata cache
- *
+ *
* @param string|Zend_Cache_Core $cache
* @return Zend_Application_Resource_Multidb
*/
--- a/web/lib/Zend/Application/Resource/Navigation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Navigation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Navigation.php 22882 2010-08-22 14:00:16Z freak $
+ * @version $Id: Navigation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Dolf Schimmel
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -56,12 +56,13 @@
{
if (!$this->_container) {
$options = $this->getOptions();
- $pages = isset($options['pages']) ? $options['pages'] : array();
- $this->_container = new Zend_Navigation($pages);
-
+
if(isset($options['defaultPageType'])) {
Zend_Navigation_Page::setDefaultPageType($options['defaultPageType']);
}
+
+ $pages = isset($options['pages']) ? $options['pages'] : array();
+ $this->_container = new Zend_Navigation($pages);
}
$this->store();
--- a/web/lib/Zend/Application/Resource/Resource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Resource.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Resource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Application_Resource_Resource
--- a/web/lib/Zend/Application/Resource/ResourceAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/ResourceAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResourceAbstract.php 23384 2010-11-19 00:00:29Z ramon $
+ * @version $Id: ResourceAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Application_Resource_ResourceAbstract implements Zend_Application_Resource_Resource
--- a/web/lib/Zend/Application/Resource/Router.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Router.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Router.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Router.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Router
--- a/web/lib/Zend/Application/Resource/Session.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Session.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Session.php 20814 2010-02-01 20:13:08Z freak $
+ * @version $Id: Session.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Session extends Zend_Application_Resource_ResourceAbstract
@@ -50,7 +50,7 @@
*
* @param array|string|Zend_Session_SaveHandler_Interface $saveHandler
* @return Zend_Application_Resource_Session
- * @throws Zend_Application_Resource_Exception When $saveHandler is no valid save handler
+ * @throws Zend_Application_Resource_Exception When $saveHandler is not a valid save handler
*/
public function setSaveHandler($saveHandler)
{
--- a/web/lib/Zend/Application/Resource/Translate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Translate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Translate.php 22968 2010-09-18 19:50:02Z intiilapa $
+ * @version $Id: Translate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_Translate extends Zend_Application_Resource_ResourceAbstract
--- a/web/lib/Zend/Application/Resource/Useragent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/Useragent.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,72 +1,72 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Application
- * @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * @category Zend
- * @package Zend_Application
- * @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Application_Resource_UserAgent extends Zend_Application_Resource_ResourceAbstract
-{
- /**
- * @var Zend_Http_UserAgent
- */
- protected $_userAgent;
-
- /**
- * Intialize resource
- *
- * @return Zend_Http_UserAgent
- */
- public function init()
- {
- $userAgent = $this->getUserAgent();
-
- // Optionally seed the UserAgent view helper
- $bootstrap = $this->getBootstrap();
- if ($bootstrap->hasResource('view') || $bootstrap->hasPluginResource('view')) {
- $bootstrap->bootstrap('view');
- $view = $bootstrap->getResource('view');
- if (null !== $view) {
- $view->userAgent($userAgent);
- }
- }
-
- return $userAgent;
- }
-
- /**
- * Get UserAgent instance
- *
- * @return Zend_Http_UserAgent
- */
- public function getUserAgent()
- {
- if (null === $this->_userAgent) {
- $options = $this->getOptions();
- $this->_userAgent = new Zend_Http_UserAgent($options);
- }
-
- return $this->_userAgent;
- }
-}
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Application
+ * @subpackage Resource
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * @category Zend
+ * @package Zend_Application
+ * @subpackage Resource
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Application_Resource_UserAgent extends Zend_Application_Resource_ResourceAbstract
+{
+ /**
+ * @var Zend_Http_UserAgent
+ */
+ protected $_userAgent;
+
+ /**
+ * Intialize resource
+ *
+ * @return Zend_Http_UserAgent
+ */
+ public function init()
+ {
+ $userAgent = $this->getUserAgent();
+
+ // Optionally seed the UserAgent view helper
+ $bootstrap = $this->getBootstrap();
+ if ($bootstrap->hasResource('view') || $bootstrap->hasPluginResource('view')) {
+ $bootstrap->bootstrap('view');
+ $view = $bootstrap->getResource('view');
+ if (null !== $view) {
+ $view->userAgent($userAgent);
+ }
+ }
+
+ return $userAgent;
+ }
+
+ /**
+ * Get UserAgent instance
+ *
+ * @return Zend_Http_UserAgent
+ */
+ public function getUserAgent()
+ {
+ if (null === $this->_userAgent) {
+ $options = $this->getOptions();
+ $this->_userAgent = new Zend_Http_UserAgent($options);
+ }
+
+ return $this->_userAgent;
+ }
+}
--- a/web/lib/Zend/Application/Resource/View.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Application/Resource/View.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: View.php 22965 2010-09-18 17:45:51Z intiilapa $
+ * @version $Id: View.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Application
* @subpackage Resource
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Application_Resource_View extends Zend_Application_Resource_ResourceAbstract
@@ -52,9 +52,8 @@
{
$view = $this->getView();
- $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer();
+ $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setView($view);
- Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
return $view;
}
@@ -78,6 +77,9 @@
if (isset($options['contentType'])) {
$this->_view->headMeta()->appendHttpEquiv('Content-Type', $options['contentType']);
}
+ if (isset($options['assign']) && is_array($options['assign'])) {
+ $this->_view->assign($options['assign']);
+ }
}
return $this->_view;
}
--- a/web/lib/Zend/Auth.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Auth.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Auth.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth
--- a/web/lib/Zend/Auth/Adapter/DbTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/DbTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTable.php 22613 2010-07-17 13:43:22Z dragonbe $
+ * @version $Id: DbTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_DbTable implements Zend_Auth_Adapter_Interface
@@ -114,12 +114,12 @@
* @var array
*/
protected $_resultRow = null;
-
+
/**
- * $_ambiguityIdentity - Flag to indicate same Identity can be used with
+ * $_ambiguityIdentity - Flag to indicate same Identity can be used with
* different credentials. Default is FALSE and need to be set to true to
* allow ambiguity usage.
- *
+ *
* @var boolean
*/
protected $_ambiguityIdentity = false;
@@ -159,7 +159,7 @@
/**
* _setDbAdapter() - set the database adapter to be used for quering
*
- * @param Zend_Db_Adapter_Abstract
+ * @param Zend_Db_Adapter_Abstract
* @throws Zend_Auth_Adapter_Exception
* @return Zend_Auth_Adapter_DbTable
*/
@@ -178,7 +178,7 @@
throw new Zend_Auth_Adapter_Exception('No database adapter present');
}
}
-
+
return $this;
}
@@ -265,12 +265,12 @@
$this->_credential = $credential;
return $this;
}
-
+
/**
* setAmbiguityIdentity() - sets a flag for usage of identical identities
* with unique credentials. It accepts integers (0, 1) or boolean (true,
* false) parameters. Default is false.
- *
+ *
* @param int|bool $flag
* @return Zend_Auth_Adapter_DbTable
*/
@@ -284,9 +284,9 @@
return $this;
}
/**
- * getAmbiguityIdentity() - returns TRUE for usage of multiple identical
+ * getAmbiguityIdentity() - returns TRUE for usage of multiple identical
* identies with different credentials, FALSE if not used.
- *
+ *
* @return bool
*/
public function getAmbiguityIdentity()
@@ -367,7 +367,7 @@
$this->_authenticateSetup();
$dbSelect = $this->_authenticateCreateSelect();
$resultIdentities = $this->_authenticateQuerySelect($dbSelect);
-
+
if ( ($authResult = $this->_authenticateValidateResultSet($resultIdentities)) instanceof Zend_Auth_Result) {
return $authResult;
}
@@ -382,7 +382,7 @@
}
$resultIdentities = $validIdentities;
}
-
+
$authResult = $this->_authenticateValidateResult(array_shift($resultIdentities));
return $authResult;
}
@@ -477,7 +477,7 @@
$origDbFetchMode = $this->_zendDb->getFetchMode();
$this->_zendDb->setFetchMode(Zend_DB::FETCH_ASSOC);
}
- $resultIdentities = $this->_zendDb->fetchAll($dbSelect->__toString());
+ $resultIdentities = $this->_zendDb->fetchAll($dbSelect);
if (isset($origDbFetchMode)) {
$this->_zendDb->setFetchMode($origDbFetchMode);
unset($origDbFetchMode);
--- a/web/lib/Zend/Auth/Adapter/Digest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Digest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Digest.php 23088 2010-10-11 19:53:24Z padraic $
+ * @version $Id: Digest.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_Digest implements Zend_Auth_Adapter_Interface
@@ -227,7 +227,7 @@
$result['messages'][] = "Username '$this->_username' and realm '$this->_realm' combination not found";
return new Zend_Auth_Result($result['code'], $result['identity'], $result['messages']);
}
-
+
/**
* Securely compare two strings for equality while avoided C level memcmp()
* optimisations capable of leaking timing information useful to an attacker
--- a/web/lib/Zend/Auth/Adapter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_Exception extends Zend_Auth_Exception
--- a/web/lib/Zend/Auth/Adapter/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 23088 2010-10-11 19:53:24Z padraic $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @todo Support auth-int
* @todo Track nonces, nonce-count, opaque for replay protection and stale support
@@ -844,7 +844,7 @@
return $data;
}
-
+
/**
* Securely compare two strings for equality while avoided C level memcmp()
* optimisations capable of leaking timing information useful to an attacker
--- a/web/lib/Zend/Auth/Adapter/Http/Resolver/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Http/Resolver/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_Http_Resolver_Exception extends Zend_Auth_Exception
--- a/web/lib/Zend/Auth/Adapter/Http/Resolver/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Http/Resolver/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_Http_Resolver_File implements Zend_Auth_Adapter_Http_Resolver_Interface
--- a/web/lib/Zend/Auth/Adapter/Http/Resolver/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Http/Resolver/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Auth_Adapter_Http_Resolver_Interface
--- a/web/lib/Zend/Auth/Adapter/InfoCard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/InfoCard.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InfoCard.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InfoCard.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_InfoCard implements Zend_Auth_Adapter_Interface
--- a/web/lib/Zend/Auth/Adapter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Auth_Adapter_Interface
--- a/web/lib/Zend/Auth/Adapter/Ldap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/Ldap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ldap.php 21319 2010-03-04 16:02:16Z sgehrig $
+ * @version $Id: Ldap.php 24618 2012-02-03 08:32:06Z sgehrig $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_Ldap implements Zend_Auth_Adapter_Interface
@@ -335,8 +335,8 @@
$messages[1] = '';
$messages[] = "$canonicalName authentication successful";
if ($requireRebind === true) {
- // rebinding with authenticated user
- $ldap->bind($dn, $password);
+ // rebinding with authenticated user
+ $ldap->bind($dn, $password);
}
return new Zend_Auth_Result(Zend_Auth_Result::SUCCESS, $canonicalName, $messages);
} else {
@@ -371,7 +371,11 @@
} else {
$line = $zle->getLine();
$messages[] = $zle->getFile() . "($line): " . $zle->getMessage();
- $messages[] = str_replace($password, '*****', $zle->getTraceAsString());
+ $messages[] = preg_replace(
+ '/\b'.preg_quote(substr($password, 0, 15), '/').'\b/',
+ '*****',
+ $zle->getTraceAsString()
+ );
$messages[0] = 'An unexpected failure occurred';
}
$messages[1] = $zle->getMessage();
@@ -488,7 +492,9 @@
$returnObject = new stdClass();
- $omitAttribs = array_map('strtolower', $omitAttribs);
+ $returnAttribs = array_map('strtolower', $returnAttribs);
+ $omitAttribs = array_map('strtolower', $omitAttribs);
+ $returnAttribs = array_diff($returnAttribs, $omitAttribs);
$entry = $this->getLdap()->getEntry($this->_authenticatedDn, $returnAttribs, true);
foreach ($entry as $attr => $value) {
--- a/web/lib/Zend/Auth/Adapter/OpenId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Adapter/OpenId.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenId.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Zend_Auth_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Adapter_OpenId implements Zend_Auth_Adapter_Interface
--- a/web/lib/Zend/Auth/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Exception extends Zend_Exception
--- a/web/lib/Zend/Auth/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Auth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Result
--- a/web/lib/Zend/Auth/Storage/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Storage/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Storage_Exception extends Zend_Auth_Exception
--- a/web/lib/Zend/Auth/Storage/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Storage/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Auth_Storage_Interface
--- a/web/lib/Zend/Auth/Storage/NonPersistent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Storage/NonPersistent.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NonPersistent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NonPersistent.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Storage_NonPersistent implements Zend_Auth_Storage_Interface
--- a/web/lib/Zend/Auth/Storage/Session.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Auth/Storage/Session.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Session.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Session.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Auth
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Auth_Storage_Session implements Zend_Auth_Storage_Interface
--- a/web/lib/Zend/Barcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Barcode.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Barcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode
@@ -55,10 +55,10 @@
* @throws Zend_Barcode_Exception
*/
public static function factory(
- $barcode,
- $renderer = 'image',
- $barcodeConfig = array(),
- $rendererConfig = array(),
+ $barcode,
+ $renderer = 'image',
+ $barcodeConfig = array(),
+ $rendererConfig = array(),
$automaticRenderError = true
) {
/*
@@ -313,9 +313,9 @@
* @param array | Zend_Config $rendererConfig
*/
public static function render(
- $barcode,
- $renderer,
- $barcodeConfig = array(),
+ $barcode,
+ $renderer,
+ $barcodeConfig = array(),
$rendererConfig = array()
) {
self::factory($barcode, $renderer, $barcodeConfig, $rendererConfig)->render();
@@ -331,9 +331,9 @@
* @return mixed
*/
public static function draw(
- $barcode,
- $renderer,
- $barcodeConfig = array(),
+ $barcode,
+ $renderer,
+ $barcodeConfig = array(),
$rendererConfig = array()
) {
return self::factory($barcode, $renderer, $barcodeConfig, $rendererConfig)->draw();
--- a/web/lib/Zend/Barcode/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 22999 2010-09-23 19:43:14Z mikaelkael $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* Zend_Exception
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Exception extends Zend_Exception
--- a/web/lib/Zend/Barcode/Object/Code128.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Code128.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Code25.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Code128 extends Zend_Barcode_Object_ObjectAbstract
@@ -48,9 +48,9 @@
protected $_withChecksum = true;
/**
- * @var array
- */
- protected $_convertedText = array();
+ * @var array
+ */
+ protected $_convertedText = array();
protected $_codingMap = array(
0 => "11011001100", 1 => "11001101100", 2 => "11001100110",
@@ -192,7 +192,7 @@
$characterLength = 11 * $this->_barThinWidth * $this->_factor;
$convertedChars = count($this->_convertToBarcodeChars($this->getText()));
if ($this->_withChecksum) {
- $convertedChars++;
+ $convertedChars++;
}
$encodedData = $convertedChars * $characterLength;
// ...except the STOP character (13)
@@ -220,7 +220,7 @@
$convertedChars = $this->_convertToBarcodeChars($this->getText());
if ($this->_withChecksum) {
- $convertedChars[] = $this->getChecksum($this->getText());
+ $convertedChars[] = $this->getChecksum($this->getText());
}
// STOP CHARACTER
@@ -229,7 +229,7 @@
foreach ($convertedChars as $barcodeChar) {
$barcodePattern = $this->_codingMap[$barcodeChar];
foreach (str_split($barcodePattern) as $c) {
- $barcodeTable[] = array($c, 1, 0, 1);
+ $barcodeTable[] = array($c, $this->_barThinWidth, 0, 1);
}
}
return $barcodeTable;
@@ -238,24 +238,24 @@
/**
* Checks if the next $length chars of $string starting at $pos are numeric.
* Returns false if the end of the string is reached.
- * @param $string String to search
- * @param $pos Starting position
- * @param $length Length to search
+ * @param string $string String to search
+ * @param int $pos Starting position
+ * @param int $length Length to search
* @return bool
*/
protected static function _isDigit($string, $pos, $length = 2)
{
- if ($pos + $length > strlen($string)) {
- return false;
- }
+ if ($pos + $length > strlen($string)) {
+ return false;
+ }
- for ($i = $pos; $i < $pos + $length; $i++) {
- if (!is_numeric($string[$i])) {
- return false;
- }
- }
- return true;
- }
+ for ($i = $pos; $i < $pos + $length; $i++) {
+ if (!is_numeric($string[$i])) {
+ return false;
+ }
+ }
+ return true;
+ }
/**
* Convert string to barcode string
@@ -263,14 +263,14 @@
*/
protected function _convertToBarcodeChars($string)
{
- $string = (string) $string;
- if (!strlen($string)) {
- return array();
- }
+ $string = (string) $string;
+ if (!strlen($string)) {
+ return array();
+ }
- if (isset($this->_convertedText[md5($string)])) {
- return $this->_convertedText[md5($string)];
- }
+ if (isset($this->_convertedText[md5($string)])) {
+ return $this->_convertedText[md5($string)];
+ }
$currentCharset = null;
$sum = 0;
@@ -363,17 +363,17 @@
*/
public function getChecksum($text)
{
- $tableOfChars = $this->_convertToBarcodeChars($text);
+ $tableOfChars = $this->_convertToBarcodeChars($text);
- $sum = $tableOfChars[0];
- unset($tableOfChars[0]);
+ $sum = $tableOfChars[0];
+ unset($tableOfChars[0]);
- $k = 1;
- foreach ($tableOfChars as $char) {
- $sum += ($k++) * $char;
- }
+ $k = 1;
+ foreach ($tableOfChars as $char) {
+ $sum += ($k++) * $char;
+ }
- $checksum = $sum % 103;
+ $checksum = $sum % 103;
return $checksum;
}
@@ -385,7 +385,7 @@
*/
protected function _validateText($value, $options = array())
{
- // @TODO: add code128 validator
- return true;
+ // @TODO: add code128 validator
+ return true;
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/Barcode/Object/Code25.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Code25.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code25.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Code25.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Code25 extends Zend_Barcode_Object_ObjectAbstract
@@ -97,7 +97,7 @@
$barcodeTable[] = array(1 , $this->_barThickWidth , 0 , 1);
$barcodeTable[] = array(0 , $this->_barThinWidth , 0 , 1);
$barcodeTable[] = array(1 , $this->_barThinWidth , 0 , 1);
- $barcodeTable[] = array(0 , 1);
+ $barcodeTable[] = array(0 , $this->_barThinWidth);
$text = str_split($this->getText());
foreach ($text as $char) {
@@ -106,7 +106,7 @@
/* visible, width, top, length */
$width = $c ? $this->_barThickWidth : $this->_barThinWidth;
$barcodeTable[] = array(1 , $width , 0 , 1);
- $barcodeTable[] = array(0 , 1);
+ $barcodeTable[] = array(0 , $this->_barThinWidth);
}
}
--- a/web/lib/Zend/Barcode/Object/Code25interleaved.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Code25interleaved.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code25interleaved.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Code25interleaved.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Object_Code25 */
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Code25interleaved extends Zend_Barcode_Object_Code25
--- a/web/lib/Zend/Barcode/Object/Code39.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Code39.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code39.php 23398 2010-11-19 17:17:05Z mikaelkael $
+ * @version $Id: Code39.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Code39 extends Zend_Barcode_Object_ObjectAbstract
@@ -163,7 +163,7 @@
$barcodeTable[] = array((int) $visible, $width, 0, 1);
$visible = ! $visible;
}
- $barcodeTable[] = array(0 , 1);
+ $barcodeTable[] = array(0 , $this->_barThinWidth);
}
return $barcodeTable;
}
--- a/web/lib/Zend/Barcode/Object/Ean13.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Ean13.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean13.php 22999 2010-09-23 19:43:14Z mikaelkael $
+ * @version $Id: Ean13.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Ean13 extends Zend_Barcode_Object_ObjectAbstract
--- a/web/lib/Zend/Barcode/Object/Ean2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Ean2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean2.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ean2.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Ean2 extends Zend_Barcode_Object_Ean5
--- a/web/lib/Zend/Barcode/Object/Ean5.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Ean5.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean5.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ean5.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Ean5 extends Zend_Barcode_Object_Ean13
--- a/web/lib/Zend/Barcode/Object/Ean8.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Ean8.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean8.php 21667 2010-03-28 17:45:14Z mikaelkael $
+ * @version $Id: Ean8.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Ean8 extends Zend_Barcode_Object_Ean13
--- a/web/lib/Zend/Barcode/Object/Error.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Error.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Error.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Error.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Object_ObjectAbstract */
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Error extends Zend_Barcode_Object_ObjectAbstract
--- a/web/lib/Zend/Barcode/Object/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Exception */
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Exception extends Zend_Barcode_Exception
--- a/web/lib/Zend/Barcode/Object/Identcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Identcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Identcode.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Identcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Identcode extends Zend_Barcode_Object_Code25interleaved
--- a/web/lib/Zend/Barcode/Object/Itf14.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Itf14.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Itf14.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Itf14.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Object_Code25interleaved */
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Itf14 extends Zend_Barcode_Object_Code25interleaved
--- a/web/lib/Zend/Barcode/Object/Leitcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Leitcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Leitcode.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Leitcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Leitcode extends Zend_Barcode_Object_Identcode
--- a/web/lib/Zend/Barcode/Object/ObjectAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/ObjectAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ObjectAbstract.php 23400 2010-11-19 17:18:31Z mikaelkael $
+ * @version $Id: ObjectAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Barcode_Object_ObjectAbstract
--- a/web/lib/Zend/Barcode/Object/Planet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Planet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Planet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Planet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Planet extends Zend_Barcode_Object_Postnet
--- a/web/lib/Zend/Barcode/Object/Postnet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Postnet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Postnet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Postnet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Postnet extends Zend_Barcode_Object_ObjectAbstract
--- a/web/lib/Zend/Barcode/Object/Royalmail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Royalmail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Royalmail.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Royalmail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Royalmail extends Zend_Barcode_Object_ObjectAbstract
--- a/web/lib/Zend/Barcode/Object/Upca.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Upca.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Upca.php 21667 2010-03-28 17:45:14Z mikaelkael $
+ * @version $Id: Upca.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Upca extends Zend_Barcode_Object_Ean13
--- a/web/lib/Zend/Barcode/Object/Upce.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Object/Upce.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Object
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Upce.php 21667 2010-03-28 17:45:14Z mikaelkael $
+ * @version $Id: Upce.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Object_Upce extends Zend_Barcode_Object_Ean13
--- a/web/lib/Zend/Barcode/Renderer/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Renderer/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Exception */
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Renderer_Exception extends Zend_Barcode_Exception
--- a/web/lib/Zend/Barcode/Renderer/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Renderer/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 22999 2010-09-23 19:43:14Z mikaelkael $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Renderer_RendererAbstract*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Renderer_Image extends Zend_Barcode_Renderer_RendererAbstract
--- a/web/lib/Zend/Barcode/Renderer/Pdf.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Renderer/Pdf.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pdf.php 22418 2010-06-11 16:27:22Z mikaelkael $
+ * @version $Id: Pdf.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Barcode_Renderer_RendererAbstract */
@@ -37,7 +37,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Renderer_Pdf extends Zend_Barcode_Renderer_RendererAbstract
--- a/web/lib/Zend/Barcode/Renderer/RendererAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Renderer/RendererAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererAbstract.php 22999 2010-09-23 19:43:14Z mikaelkael $
+ * @version $Id: RendererAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Barcode_Renderer_RendererAbstract
--- a/web/lib/Zend/Barcode/Renderer/Svg.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Barcode/Renderer/Svg.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Barcode
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Image.php 20366 2010-01-18 03:56:52Z ralph $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Barcode
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Barcode_Renderer_Svg extends Zend_Barcode_Renderer_RendererAbstract
--- a/web/lib/Zend/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 23154 2010-10-18 17:41:06Z mabe $
+ * @version $Id: Cache.php 24656 2012-02-26 06:02:53Z adamlundrigan $
*/
/**
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Cache
@@ -41,14 +41,14 @@
* @var array
*/
public static $standardBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform',
- 'Xcache', 'TwoLevels', 'ZendServer_Disk', 'ZendServer_ShMem');
+ 'Xcache', 'TwoLevels', 'WinCache', 'ZendServer_Disk', 'ZendServer_ShMem');
/**
* Standard backends which implement the ExtendedInterface
*
* @var array
*/
- public static $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite');
+ public static $standardExtendedBackends = array('File', 'Apc', 'TwoLevels', 'Memcached', 'Libmemcached', 'Sqlite', 'WinCache');
/**
* Only for backward compatibility (may be removed in next major release)
@@ -64,7 +64,7 @@
* @var array
* @deprecated
*/
- public static $availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'TwoLevels');
+ public static $availableBackends = array('File', 'Sqlite', 'Memcached', 'Libmemcached', 'Apc', 'ZendPlatform', 'Xcache', 'WinCache', 'TwoLevels');
/**
* Consts for clean() method
@@ -133,7 +133,7 @@
require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
} else {
// we use a custom backend
- if (!preg_match('~^[\w]+$~D', $backend)) {
+ if (!preg_match('~^[\w\\\\]+$~D', $backend)) {
Zend_Cache::throwException("Invalid backend name [$backend]");
}
if (!$customBackendNaming) {
@@ -175,7 +175,7 @@
require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php';
} else {
// we use a custom frontend
- if (!preg_match('~^[\w]+$~D', $frontend)) {
+ if (!preg_match('~^[\w\\\\]+$~D', $frontend)) {
Zend_Cache::throwException("Invalid frontend name [$frontend]");
}
if (!$customFrontendNaming) {
--- a/web/lib/Zend/Cache/Backend.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Backend.php 20880 2010-02-03 18:18:32Z matthew $
+ * @version $Id: Backend.php 24989 2012-06-21 07:24:13Z mabe $
*/
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend
@@ -112,6 +112,28 @@
}
/**
+ * Returns an option
+ *
+ * @param string $name Optional, the options name to return
+ * @throws Zend_Cache_Exceptions
+ * @return mixed
+ */
+ public function getOption($name)
+ {
+ $name = strtolower($name);
+
+ if (array_key_exists($name, $this->_options)) {
+ return $this->_options[$name];
+ }
+
+ if (array_key_exists($name, $this->_directives)) {
+ return $this->_directives[$name];
+ }
+
+ Zend_Cache::throwException("Incorrect option name : {$name}");
+ }
+
+ /**
* Get the life time
*
* if $specificLifetime is not false, the given specific life time is used
@@ -154,7 +176,7 @@
$tmpdir = array();
foreach (array($_ENV, $_SERVER) as $tab) {
foreach (array('TMPDIR', 'TEMP', 'TMP', 'windir', 'SystemRoot') as $key) {
- if (isset($tab[$key])) {
+ if (isset($tab[$key]) && is_string($tab[$key])) {
if (($key == 'windir') or ($key == 'SystemRoot')) {
$dir = realpath($tab[$key] . '\\temp');
} else {
@@ -200,7 +222,7 @@
/**
* Verify if the given temporary directory is readable and writable
*
- * @param $dir temporary directory
+ * @param string $dir temporary directory
* @return boolean true if the directory is ok
*/
protected function _isGoodTmpDir($dir)
@@ -237,7 +259,9 @@
// Create a default logger to the standard output stream
require_once 'Zend/Log.php';
require_once 'Zend/Log/Writer/Stream.php';
+ require_once 'Zend/Log/Filter/Priority.php';
$logger = new Zend_Log(new Zend_Log_Writer_Stream('php://output'));
+ $logger->addFilter(new Zend_Log_Filter_Priority(Zend_Log::WARN, '<='));
$this->_directives['logger'] = $logger;
}
--- a/web/lib/Zend/Cache/Backend/Apc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Apc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Apc.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Apc.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Apc extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
--- a/web/lib/Zend/Cache/Backend/BlackHole.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/BlackHole.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BlackHole.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: BlackHole.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,11 +33,11 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Cache_Backend_BlackHole
- extends Zend_Cache_Backend
+class Zend_Cache_Backend_BlackHole
+ extends Zend_Cache_Backend
implements Zend_Cache_Backend_ExtendedInterface
{
/**
--- a/web/lib/Zend/Cache/Backend/ExtendedInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/ExtendedInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ExtendedInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ExtendedInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Cache_Backend_ExtendedInterface extends Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 21636 2010-03-24 17:10:23Z mabe $
+ * @version $Id: File.php 24844 2012-05-31 19:01:36Z rob $
*/
/**
@@ -34,7 +34,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_File extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
@@ -71,7 +71,11 @@
* for you. Maybe, 1 or 2 is a good start.
*
* =====> (int) hashed_directory_umask :
- * - Umask for hashed directory structure
+ * - deprecated
+ * - Permissions for hashed directory structure
+ *
+ * =====> (int) hashed_directory_perm :
+ * - Permissions for hashed directory structure
*
* =====> (string) file_name_prefix :
* - prefix for cache files
@@ -79,7 +83,11 @@
* (like /tmp) can cause disasters when cleaning the cache
*
* =====> (int) cache_file_umask :
- * - Umask for cache files
+ * - deprecated
+ * - Permissions for cache files
+ *
+ * =====> (int) cache_file_perm :
+ * - Permissions for cache files
*
* =====> (int) metatadatas_array_max_size :
* - max size for the metadatas array (don't change this value unless you
@@ -93,9 +101,9 @@
'read_control' => true,
'read_control_type' => 'crc32',
'hashed_directory_level' => 0,
- 'hashed_directory_umask' => 0700,
+ 'hashed_directory_perm' => 0700,
'file_name_prefix' => 'zend_cache',
- 'cache_file_umask' => 0600,
+ 'cache_file_perm' => 0600,
'metadatas_array_max_size' => 100
);
@@ -130,13 +138,29 @@
if ($this->_options['metadatas_array_max_size'] < 10) {
Zend_Cache::throwException('Invalid metadatas_array_max_size, must be > 10');
}
- if (isset($options['hashed_directory_umask']) && is_string($options['hashed_directory_umask'])) {
+
+ if (isset($options['hashed_directory_umask'])) {
+ // See #ZF-12047
+ trigger_error("'hashed_directory_umask' is deprecated -> please use 'hashed_directory_perm' instead", E_USER_NOTICE);
+ if (!isset($options['hashed_directory_perm'])) {
+ $options['hashed_directory_perm'] = $options['hashed_directory_umask'];
+ }
+ }
+ if (isset($options['hashed_directory_perm']) && is_string($options['hashed_directory_perm'])) {
// See #ZF-4422
- $this->_options['hashed_directory_umask'] = octdec($this->_options['hashed_directory_umask']);
+ $this->_options['hashed_directory_perm'] = octdec($this->_options['hashed_directory_perm']);
}
- if (isset($options['cache_file_umask']) && is_string($options['cache_file_umask'])) {
+
+ if (isset($options['cache_file_umask'])) {
+ // See #ZF-12047
+ trigger_error("'cache_file_umask' is deprecated -> please use 'cache_file_perm' instead", E_USER_NOTICE);
+ if (!isset($options['cache_file_perm'])) {
+ $options['cache_file_perm'] = $options['cache_file_umask'];
+ }
+ }
+ if (isset($options['cache_file_perm']) && is_string($options['cache_file_perm'])) {
// See #ZF-4422
- $this->_options['cache_file_umask'] = octdec($this->_options['cache_file_umask']);
+ $this->_options['cache_file_perm'] = octdec($this->_options['cache_file_perm']);
}
}
@@ -151,10 +175,10 @@
public function setCacheDir($value, $trailingSeparator = true)
{
if (!is_dir($value)) {
- Zend_Cache::throwException('cache_dir must be a directory');
+ Zend_Cache::throwException(sprintf('cache_dir "%s" must be a directory', $value));
}
if (!is_writable($value)) {
- Zend_Cache::throwException('cache_dir is not writable');
+ Zend_Cache::throwException(sprintf('cache_dir "%s" is not writable', $value));
}
if ($trailingSeparator) {
// add a trailing DIRECTORY_SEPARATOR if necessary
@@ -268,14 +292,15 @@
* Clean some cache records
*
* Available modes are :
- * 'all' (default) => remove all cache entries ($tags is not used)
- * 'old' => remove too old cache entries ($tags is not used)
- * 'matchingTag' => remove cache entries matching all given tags
- * ($tags can be an array of strings or a single string)
- * 'notMatchingTag' => remove cache entries not matching one of the given tags
- * ($tags can be an array of strings or a single string)
- * 'matchingAnyTag' => remove cache entries matching any given tags
- * ($tags can be an array of strings or a single string)
+ *
+ * Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used)
+ * Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used)
+ * Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags
+ * ($tags can be an array of strings or a single string)
+ * Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags}
+ * ($tags can be an array of strings or a single string)
+ * Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG => remove cache entries matching any given tags
+ * ($tags can be an array of strings or a single string)
*
* @param string $mode clean mode
* @param tags array $tags array of tags
@@ -722,8 +747,8 @@
if ((is_dir($file)) and ($this->_options['hashed_directory_level']>0)) {
// Recursive call
$result = $this->_clean($file . DIRECTORY_SEPARATOR, $mode, $tags) && $result;
- if ($mode=='all') {
- // if mode=='all', we try to drop the structure too
+ if ($mode == Zend_Cache::CLEANING_MODE_ALL) {
+ // we try to drop the structure too
@rmdir($file);
}
}
@@ -918,8 +943,8 @@
$partsArray = $this->_path($id, true);
foreach ($partsArray as $part) {
if (!is_dir($part)) {
- @mkdir($part, $this->_options['hashed_directory_umask']);
- @chmod($part, $this->_options['hashed_directory_umask']); // see #ZF-320 (this line is required in some configurations)
+ @mkdir($part, $this->_options['hashed_directory_perm']);
+ @chmod($part, $this->_options['hashed_directory_perm']); // see #ZF-320 (this line is required in some configurations)
}
}
return true;
@@ -987,7 +1012,7 @@
}
@fclose($f);
}
- @chmod($file, $this->_options['cache_file_umask']);
+ @chmod($file, $this->_options['cache_file_perm']);
return $result;
}
--- a/web/lib/Zend/Cache/Backend/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/Libmemcached.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Libmemcached.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Libmemcached.php 23220 2010-10-22 10:24:14Z mabe $
+ * @version $Id: Libmemcached.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Libmemcached extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
--- a/web/lib/Zend/Cache/Backend/Memcached.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Memcached.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Memcached.php 22207 2010-05-20 16:47:16Z mabe $
+ * @version $Id: Memcached.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Memcached extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
--- a/web/lib/Zend/Cache/Backend/Sqlite.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Sqlite.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sqlite.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sqlite.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Sqlite extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
@@ -530,7 +530,6 @@
$rand = rand(1, $this->_options['automatic_vacuum_factor']);
if ($rand == 1) {
$this->_query('VACUUM');
- @sqlite_close($this->_getConnection());
}
}
}
--- a/web/lib/Zend/Cache/Backend/Static.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Static.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Static.php 22950 2010-09-16 19:33:00Z mabe $
+ * @version $Id: Static.php 24989 2012-06-21 07:24:13Z mabe $
*/
/**
@@ -33,7 +33,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Static
@@ -99,17 +99,13 @@
*/
public function getOption($name)
{
+ $name = strtolower($name);
+
if ($name == 'tag_cache') {
return $this->getInnerCache();
- } else {
- if (in_array($name, $this->_options)) {
- return $this->_options[$name];
- }
- if ($name == 'lifetime') {
- return parent::getLifetime();
- }
- return null;
}
+
+ return parent::getOption($name);
}
/**
@@ -123,7 +119,7 @@
*/
public function load($id, $doNotTestCacheValidity = false)
{
- if (empty($id)) {
+ if (($id = (string)$id) === '') {
$id = $this->_detectId();
} else {
$id = $this->_decodeId($id);
@@ -136,7 +132,7 @@
}
$fileName = basename($id);
- if (empty($fileName)) {
+ if ($fileName === '') {
$fileName = $this->_options['index_filename'];
}
$pathName = $this->_options['public_dir'] . dirname($id);
@@ -163,7 +159,7 @@
}
$fileName = basename($id);
- if (empty($fileName)) {
+ if ($fileName === '') {
$fileName = $this->_options['index_filename'];
}
if ($this->_tagged === null && $tagged = $this->getInnerCache()->load(self::INNER_CACHE_NAME)) {
@@ -211,14 +207,14 @@
}
clearstatcache();
- if ($id === null || strlen($id) == 0) {
+ if (($id = (string)$id) === '') {
$id = $this->_detectId();
} else {
$id = $this->_decodeId($id);
}
$fileName = basename($id);
- if (empty($fileName)) {
+ if ($fileName === '') {
$fileName = $this->_options['index_filename'];
}
@@ -308,7 +304,7 @@
} else {
$extension = $this->_options['file_extension'];
}
- if (empty($fileName)) {
+ if ($fileName === '') {
$fileName = $this->_options['index_filename'];
}
$pathName = $this->_options['public_dir'] . dirname($id);
@@ -333,7 +329,7 @@
Zend_Cache::throwException('Invalid cache id: does not match expected public_dir path');
}
$fileName = basename($id);
- if (empty($fileName)) {
+ if ($fileName === '') {
$fileName = $this->_options['index_filename'];
}
$pathName = $this->_options['public_dir'] . dirname($id);
@@ -343,14 +339,16 @@
if (!is_writable($directory)) {
return false;
}
- foreach (new DirectoryIterator($directory) as $file) {
- if (true === $file->isFile()) {
- if (false === unlink($file->getPathName())) {
- return false;
+ if (is_dir($directory)) {
+ foreach (new DirectoryIterator($directory) as $file) {
+ if (true === $file->isFile()) {
+ if (false === unlink($file->getPathName())) {
+ return false;
+ }
}
}
}
- rmdir(dirname($path));
+ rmdir($directory);
}
if (file_exists($file)) {
if (!is_writable($file)) {
@@ -538,7 +536,7 @@
* Detect an octal string and return its octal value for file permission ops
* otherwise return the non-string (assumed octal or decimal int already)
*
- * @param $val The potential octal in need of conversion
+ * @param string $val The potential octal in need of conversion
* @return int
*/
protected function _octdec($val)
@@ -551,9 +549,12 @@
/**
* Decode a request URI from the provided ID
+ *
+ * @param string $id
+ * @return string
*/
protected function _decodeId($id)
{
- return pack('H*', $id);;
+ return pack('H*', $id);
}
}
--- a/web/lib/Zend/Cache/Backend/Test.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Test.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Test.php 23051 2010-10-07 17:01:21Z mabe $
+ * @version $Id: Test.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Test extends Zend_Cache_Backend implements Zend_Cache_Backend_ExtendedInterface
@@ -164,7 +164,7 @@
public function save($data, $id, $tags = array(), $specificLifetime = false)
{
$this->_addLog('save', array($data, $id, $tags));
- if ($id=='false') {
+ if (substr($id,-5)=='false') {
return false;
}
return true;
@@ -182,7 +182,7 @@
public function remove($id)
{
$this->_addLog('remove', array($id));
- if ($id=='false') {
+ if (substr($id,-5)=='false') {
return false;
}
return true;
--- a/web/lib/Zend/Cache/Backend/TwoLevels.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/TwoLevels.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TwoLevels.php 22736 2010-07-30 16:25:54Z andyfowler $
+ * @version $Id: TwoLevels.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -383,7 +383,6 @@
return $this->_slowBackend->getIdsMatchingAnyTags($tags);
}
-
/**
* Return the filling percentage of the backend storage
*
@@ -481,18 +480,19 @@
*/
private function _getFastLifetime($lifetime, $priority, $maxLifetime = null)
{
- if ($lifetime === null) {
- // if lifetime is null, we have an infinite lifetime
+ if ($lifetime <= 0) {
+ // if no lifetime, we have an infinite lifetime
// we need to use arbitrary lifetimes
$fastLifetime = (int) (2592000 / (11 - $priority));
} else {
- $fastLifetime = (int) ($lifetime / (11 - $priority));
+ // prevent computed infinite lifetime (0) by ceil
+ $fastLifetime = (int) ceil($lifetime / (11 - $priority));
}
- if (($maxLifetime !== null) && ($maxLifetime >= 0)) {
- if ($fastLifetime > $maxLifetime) {
- return $maxLifetime;
- }
+
+ if ($maxLifetime >= 0 && $fastLifetime > $maxLifetime) {
+ return $maxLifetime;
}
+
return $fastLifetime;
}
--- a/web/lib/Zend/Cache/Backend/Xcache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/Xcache.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xcache.php 23345 2010-11-15 16:31:14Z mabe $
+ * @version $Id: Xcache.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_Xcache extends Zend_Cache_Backend implements Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/ZendPlatform.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/ZendPlatform.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZendPlatform.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ZendPlatform.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
*
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_ZendPlatform extends Zend_Cache_Backend implements Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/ZendServer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/ZendServer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZendServer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ZendServer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Cache_Backend_ZendServer extends Zend_Cache_Backend implements Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/ZendServer/Disk.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/ZendServer/Disk.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Disk.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Disk.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_ZendServer_Disk extends Zend_Cache_Backend_ZendServer implements Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Backend/ZendServer/ShMem.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Backend/ZendServer/ShMem.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ShMem.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ShMem.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Backend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Backend_ZendServer_ShMem extends Zend_Cache_Backend_ZendServer implements Zend_Cache_Backend_Interface
--- a/web/lib/Zend/Cache/Core.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Core.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Core.php 22651 2010-07-21 04:19:44Z ramon $
+ * @version $Id: Core.php 24989 2012-06-21 07:24:13Z mabe $
*/
/**
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Core
@@ -211,7 +211,7 @@
public function setOption($name, $value)
{
if (!is_string($name)) {
- Zend_Cache::throwException("Incorrect option name : $name");
+ Zend_Cache::throwException("Incorrect option name!");
}
$name = strtolower($name);
if (array_key_exists($name, $this->_options)) {
@@ -235,17 +235,18 @@
*/
public function getOption($name)
{
- if (is_string($name)) {
- $name = strtolower($name);
- if (array_key_exists($name, $this->_options)) {
- // This is a Core option
- return $this->_options[$name];
- }
- if (array_key_exists($name, $this->_specificOptions)) {
- // This a specic option of this frontend
- return $this->_specificOptions[$name];
- }
+ $name = strtolower($name);
+
+ if (array_key_exists($name, $this->_options)) {
+ // This is a Core option
+ return $this->_options[$name];
}
+
+ if (array_key_exists($name, $this->_specificOptions)) {
+ // This a specic option of this frontend
+ return $this->_specificOptions[$name];
+ }
+
Zend_Cache::throwException("Incorrect option name : $name");
}
@@ -300,6 +301,8 @@
$id = $this->_id($id); // cache id may need prefix
$this->_lastId = $id;
self::_validateIdOrTag($id);
+
+ $this->_log("Zend_Cache_Core: load item '{$id}'", 7);
$data = $this->_backend->load($id, $doNotTestCacheValidity);
if ($data===false) {
// no cache available
@@ -326,6 +329,8 @@
$id = $this->_id($id); // cache id may need prefix
self::_validateIdOrTag($id);
$this->_lastId = $id;
+
+ $this->_log("Zend_Cache_Core: test item '{$id}'", 7);
return $this->_backend->test($id);
}
@@ -360,27 +365,22 @@
Zend_Cache::throwException("Datas must be string or set automatic_serialization = true");
}
}
+
// automatic cleaning
if ($this->_options['automatic_cleaning_factor'] > 0) {
$rand = rand(1, $this->_options['automatic_cleaning_factor']);
if ($rand==1) {
- if ($this->_extendedBackend) {
- // New way
- if ($this->_backendCapabilities['automatic_cleaning']) {
- $this->clean(Zend_Cache::CLEANING_MODE_OLD);
- } else {
- $this->_log('Zend_Cache_Core::save() / automatic cleaning is not available/necessary with this backend');
- }
+ // new way || deprecated way
+ if ($this->_extendedBackend || method_exists($this->_backend, 'isAutomaticCleaningAvailable')) {
+ $this->_log("Zend_Cache_Core::save(): automatic cleaning running", 7);
+ $this->clean(Zend_Cache::CLEANING_MODE_OLD);
} else {
- // Deprecated way (will be removed in next major version)
- if (method_exists($this->_backend, 'isAutomaticCleaningAvailable') && ($this->_backend->isAutomaticCleaningAvailable())) {
- $this->clean(Zend_Cache::CLEANING_MODE_OLD);
- } else {
- $this->_log('Zend_Cache_Core::save() / automatic cleaning is not available/necessary with this backend');
- }
+ $this->_log("Zend_Cache_Core::save(): automatic cleaning is not available/necessary with current backend", 4);
}
}
}
+
+ $this->_log("Zend_Cache_Core: save item '{$id}'", 7);
if ($this->_options['ignore_user_abort']) {
$abort = ignore_user_abort(true);
}
@@ -392,22 +392,23 @@
if ($this->_options['ignore_user_abort']) {
ignore_user_abort($abort);
}
+
if (!$result) {
// maybe the cache is corrupted, so we remove it !
- if ($this->_options['logging']) {
- $this->_log("Zend_Cache_Core::save() : impossible to save cache (id=$id)");
- }
- $this->remove($id);
+ $this->_log("Zend_Cache_Core::save(): failed to save item '{$id}' -> removing it", 4);
+ $this->_backend->remove($id);
return false;
}
+
if ($this->_options['write_control']) {
$data2 = $this->_backend->load($id, true);
if ($data!=$data2) {
- $this->_log('Zend_Cache_Core::save() / write_control : written and read data do not match');
+ $this->_log("Zend_Cache_Core::save(): write control of item '{$id}' failed -> removing it", 4);
$this->_backend->remove($id);
return false;
}
}
+
return true;
}
@@ -424,6 +425,8 @@
}
$id = $this->_id($id); // cache id may need prefix
self::_validateIdOrTag($id);
+
+ $this->_log("Zend_Cache_Core: remove item '{$id}'", 7);
return $this->_backend->remove($id);
}
@@ -458,6 +461,7 @@
Zend_Cache::throwException('Invalid cleaning mode');
}
self::_validateTagsArray($tags);
+
return $this->_backend->clean($mode, $tags);
}
@@ -649,6 +653,8 @@
Zend_Cache::throwException(self::BACKEND_NOT_IMPLEMENTS_EXTENDED_IF);
}
$id = $this->_id($id); // cache id may need prefix
+
+ $this->_log("Zend_Cache_Core: touch item '{$id}'", 7);
return $this->_backend->touch($id, $extraLifetime);
}
@@ -713,9 +719,11 @@
}
// Create a default logger to the standard output stream
+ require_once 'Zend/Log.php';
require_once 'Zend/Log/Writer/Stream.php';
- require_once 'Zend/Log.php';
+ require_once 'Zend/Log/Filter/Priority.php';
$logger = new Zend_Log(new Zend_Log_Writer_Stream('php://output'));
+ $logger->addFilter(new Zend_Log_Filter_Priority(Zend_Log::WARN, '<='));
$this->_options['logger'] = $logger;
}
--- a/web/lib/Zend/Cache/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
/**
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Exception extends Zend_Exception {}
--- a/web/lib/Zend/Cache/Frontend/Capture.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/Capture.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Capture.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Capture.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_Capture extends Zend_Cache_Core
@@ -46,7 +46,7 @@
* @var array
*/
protected $_tags = array();
-
+
protected $_extension = null;
/**
--- a/web/lib/Zend/Cache/Frontend/Class.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/Class.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Class.php 23051 2010-10-07 17:01:21Z mabe $
+ * @version $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_Class extends Zend_Cache_Core
@@ -200,13 +200,19 @@
*/
public function __call($name, $parameters)
{
+ $callback = array($this->_cachedEntity, $name);
+
+ if (!is_callable($callback, false)) {
+ Zend_Cache::throwException('Invalid callback');
+ }
+
$cacheBool1 = $this->_specificOptions['cache_by_default'];
$cacheBool2 = in_array($name, $this->_specificOptions['cached_methods']);
$cacheBool3 = in_array($name, $this->_specificOptions['non_cached_methods']);
$cache = (($cacheBool1 || $cacheBool2) && (!$cacheBool3));
if (!$cache) {
// We do not have not cache
- return call_user_func_array(array($this->_cachedEntity, $name), $parameters);
+ return call_user_func_array($callback, $parameters);
}
$id = $this->_makeId($name, $parameters);
@@ -220,7 +226,7 @@
ob_implicit_flush(false);
try {
- $return = call_user_func_array(array($this->_cachedEntity, $name), $parameters);
+ $return = call_user_func_array($callback, $parameters);
$output = ob_get_clean();
$data = array($output, $return);
$this->save($data, $id, $this->_tags, $this->_specificLifetime, $this->_priority);
--- a/web/lib/Zend/Cache/Frontend/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 23330 2010-11-14 20:08:09Z mabe $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_File extends Zend_Cache_Core
@@ -110,7 +110,11 @@
clearstatcache();
$i = 0;
foreach ($masterFiles as $masterFile) {
- $mtime = @filemtime($masterFile);
+ if (file_exists($masterFile)) {
+ $mtime = filemtime($masterFile);
+ } else {
+ $mtime = false;
+ }
if (!$this->_specificOptions['ignore_missing_master_files'] && !$mtime) {
Zend_Cache::throwException('Unable to read master_file : ' . $masterFile);
@@ -119,7 +123,7 @@
$this->_masterFile_mtimes[$i] = $mtime;
$this->_specificOptions['master_files'][$i] = $masterFile;
if ($i === 0) { // to keep a compatibility
- $this->_specificOptions['master_files'] = $masterFile;
+ $this->_specificOptions['master_file'] = $masterFile;
}
$i++;
--- a/web/lib/Zend/Cache/Frontend/Function.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/Function.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Function.php 22648 2010-07-20 14:43:27Z mabe $
+ * @version $Id: Function.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_Function extends Zend_Cache_Core
@@ -104,8 +104,7 @@
ob_start();
ob_implicit_flush(false);
$return = call_user_func_array($callback, $parameters);
- $output = ob_get_contents();
- ob_end_clean();
+ $output = ob_get_clean();
$data = array($output, $return);
$this->save($data, $id, $tags, $specificLifetime, $priority);
}
--- a/web/lib/Zend/Cache/Frontend/Output.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/Output.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Output.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Output.php 24800 2012-05-13 11:59:32Z mabe $
*/
@@ -30,7 +30,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_Output extends Zend_Cache_Core
@@ -55,7 +55,7 @@
*
* @param string $id Cache id
* @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested
- * @param boolean $echoData If set to true, datas are sent to the browser if the cache is hit (simpy returned else)
+ * @param boolean $echoData If set to true, datas are sent to the browser if the cache is hit (simply returned else)
* @return mixed True if the cache is hit (false else) with $echoData=true (default) ; string else (datas)
*/
public function start($id, $doNotTestCacheValidity = false, $echoData = true)
@@ -88,8 +88,7 @@
public function end($tags = array(), $specificLifetime = false, $forcedDatas = null, $echoData = true, $priority = 8)
{
if ($forcedDatas === null) {
- $data = ob_get_contents();
- ob_end_clean();
+ $data = ob_get_clean();
} else {
$data =& $forcedDatas;
}
--- a/web/lib/Zend/Cache/Frontend/Page.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Frontend/Page.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Page.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Page.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @package Zend_Cache
* @subpackage Zend_Cache_Frontend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Frontend_Page extends Zend_Cache_Core
@@ -243,9 +243,11 @@
{
$this->_cancel = false;
$lastMatchingRegexp = null;
- foreach ($this->_specificOptions['regexps'] as $regexp => $conf) {
- if (preg_match("`$regexp`", $_SERVER['REQUEST_URI'])) {
- $lastMatchingRegexp = $regexp;
+ if (isset($_SERVER['REQUEST_URI'])) {
+ foreach ($this->_specificOptions['regexps'] as $regexp => $conf) {
+ if (preg_match("`$regexp`", $_SERVER['REQUEST_URI'])) {
+ $lastMatchingRegexp = $regexp;
+ }
}
}
$this->_activeOptions = $this->_specificOptions['default_options'];
--- a/web/lib/Zend/Cache/Manager.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cache/Manager.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manager.php 22727 2010-07-30 12:36:00Z mabe $
+ * @version $Id: Manager.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Cache_Exception */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Cache
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cache_Manager
--- a/web/lib/Zend/Captcha/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Adapter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Adapter.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Captcha_Adapter extends Zend_Validate_Interface
{
--- a/web/lib/Zend/Captcha/Base.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Base.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,9 +33,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Captcha_Base extends Zend_Validate_Abstract implements Zend_Captcha_Adapter
{
--- a/web/lib/Zend/Captcha/Dumb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Dumb.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,13 +30,36 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dumb.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dumb.php 24747 2012-05-05 00:21:56Z adamlundrigan $
*/
class Zend_Captcha_Dumb extends Zend_Captcha_Word
{
/**
+ * CAPTCHA label
+ * @type string
+ */
+ protected $_label = 'Please type this word backwards';
+
+ /**
+ * Set the label for the CAPTCHA
+ * @param string $label
+ */
+ public function setLabel($label)
+ {
+ $this->_label = $label;
+ }
+
+ /**
+ * Retrieve the label for the CAPTCHA
+ * @return string
+ */
+ public function getLabel()
+ {
+ return $this->_label;
+ }
+ /**
* Render the captcha
*
* @param Zend_View_Interface $view
@@ -45,7 +68,7 @@
*/
public function render(Zend_View_Interface $view = null, $element = null)
{
- return 'Please type this word backwards: <b>'
+ return $this->getLabel() . ': <b>'
. strrev($this->getWord())
. '</b>';
}
--- a/web/lib/Zend/Captcha/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Captcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Captcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Captcha_Exception extends Zend_Exception
--- a/web/lib/Zend/Captcha/Figlet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Figlet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,9 +33,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Figlet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Figlet.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Captcha_Figlet extends Zend_Captcha_Word
{
--- a/web/lib/Zend/Captcha/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 22589 2010-07-16 20:51:51Z mikaelkael $
+ * @version $Id: Image.php 24821 2012-05-29 14:54:50Z adamlundrigan $
*/
/** @see Zend_Captcha_Word */
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Captcha_Image extends Zend_Captcha_Word
@@ -580,7 +580,7 @@
$suffixLength = strlen($this->_suffix);
foreach (new DirectoryIterator($imgdir) as $file) {
if (!$file->isDot() && !$file->isDir()) {
- if ($file->getMTime() < $expire) {
+ if (file_exists($file->getPathname()) && $file->getMTime() < $expire) {
// only deletes files ending with $this->_suffix
if (substr($file->getFilename(), -($suffixLength)) == $this->_suffix) {
unlink($file->getPathname());
@@ -599,7 +599,11 @@
*/
public function render(Zend_View_Interface $view = null, $element = null)
{
+ $endTag = ' />';
+ if (($view instanceof Zend_View_Abstract) && !$view->doctype()->isXhtml()) {
+ $endTag = '>';
+ }
return '<img width="' . $this->getWidth() . '" height="' . $this->getHeight() . '" alt="' . $this->getImgAlt()
- . '" src="' . $this->getImgUrl() . $this->getId() . $this->getSuffix() . '" />';
+ . '" src="' . $this->getImgUrl() . $this->getId() . $this->getSuffix() . '"' . $endTag;
}
}
--- a/web/lib/Zend/Captcha/ReCaptcha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/ReCaptcha.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ReCaptcha.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ReCaptcha.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Captcha_ReCaptcha extends Zend_Captcha_Base
{
@@ -261,6 +261,20 @@
*/
public function render(Zend_View_Interface $view = null, $element = null)
{
- return $this->getService()->getHTML();
+ $name = null;
+ if ($element instanceof Zend_Form_Element) {
+ $name = $element->getBelongsTo();
+ }
+ return $this->getService()->getHTML($name);
+ }
+
+ /**
+ * Get captcha decorator
+ *
+ * @return string
+ */
+ public function getDecorator()
+ {
+ return "Captcha_ReCaptcha";
}
}
--- a/web/lib/Zend/Captcha/Word.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Captcha/Word.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Captcha
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Word.php 21793 2010-04-08 00:51:31Z stas $
+ * @version $Id: Word.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Captcha_Word extends Zend_Captcha_Base
{
@@ -93,10 +93,10 @@
* @var integer
*/
protected $_timeout = 300;
-
+
/**
* Should generate() keep session or create a new one?
- *
+ *
* @var boolean
*/
protected $_keepSession = false;
@@ -131,7 +131,7 @@
*
* @return string
*/
- public function getSessionClass()
+ public function getSessionClass()
{
return $this->_sessionClass;
}
@@ -217,21 +217,21 @@
return $this->_timeout;
}
- /**
- * Sets if session should be preserved on generate()
- *
- * @param $keepSession Should session be kept on generate()?
- * @return Zend_Captcha_Word
- */
- public function setKeepSession($keepSession)
- {
- $this->_keepSession = $keepSession;
- return $this;
- }
+ /**
+ * Sets if session should be preserved on generate()
+ *
+ * @param bool $keepSession Should session be kept on generate()?
+ * @return Zend_Captcha_Word
+ */
+ public function setKeepSession($keepSession)
+ {
+ $this->_keepSession = $keepSession;
+ return $this;
+ }
/**
* Numbers should be included in the pattern?
- *
+ *
* @return bool
*/
public function getUseNumbers()
@@ -239,10 +239,10 @@
return $this->_useNumbers;
}
- /**
- * Set if numbers should be included in the pattern
- *
- * @param $_useNumbers numbers should be included in the pattern?
+ /**
+ * Set if numbers should be included in the pattern
+ *
+ * @param bool $_useNumbers numbers should be included in the pattern?
* @return Zend_Captcha_Word
*/
public function setUseNumbers($_useNumbers)
@@ -250,8 +250,8 @@
$this->_useNumbers = $_useNumbers;
return $this;
}
-
- /**
+
+ /**
* Get session object
*
* @return Zend_Session_Namespace
@@ -348,7 +348,7 @@
public function generate()
{
if(!$this->_keepSession) {
- $this->_session = null;
+ $this->_session = null;
}
$id = $this->_generateRandomId();
$this->_setId($id);
--- a/web/lib/Zend/Cloud/AbstractFactory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/AbstractFactory.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,29 +23,29 @@
*
* @category Zend
* @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_AbstractFactory
{
/**
* Constructor
- *
+ *
* @return void
*/
private function __construct()
{
// private ctor - should not be used
}
-
+
/**
* Get an individual adapter instance
- *
- * @param string $adapterOption
- * @param array|Zend_Config $options
+ *
+ * @param string $adapterOption
+ * @param array|Zend_Config $options
* @return null|Zend_Cloud_DocumentService_Adapter|Zend_Cloud_QueueService_Adapter|Zend_Cloud_StorageService_Adapter
*/
- protected static function _getAdapter($adapterOption, $options)
+ protected static function _getAdapter($adapterOption, $options)
{
if ($options instanceof Zend_Config) {
$options = $options->toArray();
--- a/web/lib/Zend/Cloud/DocumentService/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Cloud_DocumentService_Adapter
@@ -67,9 +67,9 @@
/**
* List all documents in a collection
- *
- * @param string $collectionName
- * @param null|array $options
+ *
+ * @param string $collectionName
+ * @param null|array $options
* @return Zend_Cloud_DocumentService_DocumentSet
*/
public function listDocuments($collectionName, array $options = null);
@@ -87,7 +87,7 @@
/**
* Replace document
* The new document replaces the existing document with the same ID.
- *
+ *
* @param string $collectionName Collection name
* @param Zend_Cloud_DocumentService_Document $document
* @param array $options
@@ -96,8 +96,8 @@
/**
* Update document
- * The fields of the existing documents will be updated.
- * Fields not specified in the set will be left as-is.
+ * The fields of the existing documents will be updated.
+ * Fields not specified in the set will be left as-is.
*
* @param string $collectionName
* @param mixed|Zend_Cloud_DocumentService_Document $documentID Document ID, adapter-dependent, or document containing updates
@@ -106,7 +106,7 @@
* @return boolean
*/
public function updateDocument($collectionName, $documentID, $fieldset = null, $options = null);
-
+
/**
* Delete document
*
@@ -119,16 +119,16 @@
/**
* Fetch single document by ID
- *
+ *
* Will return false if the document does not exist
- *
+ *
* @param string $collectionName Collection name
* @param mixed $documentID Document ID, adapter-dependent
* @param array $options
* @return Zend_Cloud_DocumentService_Document
*/
public function fetchDocument($collectionName, $documentID, $options = null);
-
+
/**
* Query for documents stored in the document service. If a string is passed in
* $query, the query string will be passed directly to the service.
@@ -139,15 +139,15 @@
* @return array Array of field sets
*/
public function query($collectionName, $query, $options = null);
-
+
/**
* Create query statement
- *
+ *
* @param string $fields
* @return Zend_Cloud_DocumentService_Query
*/
public function select($fields = null);
-
+
/**
* Get the concrete service client
*/
--- a/web/lib/Zend/Cloud/DocumentService/Adapter/AbstractAdapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter/AbstractAdapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,10 +33,10 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-abstract class Zend_Cloud_DocumentService_Adapter_AbstractAdapter
+abstract class Zend_Cloud_DocumentService_Adapter_AbstractAdapter
implements Zend_Cloud_DocumentService_Adapter
{
const DOCUMENT_CLASS = 'document_class';
@@ -57,15 +57,15 @@
/**
* Class to utilize for new query objects
- *
+ *
* @var string
*/
protected $_queryClass = 'Zend_Cloud_DocumentService_Query';
/**
* Set the class for document objects
- *
- * @param string $class
+ *
+ * @param string $class
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
*/
public function setDocumentClass($class)
@@ -76,7 +76,7 @@
/**
* Get the class for document objects
- *
+ *
* @return string
*/
public function getDocumentClass()
@@ -86,8 +86,8 @@
/**
* Set the class for document set objects
- *
- * @param string $class
+ *
+ * @param string $class
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
*/
public function setDocumentSetClass($class)
@@ -98,7 +98,7 @@
/**
* Get the class for document set objects
- *
+ *
* @return string
*/
public function getDocumentSetClass()
@@ -108,8 +108,8 @@
/**
* Set the query class for query objects
- *
- * @param string $class
+ *
+ * @param string $class
* @return Zend_Cloud_DocumentService_Adapter_AbstractAdapter
*/
public function setQueryClass($class)
@@ -120,7 +120,7 @@
/**
* Get the class for query objects
- *
+ *
* @return string
*/
public function getQueryClass()
--- a/web/lib/Zend/Cloud/DocumentService/Adapter/SimpleDb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter/SimpleDb.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,468 +1,468 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Cloud/DocumentService/Adapter/AbstractAdapter.php';
-require_once 'Zend/Cloud/DocumentService/Adapter/SimpleDb/Query.php';
-require_once 'Zend/Cloud/DocumentService/Exception.php';
-require_once 'Zend/Service/Amazon/SimpleDb.php';
-require_once 'Zend/Service/Amazon/SimpleDb/Attribute.php';
-
-/**
- * SimpleDB adapter for document service.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_DocumentService_Adapter_SimpleDb
- extends Zend_Cloud_DocumentService_Adapter_AbstractAdapter
-{
- /*
- * Options array keys for the SimpleDB adapter.
- */
- const AWS_ACCESS_KEY = 'aws_accesskey';
- const AWS_SECRET_KEY = 'aws_secretkey';
-
- const ITEM_NAME = 'ItemName';
-
- const MERGE_OPTION = "merge";
- const RETURN_DOCUMENTS = "return_documents";
-
- const DEFAULT_QUERY_CLASS = 'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query';
-
-
- /**
- * SQS service instance.
- * @var Zend_Service_Amazon_SimpleDb
- */
- protected $_simpleDb;
-
- /**
- * Class to utilize for new query objects
- * @var string
- */
- protected $_queryClass = 'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query';
-
- /**
- * Constructor
- *
- * @param array|Zend_Config $options
- * @return void
- */
- public function __construct($options = array())
- {
- if ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
-
- if (!is_array($options)) {
- throw new Zend_Cloud_DocumentService_Exception('Invalid options provided to constructor');
- }
-
- $this->_simpleDb = new Zend_Service_Amazon_SimpleDb(
- $options[self::AWS_ACCESS_KEY], $options[self::AWS_SECRET_KEY]
- );
-
- if (isset($options[self::HTTP_ADAPTER])) {
- $this->_sqs->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]);
- }
-
- if (isset($options[self::DOCUMENT_CLASS])) {
- $this->setDocumentClass($options[self::DOCUMENT_CLASS]);
- }
-
- if (isset($options[self::DOCUMENTSET_CLASS])) {
- $this->setDocumentSetClass($options[self::DOCUMENTSET_CLASS]);
- }
-
- if (isset($options[self::QUERY_CLASS])) {
- $this->setQueryClass($options[self::QUERY_CLASS]);
- }
- }
-
- /**
- * Create collection.
- *
- * @param string $name
- * @param array $options
- * @return void
- */
- public function createCollection($name, $options = null)
- {
- try {
- $this->_simpleDb->createDomain($name);
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on domain creation: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Delete collection.
- *
- * @param string $name
- * @param array $options
- * @return void
- */
- public function deleteCollection($name, $options = null)
- {
- try {
- $this->_simpleDb->deleteDomain($name);
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on collection deletion: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * List collections.
- *
- * @param array $options
- * @return array
- */
- public function listCollections($options = null)
- {
- try {
- // TODO package this in Pages
- $domains = $this->_simpleDb->listDomains()->getData();
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on collection deletion: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- return $domains;
- }
-
- /**
- * List documents
- *
- * Returns a key/value array of document names to document objects.
- *
- * @param string $collectionName Name of collection for which to list documents
- * @param array|null $options
- * @return Zend_Cloud_DocumentService_DocumentSet
- */
- public function listDocuments($collectionName, array $options = null)
- {
- $query = $this->select('*')->from($collectionName);
- $items = $this->query($collectionName, $query, $options);
- return $items;
- }
-
- /**
- * Insert document
- *
- * @param string $collectionName Collection into which to insert document
- * @param array|Zend_Cloud_DocumentService_Document $document
- * @param array $options
- * @return void
- */
- public function insertDocument($collectionName, $document, $options = null)
- {
- if (is_array($document)) {
- $document = $this->_getDocumentFromArray($document);
- }
-
- if (!$document instanceof Zend_Cloud_DocumentService_Document) {
- throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
- }
-
- try {
- $this->_simpleDb->putAttributes(
- $collectionName,
- $document->getID(),
- $this->_makeAttributes($document->getID(), $document->getFields())
- );
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on document insertion: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Replace an existing document with a new version
- *
- * @param string $collectionName
- * @param array|Zend_Cloud_DocumentService_Document $document
- * @param array $options
- * @return void
- */
- public function replaceDocument($collectionName, $document, $options = null)
- {
- if (is_array($document)) {
- $document = $this->_getDocumentFromArray($document);
- }
-
- if (!$document instanceof Zend_Cloud_DocumentService_Document) {
- throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
- }
-
- // Delete document first, then insert. PutAttributes always keeps any
- // fields not referenced in the payload, but present in the document
- $documentId = $document->getId();
- $fields = $document->getFields();
- $docClass = get_class($document);
- $this->deleteDocument($collectionName, $document, $options);
-
- $document = new $docClass($fields, $documentId);
- $this->insertDocument($collectionName, $document);
- }
-
- /**
- * Update document. The new document replaces the existing document.
- *
- * Option 'merge' specifies to add all attributes (if true) or
- * specific attributes ("attr" => true) instead of replacing them.
- * By default, attributes are replaced.
- *
- * @param string $collectionName
- * @param mixed|Zend_Cloud_DocumentService_Document $documentId Document ID, adapter-dependent
- * @param array|Zend_Cloud_DocumentService_Document $fieldset Set of fields to update
- * @param array $options
- * @return boolean
- */
- public function updateDocument($collectionName, $documentId, $fieldset = null, $options = null)
- {
- if (null === $fieldset && $documentId instanceof Zend_Cloud_DocumentService_Document) {
- $fieldset = $documentId->getFields();
- if (empty($documentId)) {
- $documentId = $documentId->getId();
- }
- } elseif ($fieldset instanceof Zend_Cloud_DocumentService_Document) {
- if (empty($documentId)) {
- $documentId = $fieldset->getId();
- }
- $fieldset = $fieldset->getFields();
- }
-
- $replace = array();
- if (empty($options[self::MERGE_OPTION])) {
- // no merge option - we replace all
- foreach ($fieldset as $key => $value) {
- $replace[$key] = true;
- }
- } elseif (is_array($options[self::MERGE_OPTION])) {
- foreach ($fieldset as $key => $value) {
- if (empty($options[self::MERGE_OPTION][$key])) {
- // if there's merge key, we add it, otherwise we replace it
- $replace[$key] = true;
- }
- }
- } // otherwise $replace is empty - all is merged
-
- try {
- $this->_simpleDb->putAttributes(
- $collectionName,
- $documentId,
- $this->_makeAttributes($documentId, $fieldset),
- $replace
- );
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on document update: '.$e->getMessage(), $e->getCode(), $e);
- }
- return true;
- }
-
- /**
- * Delete document.
- *
- * @param string $collectionName Collection from which to delete document
- * @param mixed $document Document ID or Document object.
- * @param array $options
- * @return boolean
- */
- public function deleteDocument($collectionName, $document, $options = null)
- {
- if ($document instanceof Zend_Cloud_DocumentService_Document) {
- $document = $document->getId();
- }
- try {
- $this->_simpleDb->deleteAttributes($collectionName, $document);
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on document deletion: '.$e->getMessage(), $e->getCode(), $e);
- }
- return true;
- }
-
- /**
- * Fetch single document by ID
- *
- * @param string $collectionName Collection name
- * @param mixed $documentId Document ID, adapter-dependent
- * @param array $options
- * @return Zend_Cloud_DocumentService_Document
- */
- public function fetchDocument($collectionName, $documentId, $options = null)
- {
- try {
- $attributes = $this->_simpleDb->getAttributes($collectionName, $documentId);
- if ($attributes == false || count($attributes) == 0) {
- return false;
- }
- return $this->_resolveAttributes($attributes, true);
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on fetching document: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Query for documents stored in the document service. If a string is passed in
- * $query, the query string will be passed directly to the service.
- *
- * @param string $collectionName Collection name
- * @param string $query
- * @param array $options
- * @return array Zend_Cloud_DocumentService_DocumentSet
- */
- public function query($collectionName, $query, $options = null)
- {
- $returnDocs = isset($options[self::RETURN_DOCUMENTS])
- ? (bool) $options[self::RETURN_DOCUMENTS]
- : true;
-
- try {
- if ($query instanceof Zend_Cloud_DocumentService_Adapter_SimpleDb_Query) {
- $query = $query->assemble($collectionName);
- }
- $result = $this->_simpleDb->select($query);
- } catch(Zend_Service_Amazon_Exception $e) {
- throw new Zend_Cloud_DocumentService_Exception('Error on document query: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- return $this->_getDocumentSetFromResultSet($result, $returnDocs);
- }
-
- /**
- * Create query statement
- *
- * @param string $fields
- * @return Zend_Cloud_DocumentService_Adapter_SimpleDb_Query
- */
- public function select($fields = null)
- {
- $queryClass = $this->getQueryClass();
- if (!class_exists($queryClass)) {
- require_once 'Zend/Loader.php';
- Zend_Loader::loadClass($queryClass);
- }
-
- $query = new $queryClass($this);
- $defaultClass = self::DEFAULT_QUERY_CLASS;
- if (!$query instanceof $defaultClass) {
- throw new Zend_Cloud_DocumentService_Exception('Query class must extend ' . self::DEFAULT_QUERY_CLASS);
- }
-
- $query->select($fields);
- return $query;
- }
-
- /**
- * Get the concrete service client
- *
- * @return Zend_Service_Amazon_SimpleDb
- */
- public function getClient()
- {
- return $this->_simpleDb;
- }
-
- /**
- * Convert array of key-value pairs to array of Amazon attributes
- *
- * @param string $name
- * @param array $attributes
- * @return array
- */
- protected function _makeAttributes($name, $attributes)
- {
- $result = array();
- foreach ($attributes as $key => $attr) {
- $result[] = new Zend_Service_Amazon_SimpleDb_Attribute($name, $key, $attr);
- }
- return $result;
- }
-
- /**
- * Convert array of Amazon attributes to array of key-value pairs
- *
- * @param array $attributes
- * @return array
- */
- protected function _resolveAttributes($attributes, $returnDocument = false)
- {
- $result = array();
- foreach ($attributes as $attr) {
- $value = $attr->getValues();
- if (count($value) == 0) {
- $value = null;
- } elseif (count($value) == 1) {
- $value = $value[0];
- }
- $result[$attr->getName()] = $value;
- }
-
- // Return as document object?
- if ($returnDocument) {
- $documentClass = $this->getDocumentClass();
- return new $documentClass($result, $attr->getItemName());
- }
-
- return $result;
- }
-
- /**
- * Create suitable document from array of fields
- *
- * @param array $document
- * @return Zend_Cloud_DocumentService_Document
- */
- protected function _getDocumentFromArray($document)
- {
- if (!isset($document[Zend_Cloud_DocumentService_Document::KEY_FIELD])) {
- if (isset($document[self::ITEM_NAME])) {
- $key = $document[self::ITEM_NAME];
- unset($document[self::ITEM_NAME]);
- } else {
- throw new Zend_Cloud_DocumentService_Exception('Fields array should contain the key field '.Zend_Cloud_DocumentService_Document::KEY_FIELD);
- }
- } else {
- $key = $document[Zend_Cloud_DocumentService_Document::KEY_FIELD];
- unset($document[Zend_Cloud_DocumentService_Document::KEY_FIELD]);
- }
-
- $documentClass = $this->getDocumentClass();
- return new $documentClass($document, $key);
- }
-
- /**
- * Create a DocumentSet from a SimpleDb resultset
- *
- * @param Zend_Service_Amazon_SimpleDb_Page $resultSet
- * @param bool $returnDocs
- * @return Zend_Cloud_DocumentService_DocumentSet
- */
- protected function _getDocumentSetFromResultSet(Zend_Service_Amazon_SimpleDb_Page $resultSet, $returnDocs = true)
- {
- $docs = array();
- foreach ($resultSet->getData() as $item) {
- $docs[] = $this->_resolveAttributes($item, $returnDocs);
- }
-
- $setClass = $this->getDocumentSetClass();
- return new $setClass($docs);
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Cloud/DocumentService/Adapter/AbstractAdapter.php';
+require_once 'Zend/Cloud/DocumentService/Adapter/SimpleDb/Query.php';
+require_once 'Zend/Cloud/DocumentService/Exception.php';
+require_once 'Zend/Service/Amazon/SimpleDb.php';
+require_once 'Zend/Service/Amazon/SimpleDb/Attribute.php';
+
+/**
+ * SimpleDB adapter for document service.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_DocumentService_Adapter_SimpleDb
+ extends Zend_Cloud_DocumentService_Adapter_AbstractAdapter
+{
+ /*
+ * Options array keys for the SimpleDB adapter.
+ */
+ const AWS_ACCESS_KEY = 'aws_accesskey';
+ const AWS_SECRET_KEY = 'aws_secretkey';
+
+ const ITEM_NAME = 'ItemName';
+
+ const MERGE_OPTION = "merge";
+ const RETURN_DOCUMENTS = "return_documents";
+
+ const DEFAULT_QUERY_CLASS = 'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query';
+
+
+ /**
+ * SQS service instance.
+ * @var Zend_Service_Amazon_SimpleDb
+ */
+ protected $_simpleDb;
+
+ /**
+ * Class to utilize for new query objects
+ * @var string
+ */
+ protected $_queryClass = 'Zend_Cloud_DocumentService_Adapter_SimpleDb_Query';
+
+ /**
+ * Constructor
+ *
+ * @param array|Zend_Config $options
+ * @return void
+ */
+ public function __construct($options = array())
+ {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (!is_array($options)) {
+ throw new Zend_Cloud_DocumentService_Exception('Invalid options provided to constructor');
+ }
+
+ $this->_simpleDb = new Zend_Service_Amazon_SimpleDb(
+ $options[self::AWS_ACCESS_KEY], $options[self::AWS_SECRET_KEY]
+ );
+
+ if (isset($options[self::HTTP_ADAPTER])) {
+ $this->_simpleDb->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]);
+ }
+
+ if (isset($options[self::DOCUMENT_CLASS])) {
+ $this->setDocumentClass($options[self::DOCUMENT_CLASS]);
+ }
+
+ if (isset($options[self::DOCUMENTSET_CLASS])) {
+ $this->setDocumentSetClass($options[self::DOCUMENTSET_CLASS]);
+ }
+
+ if (isset($options[self::QUERY_CLASS])) {
+ $this->setQueryClass($options[self::QUERY_CLASS]);
+ }
+ }
+
+ /**
+ * Create collection.
+ *
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function createCollection($name, $options = null)
+ {
+ try {
+ $this->_simpleDb->createDomain($name);
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on domain creation: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Delete collection.
+ *
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function deleteCollection($name, $options = null)
+ {
+ try {
+ $this->_simpleDb->deleteDomain($name);
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on collection deletion: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * List collections.
+ *
+ * @param array $options
+ * @return array
+ */
+ public function listCollections($options = null)
+ {
+ try {
+ // TODO package this in Pages
+ $domains = $this->_simpleDb->listDomains()->getData();
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on collection deletion: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ return $domains;
+ }
+
+ /**
+ * List documents
+ *
+ * Returns a key/value array of document names to document objects.
+ *
+ * @param string $collectionName Name of collection for which to list documents
+ * @param array|null $options
+ * @return Zend_Cloud_DocumentService_DocumentSet
+ */
+ public function listDocuments($collectionName, array $options = null)
+ {
+ $query = $this->select('*')->from($collectionName);
+ $items = $this->query($collectionName, $query, $options);
+ return $items;
+ }
+
+ /**
+ * Insert document
+ *
+ * @param string $collectionName Collection into which to insert document
+ * @param array|Zend_Cloud_DocumentService_Document $document
+ * @param array $options
+ * @return void
+ */
+ public function insertDocument($collectionName, $document, $options = null)
+ {
+ if (is_array($document)) {
+ $document = $this->_getDocumentFromArray($document);
+ }
+
+ if (!$document instanceof Zend_Cloud_DocumentService_Document) {
+ throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
+ }
+
+ try {
+ $this->_simpleDb->putAttributes(
+ $collectionName,
+ $document->getID(),
+ $this->_makeAttributes($document->getID(), $document->getFields())
+ );
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on document insertion: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Replace an existing document with a new version
+ *
+ * @param string $collectionName
+ * @param array|Zend_Cloud_DocumentService_Document $document
+ * @param array $options
+ * @return void
+ */
+ public function replaceDocument($collectionName, $document, $options = null)
+ {
+ if (is_array($document)) {
+ $document = $this->_getDocumentFromArray($document);
+ }
+
+ if (!$document instanceof Zend_Cloud_DocumentService_Document) {
+ throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
+ }
+
+ // Delete document first, then insert. PutAttributes always keeps any
+ // fields not referenced in the payload, but present in the document
+ $documentId = $document->getId();
+ $fields = $document->getFields();
+ $docClass = get_class($document);
+ $this->deleteDocument($collectionName, $document, $options);
+
+ $document = new $docClass($fields, $documentId);
+ $this->insertDocument($collectionName, $document);
+ }
+
+ /**
+ * Update document. The new document replaces the existing document.
+ *
+ * Option 'merge' specifies to add all attributes (if true) or
+ * specific attributes ("attr" => true) instead of replacing them.
+ * By default, attributes are replaced.
+ *
+ * @param string $collectionName
+ * @param mixed|Zend_Cloud_DocumentService_Document $documentId Document ID, adapter-dependent
+ * @param array|Zend_Cloud_DocumentService_Document $fieldset Set of fields to update
+ * @param array $options
+ * @return boolean
+ */
+ public function updateDocument($collectionName, $documentId, $fieldset = null, $options = null)
+ {
+ if (null === $fieldset && $documentId instanceof Zend_Cloud_DocumentService_Document) {
+ $fieldset = $documentId->getFields();
+ if (empty($documentId)) {
+ $documentId = $documentId->getId();
+ }
+ } elseif ($fieldset instanceof Zend_Cloud_DocumentService_Document) {
+ if (empty($documentId)) {
+ $documentId = $fieldset->getId();
+ }
+ $fieldset = $fieldset->getFields();
+ }
+
+ $replace = array();
+ if (empty($options[self::MERGE_OPTION])) {
+ // no merge option - we replace all
+ foreach ($fieldset as $key => $value) {
+ $replace[$key] = true;
+ }
+ } elseif (is_array($options[self::MERGE_OPTION])) {
+ foreach ($fieldset as $key => $value) {
+ if (empty($options[self::MERGE_OPTION][$key])) {
+ // if there's merge key, we add it, otherwise we replace it
+ $replace[$key] = true;
+ }
+ }
+ } // otherwise $replace is empty - all is merged
+
+ try {
+ $this->_simpleDb->putAttributes(
+ $collectionName,
+ $documentId,
+ $this->_makeAttributes($documentId, $fieldset),
+ $replace
+ );
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on document update: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ return true;
+ }
+
+ /**
+ * Delete document.
+ *
+ * @param string $collectionName Collection from which to delete document
+ * @param mixed $document Document ID or Document object.
+ * @param array $options
+ * @return boolean
+ */
+ public function deleteDocument($collectionName, $document, $options = null)
+ {
+ if ($document instanceof Zend_Cloud_DocumentService_Document) {
+ $document = $document->getId();
+ }
+ try {
+ $this->_simpleDb->deleteAttributes($collectionName, $document);
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on document deletion: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ return true;
+ }
+
+ /**
+ * Fetch single document by ID
+ *
+ * @param string $collectionName Collection name
+ * @param mixed $documentId Document ID, adapter-dependent
+ * @param array $options
+ * @return Zend_Cloud_DocumentService_Document
+ */
+ public function fetchDocument($collectionName, $documentId, $options = null)
+ {
+ try {
+ $attributes = $this->_simpleDb->getAttributes($collectionName, $documentId);
+ if ($attributes == false || count($attributes) == 0) {
+ return false;
+ }
+ return $this->_resolveAttributes($attributes, true);
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on fetching document: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Query for documents stored in the document service. If a string is passed in
+ * $query, the query string will be passed directly to the service.
+ *
+ * @param string $collectionName Collection name
+ * @param string $query
+ * @param array $options
+ * @return array Zend_Cloud_DocumentService_DocumentSet
+ */
+ public function query($collectionName, $query, $options = null)
+ {
+ $returnDocs = isset($options[self::RETURN_DOCUMENTS])
+ ? (bool) $options[self::RETURN_DOCUMENTS]
+ : true;
+
+ try {
+ if ($query instanceof Zend_Cloud_DocumentService_Adapter_SimpleDb_Query) {
+ $query = $query->assemble($collectionName);
+ }
+ $result = $this->_simpleDb->select($query);
+ } catch(Zend_Service_Amazon_Exception $e) {
+ throw new Zend_Cloud_DocumentService_Exception('Error on document query: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ return $this->_getDocumentSetFromResultSet($result, $returnDocs);
+ }
+
+ /**
+ * Create query statement
+ *
+ * @param string $fields
+ * @return Zend_Cloud_DocumentService_Adapter_SimpleDb_Query
+ */
+ public function select($fields = null)
+ {
+ $queryClass = $this->getQueryClass();
+ if (!class_exists($queryClass)) {
+ require_once 'Zend/Loader.php';
+ Zend_Loader::loadClass($queryClass);
+ }
+
+ $query = new $queryClass($this);
+ $defaultClass = self::DEFAULT_QUERY_CLASS;
+ if (!$query instanceof $defaultClass) {
+ throw new Zend_Cloud_DocumentService_Exception('Query class must extend ' . self::DEFAULT_QUERY_CLASS);
+ }
+
+ $query->select($fields);
+ return $query;
+ }
+
+ /**
+ * Get the concrete service client
+ *
+ * @return Zend_Service_Amazon_SimpleDb
+ */
+ public function getClient()
+ {
+ return $this->_simpleDb;
+ }
+
+ /**
+ * Convert array of key-value pairs to array of Amazon attributes
+ *
+ * @param string $name
+ * @param array $attributes
+ * @return array
+ */
+ protected function _makeAttributes($name, $attributes)
+ {
+ $result = array();
+ foreach ($attributes as $key => $attr) {
+ $result[] = new Zend_Service_Amazon_SimpleDb_Attribute($name, $key, $attr);
+ }
+ return $result;
+ }
+
+ /**
+ * Convert array of Amazon attributes to array of key-value pairs
+ *
+ * @param array $attributes
+ * @return array
+ */
+ protected function _resolveAttributes($attributes, $returnDocument = false)
+ {
+ $result = array();
+ foreach ($attributes as $attr) {
+ $value = $attr->getValues();
+ if (count($value) == 0) {
+ $value = null;
+ } elseif (count($value) == 1) {
+ $value = $value[0];
+ }
+ $result[$attr->getName()] = $value;
+ }
+
+ // Return as document object?
+ if ($returnDocument) {
+ $documentClass = $this->getDocumentClass();
+ return new $documentClass($result, $attr->getItemName());
+ }
+
+ return $result;
+ }
+
+ /**
+ * Create suitable document from array of fields
+ *
+ * @param array $document
+ * @return Zend_Cloud_DocumentService_Document
+ */
+ protected function _getDocumentFromArray($document)
+ {
+ if (!isset($document[Zend_Cloud_DocumentService_Document::KEY_FIELD])) {
+ if (isset($document[self::ITEM_NAME])) {
+ $key = $document[self::ITEM_NAME];
+ unset($document[self::ITEM_NAME]);
+ } else {
+ throw new Zend_Cloud_DocumentService_Exception('Fields array should contain the key field '.Zend_Cloud_DocumentService_Document::KEY_FIELD);
+ }
+ } else {
+ $key = $document[Zend_Cloud_DocumentService_Document::KEY_FIELD];
+ unset($document[Zend_Cloud_DocumentService_Document::KEY_FIELD]);
+ }
+
+ $documentClass = $this->getDocumentClass();
+ return new $documentClass($document, $key);
+ }
+
+ /**
+ * Create a DocumentSet from a SimpleDb resultset
+ *
+ * @param Zend_Service_Amazon_SimpleDb_Page $resultSet
+ * @param bool $returnDocs
+ * @return Zend_Cloud_DocumentService_DocumentSet
+ */
+ protected function _getDocumentSetFromResultSet(Zend_Service_Amazon_SimpleDb_Page $resultSet, $returnDocs = true)
+ {
+ $docs = array();
+ foreach ($resultSet->getData() as $item) {
+ $docs[] = $this->_resolveAttributes($item, $returnDocs);
+ }
+
+ $setClass = $this->getDocumentSetClass();
+ return new $setClass($docs);
+ }
+}
--- a/web/lib/Zend/Cloud/DocumentService/Adapter/SimpleDb/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter/SimpleDb/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,13 +23,13 @@
require_once 'Zend/Cloud/DocumentService/Query.php';
/**
- * Class implementing Query adapter for working with SimpleDb queries in a
+ * Class implementing Query adapter for working with SimpleDb queries in a
* structured way
*
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_DocumentService_Adapter_SimpleDb_Query
@@ -42,8 +42,8 @@
/**
* Constructor
- *
- * @param Zend_Cloud_DocumentService_Adapter_SimpleDb $adapter
+ *
+ * @param Zend_Cloud_DocumentService_Adapter_SimpleDb $adapter
* @param null|string $collectionName
* @return void
*/
@@ -57,7 +57,7 @@
/**
* Get adapter
- *
+ *
* @return Zend_Cloud_DocumentService_Adapter_SimpleDb
*/
public function getAdapter()
@@ -67,7 +67,7 @@
/**
* Assemble the query into a format the adapter can utilize
- *
+ *
* @var string $collectionName Name of collection from which to select
* @return string
*/
@@ -150,10 +150,10 @@
/**
* Parse a where statement into service-specific language
- *
+ *
* @todo Ensure this fulfills the entire SimpleDB query specification for WHERE
- * @param string $where
- * @param array $args
+ * @param string $where
+ * @param array $args
* @return string
*/
protected function _parseWhere($where, $args)
--- a/web/lib/Zend/Cloud/DocumentService/Adapter/WindowsAzure.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter/WindowsAzure.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,10 +29,10 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Cloud_DocumentService_Adapter_WindowsAzure
+class Zend_Cloud_DocumentService_Adapter_WindowsAzure
extends Zend_Cloud_DocumentService_Adapter_AbstractAdapter
{
/*
@@ -50,20 +50,20 @@
const ROW_KEY = 'RowKey';
const VERIFY_ETAG = "verify_etag";
const TIMESTAMP_KEY = "Timestamp";
-
+
const DEFAULT_HOST = Zend_Service_WindowsAzure_Storage::URL_CLOUD_TABLE;
const DEFAULT_QUERY_CLASS = 'Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query';
/**
* Azure service instance.
- *
+ *
* @var Zend_Service_WindowsAzure_Storage_Table
*/
protected $_storageClient;
/**
* Class to utilize for new query objects
- *
+ *
* @var string
*/
protected $_queryClass = 'Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query';
@@ -76,11 +76,11 @@
/**
* Constructor
- *
- * @param array $options
+ *
+ * @param array $options
* @return void
*/
- public function __construct($options = array())
+ public function __construct($options = array())
{
if ($options instanceof Zend_Config) {
$options = $options->toArray();
@@ -142,8 +142,8 @@
/**
* Set the default partition key
- *
- * @param string $key
+ *
+ * @param string $key
* @return Zend_Cloud_DocumentService_Adapter_WindowsAzure
*/
public function setDefaultPartitionKey($key)
@@ -155,7 +155,7 @@
/**
* Retrieve default partition key
- *
+ *
* @return null|string
*/
public function getDefaultPartitionKey()
@@ -170,7 +170,7 @@
* @param array $options
* @return boolean
*/
- public function createCollection($name, $options = null)
+ public function createCollection($name, $options = null)
{
if (!preg_match('/^[A-Za-z][A-Za-z0-9]{2,}$/', $name)) {
throw new Zend_Cloud_DocumentService_Exception('Invalid collection name; Windows Azure collection names must consist of alphanumeric characters only, and be at least 3 characters long');
@@ -192,7 +192,7 @@
* @param array $options
* @return boolean
*/
- public function deleteCollection($name, $options = null)
+ public function deleteCollection($name, $options = null)
{
try {
$this->_storageClient->deleteTable($name);
@@ -210,7 +210,7 @@
* @param array $options
* @return array
*/
- public function listCollections($options = null)
+ public function listCollections($options = null)
{
try {
$tables = $this->_storageClient->listTables();
@@ -228,7 +228,7 @@
/**
* Create suitable document from array of fields
- *
+ *
* @param array $document
* @param null|string $collectionName Collection to which this document belongs
* @return Zend_Cloud_DocumentService_Document
@@ -257,12 +257,12 @@
$documentClass = $this->getDocumentClass();
return new $documentClass($document, $key);
}
-
+
/**
* List all documents in a collection
- *
- * @param string $collectionName
- * @param null|array $options
+ *
+ * @param string $collectionName
+ * @param null|array $options
* @return Zend_Cloud_DocumentService_DocumentSet
*/
public function listDocuments($collectionName, array $options = null)
@@ -282,19 +282,19 @@
{
if (is_array($document)) {
$document = $this->_getDocumentFromArray($document, $collectionName);
- }
-
+ }
+
if (!$document instanceof Zend_Cloud_DocumentService_Document) {
throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
}
-
+
$key = $this->_validateDocumentId($document->getId(), $collectionName);
$document->setId($key);
-
+
$this->_validateCompositeKey($key);
$this->_validateFields($document);
try {
-
+
$entity = new Zend_Service_WindowsAzure_Storage_DynamicTableEntity($key[0], $key[1]);
$entity->setAzureValues($document->getFields(), true);
$this->_storageClient->insertEntity($collectionName, $entity);
@@ -304,8 +304,8 @@
}
/**
- * Replace document.
- *
+ * Replace document.
+ *
* The new document replaces the existing document.
*
* @param Zend_Cloud_DocumentService_Document $document
@@ -316,12 +316,12 @@
{
if (is_array($document)) {
$document = $this->_getDocumentFromArray($document, $collectionName);
- }
-
+ }
+
if (!$document instanceof Zend_Cloud_DocumentService_Document) {
throw new Zend_Cloud_DocumentService_Exception('Invalid document supplied');
}
-
+
$key = $this->_validateDocumentId($document->getId(), $collectionName);
$this->_validateFields($document);
try {
@@ -330,7 +330,7 @@
if (isset($options[self::VERIFY_ETAG])) {
$entity->setEtag($options[self::VERIFY_ETAG]);
}
-
+
$this->_storageClient->updateEntity($collectionName, $entity, isset($options[self::VERIFY_ETAG]));
} catch(Zend_Service_WindowsAzure_Exception $e) {
throw new Zend_Cloud_DocumentService_Exception('Error on document replace: '.$e->getMessage(), $e->getCode(), $e);
@@ -338,8 +338,8 @@
}
/**
- * Update document.
- *
+ * Update document.
+ *
* The new document is merged the existing document.
*
* @param string $collectionName
@@ -375,13 +375,13 @@
if (isset($options[self::VERIFY_ETAG])) {
$entity->setEtag($options[self::VERIFY_ETAG]);
}
-
+
$this->_storageClient->mergeEntity($collectionName, $entity, isset($options[self::VERIFY_ETAG]));
} catch(Zend_Service_WindowsAzure_Exception $e) {
throw new Zend_Cloud_DocumentService_Exception('Error on document update: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Delete document.
*
@@ -412,7 +412,7 @@
/**
* Fetch single document by ID
- *
+ *
* @param string $collectionName Collection name
* @param mixed $documentId Document ID, adapter-dependent
* @param array $options
@@ -432,7 +432,7 @@
throw new Zend_Cloud_DocumentService_Exception('Error on document fetch: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Query for documents stored in the document service. If a string is passed in
* $query, the query string will be passed directly to the service.
@@ -466,7 +466,7 @@
$setClass = $this->getDocumentSetClass();
return new $setClass($resultSet);
}
-
+
/**
* Create query statement
*
@@ -487,9 +487,9 @@
}
$query->select($fields);
- return $query;
+ return $query;
}
-
+
/**
* Get the concrete service client
*
@@ -499,11 +499,11 @@
{
return $this->_storageClient;
}
-
+
/**
* Resolve table values to attributes
- *
- * @param Zend_Service_WindowsAzure_Storage_TableEntity $entity
+ *
+ * @param Zend_Service_WindowsAzure_Storage_TableEntity $entity
* @return array
*/
protected function _resolveAttributes(Zend_Service_WindowsAzure_Storage_TableEntity $entity)
@@ -514,12 +514,12 @@
}
return $result;
}
-
+
/**
* Validate a partition or row key
- *
- * @param string $key
+ *
+ * @param string $key
* @return void
* @throws Zend_Cloud_DocumentService_Exception
*/
@@ -532,8 +532,8 @@
/**
* Validate a composite key
- *
- * @param array $key
+ *
+ * @param array $key
* @return throws Zend_Cloud_DocumentService_Exception
*/
protected function _validateCompositeKey(array $key)
@@ -549,15 +549,15 @@
/**
* Validate a document identifier
*
- * If the identifier is an array containing a valid partition and row key,
+ * If the identifier is an array containing a valid partition and row key,
* returns it. If the identifier is a string:
- * - if a default partition key is present, it creates an identifier using
+ * - if a default partition key is present, it creates an identifier using
* that and the provided document ID
* - if a collection name is provided, it will use that for the partition key
* - otherwise, it's invalid
- *
- * @param array|string $documentId
- * @param null|string $collectionName
+ *
+ * @param array|string $documentId
+ * @param null|string $collectionName
* @return array
* @throws Zend_Cloud_DocumentService_Exception
*/
@@ -585,7 +585,7 @@
/**
* Validate a document's fields for well-formedness
*
- * Since Azure uses Atom, and fieldnames are included as part of XML
+ * Since Azure uses Atom, and fieldnames are included as part of XML
* element tag names, the field names must be valid XML names.
*
* @param Zend_Cloud_DocumentService_Document|array $document
@@ -608,10 +608,10 @@
/**
* Validate an individual field name for well-formedness
*
- * Since Azure uses Atom, and fieldnames are included as part of XML
+ * Since Azure uses Atom, and fieldnames are included as part of XML
* element tag names, the field names must be valid XML names.
*
- * While we could potentially normalize names, this could also lead to
+ * While we could potentially normalize names, this could also lead to
* conflict with other field names -- which we should avoid. As such,
* invalid field names will raise an exception.
*
--- a/web/lib/Zend/Cloud/DocumentService/Adapter/WindowsAzure/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Adapter/WindowsAzure/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,171 +1,171 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/*
- * @see Zend_Cloud_DocumentService_QueryAdapter
- */
-require_once 'Zend/Cloud/DocumentService/QueryAdapter.php';
-
-/**
- * Class implementing Query adapter for working with Azure queries in a
- * structured way
- *
- * @todo Look into preventing a query injection attack.
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- implements Zend_Cloud_DocumentService_QueryAdapter
-{
- /**
- * Azure concrete query
- *
- * @var Zend_Service_WindowsAzure_Storage_TableEntityQuery
- */
- protected $_azureSelect;
-
- /**
- * Constructor
- *
- * @param null|Zend_Service_WindowsAzure_Storage_TableEntityQuery $select Table select object
- * @return void
- */
- public function __construct($select = null)
- {
- if (!$select instanceof Zend_Service_WindowsAzure_Storage_TableEntityQuery) {
- require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
- $select = new Zend_Service_WindowsAzure_Storage_TableEntityQuery();
- }
- $this->_azureSelect = $select;
- }
-
- /**
- * SELECT clause (fields to be selected)
- *
- * Does nothing for Azure.
- *
- * @param string $select
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- */
- public function select($select)
- {
- return $this;
- }
-
- /**
- * FROM clause (table name)
- *
- * @param string $from
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- */
- public function from($from)
- {
- $this->_azureSelect->from($from);
- return $this;
- }
-
- /**
- * WHERE clause (conditions to be used)
- *
- * @param string $where
- * @param mixed $value Value or array of values to be inserted instead of ?
- * @param string $op Operation to use to join where clauses (AND/OR)
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- */
- public function where($where, $value = null, $op = 'and')
- {
- if (!empty($value) && !is_array($value)) {
- // fix buglet in Azure - numeric values are quoted unless passed as an array
- $value = array($value);
- }
- $this->_azureSelect->where($where, $value, $op);
- return $this;
- }
-
- /**
- * WHERE clause for item ID
- *
- * This one should be used when fetching specific rows since some adapters
- * have special syntax for primary keys
- *
- * @param array $value Row ID for the document (PartitionKey, RowKey)
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- */
- public function whereId($value)
- {
- if (!is_array($value)) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception('Invalid document key');
- }
- $this->_azureSelect->wherePartitionKey($value[0])->whereRowKey($value[1]);
- return $this;
- }
-
- /**
- * LIMIT clause (how many rows to return)
- *
- * @param int $limit
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- */
- public function limit($limit)
- {
- $this->_azureSelect->top($limit);
- return $this;
- }
-
- /**
- * ORDER BY clause (sorting)
- *
- * @todo Azure service doesn't seem to support this yet; emulate?
- * @param string $sort Column to sort by
- * @param string $direction Direction - asc/desc
- * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
- * @throws Zend_Cloud_OperationNotAvailableException
- */
- public function order($sort, $direction = 'asc')
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('No support for sorting for Azure yet');
- }
-
- /**
- * Get Azure select query
- *
- * @return Zend_Service_WindowsAzure_Storage_TableEntityQuery
- */
- public function getAzureSelect()
- {
- return $this->_azureSelect;
- }
-
- /**
- * Assemble query
- *
- * Simply return the WindowsAzure table entity query object
- *
- * @return Zend_Service_WindowsAzure_Storage_TableEntityQuery
- */
- public function assemble()
- {
- return $this->getAzureSelect();
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/*
+ * @see Zend_Cloud_DocumentService_QueryAdapter
+ */
+require_once 'Zend/Cloud/DocumentService/QueryAdapter.php';
+
+/**
+ * Class implementing Query adapter for working with Azure queries in a
+ * structured way
+ *
+ * @todo Look into preventing a query injection attack.
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ implements Zend_Cloud_DocumentService_QueryAdapter
+{
+ /**
+ * Azure concrete query
+ *
+ * @var Zend_Service_WindowsAzure_Storage_TableEntityQuery
+ */
+ protected $_azureSelect;
+
+ /**
+ * Constructor
+ *
+ * @param null|Zend_Service_WindowsAzure_Storage_TableEntityQuery $select Table select object
+ * @return void
+ */
+ public function __construct($select = null)
+ {
+ if (!$select instanceof Zend_Service_WindowsAzure_Storage_TableEntityQuery) {
+ require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
+ $select = new Zend_Service_WindowsAzure_Storage_TableEntityQuery();
+ }
+ $this->_azureSelect = $select;
+ }
+
+ /**
+ * SELECT clause (fields to be selected)
+ *
+ * Does nothing for Azure.
+ *
+ * @param string $select
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ */
+ public function select($select)
+ {
+ return $this;
+ }
+
+ /**
+ * FROM clause (table name)
+ *
+ * @param string $from
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ */
+ public function from($from)
+ {
+ $this->_azureSelect->from($from);
+ return $this;
+ }
+
+ /**
+ * WHERE clause (conditions to be used)
+ *
+ * @param string $where
+ * @param mixed $value Value or array of values to be inserted instead of ?
+ * @param string $op Operation to use to join where clauses (AND/OR)
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ */
+ public function where($where, $value = null, $op = 'and')
+ {
+ if (!empty($value) && !is_array($value)) {
+ // fix buglet in Azure - numeric values are quoted unless passed as an array
+ $value = array($value);
+ }
+ $this->_azureSelect->where($where, $value, $op);
+ return $this;
+ }
+
+ /**
+ * WHERE clause for item ID
+ *
+ * This one should be used when fetching specific rows since some adapters
+ * have special syntax for primary keys
+ *
+ * @param array $value Row ID for the document (PartitionKey, RowKey)
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ */
+ public function whereId($value)
+ {
+ if (!is_array($value)) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception('Invalid document key');
+ }
+ $this->_azureSelect->wherePartitionKey($value[0])->whereRowKey($value[1]);
+ return $this;
+ }
+
+ /**
+ * LIMIT clause (how many rows to return)
+ *
+ * @param int $limit
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ */
+ public function limit($limit)
+ {
+ $this->_azureSelect->top($limit);
+ return $this;
+ }
+
+ /**
+ * ORDER BY clause (sorting)
+ *
+ * @todo Azure service doesn't seem to support this yet; emulate?
+ * @param string $sort Column to sort by
+ * @param string $direction Direction - asc/desc
+ * @return Zend_Cloud_DocumentService_Adapter_WindowsAzure_Query
+ * @throws Zend_Cloud_OperationNotAvailableException
+ */
+ public function order($sort, $direction = 'asc')
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('No support for sorting for Azure yet');
+ }
+
+ /**
+ * Get Azure select query
+ *
+ * @return Zend_Service_WindowsAzure_Storage_TableEntityQuery
+ */
+ public function getAzureSelect()
+ {
+ return $this->_azureSelect;
+ }
+
+ /**
+ * Assemble query
+ *
+ * Simply return the WindowsAzure table entity query object
+ *
+ * @return Zend_Service_WindowsAzure_Storage_TableEntityQuery
+ */
+ public function assemble()
+ {
+ return $this->getAzureSelect();
+ }
+}
--- a/web/lib/Zend/Cloud/DocumentService/Document.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Document.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,248 +1,248 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * Class encapsulating documents. Fields are stored in a name/value
- * array. Data are represented as strings.
- *
- * TODO Can fields be large enough to warrant support for streams?
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_DocumentService_Document
- implements ArrayAccess, IteratorAggregate, Countable
-{
- /** key in document denoting identifier */
- const KEY_FIELD = '_id';
-
- /**
- * ID of this document.
- * @var mixed
- */
- protected $_id;
-
- /**
- * Name/value array of field names to values.
- * @var array
- */
- protected $_fields;
-
- /**
- * Construct an instance of Zend_Cloud_DocumentService_Document.
- *
- * If no identifier is provided, but a field matching KEY_FIELD is present,
- * then that field's value will be used as the document identifier.
- *
- * @param array $fields
- * @param mixed $id Document identifier
- * @return void
- */
- public function __construct($fields, $id = null)
- {
- if (!is_array($fields) && !$fields instanceof ArrayAccess) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception('Fields must be an array or implement ArrayAccess');
- }
-
- if (isset($fields[self::KEY_FIELD])) {
- $id = $fields[self::KEY_FIELD];
- unset($fields[self::KEY_FIELD]);
- }
-
- $this->_fields = $fields;
- $this->setId($id);
- }
-
- /**
- * Set document identifier
- *
- * @param mixed $id
- * @return Zend_Cloud_DocumentService_Document
- */
- public function setId($id)
- {
- $this->_id = $id;
- return $this;
- }
-
- /**
- * Get ID name.
- *
- * @return string
- */
- public function getId()
- {
- return $this->_id;
- }
-
- /**
- * Get fields as array.
- *
- * @return array
- */
- public function getFields()
- {
- return $this->_fields;
- }
-
- /**
- * Get field by name.
- *
- * @param string $name
- * @return mixed
- */
- public function getField($name)
- {
- if (isset($this->_fields[$name])) {
- return $this->_fields[$name];
- }
- return null;
- }
-
- /**
- * Set field by name.
- *
- * @param string $name
- * @param mixed $value
- * @return Zend_Cloud_DocumentService_Document
- */
- public function setField($name, $value)
- {
- $this->_fields[$name] = $value;
- return $this;
- }
-
- /**
- * Overloading: get value
- *
- * @param string $name
- * @return mixed
- */
- public function __get($name)
- {
- return $this->getField($name);
- }
-
- /**
- * Overloading: set field
- *
- * @param string $name
- * @param mixed $value
- * @return void
- */
- public function __set($name, $value)
- {
- $this->setField($name, $value);
- }
-
- /**
- * ArrayAccess: does field exist?
- *
- * @param string $name
- * @return bool
- */
- public function offsetExists($name)
- {
- return isset($this->_fields[$name]);
- }
-
- /**
- * ArrayAccess: get field by name
- *
- * @param string $name
- * @return mixed
- */
- public function offsetGet($name)
- {
- return $this->getField($name);
- }
-
- /**
- * ArrayAccess: set field to value
- *
- * @param string $name
- * @param mixed $value
- * @return void
- */
- public function offsetSet($name, $value)
- {
- $this->setField($name, $value);
- }
-
- /**
- * ArrayAccess: remove field from document
- *
- * @param string $name
- * @return void
- */
- public function offsetUnset($name)
- {
- if ($this->offsetExists($name)) {
- unset($this->_fields[$name]);
- }
- }
-
- /**
- * Overloading: retrieve and set fields by name
- *
- * @param string $name
- * @param mixed $args
- * @return mixed
- */
- public function __call($name, $args)
- {
- $prefix = substr($name, 0, 3);
- if ($prefix == 'get') {
- // Get value
- $option = substr($name, 3);
- return $this->getField($option);
- } elseif ($prefix == 'set') {
- // set value
- $option = substr($name, 3);
- return $this->setField($option, $args[0]);
- }
-
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException("Unknown operation $name");
- }
-
- /**
- * Countable: return count of fields in document
- *
- * @return int
- */
- public function count()
- {
- return count($this->_fields);
- }
-
- /**
- * IteratorAggregate: return iterator for iterating over fields
- *
- * @return Iterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_fields);
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * Class encapsulating documents. Fields are stored in a name/value
+ * array. Data are represented as strings.
+ *
+ * TODO Can fields be large enough to warrant support for streams?
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_DocumentService_Document
+ implements ArrayAccess, IteratorAggregate, Countable
+{
+ /** key in document denoting identifier */
+ const KEY_FIELD = '_id';
+
+ /**
+ * ID of this document.
+ * @var mixed
+ */
+ protected $_id;
+
+ /**
+ * Name/value array of field names to values.
+ * @var array
+ */
+ protected $_fields;
+
+ /**
+ * Construct an instance of Zend_Cloud_DocumentService_Document.
+ *
+ * If no identifier is provided, but a field matching KEY_FIELD is present,
+ * then that field's value will be used as the document identifier.
+ *
+ * @param array $fields
+ * @param mixed $id Document identifier
+ * @return void
+ */
+ public function __construct($fields, $id = null)
+ {
+ if (!is_array($fields) && !$fields instanceof ArrayAccess) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception('Fields must be an array or implement ArrayAccess');
+ }
+
+ if (isset($fields[self::KEY_FIELD])) {
+ $id = $fields[self::KEY_FIELD];
+ unset($fields[self::KEY_FIELD]);
+ }
+
+ $this->_fields = $fields;
+ $this->setId($id);
+ }
+
+ /**
+ * Set document identifier
+ *
+ * @param mixed $id
+ * @return Zend_Cloud_DocumentService_Document
+ */
+ public function setId($id)
+ {
+ $this->_id = $id;
+ return $this;
+ }
+
+ /**
+ * Get ID name.
+ *
+ * @return string
+ */
+ public function getId()
+ {
+ return $this->_id;
+ }
+
+ /**
+ * Get fields as array.
+ *
+ * @return array
+ */
+ public function getFields()
+ {
+ return $this->_fields;
+ }
+
+ /**
+ * Get field by name.
+ *
+ * @param string $name
+ * @return mixed
+ */
+ public function getField($name)
+ {
+ if (isset($this->_fields[$name])) {
+ return $this->_fields[$name];
+ }
+ return null;
+ }
+
+ /**
+ * Set field by name.
+ *
+ * @param string $name
+ * @param mixed $value
+ * @return Zend_Cloud_DocumentService_Document
+ */
+ public function setField($name, $value)
+ {
+ $this->_fields[$name] = $value;
+ return $this;
+ }
+
+ /**
+ * Overloading: get value
+ *
+ * @param string $name
+ * @return mixed
+ */
+ public function __get($name)
+ {
+ return $this->getField($name);
+ }
+
+ /**
+ * Overloading: set field
+ *
+ * @param string $name
+ * @param mixed $value
+ * @return void
+ */
+ public function __set($name, $value)
+ {
+ $this->setField($name, $value);
+ }
+
+ /**
+ * ArrayAccess: does field exist?
+ *
+ * @param string $name
+ * @return bool
+ */
+ public function offsetExists($name)
+ {
+ return isset($this->_fields[$name]);
+ }
+
+ /**
+ * ArrayAccess: get field by name
+ *
+ * @param string $name
+ * @return mixed
+ */
+ public function offsetGet($name)
+ {
+ return $this->getField($name);
+ }
+
+ /**
+ * ArrayAccess: set field to value
+ *
+ * @param string $name
+ * @param mixed $value
+ * @return void
+ */
+ public function offsetSet($name, $value)
+ {
+ $this->setField($name, $value);
+ }
+
+ /**
+ * ArrayAccess: remove field from document
+ *
+ * @param string $name
+ * @return void
+ */
+ public function offsetUnset($name)
+ {
+ if ($this->offsetExists($name)) {
+ unset($this->_fields[$name]);
+ }
+ }
+
+ /**
+ * Overloading: retrieve and set fields by name
+ *
+ * @param string $name
+ * @param mixed $args
+ * @return mixed
+ */
+ public function __call($name, $args)
+ {
+ $prefix = substr($name, 0, 3);
+ if ($prefix == 'get') {
+ // Get value
+ $option = substr($name, 3);
+ return $this->getField($option);
+ } elseif ($prefix == 'set') {
+ // set value
+ $option = substr($name, 3);
+ return $this->setField($option, $args[0]);
+ }
+
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException("Unknown operation $name");
+ }
+
+ /**
+ * Countable: return count of fields in document
+ *
+ * @return int
+ */
+ public function count()
+ {
+ return count($this->_fields);
+ }
+
+ /**
+ * IteratorAggregate: return iterator for iterating over fields
+ *
+ * @return Iterator
+ */
+ public function getIterator()
+ {
+ return new ArrayIterator($this->_fields);
+ }
+}
--- a/web/lib/Zend/Cloud/DocumentService/DocumentSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/DocumentSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_DocumentService_DocumentSet implements Countable, IteratorAggregate
@@ -48,7 +48,7 @@
/**
* Countable: number of documents in set
- *
+ *
* @return int
*/
public function count()
@@ -58,7 +58,7 @@
/**
* IteratorAggregate: retrieve iterator
- *
+ *
* @return Traversable
*/
public function getIterator()
--- a/web/lib/Zend/Cloud/DocumentService/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,38 +1,38 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-
-/**
- * Zend_Cloud_Exception
- */
-require_once 'Zend/Cloud/Exception.php';
-
-
-/**
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_DocumentService_Exception extends Zend_Cloud_Exception
-{}
-
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+
+/**
+ * Zend_Cloud_Exception
+ */
+require_once 'Zend/Cloud/Exception.php';
+
+
+/**
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_DocumentService_Exception extends Zend_Cloud_Exception
+{}
+
--- a/web/lib/Zend/Cloud/DocumentService/Factory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Factory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,13 +23,13 @@
/**
* Class implementing working with Azure queries in a structured way
- *
+ *
* TODO Look into preventing a query injection attack.
*
* @category Zend
* @package Zend_Cloud
* @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_DocumentService_Factory extends Zend_Cloud_AbstractFactory
@@ -43,21 +43,21 @@
/**
* Constructor
- *
+ *
* @return void
*/
private function __construct()
{
// private ctor - should not be used
}
-
+
/**
* Retrieve an adapter instance
- *
- * @param array $options
+ *
+ * @param array $options
* @return void
*/
- public static function getAdapter($options = array())
+ public static function getAdapter($options = array())
{
$adapter = parent::_getAdapter(self::DOCUMENT_ADAPTER_KEY, $options);
if (!$adapter) {
--- a/web/lib/Zend/Cloud/DocumentService/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,191 +1,191 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Cloud/DocumentService/QueryAdapter.php';
-
-/**
- * Generic query object
- *
- * Aggregates operations in an array of clauses, where the first element
- * describes the clause type, and the next element describes the criteria.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_DocumentService_Query
- implements Zend_Cloud_DocumentService_QueryAdapter
-{
- /**
- * Known query types
- */
- const QUERY_SELECT = 'select';
- const QUERY_FROM = 'from';
- const QUERY_WHERE = 'where';
- const QUERY_WHEREID = 'whereid'; // request element by ID
- const QUERY_LIMIT = 'limit';
- const QUERY_ORDER = 'order';
-
- /**
- * Clause list
- *
- * @var array
- */
- protected $_clauses = array();
-
- /**
- * Generic clause
- *
- * You can use any clause by doing $query->foo('bar')
- * but concrete adapters should be able to recognise it
- *
- * The call will be iterpreted as clause 'foo' with argument 'bar'
- *
- * @param string $name Clause/method name
- * @param mixed $args
- * @return Zend_Cloud_DocumentService_Query
- */
- public function __call($name, $args)
- {
- $this->_clauses[] = array(strtolower($name), $args);
- return $this;
- }
-
- /**
- * SELECT clause (fields to be selected)
- *
- * @param null|string|array $select
- * @return Zend_Cloud_DocumentService_Query
- */
- public function select($select)
- {
- if (empty($select)) {
- return $this;
- }
- if (!is_string($select) && !is_array($select)) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception("SELECT argument must be a string or an array of strings");
- }
- $this->_clauses[] = array(self::QUERY_SELECT, $select);
- return $this;
- }
-
- /**
- * FROM clause
- *
- * @param string $name Field names
- * @return Zend_Cloud_DocumentService_Query
- */
- public function from($name)
- {
- if(!is_string($name)) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception("FROM argument must be a string");
- }
- $this->_clauses[] = array(self::QUERY_FROM, $name);
- return $this;
- }
-
- /**
- * WHERE query
- *
- * @param string $cond Condition
- * @param array $args Arguments to substitute instead of ?'s in condition
- * @param string $op relation to other clauses - and/or
- * @return Zend_Cloud_DocumentService_Query
- */
- public function where($cond, $value = null, $op = 'and')
- {
- if (!is_string($cond)) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception("WHERE argument must be a string");
- }
- $this->_clauses[] = array(self::QUERY_WHERE, array($cond, $value, $op));
- return $this;
- }
-
- /**
- * Select record or fields by ID
- *
- * @param string|int $value Identifier to select by
- * @return Zend_Cloud_DocumentService_Query
- */
- public function whereId($value)
- {
- if (!is_scalar($value)) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception("WHEREID argument must be a scalar");
- }
- $this->_clauses[] = array(self::QUERY_WHEREID, $value);
- return $this;
- }
-
- /**
- * LIMIT clause (how many items to return)
- *
- * @param int $limit
- * @return Zend_Cloud_DocumentService_Query
- */
- public function limit($limit)
- {
- if ($limit != (int) $limit) {
- require_once 'Zend/Cloud/DocumentService/Exception.php';
- throw new Zend_Cloud_DocumentService_Exception("LIMIT argument must be an integer");
- }
- $this->_clauses[] = array(self::QUERY_LIMIT, $limit);
- return $this;
- }
-
- /**
- * ORDER clause; field or fields to sort by, and direction to sort
- *
- * @param string|int|array $sort
- * @param string $direction
- * @return Zend_Cloud_DocumentService_Query
- */
- public function order($sort, $direction = 'asc')
- {
- $this->_clauses[] = array(self::QUERY_ORDER, array($sort, $direction));
- return $this;
- }
-
- /**
- * "Assemble" the query
- *
- * Simply returns the clauses present.
- *
- * @return array
- */
- public function assemble()
- {
- return $this->getClauses();
- }
-
- /**
- * Return query clauses as an array
- *
- * @return array Clauses in the query
- */
- public function getClauses()
- {
- return $this->_clauses;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Cloud/DocumentService/QueryAdapter.php';
+
+/**
+ * Generic query object
+ *
+ * Aggregates operations in an array of clauses, where the first element
+ * describes the clause type, and the next element describes the criteria.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_DocumentService_Query
+ implements Zend_Cloud_DocumentService_QueryAdapter
+{
+ /**
+ * Known query types
+ */
+ const QUERY_SELECT = 'select';
+ const QUERY_FROM = 'from';
+ const QUERY_WHERE = 'where';
+ const QUERY_WHEREID = 'whereid'; // request element by ID
+ const QUERY_LIMIT = 'limit';
+ const QUERY_ORDER = 'order';
+
+ /**
+ * Clause list
+ *
+ * @var array
+ */
+ protected $_clauses = array();
+
+ /**
+ * Generic clause
+ *
+ * You can use any clause by doing $query->foo('bar')
+ * but concrete adapters should be able to recognise it
+ *
+ * The call will be iterpreted as clause 'foo' with argument 'bar'
+ *
+ * @param string $name Clause/method name
+ * @param mixed $args
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function __call($name, $args)
+ {
+ $this->_clauses[] = array(strtolower($name), $args);
+ return $this;
+ }
+
+ /**
+ * SELECT clause (fields to be selected)
+ *
+ * @param null|string|array $select
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function select($select)
+ {
+ if (empty($select)) {
+ return $this;
+ }
+ if (!is_string($select) && !is_array($select)) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception("SELECT argument must be a string or an array of strings");
+ }
+ $this->_clauses[] = array(self::QUERY_SELECT, $select);
+ return $this;
+ }
+
+ /**
+ * FROM clause
+ *
+ * @param string $name Field names
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function from($name)
+ {
+ if(!is_string($name)) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception("FROM argument must be a string");
+ }
+ $this->_clauses[] = array(self::QUERY_FROM, $name);
+ return $this;
+ }
+
+ /**
+ * WHERE query
+ *
+ * @param string $cond Condition
+ * @param array $args Arguments to substitute instead of ?'s in condition
+ * @param string $op relation to other clauses - and/or
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function where($cond, $value = null, $op = 'and')
+ {
+ if (!is_string($cond)) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception("WHERE argument must be a string");
+ }
+ $this->_clauses[] = array(self::QUERY_WHERE, array($cond, $value, $op));
+ return $this;
+ }
+
+ /**
+ * Select record or fields by ID
+ *
+ * @param string|int $value Identifier to select by
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function whereId($value)
+ {
+ if (!is_scalar($value)) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception("WHEREID argument must be a scalar");
+ }
+ $this->_clauses[] = array(self::QUERY_WHEREID, $value);
+ return $this;
+ }
+
+ /**
+ * LIMIT clause (how many items to return)
+ *
+ * @param int $limit
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function limit($limit)
+ {
+ if ($limit != (int) $limit) {
+ require_once 'Zend/Cloud/DocumentService/Exception.php';
+ throw new Zend_Cloud_DocumentService_Exception("LIMIT argument must be an integer");
+ }
+ $this->_clauses[] = array(self::QUERY_LIMIT, $limit);
+ return $this;
+ }
+
+ /**
+ * ORDER clause; field or fields to sort by, and direction to sort
+ *
+ * @param string|int|array $sort
+ * @param string $direction
+ * @return Zend_Cloud_DocumentService_Query
+ */
+ public function order($sort, $direction = 'asc')
+ {
+ $this->_clauses[] = array(self::QUERY_ORDER, array($sort, $direction));
+ return $this;
+ }
+
+ /**
+ * "Assemble" the query
+ *
+ * Simply returns the clauses present.
+ *
+ * @return array
+ */
+ public function assemble()
+ {
+ return $this->getClauses();
+ }
+
+ /**
+ * Return query clauses as an array
+ *
+ * @return array Clauses in the query
+ */
+ public function getClauses()
+ {
+ return $this->_clauses;
+ }
+}
--- a/web/lib/Zend/Cloud/DocumentService/QueryAdapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/DocumentService/QueryAdapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,102 +1,102 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * This interface describes the API that concrete query adapter should implement
- *
- * Common interface for document storage services in the cloud. This interface
- * supports most document services and provides some flexibility for
- * vendor-specific features and requirements via an optional $options array in
- * each method signature. Classes implementing this interface should implement
- * URI construction for collections and documents from the parameters given in each
- * method and the account data passed in to the constructor. Classes
- * implementing this interface are also responsible for security; access control
- * isn't currently supported in this interface, although we are considering
- * access control support in future versions of the interface. Query
- * optimization mechanisms are also not supported in this version.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage DocumentService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-interface Zend_Cloud_DocumentService_QueryAdapter
-{
- /**
- * SELECT clause (fields to be selected)
- *
- * @param string $select
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function select($select);
-
- /**
- * FROM clause (table name)
- *
- * @param string $from
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function from($from);
-
- /**
- * WHERE clause (conditions to be used)
- *
- * @param string $where
- * @param mixed $value Value or array of values to be inserted instead of ?
- * @param string $op Operation to use to join where clauses (AND/OR)
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function where($where, $value = null, $op = 'and');
-
- /**
- * WHERE clause for item ID
- *
- * This one should be used when fetching specific rows since some adapters
- * have special syntax for primary keys
- *
- * @param mixed $value Row ID for the document
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function whereId($value);
-
- /**
- * LIMIT clause (how many rows ot return)
- *
- * @param int $limit
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function limit($limit);
-
- /**
- * ORDER BY clause (sorting)
- *
- * @param string $sort Column to sort by
- * @param string $direction Direction - asc/desc
- * @return Zend_Cloud_DocumentService_QueryAdapter
- */
- public function order($sort, $direction = 'asc');
-
- /**
- * Assemble the query into a format the adapter can utilize
- *
- * @return mixed
- */
- public function assemble();
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * This interface describes the API that concrete query adapter should implement
+ *
+ * Common interface for document storage services in the cloud. This interface
+ * supports most document services and provides some flexibility for
+ * vendor-specific features and requirements via an optional $options array in
+ * each method signature. Classes implementing this interface should implement
+ * URI construction for collections and documents from the parameters given in each
+ * method and the account data passed in to the constructor. Classes
+ * implementing this interface are also responsible for security; access control
+ * isn't currently supported in this interface, although we are considering
+ * access control support in future versions of the interface. Query
+ * optimization mechanisms are also not supported in this version.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage DocumentService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+interface Zend_Cloud_DocumentService_QueryAdapter
+{
+ /**
+ * SELECT clause (fields to be selected)
+ *
+ * @param string $select
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function select($select);
+
+ /**
+ * FROM clause (table name)
+ *
+ * @param string $from
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function from($from);
+
+ /**
+ * WHERE clause (conditions to be used)
+ *
+ * @param string $where
+ * @param mixed $value Value or array of values to be inserted instead of ?
+ * @param string $op Operation to use to join where clauses (AND/OR)
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function where($where, $value = null, $op = 'and');
+
+ /**
+ * WHERE clause for item ID
+ *
+ * This one should be used when fetching specific rows since some adapters
+ * have special syntax for primary keys
+ *
+ * @param mixed $value Row ID for the document
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function whereId($value);
+
+ /**
+ * LIMIT clause (how many rows ot return)
+ *
+ * @param int $limit
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function limit($limit);
+
+ /**
+ * ORDER BY clause (sorting)
+ *
+ * @param string $sort Column to sort by
+ * @param string $direction Direction - asc/desc
+ * @return Zend_Cloud_DocumentService_QueryAdapter
+ */
+ public function order($sort, $direction = 'asc');
+
+ /**
+ * Assemble the query into a format the adapter can utilize
+ *
+ * @return mixed
+ */
+ public function assemble();
+}
--- a/web/lib/Zend/Cloud/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,53 +1,53 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-
-/**
- * Zend_Exception
- */
-require_once 'Zend/Exception.php';
-
-
-/**
- * @category Zend
- * @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_Exception extends Zend_Exception
-{
- /**
- * Exception for the underlying adapter
- *
- * @var Exception
- */
- protected $_clientException;
-
- public function __construct($message, $code = 0, $clientException = null)
- {
- $this->_clientException = $clientException;
- parent::__construct($message, $code, $clientException);
- }
-
- public function getClientException() {
- return $this->_getPrevious();
- }
-}
-
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+
+/**
+ * Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+
+/**
+ * @category Zend
+ * @package Zend_Cloud
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_Exception extends Zend_Exception
+{
+ /**
+ * Exception for the underlying adapter
+ *
+ * @var Exception
+ */
+ protected $_clientException;
+
+ public function __construct($message, $code = 0, $clientException = null)
+ {
+ $this->_clientException = $clientException;
+ parent::__construct($message, $code, $clientException);
+ }
+
+ public function getClientException() {
+ return $this->_getPrevious();
+ }
+}
+
--- a/web/lib/Zend/Cloud/OperationNotAvailableException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/OperationNotAvailableException.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,34 +1,34 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * Zend_Exception
- */
-require_once 'Zend/Exception.php';
-
-/**
- * @category Zend
- * @package Zend_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_OperationNotAvailableException extends Zend_Exception
-{}
-
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
+ * @category Zend
+ * @package Zend_Cloud
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_OperationNotAvailableException extends Zend_Exception
+{}
+
--- a/web/lib/Zend/Cloud/QueueService/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Cloud_QueueService_Adapter
@@ -49,7 +49,7 @@
* Create a queue. Returns the ID of the created queue (typically the URL).
* It may take some time to create the queue. Check your vendor's
* documentation for details.
- *
+ *
* Name constraints: Maximum 80 characters
* Only alphanumeric characters, hyphens (-), and underscores (_)
*
@@ -67,7 +67,7 @@
* @return boolean true if successful, false otherwise
*/
public function deleteQueue($queueId, $options = null);
-
+
/**
* List all queues.
*
@@ -75,7 +75,7 @@
* @return array Queue IDs
*/
public function listQueues($options = null);
-
+
/**
* Get a key/value array of metadata for the given queue.
*
@@ -84,40 +84,40 @@
* @return array
*/
public function fetchQueueMetadata($queueId, $options = null);
-
+
/**
* Store a key/value array of metadata for the specified queue.
- * WARNING: This operation overwrites any metadata that is located at
+ * WARNING: This operation overwrites any metadata that is located at
* $destinationPath. Some adapters may not support this method.
- *
+ *
* @param string $queueId
* @param array $metadata
* @param array $options
* @return void
*/
public function storeQueueMetadata($queueId, $metadata, $options = null);
-
+
/**
* Send a message to the specified queue.
- *
+ *
* @param string $queueId
* @param string $message
* @param array $options
* @return string Message ID
*/
public function sendMessage($queueId, $message, $options = null);
-
+
/**
* Recieve at most $max messages from the specified queue and return the
* message IDs for messages recieved.
- *
+ *
* @param string $queueId
* @param int $max
* @param array $options
* @return array[Zend_Cloud_QueueService_Message] Array of messages
*/
public function receiveMessages($queueId, $max = 1, $options = null);
-
+
/**
* Peek at the messages from the specified queue without removing them.
*
@@ -127,18 +127,18 @@
* @return array[Zend_Cloud_QueueService_Message]
*/
public function peekMessages($queueId, $num = 1, $options = null);
-
+
/**
* Delete the specified message from the specified queue.
- *
+ *
* @param string $queueId
- * @param Zend_Cloud_QueueService_Message $message Message to delete
+ * @param Zend_Cloud_QueueService_Message $message Message to delete
* @param array $options
* @return void
- *
+ *
*/
public function deleteMessage($queueId, $message, $options = null);
-
+
/**
* Get the concrete adapter.
*/
--- a/web/lib/Zend/Cloud/QueueService/Adapter/AbstractAdapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Adapter/AbstractAdapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Cloud_QueueService_Adapter_AbstractAdapter
@@ -48,8 +48,8 @@
/**
* Set class to use for message objects
- *
- * @param string $class
+ *
+ * @param string $class
* @return Zend_Cloud_QueueService_Adapter_AbstractAdapter
*/
public function setMessageClass($class)
@@ -60,7 +60,7 @@
/**
* Get class to use for message objects
- *
+ *
* @return string
*/
public function getMessageClass()
@@ -70,8 +70,8 @@
/**
* Set class to use for message collection objects
- *
- * @param string $class
+ *
+ * @param string $class
* @return Zend_Cloud_QueueService_Adapter_AbstractAdapter
*/
public function setMessageSetClass($class)
@@ -82,7 +82,7 @@
/**
* Get class to use for message collection objects
- *
+ *
* @return string
*/
public function getMessageSetClass()
--- a/web/lib/Zend/Cloud/QueueService/Adapter/Sqs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Adapter/Sqs.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,10 +28,10 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Cloud_QueueService_Adapter_Sqs
+class Zend_Cloud_QueueService_Adapter_Sqs
extends Zend_Cloud_QueueService_Adapter_AbstractAdapter
{
/*
@@ -53,11 +53,11 @@
/**
* Constructor
- *
- * @param array|Zend_Config $options
+ *
+ * @param array|Zend_Config $options
* @return void
*/
- public function __construct($options = array())
+ public function __construct($options = array())
{
if ($options instanceof Zend_Config) {
$options = $options->toArray();
@@ -85,7 +85,7 @@
if(isset($options[self::HTTP_ADAPTER])) {
$this->_sqs->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]);
- }
+ }
}
/**
@@ -97,7 +97,7 @@
* @param array $options
* @return string Queue ID (typically URL)
*/
- public function createQueue($name, $options = null)
+ public function createQueue($name, $options = null)
{
try {
return $this->_sqs->create($name, $options[self::CREATE_TIMEOUT]);
@@ -113,7 +113,7 @@
* @param array $options
* @return boolean true if successful, false otherwise
*/
- public function deleteQueue($queueId, $options = null)
+ public function deleteQueue($queueId, $options = null)
{
try {
return $this->_sqs->delete($queueId);
@@ -128,7 +128,7 @@
* @param array $options
* @return array Queue IDs
*/
- public function listQueues($options = null)
+ public function listQueues($options = null)
{
try {
return $this->_sqs->getQueues();
@@ -144,7 +144,7 @@
* @param array $options
* @return array
*/
- public function fetchQueueMetadata($queueId, $options = null)
+ public function fetchQueueMetadata($queueId, $options = null)
{
try {
// TODO: ZF-9050 Fix the SQS client library in trunk to return all attribute values
@@ -169,7 +169,7 @@
* @param array $options
* @return void
*/
- public function storeQueueMetadata($queueId, $metadata, $options = null)
+ public function storeQueueMetadata($queueId, $metadata, $options = null)
{
// TODO Add support for SetQueueAttributes to client library
require_once 'Zend/Cloud/OperationNotAvailableException.php';
@@ -184,7 +184,7 @@
* @param array $options
* @return string Message ID
*/
- public function sendMessage($queueId, $message, $options = null)
+ public function sendMessage($queueId, $message, $options = null)
{
try {
return $this->_sqs->send($queueId, $message);
@@ -202,7 +202,7 @@
* @param array $options
* @return array
*/
- public function receiveMessages($queueId, $max = 1, $options = null)
+ public function receiveMessages($queueId, $max = 1, $options = null)
{
try {
return $this->_makeMessages($this->_sqs->receive($queueId, $max, $options[self::VISIBILITY_TIMEOUT]));
@@ -210,11 +210,11 @@
throw new Zend_Cloud_QueueService_Exception('Error on recieving messages: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Create Zend_Cloud_QueueService_Message array for
* Sqs messages.
- *
+ *
* @param array $messages
* @return Zend_Cloud_QueueService_Message[]
*/
@@ -237,7 +237,7 @@
* @param array $options
* @return void
*/
- public function deleteMessage($queueId, $message, $options = null)
+ public function deleteMessage($queueId, $message, $options = null)
{
try {
if($message instanceof Zend_Cloud_QueueService_Message) {
@@ -249,7 +249,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on deleting a message: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Peek at the messages from the specified queue without removing them.
*
@@ -269,7 +269,7 @@
/**
* Get SQS implementation
- * @return Zend_Service_Amazon_Sqs
+ * @return Zend_Service_Amazon_Sqs
*/
public function getClient()
{
--- a/web/lib/Zend/Cloud/QueueService/Adapter/WindowsAzure.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Adapter/WindowsAzure.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,10 +27,10 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Cloud_QueueService_Adapter_WindowsAzure
+class Zend_Cloud_QueueService_Adapter_WindowsAzure
extends Zend_Cloud_QueueService_Adapter_AbstractAdapter
{
/**
@@ -49,20 +49,20 @@
/** message options */
const MESSAGE_TTL = 'ttl';
-
+
const DEFAULT_HOST = Zend_Service_WindowsAzure_Storage::URL_CLOUD_QUEUE;
/**
* Storage client
- *
+ *
* @var Zend_Service_WindowsAzure_Storage_Queue
*/
protected $_storageClient = null;
-
+
/**
* Constructor
- *
- * @param array|Zend_Config $options
+ *
+ * @param array|Zend_Config $options
* @return void
*/
public function __construct($options = array())
@@ -112,9 +112,9 @@
} catch(Zend_Service_WindowsAzure_Exception $e) {
throw new Zend_Cloud_QueueService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
}
-
+
}
-
+
/**
* Create a queue. Returns the ID of the created queue (typically the URL).
* It may take some time to create the queue. Check your vendor's
@@ -133,7 +133,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on queue creation: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Delete a queue. All messages in the queue will also be deleted.
*
@@ -152,7 +152,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on queue deletion: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* List all queues.
*
@@ -177,7 +177,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on listing queues: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Get a key/value array of metadata for the given queue.
*
@@ -196,12 +196,12 @@
throw new Zend_Cloud_QueueService_Exception('Error on fetching queue metadata: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Store a key/value array of metadata for the specified queue.
- * WARNING: This operation overwrites any metadata that is located at
+ * WARNING: This operation overwrites any metadata that is located at
* $destinationPath. Some adapters may not support this method.
- *
+ *
* @param string $queueId
* @param array $metadata
* @param array $options
@@ -218,10 +218,10 @@
throw new Zend_Cloud_QueueService_Exception('Error on setting queue metadata: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Send a message to the specified queue.
- *
+ *
* @param string $queueId
* @param string $message
* @param array $options
@@ -240,11 +240,11 @@
throw new Zend_Cloud_QueueService_Exception('Error on sending message: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Recieve at most $max messages from the specified queue and return the
* message IDs for messages recieved.
- *
+ *
* @param string $queueId
* @param int $max
* @param array $options
@@ -266,11 +266,11 @@
throw new Zend_Cloud_QueueService_Exception('Error on recieving messages: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Create Zend_Cloud_QueueService_Message array for
* Azure messages.
- *
+ *
* @param array $messages
* @return Zend_Cloud_QueueService_Message[]
*/
@@ -287,9 +287,9 @@
/**
* Delete the specified message from the specified queue.
- *
+ *
* @param string $queueId
- * @param Zend_Cloud_QueueService_Message $message Message ID or message
+ * @param Zend_Cloud_QueueService_Message $message Message ID or message
* @param array $options
* @return void
*/
@@ -331,10 +331,10 @@
throw new Zend_Cloud_QueueService_Exception('Error on peeking messages: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Get Azure implementation
- * @return Zend_Service_Azure_Storage_Queue
+ * @return Zend_Service_Azure_Storage_Queue
*/
public function getClient()
{
--- a/web/lib/Zend/Cloud/QueueService/Adapter/ZendQueue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Adapter/ZendQueue.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,33 +27,33 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Cloud_QueueService_Adapter_ZendQueue
+class Zend_Cloud_QueueService_Adapter_ZendQueue
extends Zend_Cloud_QueueService_Adapter_AbstractAdapter
{
/**
* Options array keys for the Zend_Queue adapter.
*/
const ADAPTER = 'adapter';
-
+
/**
* Storage client
- *
+ *
* @var Zend_Queue
*/
protected $_queue = null;
-
+
/**
* @var array All queues
*/
protected $_queues = array();
-
+
/**
* Constructor
- *
- * @param array|Zend_Config $options
+ *
+ * @param array|Zend_Config $options
* @return void
*/
public function __construct ($options = array())
@@ -87,7 +87,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Create a queue. Returns the ID of the created queue (typically the URL).
* It may take some time to create the queue. Check your vendor's
@@ -106,7 +106,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on queue creation: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Delete a queue. All messages in the queue will also be deleted.
*
@@ -128,7 +128,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on queue deletion: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* List all queues.
*
@@ -143,7 +143,7 @@
throw new Zend_Cloud_QueueService_Exception('Error on listing queues: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Get a key/value array of metadata for the given queue.
*
@@ -162,12 +162,12 @@
throw new Zend_Cloud_QueueService_Exception('Error on fetching queue metadata: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Store a key/value array of metadata for the specified queue.
- * WARNING: This operation overwrites any metadata that is located at
+ * WARNING: This operation overwrites any metadata that is located at
* $destinationPath. Some adapters may not support this method.
- *
+ *
* @param string $queueId
* @param array $metadata
* @param array $options
@@ -184,10 +184,10 @@
throw new Zend_Cloud_QueueService_Exception('Error on setting queue metadata: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Send a message to the specified queue.
- *
+ *
* @param string $queueId
* @param string $message
* @param array $options
@@ -204,11 +204,11 @@
throw new Zend_Cloud_QueueService_Exception('Error on sending message: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Recieve at most $max messages from the specified queue and return the
* message IDs for messages recieved.
- *
+ *
* @param string $queueId
* @param int $max
* @param array $options
@@ -230,11 +230,11 @@
throw new Zend_Cloud_QueueService_Exception('Error on recieving messages: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Create Zend_Cloud_QueueService_Message array for
* Azure messages.
- *
+ *
* @param array $messages
* @return Zend_Cloud_QueueService_Message[]
*/
@@ -248,12 +248,12 @@
}
return new $setClass($result);
}
-
+
/**
* Delete the specified message from the specified queue.
- *
+ *
* @param string $queueId
- * @param Zend_Cloud_QueueService_Message $message Message ID or message
+ * @param Zend_Cloud_QueueService_Message $message Message ID or message
* @param array $options
* @return void
*/
@@ -269,13 +269,13 @@
if (!($message instanceof Zend_Queue_Message)) {
throw new Zend_Cloud_QueueService_Exception('Cannot delete the message: Zend_Queue_Message object required');
}
-
+
return $this->_queues[$queueId]->deleteMessage($message);
} catch (Zend_Queue_Exception $e) {
throw new Zend_Cloud_QueueService_Exception('Error on deleting a message: '.$e->getMessage(), $e->getCode(), $e);
}
}
-
+
/**
* Peek at the messages from the specified queue without removing them.
*
@@ -289,10 +289,10 @@
require_once 'Zend/Cloud/OperationNotAvailableException.php';
throw new Zend_Cloud_OperationNotAvailableException('ZendQueue doesn\'t currently support message peeking');
}
-
+
/**
* Get Azure implementation
- * @return Zend_Queue
+ * @return Zend_Queue
*/
public function getClient()
{
--- a/web/lib/Zend/Cloud/QueueService/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,37 +1,37 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-
-/**
- * Zend_Cloud_Exception
- */
-require_once 'Zend/Cloud/Exception.php';
-
-
-/**
- * @category Zend
- * @package Zend_Cloud
- * @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_QueueService_Exception extends Zend_Cloud_Exception
-{}
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage QueueService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+
+/**
+ * Zend_Cloud_Exception
+ */
+require_once 'Zend/Cloud/Exception.php';
+
+
+/**
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage QueueService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_QueueService_Exception extends Zend_Cloud_Exception
+{}
--- a/web/lib/Zend/Cloud/QueueService/Factory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Factory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_QueueService_Factory extends Zend_Cloud_AbstractFactory
@@ -39,21 +39,21 @@
/**
* Constructor
- *
+ *
* @return void
*/
private function __construct()
{
// private ctor - should not be used
}
-
+
/**
* Retrieve QueueService adapter
- *
- * @param array $options
+ *
+ * @param array $options
* @return void
*/
- public static function getAdapter($options = array())
+ public static function getAdapter($options = array())
{
$adapter = parent::_getAdapter(self::QUEUE_ADAPTER_KEY, $options);
if (!$adapter) {
--- a/web/lib/Zend/Cloud/QueueService/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,60 +1,60 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * Generic message class
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_QueueService_Message
-{
- protected $_body;
- protected $_clientMessage;
-
- /**
- * @param string $body Message text
- * @param $message Original message
- */
- function __construct($body, $message)
- {
- $this->_body = $body;
- $this->_clientMessage = $message;
- }
-
- /**
- * Get the message body
- * @return string
- */
- public function getBody()
- {
- return $this->_body;
- }
-
- /**
- * Get the original adapter-specific message
- */
- public function getMessage()
- {
- return $this->_clientMessage;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage QueueService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * Generic message class
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage QueueService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_QueueService_Message
+{
+ protected $_body;
+ protected $_clientMessage;
+
+ /**
+ * @param string $body Message text
+ * @param string $message Original message
+ */
+ function __construct($body, $message)
+ {
+ $this->_body = $body;
+ $this->_clientMessage = $message;
+ }
+
+ /**
+ * Get the message body
+ * @return string
+ */
+ public function getBody()
+ {
+ return $this->_body;
+ }
+
+ /**
+ * Get the original adapter-specific message
+ */
+ public function getMessage()
+ {
+ return $this->_clientMessage;
+ }
+}
--- a/web/lib/Zend/Cloud/QueueService/MessageSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/QueueService/MessageSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage QueueService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_QueueService_MessageSet implements Countable, IteratorAggregate
@@ -36,8 +36,8 @@
/**
* Constructor
- *
- * @param array $messages
+ *
+ * @param array $messages
* @return void
*/
public function __construct(array $messages)
@@ -48,7 +48,7 @@
/**
* Countable: number of messages in collection
- *
+ *
* @return int
*/
public function count()
@@ -58,7 +58,7 @@
/**
* IteratorAggregate: return iterable object
- *
+ *
* @return Traversable
*/
public function getIterator()
--- a/web/lib/Zend/Cloud/StorageService/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,7 +13,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Cloud_StorageService_Adapter
@@ -39,10 +39,10 @@
* @return mixed
*/
public function fetchItem($path, $options = null);
-
+
/**
* Store an item in the storage service.
- * WARNING: This operation overwrites any item that is located at
+ * WARNING: This operation overwrites any item that is located at
* $destinationPath.
* @param string $destinationPath
* @param mixed $data
@@ -52,7 +52,7 @@
public function storeItem($destinationPath,
$data,
$options = null);
-
+
/**
* Delete an item in the storage service.
*
@@ -61,10 +61,10 @@
* @return void
*/
public function deleteItem($path, $options = null);
-
+
/**
* Copy an item in the storage service to a given path.
- *
+ *
* The $destinationPath must be a directory.
*
* @param string $sourcePath
@@ -73,10 +73,10 @@
* @return void
*/
public function copyItem($sourcePath, $destinationPath, $options = null);
-
+
/**
* Move an item in the storage service to a given path.
- *
+ *
* The $destinationPath must be a directory.
*
* @param string $sourcePath
@@ -85,7 +85,7 @@
* @return void
*/
public function moveItem($sourcePath, $destinationPath, $options = null);
-
+
/**
* Rename an item in the storage service to a given name.
*
@@ -96,10 +96,10 @@
* @return void
*/
public function renameItem($path, $name, $options = null);
-
+
/**
* List items in the given directory in the storage service
- *
+ *
* The $path must be a directory
*
*
@@ -108,7 +108,7 @@
* @return array A list of item names
*/
public function listItems($path, $options = null);
-
+
/**
* Get a key/value array of metadata for the given path.
*
@@ -117,10 +117,10 @@
* @return array
*/
public function fetchMetadata($path, $options = null);
-
+
/**
* Store a key/value array of metadata at the given path.
- * WARNING: This operation overwrites any metadata that is located at
+ * WARNING: This operation overwrites any metadata that is located at
* $destinationPath.
*
* @param string $destinationPath
@@ -128,7 +128,7 @@
* @return void
*/
public function storeMetadata($destinationPath, $metadata, $options = null);
-
+
/**
* Delete a key/value array of metadata at the given path.
*
--- a/web/lib/Zend/Cloud/StorageService/Adapter/FileSystem.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Adapter/FileSystem.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,267 +1,267 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Cloud/StorageService/Adapter.php';
-require_once 'Zend/Cloud/StorageService/Exception.php';
-
-/**
- * FileSystem adapter for unstructured cloud storage.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_StorageService_Adapter_FileSystem implements Zend_Cloud_StorageService_Adapter
-{
-
- /**
- * Options array keys for the file system adapter.
- */
- const LOCAL_DIRECTORY = 'local_directory';
-
- /**
- * The directory for the data
- * @var string
- */
- protected $_directory = null;
-
- /**
- * Constructor
- *
- * @param array|Zend_Config $options
- * @return void
- */
- public function __construct($options = array())
- {
- if ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
-
- if (!is_array($options)) {
- throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
- }
-
- if (isset($options[self::LOCAL_DIRECTORY])) {
- $this->_directory = $options[self::LOCAL_DIRECTORY];
- } else {
- $this->_directory = realpath(sys_get_temp_dir());
- }
- }
-
- /**
- * Get an item from the storage service.
- *
- * TODO: Support streaming
- *
- * @param string $path
- * @param array $options
- * @return false|string
- */
- public function fetchItem($path, $options = array())
- {
- $filepath = $this->_getFullPath($path);
- $path = realpath($filepath);
-
- if (!$path) {
- return false;
- }
-
- return file_get_contents($path);
- }
-
- /**
- * Store an item in the storage service.
- *
- * WARNING: This operation overwrites any item that is located at
- * $destinationPath.
- *
- * @TODO Support streams
- *
- * @param string $destinationPath
- * @param mixed $data
- * @param array $options
- * @return void
- */
- public function storeItem($destinationPath, $data, $options = array())
- {
- $path = $this->_getFullPath($destinationPath);
- file_put_contents($path, $data);
- chmod($path, 0777);
- }
-
- /**
- * Delete an item in the storage service.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteItem($path, $options = array())
- {
- if (!isset($path)) {
- return;
- }
-
- $filepath = $this->_getFullPath($path);
- if (file_exists($filepath)) {
- unlink($filepath);
- }
- }
-
- /**
- * Copy an item in the storage service to a given path.
- *
- * WARNING: This operation is *very* expensive for services that do not
- * support copying an item natively.
- *
- * @TODO Support streams for those services that don't support natively
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function copyItem($sourcePath, $destinationPath, $options = array())
- {
- copy($this->_getFullPath($sourcePath), $this->_getFullPath($destinationPath));
- }
-
- /**
- * Move an item in the storage service to a given path.
- *
- * WARNING: This operation is *very* expensive for services that do not
- * support moving an item natively.
- *
- * @TODO Support streams for those services that don't support natively
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function moveItem($sourcePath, $destinationPath, $options = array())
- {
- rename($this->_getFullPath($sourcePath), $this->_getFullPath($destinationPath));
- }
-
- /**
- * Rename an item in the storage service to a given name.
- *
- *
- * @param string $path
- * @param string $name
- * @param array $options
- * @return void
- */
- public function renameItem($path, $name, $options = null)
- {
- rename(
- $this->_getFullPath($path),
- dirname($this->_getFullPath($path)) . DIRECTORY_SEPARATOR . $name
- );
- }
-
- /**
- * List items in the given directory in the storage service
- *
- * The $path must be a directory
- *
- *
- * @param string $path Must be a directory
- * @param array $options
- * @return array A list of item names
- */
- public function listItems($path, $options = null)
- {
- $listing = scandir($this->_getFullPath($path));
-
- // Remove the hidden navigation directories
- $listing = array_diff($listing, array('.', '..'));
-
- return $listing;
- }
-
- /**
- * Get a key/value array of metadata for the given path.
- *
- * @param string $path
- * @param array $options
- * @return array
- */
- public function fetchMetadata($path, $options = array())
- {
- $fullPath = $this->_getFullPath($path);
- $metadata = null;
- if (file_exists($fullPath)) {
- $metadata = stat(realpath($fullPath));
- }
-
- return isset($metadata) ? $metadata : false;
- }
-
- /**
- * Store a key/value array of metadata at the given path.
- * WARNING: This operation overwrites any metadata that is located at
- * $destinationPath.
- *
- * @param string $destinationPath
- * @param array $options
- * @return void
- */
- public function storeMetadata($destinationPath, $metadata, $options = array())
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Storing metadata not implemented');
- }
-
- /**
- * Delete a key/value array of metadata at the given path.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteMetadata($path)
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Deleting metadata not implemented');
- }
-
- /**
- * Return the full path for the file.
- *
- * @param string $path
- * @return string
- */
- private function _getFullPath($path)
- {
- return $this->_directory . DIRECTORY_SEPARATOR . $path;
- }
-
- /**
- * Get the concrete client.
- * @return strings
- */
- public function getClient()
- {
- return $this->_directory;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Cloud/StorageService/Adapter.php';
+require_once 'Zend/Cloud/StorageService/Exception.php';
+
+/**
+ * FileSystem adapter for unstructured cloud storage.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_StorageService_Adapter_FileSystem implements Zend_Cloud_StorageService_Adapter
+{
+
+ /**
+ * Options array keys for the file system adapter.
+ */
+ const LOCAL_DIRECTORY = 'local_directory';
+
+ /**
+ * The directory for the data
+ * @var string
+ */
+ protected $_directory = null;
+
+ /**
+ * Constructor
+ *
+ * @param array|Zend_Config $options
+ * @return void
+ */
+ public function __construct($options = array())
+ {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (!is_array($options)) {
+ throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
+ }
+
+ if (isset($options[self::LOCAL_DIRECTORY])) {
+ $this->_directory = $options[self::LOCAL_DIRECTORY];
+ } else {
+ $this->_directory = realpath(sys_get_temp_dir());
+ }
+ }
+
+ /**
+ * Get an item from the storage service.
+ *
+ * TODO: Support streaming
+ *
+ * @param string $path
+ * @param array $options
+ * @return false|string
+ */
+ public function fetchItem($path, $options = array())
+ {
+ $filepath = $this->_getFullPath($path);
+ $path = realpath($filepath);
+
+ if (!$path || !file_exists($path)) {
+ return false;
+ }
+
+ return file_get_contents($path);
+ }
+
+ /**
+ * Store an item in the storage service.
+ *
+ * WARNING: This operation overwrites any item that is located at
+ * $destinationPath.
+ *
+ * @TODO Support streams
+ *
+ * @param string $destinationPath
+ * @param mixed $data
+ * @param array $options
+ * @return void
+ */
+ public function storeItem($destinationPath, $data, $options = array())
+ {
+ $path = $this->_getFullPath($destinationPath);
+ file_put_contents($path, $data);
+ chmod($path, 0777);
+ }
+
+ /**
+ * Delete an item in the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteItem($path, $options = array())
+ {
+ if (!isset($path)) {
+ return;
+ }
+
+ $filepath = $this->_getFullPath($path);
+ if (file_exists($filepath)) {
+ unlink($filepath);
+ }
+ }
+
+ /**
+ * Copy an item in the storage service to a given path.
+ *
+ * WARNING: This operation is *very* expensive for services that do not
+ * support copying an item natively.
+ *
+ * @TODO Support streams for those services that don't support natively
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function copyItem($sourcePath, $destinationPath, $options = array())
+ {
+ copy($this->_getFullPath($sourcePath), $this->_getFullPath($destinationPath));
+ }
+
+ /**
+ * Move an item in the storage service to a given path.
+ *
+ * WARNING: This operation is *very* expensive for services that do not
+ * support moving an item natively.
+ *
+ * @TODO Support streams for those services that don't support natively
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function moveItem($sourcePath, $destinationPath, $options = array())
+ {
+ rename($this->_getFullPath($sourcePath), $this->_getFullPath($destinationPath));
+ }
+
+ /**
+ * Rename an item in the storage service to a given name.
+ *
+ *
+ * @param string $path
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function renameItem($path, $name, $options = null)
+ {
+ rename(
+ $this->_getFullPath($path),
+ dirname($this->_getFullPath($path)) . DIRECTORY_SEPARATOR . $name
+ );
+ }
+
+ /**
+ * List items in the given directory in the storage service
+ *
+ * The $path must be a directory
+ *
+ *
+ * @param string $path Must be a directory
+ * @param array $options
+ * @return array A list of item names
+ */
+ public function listItems($path, $options = null)
+ {
+ $listing = scandir($this->_getFullPath($path));
+
+ // Remove the hidden navigation directories
+ $listing = array_diff($listing, array('.', '..'));
+
+ return $listing;
+ }
+
+ /**
+ * Get a key/value array of metadata for the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return array
+ */
+ public function fetchMetadata($path, $options = array())
+ {
+ $fullPath = $this->_getFullPath($path);
+ $metadata = null;
+ if (file_exists($fullPath)) {
+ $metadata = stat(realpath($fullPath));
+ }
+
+ return isset($metadata) ? $metadata : false;
+ }
+
+ /**
+ * Store a key/value array of metadata at the given path.
+ * WARNING: This operation overwrites any metadata that is located at
+ * $destinationPath.
+ *
+ * @param string $destinationPath
+ * @param array $options
+ * @return void
+ */
+ public function storeMetadata($destinationPath, $metadata, $options = array())
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Storing metadata not implemented');
+ }
+
+ /**
+ * Delete a key/value array of metadata at the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteMetadata($path)
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Deleting metadata not implemented');
+ }
+
+ /**
+ * Return the full path for the file.
+ *
+ * @param string $path
+ * @return string
+ */
+ private function _getFullPath($path)
+ {
+ return $this->_directory . DIRECTORY_SEPARATOR . $path;
+ }
+
+ /**
+ * Get the concrete client.
+ * @return strings
+ */
+ public function getClient()
+ {
+ return $this->_directory;
+ }
+}
--- a/web/lib/Zend/Cloud/StorageService/Adapter/Nirvanix.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Adapter/Nirvanix.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,399 +1,399 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Cloud/StorageService/Adapter.php';
-require_once 'Zend/Cloud/StorageService/Exception.php';
-require_once 'Zend/Service/Nirvanix.php';
-
-/**
- * Adapter for Nirvanix cloud storage
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_StorageService_Adapter_Nirvanix
- implements Zend_Cloud_StorageService_Adapter
-{
- const USERNAME = 'auth_username';
- const PASSWORD = 'auth_password';
- const APP_KEY = 'auth_accesskey';
- const REMOTE_DIRECTORY = 'remote_directory';
-
- /**
- * The Nirvanix adapter
- * @var Zend_Service_Nirvanix
- */
- protected $_nirvanix;
- protected $_imfNs;
- protected $_metadataNs;
- protected $_remoteDirectory;
- private $maxPageSize = 500;
-
- /**
- * Constructor
- *
- * @param array|Zend_Config $options
- * @return void
- */
- function __construct($options = array())
- {
- if ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
-
- if (!is_array($options)) {
- throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
- }
-
- $auth = array(
- 'username' => $options[self::USERNAME],
- 'password' => $options[self::PASSWORD],
- 'appKey' => $options[self::APP_KEY],
- );
- $nirvanix_options = array();
- if (isset($options[self::HTTP_ADAPTER])) {
- $httpc = new Zend_Http_Client();
- $httpc->setAdapter($options[self::HTTP_ADAPTER]);
- $nirvanix_options['httpClient'] = $httpc;
- }
- try {
- $this->_nirvanix = new Zend_Service_Nirvanix($auth, $nirvanix_options);
- $this->_remoteDirectory = $options[self::REMOTE_DIRECTORY];
- $this->_imfNs = $this->_nirvanix->getService('IMFS');
- $this->_metadataNs = $this->_nirvanix->getService('Metadata');
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Get an item from the storage service.
- *
- * @param string $path
- * @param array $options
- * @return mixed
- */
- public function fetchItem($path, $options = null)
- {
- $path = $this->_getFullPath($path);
- try {
- $item = $this->_imfNs->getContents($path);
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
- }
- return $item;
- }
-
- /**
- * Store an item in the storage service.
- * WARNING: This operation overwrites any item that is located at
- * $destinationPath.
- * @param string $destinationPath
- * @param mixed $data
- * @param array $options
- * @return void
- */
- public function storeItem($destinationPath, $data, $options = null)
- {
- try {
- $path = $this->_getFullPath($destinationPath);
- $this->_imfNs->putContents($path, $data);
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
- }
- return true;
- }
-
- /**
- * Delete an item in the storage service.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteItem($path, $options = null)
- {
- try {
- $path = $this->_getFullPath($path);
- $this->_imfNs->unlink($path);
- } catch(Zend_Service_Nirvanix_Exception $e) {
-// if (trim(strtoupper($e->getMessage())) != 'INVALID PATH') {
-// // TODO Differentiate among errors in the Nirvanix adapter
- throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Copy an item in the storage service to a given path.
- * WARNING: This operation is *very* expensive for services that do not
- * support copying an item natively.
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function copyItem($sourcePath, $destinationPath, $options = null)
- {
- try {
- $sourcePath = $this->_getFullPath($sourcePath);
- $destinationPath = $this->_getFullPath($destinationPath);
- $this->_imfNs->CopyFiles(array('srcFilePath' => $sourcePath,
- 'destFolderPath' => $destinationPath));
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Move an item in the storage service to a given path.
- * WARNING: This operation is *very* expensive for services that do not
- * support moving an item natively.
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function moveItem($sourcePath, $destinationPath, $options = null)
- {
- try {
- $sourcePath = $this->_getFullPath($sourcePath);
- $destinationPath = $this->_getFullPath($destinationPath);
- $this->_imfNs->RenameFile(array('filePath' => $sourcePath,
- 'newFileName' => $destinationPath));
- // $this->_imfNs->MoveFiles(array('srcFilePath' => $sourcePath,
- // 'destFolderPath' => $destinationPath));
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Rename an item in the storage service to a given name.
- *
- *
- * @param string $path
- * @param string $name
- * @param array $options
- * @return void
- */
- public function renameItem($path, $name, $options = null)
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Renaming not implemented');
- }
-
- /**
- * Get a key/value array of metadata for the given path.
- *
- * @param string $path
- * @param array $options
- * @return array An associative array of key/value pairs specifying the metadata for this object.
- * If no metadata exists, an empty array is returned.
- */
- public function fetchMetadata($path, $options = null)
- {
- $path = $this->_getFullPath($path);
- try {
- $metadataNode = $this->_metadataNs->getMetadata(array('path' => $path));
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on fetching metadata: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- $metadata = array();
- $length = count($metadataNode->Metadata);
-
- // Need to special case this as Nirvanix returns an array if there is
- // more than one, but doesn't return an array if there is only one.
- if ($length == 1)
- {
- $metadata[(string)$metadataNode->Metadata->Type->value] = (string)$metadataNode->Metadata->Value;
- }
- else if ($length > 1)
- {
- for ($i=0; $i<$length; $i++)
- {
- $metadata[(string)$metadataNode->Metadata[$i]->Type] = (string)$metadataNode->Metadata[$i]->Value;
- }
- }
- return $metadata;
- }
-
- /**
- * Store a key/value array of metadata at the given path.
- * WARNING: This operation overwrites any metadata that is located at
- * $destinationPath.
- *
- * @param array $metadata - An associative array specifying the key/value pairs for the metadata.
- * @param $destinationPath
- * @param array $options
- * @return void
- */
- public function storeMetadata($destinationPath, $metadata, $options = null)
- {
- $destinationPath = $this->_getFullPath($destinationPath);
- if ($metadata != null) {
- try {
- foreach ($metadata AS $key=>$value) {
- $metadataString = $key . ":" . $value;
- $this->_metadataNs->SetMetadata(array(
- 'path' => $destinationPath,
- 'metadata' => $metadataString,
- ));
- }
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on storing metadata: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
- }
-
- /**
- * Delete a key/value array of metadata at the given path.
- *
- * @param string $path
- * @param array $metadata - An associative array specifying the key/value pairs for the metadata
- * to be deleted. If null, all metadata associated with the object will
- * be deleted.
- * @param array $options
- * @return void
- */
- public function deleteMetadata($path, $metadata = null, $options = null)
- {
- $path = $this->_getFullPath($path);
- try {
- if ($metadata == null) {
- $this->_metadataNs->DeleteAllMetadata(array('path' => $path));
- } else {
- foreach ($metadata AS $key=>$value) {
- $this->_metadataNs->DeleteMetadata(array(
- 'path' => $path,
- 'metadata' => $key,
- ));
- }
- }
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on deleting metadata: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /*
- * Recursively traverse all the folders and build an array that contains
- * the path names for each folder.
- *
- * @param $path - The folder path to get the list of folders from.
- * @param &$resultArray - reference to the array that contains the path names
- * for each folder.
- */
- private function getAllFolders($path, &$resultArray)
- {
- $response = $this->_imfNs->ListFolder(array(
- 'folderPath' => $path,
- 'pageNumber' => 1,
- 'pageSize' => $this->maxPageSize,
- ));
- $numFolders = $response->ListFolder->TotalFolderCount;
- if ($numFolders == 0) {
- return;
- } else {
- //Need to special case this as Nirvanix returns an array if there is
- //more than one, but doesn't return an array if there is only one.
- if ($numFolders == 1) {
- $folderPath = $response->ListFolder->Folder->Path;
- array_push($resultArray, $folderPath);
- $this->getAllFolders('/' . $folderPath, $resultArray);
- } else {
- foreach ($response->ListFolder->Folder as $arrayElem) {
- $folderPath = $arrayElem->Path;
- array_push($resultArray, $folderPath);
- $this->getAllFolders('/' . $folderPath, $resultArray);
- }
- }
- }
- }
-
- /**
- * Return an array of the items contained in the given path. The items
- * returned are the files or objects that in the specified path.
- *
- * @param string $path
- * @param array $options
- * @return array
- */
- public function listItems($path, $options = null)
- {
- $path = $this->_getFullPath($path);
- $resultArray = array();
-
- if (!isset($path)) {
- return false;
- } else {
- try {
- $response = $this->_imfNs->ListFolder(array(
- 'folderPath' => $path,
- 'pageNumber' => 1,
- 'pageSize' => $this->maxPageSize,
- ));
- } catch (Zend_Service_Nirvanix_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- $numFiles = $response->ListFolder->TotalFileCount;
-
- //Add the file names to the array
- if ($numFiles != 0) {
- //Need to special case this as Nirvanix returns an array if there is
- //more than one, but doesn't return an array if there is only one.
- if ($numFiles == 1) {
- $resultArray[] = (string)$response->ListFolder->File->Name;
- }
- else {
- foreach ($response->ListFolder->File as $arrayElem) {
- $resultArray[] = (string) $arrayElem->Name;
- }
- }
- }
- }
-
- return $resultArray;
- }
-
- /**
- * Get full path to an object
- *
- * @param string $path
- * @return string
- */
- private function _getFullPath($path)
- {
- return $this->_remoteDirectory . $path;
- }
-
- /**
- * Get the concrete client.
- * @return Zend_Service_Nirvanix
- */
- public function getClient()
- {
- return $this->_nirvanix;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Cloud/StorageService/Adapter.php';
+require_once 'Zend/Cloud/StorageService/Exception.php';
+require_once 'Zend/Service/Nirvanix.php';
+
+/**
+ * Adapter for Nirvanix cloud storage
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_StorageService_Adapter_Nirvanix
+ implements Zend_Cloud_StorageService_Adapter
+{
+ const USERNAME = 'auth_username';
+ const PASSWORD = 'auth_password';
+ const APP_KEY = 'auth_accesskey';
+ const REMOTE_DIRECTORY = 'remote_directory';
+
+ /**
+ * The Nirvanix adapter
+ * @var Zend_Service_Nirvanix
+ */
+ protected $_nirvanix;
+ protected $_imfNs;
+ protected $_metadataNs;
+ protected $_remoteDirectory;
+ private $maxPageSize = 500;
+
+ /**
+ * Constructor
+ *
+ * @param array|Zend_Config $options
+ * @return void
+ */
+ function __construct($options = array())
+ {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (!is_array($options)) {
+ throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
+ }
+
+ $auth = array(
+ 'username' => $options[self::USERNAME],
+ 'password' => $options[self::PASSWORD],
+ 'appKey' => $options[self::APP_KEY],
+ );
+ $nirvanix_options = array();
+ if (isset($options[self::HTTP_ADAPTER])) {
+ $httpc = new Zend_Http_Client();
+ $httpc->setAdapter($options[self::HTTP_ADAPTER]);
+ $nirvanix_options['httpClient'] = $httpc;
+ }
+ try {
+ $this->_nirvanix = new Zend_Service_Nirvanix($auth, $nirvanix_options);
+ $this->_remoteDirectory = $options[self::REMOTE_DIRECTORY];
+ $this->_imfNs = $this->_nirvanix->getService('IMFS');
+ $this->_metadataNs = $this->_nirvanix->getService('Metadata');
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Get an item from the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return mixed
+ */
+ public function fetchItem($path, $options = null)
+ {
+ $path = $this->_getFullPath($path);
+ try {
+ $item = $this->_imfNs->getContents($path);
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ return $item;
+ }
+
+ /**
+ * Store an item in the storage service.
+ * WARNING: This operation overwrites any item that is located at
+ * $destinationPath.
+ * @param string $destinationPath
+ * @param mixed $data
+ * @param array $options
+ * @return void
+ */
+ public function storeItem($destinationPath, $data, $options = null)
+ {
+ try {
+ $path = $this->_getFullPath($destinationPath);
+ $this->_imfNs->putContents($path, $data);
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ return true;
+ }
+
+ /**
+ * Delete an item in the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteItem($path, $options = null)
+ {
+ try {
+ $path = $this->_getFullPath($path);
+ $this->_imfNs->unlink($path);
+ } catch(Zend_Service_Nirvanix_Exception $e) {
+// if (trim(strtoupper($e->getMessage())) != 'INVALID PATH') {
+// // TODO Differentiate among errors in the Nirvanix adapter
+ throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Copy an item in the storage service to a given path.
+ * WARNING: This operation is *very* expensive for services that do not
+ * support copying an item natively.
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function copyItem($sourcePath, $destinationPath, $options = null)
+ {
+ try {
+ $sourcePath = $this->_getFullPath($sourcePath);
+ $destinationPath = $this->_getFullPath($destinationPath);
+ $this->_imfNs->CopyFiles(array('srcFilePath' => $sourcePath,
+ 'destFolderPath' => $destinationPath));
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Move an item in the storage service to a given path.
+ * WARNING: This operation is *very* expensive for services that do not
+ * support moving an item natively.
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function moveItem($sourcePath, $destinationPath, $options = null)
+ {
+ try {
+ $sourcePath = $this->_getFullPath($sourcePath);
+ $destinationPath = $this->_getFullPath($destinationPath);
+ $this->_imfNs->RenameFile(array('filePath' => $sourcePath,
+ 'newFileName' => $destinationPath));
+ // $this->_imfNs->MoveFiles(array('srcFilePath' => $sourcePath,
+ // 'destFolderPath' => $destinationPath));
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Rename an item in the storage service to a given name.
+ *
+ *
+ * @param string $path
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function renameItem($path, $name, $options = null)
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Renaming not implemented');
+ }
+
+ /**
+ * Get a key/value array of metadata for the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return array An associative array of key/value pairs specifying the metadata for this object.
+ * If no metadata exists, an empty array is returned.
+ */
+ public function fetchMetadata($path, $options = null)
+ {
+ $path = $this->_getFullPath($path);
+ try {
+ $metadataNode = $this->_metadataNs->getMetadata(array('path' => $path));
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on fetching metadata: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ $metadata = array();
+ $length = count($metadataNode->Metadata);
+
+ // Need to special case this as Nirvanix returns an array if there is
+ // more than one, but doesn't return an array if there is only one.
+ if ($length == 1)
+ {
+ $metadata[(string)$metadataNode->Metadata->Type->value] = (string)$metadataNode->Metadata->Value;
+ }
+ else if ($length > 1)
+ {
+ for ($i=0; $i<$length; $i++)
+ {
+ $metadata[(string)$metadataNode->Metadata[$i]->Type] = (string)$metadataNode->Metadata[$i]->Value;
+ }
+ }
+ return $metadata;
+ }
+
+ /**
+ * Store a key/value array of metadata at the given path.
+ * WARNING: This operation overwrites any metadata that is located at
+ * $destinationPath.
+ *
+ * @param string $destinationPath
+ * @param array $metadata associative array specifying the key/value pairs for the metadata.
+ * @param array $options
+ * @return void
+ */
+ public function storeMetadata($destinationPath, $metadata, $options = null)
+ {
+ $destinationPath = $this->_getFullPath($destinationPath);
+ if ($metadata != null) {
+ try {
+ foreach ($metadata AS $key=>$value) {
+ $metadataString = $key . ":" . $value;
+ $this->_metadataNs->SetMetadata(array(
+ 'path' => $destinationPath,
+ 'metadata' => $metadataString,
+ ));
+ }
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on storing metadata: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+ }
+
+ /**
+ * Delete a key/value array of metadata at the given path.
+ *
+ * @param string $path
+ * @param array $metadata - An associative array specifying the key/value pairs for the metadata
+ * to be deleted. If null, all metadata associated with the object will
+ * be deleted.
+ * @param array $options
+ * @return void
+ */
+ public function deleteMetadata($path, $metadata = null, $options = null)
+ {
+ $path = $this->_getFullPath($path);
+ try {
+ if ($metadata == null) {
+ $this->_metadataNs->DeleteAllMetadata(array('path' => $path));
+ } else {
+ foreach ($metadata AS $key=>$value) {
+ $this->_metadataNs->DeleteMetadata(array(
+ 'path' => $path,
+ 'metadata' => $key,
+ ));
+ }
+ }
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on deleting metadata: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /*
+ * Recursively traverse all the folders and build an array that contains
+ * the path names for each folder.
+ *
+ * @param string $path folder path to get the list of folders from.
+ * @param array& $resultArray reference to the array that contains the path names
+ * for each folder.
+ */
+ private function getAllFolders($path, &$resultArray)
+ {
+ $response = $this->_imfNs->ListFolder(array(
+ 'folderPath' => $path,
+ 'pageNumber' => 1,
+ 'pageSize' => $this->maxPageSize,
+ ));
+ $numFolders = $response->ListFolder->TotalFolderCount;
+ if ($numFolders == 0) {
+ return;
+ } else {
+ //Need to special case this as Nirvanix returns an array if there is
+ //more than one, but doesn't return an array if there is only one.
+ if ($numFolders == 1) {
+ $folderPath = $response->ListFolder->Folder->Path;
+ array_push($resultArray, $folderPath);
+ $this->getAllFolders('/' . $folderPath, $resultArray);
+ } else {
+ foreach ($response->ListFolder->Folder as $arrayElem) {
+ $folderPath = $arrayElem->Path;
+ array_push($resultArray, $folderPath);
+ $this->getAllFolders('/' . $folderPath, $resultArray);
+ }
+ }
+ }
+ }
+
+ /**
+ * Return an array of the items contained in the given path. The items
+ * returned are the files or objects that in the specified path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return array
+ */
+ public function listItems($path, $options = null)
+ {
+ $path = $this->_getFullPath($path);
+ $resultArray = array();
+
+ if (!isset($path)) {
+ return false;
+ } else {
+ try {
+ $response = $this->_imfNs->ListFolder(array(
+ 'folderPath' => $path,
+ 'pageNumber' => 1,
+ 'pageSize' => $this->maxPageSize,
+ ));
+ } catch (Zend_Service_Nirvanix_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ $numFiles = $response->ListFolder->TotalFileCount;
+
+ //Add the file names to the array
+ if ($numFiles != 0) {
+ //Need to special case this as Nirvanix returns an array if there is
+ //more than one, but doesn't return an array if there is only one.
+ if ($numFiles == 1) {
+ $resultArray[] = (string)$response->ListFolder->File->Name;
+ }
+ else {
+ foreach ($response->ListFolder->File as $arrayElem) {
+ $resultArray[] = (string) $arrayElem->Name;
+ }
+ }
+ }
+ }
+
+ return $resultArray;
+ }
+
+ /**
+ * Get full path to an object
+ *
+ * @param string $path
+ * @return string
+ */
+ private function _getFullPath($path)
+ {
+ return $this->_remoteDirectory . $path;
+ }
+
+ /**
+ * Get the concrete client.
+ * @return Zend_Service_Nirvanix
+ */
+ public function getClient()
+ {
+ return $this->_nirvanix;
+ }
+}
--- a/web/lib/Zend/Cloud/StorageService/Adapter/S3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Adapter/S3.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,327 +1,332 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Service/Amazon/S3.php';
-require_once 'Zend/Cloud/StorageService/Adapter.php';
-require_once 'Zend/Cloud/StorageService/Exception.php';
-
-/**
- * S3 adapter for unstructured cloud storage.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_StorageService_Adapter_S3
- implements Zend_Cloud_StorageService_Adapter
-{
- /*
- * Options array keys for the S3 adapter.
- */
- const BUCKET_NAME = 'bucket_name';
- const BUCKET_AS_DOMAIN = 'bucket_as_domain?';
- const FETCH_STREAM = 'fetch_stream';
- const METADATA = 'metadata';
-
- /**
- * AWS constants
- */
- const AWS_ACCESS_KEY = 'aws_accesskey';
- const AWS_SECRET_KEY = 'aws_secretkey';
-
- /**
- * S3 service instance.
- * @var Zend_Service_Amazon_S3
- */
- protected $_s3;
- protected $_defaultBucketName = null;
- protected $_defaultBucketAsDomain = false;
-
- /**
- * Constructor
- *
- * @param array|Zend_Config $options
- * @return void
- */
- public function __construct($options = array())
- {
- if ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
-
- if (!is_array($options)) {
- throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
- }
-
- if (!isset($options[self::AWS_ACCESS_KEY]) || !isset($options[self::AWS_SECRET_KEY])) {
- throw new Zend_Cloud_StorageService_Exception('AWS keys not specified!');
- }
-
- try {
- $this->_s3 = new Zend_Service_Amazon_S3($options[self::AWS_ACCESS_KEY],
- $options[self::AWS_SECRET_KEY]);
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- if (isset($options[self::HTTP_ADAPTER])) {
- $this->_s3->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]);
- }
-
- if (isset($options[self::BUCKET_NAME])) {
- $this->_defaultBucketName = $options[self::BUCKET_NAME];
- }
-
- if (isset($options[self::BUCKET_AS_DOMAIN])) {
- $this->_defaultBucketAsDomain = $options[self::BUCKET_AS_DOMAIN];
- }
- }
-
- /**
- * Get an item from the storage service.
- *
- * @TODO Support streams
- *
- * @param string $path
- * @param array $options
- * @return string
- */
- public function fetchItem($path, $options = array())
- {
- $fullPath = $this->_getFullPath($path, $options);
- try {
- if (!empty($options[self::FETCH_STREAM])) {
- return $this->_s3->getObjectStream($fullPath, $options[self::FETCH_STREAM]);
- } else {
- return $this->_s3->getObject($fullPath);
- }
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Store an item in the storage service.
- *
- * WARNING: This operation overwrites any item that is located at
- * $destinationPath.
- *
- * @TODO Support streams
- *
- * @param string $destinationPath
- * @param string|resource $data
- * @param array $options
- * @return void
- */
- public function storeItem($destinationPath, $data, $options = array())
- {
- try {
- $fullPath = $this->_getFullPath($destinationPath, $options);
- return $this->_s3->putObject(
- $fullPath,
- $data,
- empty($options[self::METADATA]) ? null : $options[self::METADATA]
- );
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Delete an item in the storage service.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteItem($path, $options = array())
- {
- try {
- $this->_s3->removeObject($this->_getFullPath($path, $options));
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Copy an item in the storage service to a given path.
- *
- * WARNING: This operation is *very* expensive for services that do not
- * support copying an item natively.
- *
- * @TODO Support streams for those services that don't support natively
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function copyItem($sourcePath, $destinationPath, $options = array())
- {
- try {
- // TODO We *really* need to add support for object copying in the S3 adapter
- $item = $this->fetch($_getFullPath(sourcePath), $options);
- $this->storeItem($item, $destinationPath, $options);
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Move an item in the storage service to a given path.
- *
- * @TODO Support streams for those services that don't support natively
- *
- * @param string $sourcePath
- * @param string $destination path
- * @param array $options
- * @return void
- */
- public function moveItem($sourcePath, $destinationPath, $options = array())
- {
- try {
- $fullSourcePath = $this->_getFullPath($sourcePath, $options);
- $fullDestPath = $this->_getFullPath($destinationPath, $options);
- return $this->_s3->moveObject(
- $fullSourcePath,
- $fullDestPath,
- empty($options[self::METADATA]) ? null : $options[self::METADATA]
- );
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Rename an item in the storage service to a given name.
- *
- *
- * @param string $path
- * @param string $name
- * @param array $options
- * @return void
- */
- public function renameItem($path, $name, $options = null)
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Rename not implemented');
- }
-
- /**
- * List items in the given directory in the storage service
- *
- * The $path must be a directory
- *
- *
- * @param string $path Must be a directory
- * @param array $options
- * @return array A list of item names
- */
- public function listItems($path, $options = null)
- {
- try {
- // TODO Support 'prefix' parameter for Zend_Service_Amazon_S3::getObjectsByBucket()
- return $this->_s3->getObjectsByBucket($this->_defaultBucketName);
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Get a key/value array of metadata for the given path.
- *
- * @param string $path
- * @param array $options
- * @return array
- */
- public function fetchMetadata($path, $options = array())
- {
- try {
- return $this->_s3->getInfo($this->_getFullPath($path, $options));
- } catch (Zend_Service_Amazon_S3_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Store a key/value array of metadata at the given path.
- * WARNING: This operation overwrites any metadata that is located at
- * $destinationPath.
- *
- * @param string $destinationPath
- * @param array $options
- * @return void
- */
- public function storeMetadata($destinationPath, $metadata, $options = array())
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Storing separate metadata is not supported, use storeItem() with \'metadata\' option key');
- }
-
- /**
- * Delete a key/value array of metadata at the given path.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteMetadata($path)
- {
- require_once 'Zend/Cloud/OperationNotAvailableException.php';
- throw new Zend_Cloud_OperationNotAvailableException('Deleting metadata not supported');
- }
-
- /**
- * Get full path, including bucket, for an object
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- protected function _getFullPath($path, $options)
- {
- if (isset($options[self::BUCKET_NAME])) {
- $bucket = $options[self::BUCKET_NAME];
- } else if (isset($this->_defaultBucketName)) {
- $bucket = $this->_defaultBucketName;
- } else {
- require_once 'Zend/Cloud/StorageService/Exception.php';
- throw new Zend_Cloud_StorageService_Exception('Bucket name must be specified for S3 adapter.');
- }
-
- if (isset($options[self::BUCKET_AS_DOMAIN])) {
- // TODO: support bucket domain names
- require_once 'Zend/Cloud/StorageService/Exception.php';
- throw new Zend_Cloud_StorageService_Exception('The S3 adapter does not currently support buckets in domain names.');
- }
-
- return trim($bucket) . '/' . trim($path);
- }
-
- /**
- * Get the concrete client.
- * @return Zend_Service_Amazon_S3
- */
- public function getClient()
- {
- return $this->_s3;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Service/Amazon/S3.php';
+require_once 'Zend/Cloud/StorageService/Adapter.php';
+require_once 'Zend/Cloud/StorageService/Exception.php';
+
+/**
+ * S3 adapter for unstructured cloud storage.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_StorageService_Adapter_S3
+ implements Zend_Cloud_StorageService_Adapter
+{
+ /*
+ * Options array keys for the S3 adapter.
+ */
+ const BUCKET_NAME = 'bucket_name';
+ const BUCKET_AS_DOMAIN = 'bucket_as_domain?';
+ const FETCH_STREAM = 'fetch_stream';
+ const METADATA = 'metadata';
+
+ /**
+ * AWS constants
+ */
+ const AWS_ACCESS_KEY = 'aws_accesskey';
+ const AWS_SECRET_KEY = 'aws_secretkey';
+
+ /**
+ * S3 service instance.
+ * @var Zend_Service_Amazon_S3
+ */
+ protected $_s3;
+ protected $_defaultBucketName = null;
+ protected $_defaultBucketAsDomain = false;
+
+ /**
+ * Constructor
+ *
+ * @param array|Zend_Config $options
+ * @return void
+ */
+ public function __construct($options = array())
+ {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (!is_array($options)) {
+ throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
+ }
+
+ if (!isset($options[self::AWS_ACCESS_KEY]) || !isset($options[self::AWS_SECRET_KEY])) {
+ throw new Zend_Cloud_StorageService_Exception('AWS keys not specified!');
+ }
+
+ try {
+ $this->_s3 = new Zend_Service_Amazon_S3($options[self::AWS_ACCESS_KEY],
+ $options[self::AWS_SECRET_KEY]);
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on create: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ if (isset($options[self::HTTP_ADAPTER])) {
+ $this->_s3->getHttpClient()->setAdapter($options[self::HTTP_ADAPTER]);
+ }
+
+ if (isset($options[self::BUCKET_NAME])) {
+ $this->_defaultBucketName = $options[self::BUCKET_NAME];
+ }
+
+ if (isset($options[self::BUCKET_AS_DOMAIN])) {
+ $this->_defaultBucketAsDomain = $options[self::BUCKET_AS_DOMAIN];
+ }
+ }
+
+ /**
+ * Get an item from the storage service.
+ *
+ * @TODO Support streams
+ *
+ * @param string $path
+ * @param array $options
+ * @return string
+ */
+ public function fetchItem($path, $options = array())
+ {
+ $fullPath = $this->_getFullPath($path, $options);
+ try {
+ if (!empty($options[self::FETCH_STREAM])) {
+ return $this->_s3->getObjectStream($fullPath, $options[self::FETCH_STREAM]);
+ } else {
+ return $this->_s3->getObject($fullPath);
+ }
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Store an item in the storage service.
+ *
+ * WARNING: This operation overwrites any item that is located at
+ * $destinationPath.
+ *
+ * @TODO Support streams
+ *
+ * @param string $destinationPath
+ * @param string|resource $data
+ * @param array $options
+ * @return void
+ */
+ public function storeItem($destinationPath, $data, $options = array())
+ {
+ try {
+ $fullPath = $this->_getFullPath($destinationPath, $options);
+ return $this->_s3->putObject(
+ $fullPath,
+ $data,
+ empty($options[self::METADATA]) ? null : $options[self::METADATA]
+ );
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Delete an item in the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteItem($path, $options = array())
+ {
+ try {
+ $this->_s3->removeObject($this->_getFullPath($path, $options));
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Copy an item in the storage service to a given path.
+ *
+ * WARNING: This operation is *very* expensive for services that do not
+ * support copying an item natively.
+ *
+ * @TODO Support streams for those services that don't support natively
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function copyItem($sourcePath, $destinationPath, $options = array())
+ {
+ try {
+ $fullSourcePath = $this->_getFullPath($sourcePath, $options);
+ $fullDestPath = $this->_getFullPath($destinationPath, $options);
+ return $this->_s3->copyObject(
+ $fullSourcePath,
+ $fullDestPath,
+ empty($options[self::METADATA]) ? null : $options[self::METADATA]
+ );
+
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Move an item in the storage service to a given path.
+ *
+ * @TODO Support streams for those services that don't support natively
+ *
+ * @param string $sourcePath
+ * @param string $destination path
+ * @param array $options
+ * @return void
+ */
+ public function moveItem($sourcePath, $destinationPath, $options = array())
+ {
+ try {
+ $fullSourcePath = $this->_getFullPath($sourcePath, $options);
+ $fullDestPath = $this->_getFullPath($destinationPath, $options);
+ return $this->_s3->moveObject(
+ $fullSourcePath,
+ $fullDestPath,
+ empty($options[self::METADATA]) ? null : $options[self::METADATA]
+ );
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Rename an item in the storage service to a given name.
+ *
+ *
+ * @param string $path
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function renameItem($path, $name, $options = null)
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Rename not implemented');
+ }
+
+ /**
+ * List items in the given directory in the storage service
+ *
+ * The $path must be a directory
+ *
+ *
+ * @param string $path Must be a directory
+ * @param array $options
+ * @return array A list of item names
+ */
+ public function listItems($path, $options = null)
+ {
+ try {
+ // TODO Support 'prefix' parameter for Zend_Service_Amazon_S3::getObjectsByBucket()
+ return $this->_s3->getObjectsByBucket($this->_defaultBucketName);
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Get a key/value array of metadata for the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return array
+ */
+ public function fetchMetadata($path, $options = array())
+ {
+ try {
+ return $this->_s3->getInfo($this->_getFullPath($path, $options));
+ } catch (Zend_Service_Amazon_S3_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Store a key/value array of metadata at the given path.
+ * WARNING: This operation overwrites any metadata that is located at
+ * $destinationPath.
+ *
+ * @param string $destinationPath
+ * @param array $options
+ * @return void
+ */
+ public function storeMetadata($destinationPath, $metadata, $options = array())
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Storing separate metadata is not supported, use storeItem() with \'metadata\' option key');
+ }
+
+ /**
+ * Delete a key/value array of metadata at the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteMetadata($path)
+ {
+ require_once 'Zend/Cloud/OperationNotAvailableException.php';
+ throw new Zend_Cloud_OperationNotAvailableException('Deleting metadata not supported');
+ }
+
+ /**
+ * Get full path, including bucket, for an object
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ protected function _getFullPath($path, $options)
+ {
+ if (isset($options[self::BUCKET_NAME])) {
+ $bucket = $options[self::BUCKET_NAME];
+ } else if (isset($this->_defaultBucketName)) {
+ $bucket = $this->_defaultBucketName;
+ } else {
+ require_once 'Zend/Cloud/StorageService/Exception.php';
+ throw new Zend_Cloud_StorageService_Exception('Bucket name must be specified for S3 adapter.');
+ }
+
+ if (isset($options[self::BUCKET_AS_DOMAIN])) {
+ // TODO: support bucket domain names
+ require_once 'Zend/Cloud/StorageService/Exception.php';
+ throw new Zend_Cloud_StorageService_Exception('The S3 adapter does not currently support buckets in domain names.');
+ }
+
+ return trim($bucket) . '/' . trim($path);
+ }
+
+ /**
+ * Get the concrete client.
+ * @return Zend_Service_Amazon_S3
+ */
+ public function getClient()
+ {
+ return $this->_s3;
+ }
+}
--- a/web/lib/Zend/Cloud/StorageService/Adapter/WindowsAzure.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Adapter/WindowsAzure.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,443 +1,443 @@
-<?php
-/**
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Cloud/StorageService/Adapter.php';
-require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
-require_once 'Zend/Cloud/StorageService/Exception.php';
-
-/**
- *
- * Windows Azure Blob Service abstraction
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_StorageService_Adapter_WindowsAzure
- implements Zend_Cloud_StorageService_Adapter
-{
- const ACCOUNT_NAME = 'storage_accountname';
- const ACCOUNT_KEY = 'storage_accountkey';
- const HOST = "storage_host";
- const PROXY_HOST = "storage_proxy_host";
- const PROXY_PORT = "storage_proxy_port";
- const PROXY_CREDENTIALS = "storage_proxy_credentials";
- const CONTAINER = "storage_container";
- const RETURN_TYPE = 'return_type';
- const RETURN_PATHNAME = 'return_path';
- const RETURN_OPENMODE = 'return_openmode';
-
- /** return types for fetch */
- const RETURN_PATH = 1; // return filename
- const RETURN_STRING = 2; // return data as string
- const RETURN_STREAM = 3; // return PHP stream
-
- /** return types for list */
- const RETURN_LIST = 1; // return native list
- const RETURN_NAMES = 2; // return only names
-
- const DEFAULT_HOST = Zend_Service_WindowsAzure_Storage::URL_CLOUD_BLOB;
-
- /**
- * Storage container to operate on
- *
- * @var string
- */
- protected $_container;
-
- /**
- * Storage client
- *
- * @var Zend_Service_WindowsAzure_Storage_Blob
- */
- protected $_storageClient = null;
-
- /**
- * Creates a new Zend_Cloud_Storage_WindowsAzure instance
- *
- * @param array|Zend_Config $options Options for the Zend_Cloud_Storage_WindowsAzure instance
- */
- public function __construct($options = array())
- {
- if ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
-
- if (!is_array($options)) {
- throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
- }
-
- // Build Zend_Service_WindowsAzure_Storage_Blob instance
- if (!isset($options[self::HOST])) {
- $host = self::DEFAULT_HOST;
- } else {
- $host = $options[self::HOST];
- }
-
- if (!isset($options[self::ACCOUNT_NAME])) {
- throw new Zend_Cloud_StorageService_Exception('No Windows Azure account name provided.');
- }
- if (!isset($options[self::ACCOUNT_KEY])) {
- throw new Zend_Cloud_StorageService_Exception('No Windows Azure account key provided.');
- }
-
- $this->_storageClient = new Zend_Service_WindowsAzure_Storage_Blob($host,
- $options[self::ACCOUNT_NAME], $options[self::ACCOUNT_KEY]);
-
- // Parse other options
- if (!empty($options[self::PROXY_HOST])) {
- $proxyHost = $options[self::PROXY_HOST];
- $proxyPort = isset($options[self::PROXY_PORT]) ? $options[self::PROXY_PORT] : 8080;
- $proxyCredentials = isset($options[self::PROXY_CREDENTIALS]) ? $options[self::PROXY_CREDENTIALS] : '';
-
- $this->_storageClient->setProxy(true, $proxyHost, $proxyPort, $proxyCredentials);
- }
-
- if (isset($options[self::HTTP_ADAPTER])) {
- $this->_storageClient->setHttpClientChannel($options[self::HTTP_ADAPTER]);
- }
-
- // Set container
- $this->_container = $options[self::CONTAINER];
-
- // Make sure the container exists
- if (!$this->_storageClient->containerExists($this->_container)) {
- $this->_storageClient->createContainer($this->_container);
- }
- }
-
- /**
- * Get an item from the storage service.
- *
- * @param string $path
- * @param array $options
- * @return mixed
- */
- public function fetchItem($path, $options = null)
- {
- // Options
- $returnType = self::RETURN_STRING;
- $returnPath = tempnam('', 'azr');
- $openMode = 'r';
-
- // Parse options
- if (is_array($options)) {
- if (isset($options[self::RETURN_TYPE])) {
- $returnType = $options[self::RETURN_TYPE];
- }
-
- if (isset($options[self::RETURN_PATHNAME])) {
- $returnPath = $options[self::RETURN_PATHNAME];
- }
-
- if (isset($options[self::RETURN_OPENMODE])) {
- $openMode = $options[self::RETURN_OPENMODE];
- }
- }
-
- // Fetch the blob
- try {
- $this->_storageClient->getBlob(
- $this->_container,
- $path,
- $returnPath
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- if (strpos($e->getMessage(), "does not exist") !== false) {
- return false;
- }
- throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- // Return value
- if ($returnType == self::RETURN_PATH) {
- return $returnPath;
- }
- if ($returnType == self::RETURN_STRING) {
- return file_get_contents($returnPath);
- }
- if ($returnType == self::RETURN_STREAM) {
- return fopen($returnPath, $openMode);
- }
- }
-
- /**
- * Store an item in the storage service.
- * WARNING: This operation overwrites any item that is located at
- * $destinationPath.
- * @param string $destinationPath
- * @param mixed $data
- * @param array $options
- * @return boolean
- */
- public function storeItem($destinationPath, $data, $options = null)
- {
- // Create a temporary file that will be uploaded
- $temporaryFilePath = '';
- $removeTemporaryFilePath = false;
-
- if (is_resource($data)) {
- $temporaryFilePath = tempnam('', 'azr');
- $fpDestination = fopen($temporaryFilePath, 'w');
-
- $fpSource = $data;
- rewind($fpSource);
- while (!feof($fpSource)) {
- fwrite($fpDestination, fread($fpSource, 8192));
- }
-
- fclose($fpDestination);
-
- $removeTemporaryFilePath = true;
- } elseif (file_exists($data)) {
- $temporaryFilePath = $data;
- $removeTemporaryFilePath = false;
- } else {
- $temporaryFilePath = tempnam('', 'azr');
- file_put_contents($temporaryFilePath, $data);
- $removeTemporaryFilePath = true;
- }
-
- try {
- // Upload data
- $this->_storageClient->putBlob(
- $this->_container,
- $destinationPath,
- $temporaryFilePath
- );
- } catch(Zend_Service_WindowsAzure_Exception $e) {
- @unlink($temporaryFilePath);
- throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
- }
- if ($removeTemporaryFilePath) {
- @unlink($temporaryFilePath);
- }
- }
-
- /**
- * Delete an item in the storage service.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteItem($path, $options = null)
- {
- try {
- $this->_storageClient->deleteBlob(
- $this->_container,
- $path
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Copy an item in the storage service to a given path.
- *
- * @param string $sourcePath
- * @param string $destinationPath
- * @param array $options
- * @return void
- */
- public function copyItem($sourcePath, $destinationPath, $options = null)
- {
- try {
- $this->_storageClient->copyBlob(
- $this->_container,
- $sourcePath,
- $this->_container,
- $destinationPath
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Move an item in the storage service to a given path.
- *
- * @param string $sourcePath
- * @param string $destinationPath
- * @param array $options
- * @return void
- */
- public function moveItem($sourcePath, $destinationPath, $options = null)
- {
- try {
- $this->_storageClient->copyBlob(
- $this->_container,
- $sourcePath,
- $this->_container,
- $destinationPath
- );
-
- $this->_storageClient->deleteBlob(
- $this->_container,
- $sourcePath
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- }
-
- /**
- * Rename an item in the storage service to a given name.
- *
- *
- * @param string $path
- * @param string $name
- * @param array $options
- * @return void
- */
- public function renameItem($path, $name, $options = null)
- {
- return $this->moveItem($path, $name, $options);
- }
-
- /**
- * List items in the given directory in the storage service
- *
- * The $path must be a directory
- *
- *
- * @param string $path Must be a directory
- * @param array $options
- * @return array A list of item names
- */
- public function listItems($path, $options = null)
- {
- // Options
- $returnType = self::RETURN_NAMES; // 1: return list of paths, 2: return raw output from underlying provider
-
- // Parse options
- if (is_array($options)&& isset($options[self::RETURN_TYPE])) {
- $returnType = $options[self::RETURN_TYPE];
- }
-
- try {
- // Fetch list
- $blobList = $this->_storageClient->listBlobs(
- $this->_container,
- $path
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
- }
-
- // Return
- if ($returnType == self::RETURN_LIST) {
- return $blobList;
- }
-
- $returnValue = array();
- foreach ($blobList as $blob) {
- $returnValue[] = $blob->Name;
- }
-
- return $returnValue;
- }
-
- /**
- * Get a key/value array of metadata for the given path.
- *
- * @param string $path
- * @param array $options
- * @return array
- */
- public function fetchMetadata($path, $options = null)
- {
- try {
- return $this->_storageClient->getBlobMetaData(
- $this->_container,
- $path
- );
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- if (strpos($e->getMessage(), "could not be accessed") !== false) {
- return false;
- }
- throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Store a key/value array of metadata at the given path.
- * WARNING: This operation overwrites any metadata that is located at
- * $destinationPath.
- *
- * @param string $destinationPath
- * @param array $options
- * @return void
- */
- public function storeMetadata($destinationPath, $metadata, $options = null)
- {
- try {
- $this->_storageClient->setBlobMetadata($this->_container, $destinationPath, $metadata);
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- if (strpos($e->getMessage(), "could not be accessed") === false) {
- throw new Zend_Cloud_StorageService_Exception('Error on store metadata: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
- }
-
- /**
- * Delete a key/value array of metadata at the given path.
- *
- * @param string $path
- * @param array $options
- * @return void
- */
- public function deleteMetadata($path, $options = null)
- {
- try {
- $this->_storageClient->setBlobMetadata($this->_container, $destinationPath, array());
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- if (strpos($e->getMessage(), "could not be accessed") === false) {
- throw new Zend_Cloud_StorageService_Exception('Error on delete metadata: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
- }
-
- /**
- * Delete container
- *
- * @return void
- */
- public function deleteContainer()
- {
- try {
- $this->_storageClient->deleteContainer($this->_container);
- } catch (Zend_Service_WindowsAzure_Exception $e) {
- throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
- }
- }
-
- /**
- * Get the concrete adapter.
- * @return Zend_Service_Azure_Storage_Blob
- */
- public function getClient()
- {
- return $this->_storageClient;
- }
-}
+<?php
+/**
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Cloud/StorageService/Adapter.php';
+require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
+require_once 'Zend/Cloud/StorageService/Exception.php';
+
+/**
+ *
+ * Windows Azure Blob Service abstraction
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_StorageService_Adapter_WindowsAzure
+ implements Zend_Cloud_StorageService_Adapter
+{
+ const ACCOUNT_NAME = 'storage_accountname';
+ const ACCOUNT_KEY = 'storage_accountkey';
+ const HOST = "storage_host";
+ const PROXY_HOST = "storage_proxy_host";
+ const PROXY_PORT = "storage_proxy_port";
+ const PROXY_CREDENTIALS = "storage_proxy_credentials";
+ const CONTAINER = "storage_container";
+ const RETURN_TYPE = 'return_type';
+ const RETURN_PATHNAME = 'return_path';
+ const RETURN_OPENMODE = 'return_openmode';
+
+ /** return types for fetch */
+ const RETURN_PATH = 1; // return filename
+ const RETURN_STRING = 2; // return data as string
+ const RETURN_STREAM = 3; // return PHP stream
+
+ /** return types for list */
+ const RETURN_LIST = 1; // return native list
+ const RETURN_NAMES = 2; // return only names
+
+ const DEFAULT_HOST = Zend_Service_WindowsAzure_Storage::URL_CLOUD_BLOB;
+
+ /**
+ * Storage container to operate on
+ *
+ * @var string
+ */
+ protected $_container;
+
+ /**
+ * Storage client
+ *
+ * @var Zend_Service_WindowsAzure_Storage_Blob
+ */
+ protected $_storageClient = null;
+
+ /**
+ * Creates a new Zend_Cloud_Storage_WindowsAzure instance
+ *
+ * @param array|Zend_Config $options Options for the Zend_Cloud_Storage_WindowsAzure instance
+ */
+ public function __construct($options = array())
+ {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (!is_array($options)) {
+ throw new Zend_Cloud_StorageService_Exception('Invalid options provided');
+ }
+
+ // Build Zend_Service_WindowsAzure_Storage_Blob instance
+ if (!isset($options[self::HOST])) {
+ $host = self::DEFAULT_HOST;
+ } else {
+ $host = $options[self::HOST];
+ }
+
+ if (!isset($options[self::ACCOUNT_NAME])) {
+ throw new Zend_Cloud_StorageService_Exception('No Windows Azure account name provided.');
+ }
+ if (!isset($options[self::ACCOUNT_KEY])) {
+ throw new Zend_Cloud_StorageService_Exception('No Windows Azure account key provided.');
+ }
+
+ $this->_storageClient = new Zend_Service_WindowsAzure_Storage_Blob($host,
+ $options[self::ACCOUNT_NAME], $options[self::ACCOUNT_KEY]);
+
+ // Parse other options
+ if (!empty($options[self::PROXY_HOST])) {
+ $proxyHost = $options[self::PROXY_HOST];
+ $proxyPort = isset($options[self::PROXY_PORT]) ? $options[self::PROXY_PORT] : 8080;
+ $proxyCredentials = isset($options[self::PROXY_CREDENTIALS]) ? $options[self::PROXY_CREDENTIALS] : '';
+
+ $this->_storageClient->setProxy(true, $proxyHost, $proxyPort, $proxyCredentials);
+ }
+
+ if (isset($options[self::HTTP_ADAPTER])) {
+ $this->_storageClient->setHttpClientChannel($options[self::HTTP_ADAPTER]);
+ }
+
+ // Set container
+ $this->_container = $options[self::CONTAINER];
+
+ // Make sure the container exists
+ if (!$this->_storageClient->containerExists($this->_container)) {
+ $this->_storageClient->createContainer($this->_container);
+ }
+ }
+
+ /**
+ * Get an item from the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return mixed
+ */
+ public function fetchItem($path, $options = null)
+ {
+ // Options
+ $returnType = self::RETURN_STRING;
+ $returnPath = tempnam('', 'azr');
+ $openMode = 'r';
+
+ // Parse options
+ if (is_array($options)) {
+ if (isset($options[self::RETURN_TYPE])) {
+ $returnType = $options[self::RETURN_TYPE];
+ }
+
+ if (isset($options[self::RETURN_PATHNAME])) {
+ $returnPath = $options[self::RETURN_PATHNAME];
+ }
+
+ if (isset($options[self::RETURN_OPENMODE])) {
+ $openMode = $options[self::RETURN_OPENMODE];
+ }
+ }
+
+ // Fetch the blob
+ try {
+ $this->_storageClient->getBlob(
+ $this->_container,
+ $path,
+ $returnPath
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ if (strpos($e->getMessage(), "does not exist") !== false) {
+ return false;
+ }
+ throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ // Return value
+ if ($returnType == self::RETURN_PATH) {
+ return $returnPath;
+ }
+ if ($returnType == self::RETURN_STRING) {
+ return file_get_contents($returnPath);
+ }
+ if ($returnType == self::RETURN_STREAM) {
+ return fopen($returnPath, $openMode);
+ }
+ }
+
+ /**
+ * Store an item in the storage service.
+ * WARNING: This operation overwrites any item that is located at
+ * $destinationPath.
+ * @param string $destinationPath
+ * @param mixed $data
+ * @param array $options
+ * @return boolean
+ */
+ public function storeItem($destinationPath, $data, $options = null)
+ {
+ // Create a temporary file that will be uploaded
+ $temporaryFilePath = '';
+ $removeTemporaryFilePath = false;
+
+ if (is_resource($data)) {
+ $temporaryFilePath = tempnam('', 'azr');
+ $fpDestination = fopen($temporaryFilePath, 'w');
+
+ $fpSource = $data;
+ rewind($fpSource);
+ while (!feof($fpSource)) {
+ fwrite($fpDestination, fread($fpSource, 8192));
+ }
+
+ fclose($fpDestination);
+
+ $removeTemporaryFilePath = true;
+ } elseif (file_exists($data)) {
+ $temporaryFilePath = $data;
+ $removeTemporaryFilePath = false;
+ } else {
+ $temporaryFilePath = tempnam('', 'azr');
+ file_put_contents($temporaryFilePath, $data);
+ $removeTemporaryFilePath = true;
+ }
+
+ try {
+ // Upload data
+ $this->_storageClient->putBlob(
+ $this->_container,
+ $destinationPath,
+ $temporaryFilePath
+ );
+ } catch(Zend_Service_WindowsAzure_Exception $e) {
+ @unlink($temporaryFilePath);
+ throw new Zend_Cloud_StorageService_Exception('Error on store: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ if ($removeTemporaryFilePath) {
+ @unlink($temporaryFilePath);
+ }
+ }
+
+ /**
+ * Delete an item in the storage service.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteItem($path, $options = null)
+ {
+ try {
+ $this->_storageClient->deleteBlob(
+ $this->_container,
+ $path
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Copy an item in the storage service to a given path.
+ *
+ * @param string $sourcePath
+ * @param string $destinationPath
+ * @param array $options
+ * @return void
+ */
+ public function copyItem($sourcePath, $destinationPath, $options = null)
+ {
+ try {
+ $this->_storageClient->copyBlob(
+ $this->_container,
+ $sourcePath,
+ $this->_container,
+ $destinationPath
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on copy: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Move an item in the storage service to a given path.
+ *
+ * @param string $sourcePath
+ * @param string $destinationPath
+ * @param array $options
+ * @return void
+ */
+ public function moveItem($sourcePath, $destinationPath, $options = null)
+ {
+ try {
+ $this->_storageClient->copyBlob(
+ $this->_container,
+ $sourcePath,
+ $this->_container,
+ $destinationPath
+ );
+
+ $this->_storageClient->deleteBlob(
+ $this->_container,
+ $sourcePath
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on move: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ }
+
+ /**
+ * Rename an item in the storage service to a given name.
+ *
+ *
+ * @param string $path
+ * @param string $name
+ * @param array $options
+ * @return void
+ */
+ public function renameItem($path, $name, $options = null)
+ {
+ return $this->moveItem($path, $name, $options);
+ }
+
+ /**
+ * List items in the given directory in the storage service
+ *
+ * The $path must be a directory
+ *
+ *
+ * @param string $path Must be a directory
+ * @param array $options
+ * @return array A list of item names
+ */
+ public function listItems($path, $options = null)
+ {
+ // Options
+ $returnType = self::RETURN_NAMES; // 1: return list of paths, 2: return raw output from underlying provider
+
+ // Parse options
+ if (is_array($options)&& isset($options[self::RETURN_TYPE])) {
+ $returnType = $options[self::RETURN_TYPE];
+ }
+
+ try {
+ // Fetch list
+ $blobList = $this->_storageClient->listBlobs(
+ $this->_container,
+ $path
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on list: '.$e->getMessage(), $e->getCode(), $e);
+ }
+
+ // Return
+ if ($returnType == self::RETURN_LIST) {
+ return $blobList;
+ }
+
+ $returnValue = array();
+ foreach ($blobList as $blob) {
+ $returnValue[] = $blob->Name;
+ }
+
+ return $returnValue;
+ }
+
+ /**
+ * Get a key/value array of metadata for the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return array
+ */
+ public function fetchMetadata($path, $options = null)
+ {
+ try {
+ return $this->_storageClient->getBlobMetaData(
+ $this->_container,
+ $path
+ );
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ if (strpos($e->getMessage(), "could not be accessed") !== false) {
+ return false;
+ }
+ throw new Zend_Cloud_StorageService_Exception('Error on fetch: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Store a key/value array of metadata at the given path.
+ * WARNING: This operation overwrites any metadata that is located at
+ * $destinationPath.
+ *
+ * @param string $destinationPath
+ * @param array $options
+ * @return void
+ */
+ public function storeMetadata($destinationPath, $metadata, $options = null)
+ {
+ try {
+ $this->_storageClient->setBlobMetadata($this->_container, $destinationPath, $metadata);
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ if (strpos($e->getMessage(), "could not be accessed") === false) {
+ throw new Zend_Cloud_StorageService_Exception('Error on store metadata: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+ }
+
+ /**
+ * Delete a key/value array of metadata at the given path.
+ *
+ * @param string $path
+ * @param array $options
+ * @return void
+ */
+ public function deleteMetadata($path, $options = null)
+ {
+ try {
+ $this->_storageClient->setBlobMetadata($this->_container, $destinationPath, array());
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ if (strpos($e->getMessage(), "could not be accessed") === false) {
+ throw new Zend_Cloud_StorageService_Exception('Error on delete metadata: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+ }
+
+ /**
+ * Delete container
+ *
+ * @return void
+ */
+ public function deleteContainer()
+ {
+ try {
+ $this->_storageClient->deleteContainer($this->_container);
+ } catch (Zend_Service_WindowsAzure_Exception $e) {
+ throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ /**
+ * Get the concrete adapter.
+ * @return Zend_Service_Azure_Storage_Blob
+ */
+ public function getClient()
+ {
+ return $this->_storageClient;
+ }
+}
--- a/web/lib/Zend/Cloud/StorageService/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,38 +1,38 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-
-/**
- * Zend_Cloud_Exception
- */
-require_once 'Zend/Cloud/Exception.php';
-
-
-/**
- * @category Zend
- * @package Zend_Cloud
- * @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Cloud_StorageService_Exception extends Zend_Cloud_Exception
-{}
-
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+
+/**
+ * Zend_Cloud_Exception
+ */
+require_once 'Zend/Cloud/Exception.php';
+
+
+/**
+ * @category Zend
+ * @package Zend_Cloud
+ * @subpackage StorageService
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Cloud_StorageService_Exception extends Zend_Cloud_Exception
+{}
+
--- a/web/lib/Zend/Cloud/StorageService/Factory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Cloud/StorageService/Factory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Cloud
* @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,34 +25,34 @@
* @category Zend
* @package Zend_Cloud
* @subpackage StorageService
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Cloud_StorageService_Factory extends Zend_Cloud_AbstractFactory
{
const STORAGE_ADAPTER_KEY = 'storage_adapter';
-
+
/**
* @var string Interface which adapter must implement to be considered valid
*/
protected static $_adapterInterface = 'Zend_Cloud_StorageService_Adapter';
/**
* Constructor
- *
+ *
* @return void
*/
private function __construct()
{
// private ctor - should not be used
}
-
+
/**
* Retrieve StorageService adapter
- *
- * @param array $options
- * @return void
+ *
+ * @param array $options
+ * @return Zend_Cloud_StorageService_Adapter
*/
- public static function getAdapter($options = array())
+ public static function getAdapter($options = array())
{
$adapter = parent::_getAdapter(self::STORAGE_ADAPTER_KEY, $options);
if (!$adapter) {
--- a/web/lib/Zend/CodeGenerator/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_CodeGenerator_Abstract
--- a/web/lib/Zend/CodeGenerator/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Exception extends Zend_Exception
--- a/web/lib/Zend/CodeGenerator/Php/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_CodeGenerator_Php_Abstract extends Zend_CodeGenerator_Abstract
--- a/web/lib/Zend/CodeGenerator/Php/Body.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Body.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Body.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Body.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Body extends Zend_CodeGenerator_Abstract
--- a/web/lib/Zend/CodeGenerator/Php/Class.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Class.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Class.php 21915 2010-04-16 20:40:15Z matthew $
+ * @version $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -48,7 +48,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Class extends Zend_CodeGenerator_Php_Abstract
@@ -85,6 +85,11 @@
protected $_properties = null;
/**
+ * @var array Array of constants
+ */
+ protected $_constants = null;
+
+ /**
* @var array Array of methods
*/
protected $_methods = null;
@@ -156,7 +161,7 @@
if (is_array($docblock)) {
$docblock = new Zend_CodeGenerator_Php_Docblock($docblock);
- } elseif (!$docblock instanceof Zend_CodeGenerator_Php_Docblock) {
+ } elseif ((!is_null($docblock)) && (!$docblock instanceof Zend_CodeGenerator_Php_Docblock)) {
require_once 'Zend/CodeGenerator/Php/Exception.php';
throw new Zend_CodeGenerator_Php_Exception('setDocblock() is expecting either a string, array or an instance of Zend_CodeGenerator_Php_Docblock');
}
@@ -279,6 +284,21 @@
}
/**
+ * setConstants()
+ *
+ * @param array $constants
+ * @return Zend_CodeGenerator_Php_Class
+ */
+ public function setConstants(Array $constants)
+ {
+ foreach ($constants as $const) {
+ $this->setConstant($const);
+ }
+
+ return $this;
+ }
+
+ /**
* setProperty()
*
* @param array|Zend_CodeGenerator_Php_Property $property
@@ -296,6 +316,9 @@
throw new Zend_CodeGenerator_Php_Exception('setProperty() expects either an array of property options or an instance of Zend_CodeGenerator_Php_Property');
}
+ if ($property->isConst()) {
+ return $this->setConstant($property);
+ }
if (isset($this->_properties[$propertyName])) {
require_once 'Zend/CodeGenerator/Php/Exception.php';
throw new Zend_CodeGenerator_Php_Exception('A property by name ' . $propertyName . ' already exists in this class.');
@@ -306,6 +329,37 @@
}
/**
+ * setConstant()
+ *
+ * @param array|Zend_CodeGenerator_Php_Property $const
+ * @return Zend_CodeGenerator_Php_Class
+ */
+ public function setConstant($const)
+ {
+ if (is_array($const)) {
+ $const = new Zend_CodeGenerator_Php_Property($const);
+ $constName = $const->getName();
+ } elseif ($const instanceof Zend_CodeGenerator_Php_Property) {
+ $constName = $const->getName();
+ } else {
+ require_once 'Zend/CodeGenerator/Php/Exception.php';
+ throw new Zend_CodeGenerator_Php_Exception('setConstant() expects either an array of property options or an instance of Zend_CodeGenerator_Php_Property');
+ }
+
+ if (!$const->isConst()) {
+ require_once 'Zend/CodeGenerator/Php/Exception.php';
+ throw new Zend_CodeGenerator_Php_Exception('setProperty() expects argument to define a constant');
+ }
+ if (isset($this->_constants[$constName])) {
+ require_once 'Zend/CodeGenerator/Php/Exception.php';
+ throw new Zend_CodeGenerator_Php_Exception('A constant by name ' . $constName . ' already exists in this class.');
+ }
+
+ $this->_constants[$constName] = $const;
+ return $this;
+ }
+
+ /**
* getProperties()
*
* @return array
@@ -316,6 +370,16 @@
}
/**
+ * getConstants()
+ *
+ * @return array
+ */
+ public function getConstants()
+ {
+ return $this->_constants;
+ }
+
+ /**
* getProperty()
*
* @param string $propertyName
@@ -332,6 +396,22 @@
}
/**
+ * getConstant()
+ *
+ * @param string $constName
+ * @return Zend_CodeGenerator_Php_Property
+ */
+ public function getConstant($constName)
+ {
+ foreach ($this->_constants as $const) {
+ if ($const->getName() == $constName) {
+ return $const;
+ }
+ }
+ return false;
+ }
+
+ /**
* hasProperty()
*
* @param string $propertyName
@@ -343,6 +423,17 @@
}
/**
+ * hasConstant()
+ *
+ * @param string $constName
+ * @return bool
+ */
+ public function hasConstant($constName)
+ {
+ return isset($this->_constants[$constName]);
+ }
+
+ /**
* setMethods()
*
* @param array $methods
@@ -437,6 +528,12 @@
}
}
+ foreach ($this->_constants as $constant) {
+ if ($constant->isSourceDirty()) {
+ return true;
+ }
+ }
+
foreach ($this->_methods as $method) {
if ($method->isSourceDirty()) {
return true;
@@ -481,6 +578,13 @@
$output .= self::LINE_FEED . '{' . self::LINE_FEED . self::LINE_FEED;
+ $constants = $this->getConstants();
+ if (!empty($constants)) {
+ foreach ($constants as $const) {
+ $output .= $const->generate() . self::LINE_FEED . self::LINE_FEED;
+ }
+ }
+
$properties = $this->getProperties();
if (!empty($properties)) {
foreach ($properties as $property) {
@@ -507,6 +611,7 @@
protected function _init()
{
$this->_properties = new Zend_CodeGenerator_Php_Member_Container(Zend_CodeGenerator_Php_Member_Container::TYPE_PROPERTY);
+ $this->_constants = new Zend_CodeGenerator_Php_Member_Container(Zend_CodeGenerator_Php_Member_Container::TYPE_PROPERTY);
$this->_methods = new Zend_CodeGenerator_Php_Member_Container(Zend_CodeGenerator_Php_Member_Container::TYPE_METHOD);
}
--- a/web/lib/Zend/CodeGenerator/Php/Docblock.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Docblock.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Docblock.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Docblock.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Docblock extends Zend_CodeGenerator_Php_Abstract
@@ -211,7 +211,11 @@
$content = wordwrap($content, 80, self::LINE_FEED);
$lines = explode(self::LINE_FEED, $content);
foreach ($lines as $line) {
- $output .= $indent . ' * ' . $line . self::LINE_FEED;
+ $output .= $indent . ' *';
+ if ($line) {
+ $output .= " $line";
+ }
+ $output .= self::LINE_FEED;
}
$output .= $indent . ' */' . self::LINE_FEED;
return $output;
--- a/web/lib/Zend/CodeGenerator/Php/Docblock/Tag.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Docblock/Tag.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,30 +15,20 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tag.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tag.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_CodeGenerator_Abstract
+ * @see Zend_CodeGenerator_Php_Abstract
*/
require_once 'Zend/CodeGenerator/Php/Abstract.php';
/**
- * @see Zend_CodeGenerator_Php_Docblock_Tag_Param
- */
-require_once 'Zend/CodeGenerator/Php/Docblock/Tag/Param.php';
-
-/**
- * @see Zend_CodeGenerator_Php_Docblock_Tag_Return
- */
-require_once 'Zend/CodeGenerator/Php/Docblock/Tag/Return.php';
-
-/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Docblock_Tag extends Zend_CodeGenerator_Php_Abstract
@@ -178,7 +168,11 @@
*/
public function generate()
{
- return '@' . $this->_name . ' ' . $this->_description;
+ $tag = '@' . $this->_name;
+ if ($this->_description) {
+ $tag .= ' ' . $this->_description;
+ }
+ return $tag;
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/License.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/License.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: License.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: License.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Docblock_Tag_License extends Zend_CodeGenerator_Php_Docblock_Tag
--- a/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/Param.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/Param.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Param.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Param.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Docblock_Tag_Param extends Zend_CodeGenerator_Php_Docblock_Tag
@@ -53,7 +53,7 @@
* fromReflection()
*
* @param Zend_Reflection_Docblock_Tag $reflectionTagParam
- * @return Zend_CodeGenerator_Php_Docblock_Tag_Param
+ * @return Zend_CodeGenerator_Php_Docblock_Tag
*/
public static function fromReflection(Zend_Reflection_Docblock_Tag $reflectionTagParam)
{
--- a/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/Return.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Docblock/Tag/Return.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Return.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Return.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Docblock_Tag_Return extends Zend_CodeGenerator_Php_Docblock_Tag
--- a/web/lib/Zend/CodeGenerator/Php/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Exception extends Zend_CodeGenerator_Exception
--- a/web/lib/Zend/CodeGenerator/Php/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_File extends Zend_CodeGenerator_Php_Abstract
@@ -97,7 +97,7 @@
}
/**
- * fromReflectedFilePath() - use this if you intend on generating code generation objects based on the same file.
+ * fromReflectedFileName() - use this if you intend on generating code generation objects based on the same file.
* This will keep previous changes to the file in tact during the same PHP process
*
* @param string $filePath
@@ -110,7 +110,7 @@
$realpath = realpath($filePath);
if ($realpath === false) {
- if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
+ if ( ($realpath = Zend_Reflection_File::findRealpathInIncludePath($filePath)) === false) {
require_once 'Zend/CodeGenerator/Php/Exception.php';
throw new Zend_CodeGenerator_Php_Exception('No file for ' . $realpath . ' was found.');
}
@@ -394,7 +394,7 @@
// if there are markers, put the body into the output
$body = $this->getBody();
- if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker:#', $body)) {
+ if (preg_match('#/\* Zend_CodeGenerator_Php_File-(.*?)Marker#', $body)) {
$output .= $body;
$body = '';
}
@@ -428,6 +428,9 @@
$classes = $this->getClasses();
if (!empty($classes)) {
foreach ($classes as $class) {
+ if($this->getDocblock() == $class->getDocblock()) {
+ $class->setDocblock(null);
+ }
$regex = str_replace('?', $class->getName(), self::$_markerClass);
$regex = preg_quote($regex, '#');
if (preg_match('#'.$regex.'#', $output)) {
--- a/web/lib/Zend/CodeGenerator/Php/Member/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Member/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_CodeGenerator_Php_Member_Abstract extends Zend_CodeGenerator_Php_Abstract
--- a/web/lib/Zend/CodeGenerator/Php/Member/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Member/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Container.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Member_Container extends ArrayObject
--- a/web/lib/Zend/CodeGenerator/Php/Method.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Method.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Method.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Method.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Method extends Zend_CodeGenerator_Php_Member_Abstract
@@ -220,10 +220,12 @@
$output .= ')' . self::LINE_FEED . $indent . '{' . self::LINE_FEED;
- if ($this->_body) {
+ if ($this->_body && $this->isSourceDirty()) {
$output .= ' '
. str_replace(self::LINE_FEED, self::LINE_FEED . $indent . $indent, trim($this->_body))
. self::LINE_FEED;
+ } elseif ($this->_body) {
+ $output .= $this->_body . self::LINE_FEED;
}
$output .= $indent . '}' . self::LINE_FEED;
--- a/web/lib/Zend/CodeGenerator/Php/Parameter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Parameter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parameter.php 21889 2010-04-16 18:40:50Z juokaz $
+ * @version $Id: Parameter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Parameter extends Zend_CodeGenerator_Php_Abstract
--- a/web/lib/Zend/CodeGenerator/Php/Parameter/DefaultValue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Parameter/DefaultValue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage Php
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DefaultValue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DefaultValue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage Php
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Parameter_DefaultValue
--- a/web/lib/Zend/CodeGenerator/Php/Property.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Property.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Property.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Property.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Property extends Zend_CodeGenerator_Php_Member_Abstract
--- a/web/lib/Zend/CodeGenerator/Php/Property/DefaultValue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/CodeGenerator/Php/Property/DefaultValue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_CodeGenerator
* @subpackage PHP
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DefaultValue.php 21979 2010-04-24 11:07:11Z jan $
+ * @version $Id: DefaultValue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_CodeGenerator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_CodeGenerator_Php_Property_DefaultValue extends Zend_CodeGenerator_Php_Abstract
--- a/web/lib/Zend/Config.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Config.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Config.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config implements Countable, Iterator
--- a/web/lib/Zend/Config/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Exception extends Zend_Exception {}
--- a/web/lib/Zend/Config/Ini.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Ini.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ini.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ini.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Ini extends Zend_Config
@@ -83,16 +83,17 @@
*
* The $options parameter may be provided as either a boolean or an array.
* If provided as a boolean, this sets the $allowModifications option of
- * Zend_Config. If provided as an array, there are two configuration
+ * Zend_Config. If provided as an array, there are three configuration
* directives that may be set. For example:
*
* $options = array(
* 'allowModifications' => false,
- * 'nestSeparator' => '->'
+ * 'nestSeparator' => ':',
+ * 'skipExtends' => false,
* );
*
* @param string $filename
- * @param string|null $section
+ * @param mixed $section
* @param boolean|array $options
* @throws Zend_Config_Exception
* @return void
@@ -157,11 +158,11 @@
$this->_loadedSection = $section;
}
-
+
/**
* Load the INI file from disk using parse_ini_file(). Use a private error
* handler to convert any loading errors into a Zend_Config_Exception
- *
+ *
* @param string $filename
* @throws Zend_Config_Exception
* @return array
@@ -171,7 +172,7 @@
set_error_handler(array($this, '_loadFileErrorHandler'));
$iniArray = parse_ini_file($filename, true); // Warnings and errors are suppressed
restore_error_handler();
-
+
// Check if there was a error while loading file
if ($this->_loadFileErrorStr !== null) {
/**
@@ -180,7 +181,7 @@
require_once 'Zend/Config/Exception.php';
throw new Zend_Config_Exception($this->_loadFileErrorStr);
}
-
+
return $iniArray;
}
--- a/web/lib/Zend/Config/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @package Zend_Config
* @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: Json.php 23294 2010-11-05 00:27:34Z ramon $
+ * @version $Id: Json.php 24810 2012-05-17 21:20:12Z rob $
*/
/**
@@ -220,7 +220,9 @@
{
foreach ($this->_getConstants() as $constant) {
if (strstr($value, $constant)) {
- $value = str_replace($constant, constant($constant), $value);
+ // handle backslashes that may represent windows path names for instance
+ $replacement = str_replace('\\', '\\\\', constant($constant));
+ $value = str_replace($constant, $replacement, $value);
}
}
return $value;
--- a/web/lib/Zend/Config/Writer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Writer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Writer.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Config_Writer
--- a/web/lib/Zend/Config/Writer/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Writer_Array extends Zend_Config_Writer_FileAbstract
--- a/web/lib/Zend/Config/Writer/FileAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/FileAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Config
* @package Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
*
* @category Zend
* @package Zend_package
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FileAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FileAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Config_Writer_FileAbstract extends Zend_Config_Writer
{
--- a/web/lib/Zend/Config/Writer/Ini.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/Ini.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ini.php 21983 2010-04-25 08:09:09Z jan $
+ * @version $Id: Ini.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Writer_Ini extends Zend_Config_Writer_FileAbstract
@@ -161,11 +161,11 @@
throw new Zend_Config_Exception('Value can not contain double quotes "');
}
}
-
+
/**
* Root elements that are not assigned to any section needs to be
* on the top of config.
- *
+ *
* @see http://framework.zend.com/issues/browse/ZF-6289
* @param Zend_Config
* @return Zend_Config
@@ -174,7 +174,7 @@
{
$configArray = $config->toArray();
$sections = array();
-
+
// remove sections from config array
foreach ($configArray as $key => $value) {
if (is_array($value)) {
@@ -182,12 +182,12 @@
unset($configArray[$key]);
}
}
-
+
// readd sections to the end
foreach ($sections as $key => $value) {
$configArray[$key] = $value;
}
-
+
return new Zend_Config($configArray);
}
}
--- a/web/lib/Zend/Config/Writer/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @package Zend_Config
* @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: Json.php 23294 2010-11-05 00:27:34Z ramon $
+ * @version $Id: Json.php 23293 2010-11-04 23:40:23Z ramon $
*/
/**
--- a/web/lib/Zend/Config/Writer/Xml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/Xml.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Writer_Xml extends Zend_Config_Writer_FileAbstract
--- a/web/lib/Zend/Config/Writer/Yaml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Writer/Yaml.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @package Zend_Config
* @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: Yaml.php 23294 2010-11-05 00:27:34Z ramon $
+ * @version $Id: Yaml.php 23650 2011-01-21 21:32:57Z mikaelkael $
*/
/**
@@ -57,7 +57,7 @@
/**
* Set callback for decoding YAML
*
- * @param $yamlEncoder the decoder to set
+ * @param callable $yamlEncoder the decoder to set
* @return Zend_Config_Yaml
*/
public function setYamlEncoder($yamlEncoder)
--- a/web/lib/Zend/Config/Xml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Xml.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Xml extends Zend_Config
@@ -58,10 +58,20 @@
*
* Note that the keys in $section will override any keys of the same
* name in the sections that have been included via "extends".
+ *
+ * The $options parameter may be provided as either a boolean or an array.
+ * If provided as a boolean, this sets the $allowModifications option of
+ * Zend_Config. If provided as an array, there are two configuration
+ * directives that may be set. For example:
*
- * @param string $xml XML file or string to process
- * @param mixed $section Section to process
- * @param boolean $options Whether modifications are allowed at runtime
+ * $options = array(
+ * 'allowModifications' => false,
+ * 'skipExtends' => false
+ * );
+ *
+ * @param string $xml XML file or string to process
+ * @param mixed $section Section to process
+ * @param array|boolean $options
* @throws Zend_Config_Exception When xml is not set or cannot be loaded
* @throws Zend_Config_Exception When section $sectionName cannot be found in $xml
*/
--- a/web/lib/Zend/Config/Yaml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Config/Yaml.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Yaml.php 23294 2010-11-05 00:27:34Z ramon $
+ * @version $Id: Yaml.php 25169 2012-12-22 12:23:11Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Config
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Config_Yaml extends Zend_Config
@@ -93,7 +93,7 @@
/**
* Set callback for decoding YAML
*
- * @param $yamlDecoder the decoder to set
+ * @param callable $yamlDecoder the decoder to set
* @return Zend_Config_Yaml
*/
public function setYamlDecoder($yamlDecoder)
@@ -124,9 +124,9 @@
* - skip_extends: whether or not to skip processing of parent configuration
* - yaml_decoder: a callback to use to decode the Yaml source
*
- * @param string $yaml YAML file to process
- * @param mixed $section Section to process
- * @param boolean $options Whether modifiacations are allowed at runtime
+ * @param string $yaml YAML file to process
+ * @param mixed $section Section to process
+ * @param array|boolean $options
*/
public function __construct($yaml, $section = null, $options = false)
{
@@ -201,7 +201,10 @@
foreach ($section as $sectionName) {
if (!isset($config[$sectionName])) {
require_once 'Zend/Config/Exception.php';
- throw new Zend_Config_Exception(sprintf('Section "%s" cannot be found', $section));
+ throw new Zend_Config_Exception(sprintf(
+ 'Section "%s" cannot be found',
+ implode(' ', (array)$section)
+ ));
}
$dataArray = array_merge($this->_processExtends($config, $sectionName), $dataArray);
@@ -210,7 +213,10 @@
} else {
if (!isset($config[$section])) {
require_once 'Zend/Config/Exception.php';
- throw new Zend_Config_Exception(sprintf('Section "%s" cannot be found', $section));
+ throw new Zend_Config_Exception(sprintf(
+ 'Section "%s" cannot be found',
+ implode(' ', (array)$section)
+ ));
}
$dataArray = $this->_processExtends($config, $section);
@@ -284,14 +290,13 @@
$config = array();
$inIndent = false;
while (list($n, $line) = each($lines)) {
- $lineno = $n+1;
+ $lineno = $n + 1;
+
+ $line = rtrim(preg_replace("/#.*$/", "", $line));
if (strlen($line) == 0) {
continue;
}
- if ($line[0] == '#') {
- // comment
- continue;
- }
+
$indent = strspn($line, " ");
// line without the spaces
@@ -311,20 +316,12 @@
$inIndent = true;
}
- if (preg_match("/(\w+):\s*(.*)/", $line, $m)) {
+ if (preg_match("/(?!-)([\w\-]+):\s*(.*)/", $line, $m)) {
// key: value
- if ($m[2]) {
+ if (strlen($m[2])) {
// simple key: value
- $value = $m[2];
- // Check for booleans and constants
- if (preg_match('/^(t(rue)?|on|y(es)?)$/i', $value)) {
- $value = true;
- } elseif (preg_match('/^(f(alse)?|off|n(o)?)$/i', $value)) {
- $value = false;
- } elseif (!self::$_ignoreConstants) {
- // test for constants
- $value = self::_replaceConstants($value);
- }
+ $value = preg_replace("/#.*$/", "", $m[2]);
+ $value = self::_parseValue($value);
} else {
// key: and then values on new lines
$value = self::_decodeYaml($currentIndent + 1, $lines);
@@ -337,7 +334,9 @@
// item in the list:
// - FOO
if (strlen($line) > 2) {
- $config[] = substr($line, 2);
+ $value = substr($line, 2);
+
+ $config[] = self::_parseValue($value);
} else {
$config[] = self::_decodeYaml($currentIndent + 1, $lines);
}
@@ -353,6 +352,40 @@
}
/**
+ * Parse values
+ *
+ * @param string $value
+ * @return string
+ */
+ protected static function _parseValue($value)
+ {
+ $value = trim($value);
+
+ // remove quotes from string.
+ if ('"' == $value['0']) {
+ if ('"' == $value[count($value) -1]) {
+ $value = substr($value, 1, -1);
+ }
+ } elseif ('\'' == $value['0'] && '\'' == $value[count($value) -1]) {
+ $value = strtr($value, array("''" => "'", "'" => ''));
+ }
+
+ // Check for booleans and constants
+ if (preg_match('/^(t(rue)?|on|y(es)?)$/i', $value)) {
+ $value = true;
+ } elseif (preg_match('/^(f(alse)?|off|n(o)?)$/i', $value)) {
+ $value = false;
+ } elseif (strcasecmp($value, 'null') === 0) {
+ $value = null;
+ } elseif (!self::$_ignoreConstants) {
+ // test for constants
+ $value = self::_replaceConstants($value);
+ }
+
+ return $value;
+ }
+
+ /**
* Replace any constants referenced in a string with their values
*
* @param string $value
--- a/web/lib/Zend/Console/Getopt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Console/Getopt.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Console_Getopt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Getopt.php 22191 2010-05-17 21:50:14Z jan $
+ * @version $Id: Getopt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -80,7 +80,7 @@
*
* @category Zend
* @package Zend_Console_Getopt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version Release: @package_version@
* @since Class available since Release 0.6.0
--- a/web/lib/Zend/Console/Getopt/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Console/Getopt/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Console_Getopt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Console_Getopt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Console_Getopt_Exception extends Zend_Exception
--- a/web/lib/Zend/Controller/Action.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Action.php 22792 2010-08-05 18:30:27Z matthew $
+ * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Action implements Zend_Controller_Action_Interface
@@ -505,14 +505,18 @@
$this->_classMethods = get_class_methods($this);
}
- // preDispatch() didn't change the action, so we can continue
- if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
- if ($this->getInvokeArg('useCaseSensitiveActions')) {
- trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
+ // If pre-dispatch hooks introduced a redirect then stop dispatch
+ // @see ZF-7496
+ if (!($this->getResponse()->isRedirect())) {
+ // preDispatch() didn't change the action, so we can continue
+ if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
+ if ($this->getInvokeArg('useCaseSensitiveActions')) {
+ trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
+ }
+ $this->$action();
+ } else {
+ $this->__call($action, array());
}
- $this->$action();
- } else {
- $this->__call($action, array());
}
$this->postDispatch();
}
@@ -579,8 +583,24 @@
*/
protected function _getParam($paramName, $default = null)
{
+ return $this->getParam($paramName, $default);
+ }
+
+ /**
+ * Gets a parameter from the {@link $_request Request object}. If the
+ * parameter does not exist, NULL will be returned.
+ *
+ * If the parameter does not exist and $default is set, then
+ * $default will be returned instead of NULL.
+ *
+ * @param string $paramName
+ * @param mixed $default
+ * @return mixed
+ */
+ public function getParam($paramName, $default = null)
+ {
$value = $this->getRequest()->getParam($paramName);
- if ((null === $value || '' === $value) && (null !== $default)) {
+ if ((null === $value || '' === $value) && (null !== $default)) {
$value = $default;
}
@@ -593,9 +613,23 @@
* @param string $paramName
* @param mixed $value
* @return Zend_Controller_Action
+ * @deprecated Deprecated as of Zend Framework 1.7. Use
+ * setParam() instead.
*/
protected function _setParam($paramName, $value)
{
+ return $this->setParam($paramName, $value);
+ }
+
+ /**
+ * Set a parameter in the {@link $_request Request object}.
+ *
+ * @param string $paramName
+ * @param mixed $value
+ * @return Zend_Controller_Action
+ */
+ public function setParam($paramName, $value)
+ {
$this->getRequest()->setParam($paramName, $value);
return $this;
@@ -607,9 +641,23 @@
*
* @param string $paramName
* @return boolean
+ * @deprecated Deprecated as of Zend Framework 1.7. Use
+ * hasParam() instead.
*/
protected function _hasParam($paramName)
{
+ return $this->hasParam($paramName);
+ }
+
+ /**
+ * Determine whether a given parameter exists in the
+ * {@link $_request Request object}.
+ *
+ * @param string $paramName
+ * @return boolean
+ */
+ public function hasParam($paramName)
+ {
return null !== $this->getRequest()->getParam($paramName);
}
@@ -618,9 +666,22 @@
* as an associative array.
*
* @return array
+ * @deprecated Deprecated as of Zend Framework 1.7. Use
+ * getAllParams() instead.
*/
protected function _getAllParams()
{
+ return $this->getAllParams();
+ }
+
+ /**
+ * Return all parameters in the {@link $_request Request object}
+ * as an associative array.
+ *
+ * @return array
+ */
+ public function getAllParams()
+ {
return $this->getRequest()->getParams();
}
@@ -650,9 +711,42 @@
* @param string $module
* @param array $params
* @return void
+ * @deprecated Deprecated as of Zend Framework 1.7. Use
+ * forward() instead.
*/
final protected function _forward($action, $controller = null, $module = null, array $params = null)
{
+ $this->forward($action, $controller, $module, $params);
+ }
+
+ /**
+ * Forward to another controller/action.
+ *
+ * It is important to supply the unformatted names, i.e. "article"
+ * rather than "ArticleController". The dispatcher will do the
+ * appropriate formatting when the request is received.
+ *
+ * If only an action name is provided, forwards to that action in this
+ * controller.
+ *
+ * If an action and controller are specified, forwards to that action and
+ * controller in this module.
+ *
+ * Specifying an action, controller, and module is the most specific way to
+ * forward.
+ *
+ * A fourth argument, $params, will be used to set the request parameters.
+ * If either the controller or module are unnecessary for forwarding,
+ * simply pass null values for them before specifying the parameters.
+ *
+ * @param string $action
+ * @param string $controller
+ * @param string $module
+ * @param array $params
+ * @return void
+ */
+ final public function forward($action, $controller = null, $module = null, array $params = null)
+ {
$request = $this->getRequest();
if (null !== $params) {
@@ -680,9 +774,25 @@
* @param string $url
* @param array $options Options to be used when redirecting
* @return void
+ * @deprecated Deprecated as of Zend Framework 1.7. Use
+ * redirect() instead.
*/
protected function _redirect($url, array $options = array())
{
+ $this->redirect($url, $options);
+ }
+
+ /**
+ * Redirect to another URL
+ *
+ * Proxies to {@link Zend_Controller_Action_Helper_Redirector::gotoUrl()}.
+ *
+ * @param string $url
+ * @param array $options Options to be used when redirecting
+ * @return void
+ */
+ public function redirect($url, array $options = array())
+ {
$this->_helper->redirector->gotoUrl($url, $options);
}
}
--- a/web/lib/Zend/Controller/Action/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Exception extends Zend_Controller_Exception
--- a/web/lib/Zend/Controller/Action/Helper/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20261 2010-01-13 18:55:25Z matthew $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Action_Helper_Abstract
@@ -142,13 +142,15 @@
*/
public function getName()
{
- $full_class_name = get_class($this);
-
- if (strpos($full_class_name, '_') !== false) {
- $helper_name = strrchr($full_class_name, '_');
- return ltrim($helper_name, '_');
+ $fullClassName = get_class($this);
+ if (strpos($fullClassName, '_') !== false) {
+ $helperName = strrchr($fullClassName, '_');
+ return ltrim($helperName, '_');
+ } elseif (strpos($fullClassName, '\\') !== false) {
+ $helperName = strrchr($fullClassName, '\\');
+ return ltrim($helperName, '\\');
} else {
- return $full_class_name;
+ return $fullClassName;
}
}
}
--- a/web/lib/Zend/Controller/Action/Helper/ActionStack.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/ActionStack.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActionStack.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActionStack.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_ActionStack extends Zend_Controller_Action_Helper_Abstract
--- a/web/lib/Zend/Controller/Action/Helper/AjaxContext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/AjaxContext.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AjaxContext.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AjaxContext.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_AjaxContext extends Zend_Controller_Action_Helper_ContextSwitch
@@ -68,7 +68,10 @@
{
$this->_currentContext = null;
- if (!$this->getRequest()->isXmlHttpRequest()) {
+ $request = $this->getRequest();
+ if (!method_exists($request, 'isXmlHttpRequest') ||
+ !$this->getRequest()->isXmlHttpRequest())
+ {
return;
}
--- a/web/lib/Zend/Controller/Action/Helper/AutoComplete/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/AutoComplete/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Action_Helper_AutoComplete_Abstract extends Zend_Controller_Action_Helper_Abstract
--- a/web/lib/Zend/Controller/Action/Helper/AutoCompleteDojo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/AutoCompleteDojo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AutoCompleteDojo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AutoCompleteDojo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_AutoCompleteDojo extends Zend_Controller_Action_Helper_AutoComplete_Abstract
--- a/web/lib/Zend/Controller/Action/Helper/AutoCompleteScriptaculous.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/AutoCompleteScriptaculous.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AutoCompleteScriptaculous.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AutoCompleteScriptaculous.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_AutoCompleteScriptaculous extends Zend_Controller_Action_Helper_AutoComplete_Abstract
--- a/web/lib/Zend/Controller/Action/Helper/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Cache.php 24853 2012-05-31 23:19:27Z adamlundrigan $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_Cache
@@ -64,7 +64,7 @@
* @var array
*/
protected $_tags = array();
-
+
/**
* Indexed map of Extensions by Controller and Action
*
@@ -130,16 +130,26 @@
public function removePage($relativeUrl, $recursive = false)
{
$cache = $this->getCache(Zend_Cache_Manager::PAGECACHE);
+ $encodedCacheId = $this->_encodeCacheId($relativeUrl);
+
if ($recursive) {
$backend = $cache->getBackend();
if (($backend instanceof Zend_Cache_Backend)
&& method_exists($backend, 'removeRecursively')
) {
- return $backend->removeRecursively($relativeUrl);
+ $result = $backend->removeRecursively($encodedCacheId);
+ if (is_null($result) ) {
+ $result = $backend->removeRecursively($relativeUrl);
+ }
+ return $result;
}
}
- return $cache->remove($relativeUrl);
+ $result = $cache->remove($encodedCacheId);
+ if (is_null($result) ) {
+ $result = $cache->remove($relativeUrl);
+ }
+ return $result;
}
/**
@@ -189,7 +199,7 @@
->start($this->_encodeCacheId($reqUri), $tags, $extension);
}
}
-
+
/**
* Encode a Cache ID as hexadecimal. This is a workaround because Backend ID validation
* is trapped in the Frontend classes. Will try to get this reversed for ZF 2.0
--- a/web/lib/Zend/Controller/Action/Helper/ContextSwitch.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/ContextSwitch.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContextSwitch.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContextSwitch.php 24864 2012-06-02 00:51:50Z adamlundrigan $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_ContextSwitch extends Zend_Controller_Action_Helper_Abstract
@@ -1304,7 +1304,6 @@
if (null === $controller) {
return array();
}
- $action = (string) $action;
$contextKey = $this->_contextKey;
if (!isset($controller->$contextKey)) {
@@ -1312,6 +1311,7 @@
}
if (null !== $action) {
+ $action = (string) $action;
if (isset($controller->{$contextKey}[$action])) {
return $controller->{$contextKey}[$action];
} else {
--- a/web/lib/Zend/Controller/Action/Helper/FlashMessenger.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/FlashMessenger.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -36,9 +36,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FlashMessenger.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FlashMessenger.php 24813 2012-05-22 16:49:24Z adamlundrigan $
*/
class Zend_Controller_Action_Helper_FlashMessenger extends Zend_Controller_Action_Helper_Abstract implements IteratorAggregate, Countable
{
@@ -112,6 +112,16 @@
$this->_namespace = $namespace;
return $this;
}
+
+ /**
+ * getNamespace() - return the current namepsace
+ *
+ * @return string
+ */
+ public function getNamespace()
+ {
+ return $this->_namespace;
+ }
/**
* resetNamespace() - reset the namespace to the default
@@ -130,17 +140,22 @@
* @param string $message
* @return Zend_Controller_Action_Helper_FlashMessenger Provides a fluent interface
*/
- public function addMessage($message)
+ public function addMessage($message, $namespace = null)
{
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
if (self::$_messageAdded === false) {
self::$_session->setExpirationHops(1, null, true);
}
if (!is_array(self::$_session->{$this->_namespace})) {
- self::$_session->{$this->_namespace} = array();
+ self::$_session->{$namespace} = array();
}
- self::$_session->{$this->_namespace}[] = $message;
+ self::$_session->{$namespace}[] = $message;
+ self::$_messageAdded = true;
return $this;
}
@@ -150,9 +165,13 @@
*
* @return boolean
*/
- public function hasMessages()
+ public function hasMessages($namespace = null)
{
- return isset(self::$_messages[$this->_namespace]);
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ return isset(self::$_messages[$namespace]);
}
/**
@@ -160,10 +179,14 @@
*
* @return array
*/
- public function getMessages()
+ public function getMessages($namespace = null)
{
- if ($this->hasMessages()) {
- return self::$_messages[$this->_namespace];
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ if ($this->hasMessages($namespace)) {
+ return self::$_messages[$namespace];
}
return array();
@@ -174,10 +197,14 @@
*
* @return boolean True if messages were cleared, false if none existed
*/
- public function clearMessages()
+ public function clearMessages($namespace = null)
{
- if ($this->hasMessages()) {
- unset(self::$_messages[$this->_namespace]);
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ if ($this->hasMessages($namespace)) {
+ unset(self::$_messages[$namespace]);
return true;
}
@@ -190,9 +217,13 @@
*
* @return boolean
*/
- public function hasCurrentMessages()
+ public function hasCurrentMessages($namespace = null)
{
- return isset(self::$_session->{$this->_namespace});
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ return isset(self::$_session->{$namespace});
}
/**
@@ -201,10 +232,14 @@
*
* @return array
*/
- public function getCurrentMessages()
+ public function getCurrentMessages($namespace = null)
{
- if ($this->hasCurrentMessages()) {
- return self::$_session->{$this->_namespace};
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ if ($this->hasCurrentMessages($namespace)) {
+ return self::$_session->{$namespace};
}
return array();
@@ -215,10 +250,14 @@
*
* @return boolean
*/
- public function clearCurrentMessages()
+ public function clearCurrentMessages($namespace = null)
{
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
if ($this->hasCurrentMessages()) {
- unset(self::$_session->{$this->_namespace});
+ unset(self::$_session->{$namespace});
return true;
}
@@ -230,10 +269,14 @@
*
* @return ArrayObject
*/
- public function getIterator()
+ public function getIterator($namespace = null)
{
- if ($this->hasMessages()) {
- return new ArrayObject($this->getMessages());
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ if ($this->hasMessages($namespace)) {
+ return new ArrayObject($this->getMessages($namespace));
}
return new ArrayObject();
@@ -244,10 +287,14 @@
*
* @return int
*/
- public function count()
+ public function count($namespace = null)
{
- if ($this->hasMessages()) {
- return count($this->getMessages());
+ if (!is_string($namespace) || $namespace == '') {
+ $namespace = $this->getNamespace();
+ }
+
+ if ($this->hasMessages($namespace)) {
+ return count($this->getMessages($namespace));
}
return 0;
@@ -259,8 +306,8 @@
* @param string $message
* @return void
*/
- public function direct($message)
+ public function direct($message, $namespace=NULL)
{
- return $this->addMessage($message);
+ return $this->addMessage($message, $namespace);
}
}
--- a/web/lib/Zend/Controller/Action/Helper/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Json.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Json.php 24829 2012-05-30 12:31:39Z adamlundrigan $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_Json extends Zend_Controller_Action_Helper_Abstract
@@ -53,23 +53,24 @@
* @param mixed $data
* @param boolean $keepLayouts
* @param boolean|array $keepLayouts
+ * @param boolean $encodeData Provided data is already JSON
* NOTE: if boolean, establish $keepLayouts to true|false
* if array, admit params for Zend_Json::encode as enableJsonExprFinder=>true|false
* if $keepLayouts and parmas for Zend_Json::encode are required
- * then, the array can contains a 'keepLayout'=>true|false
+ * then, the array can contains a 'keepLayout'=>true|false and/or 'encodeData'=>true|false
* that will not be passed to Zend_Json::encode method but will be passed
* to Zend_View_Helper_Json
* @throws Zend_Controller_Action_Helper_Json
* @return string
*/
- public function encodeJson($data, $keepLayouts = false)
+ public function encodeJson($data, $keepLayouts = false, $encodeData = true)
{
/**
* @see Zend_View_Helper_Json
*/
require_once 'Zend/View/Helper/Json.php';
$jsonHelper = new Zend_View_Helper_Json();
- $data = $jsonHelper->json($data, $keepLayouts);
+ $data = $jsonHelper->json($data, $keepLayouts, $encodeData);
if (!$keepLayouts) {
/**
@@ -87,17 +88,18 @@
*
* @param mixed $data
* @param boolean|array $keepLayouts
+ * @param $encodeData Encode $data as JSON?
* NOTE: if boolean, establish $keepLayouts to true|false
* if array, admit params for Zend_Json::encode as enableJsonExprFinder=>true|false
* if $keepLayouts and parmas for Zend_Json::encode are required
- * then, the array can contains a 'keepLayout'=>true|false
+ * then, the array can contains a 'keepLayout'=>true|false and/or 'encodeData'=>true|false
* that will not be passed to Zend_Json::encode method but will be passed
* to Zend_View_Helper_Json
* @return string|void
*/
- public function sendJson($data, $keepLayouts = false)
+ public function sendJson($data, $keepLayouts = false, $encodeData = true)
{
- $data = $this->encodeJson($data, $keepLayouts);
+ $data = $this->encodeJson($data, $keepLayouts, $encodeData);
$response = $this->getResponse();
$response->setBody($data);
@@ -118,13 +120,14 @@
* @param mixed $data
* @param boolean $sendNow
* @param boolean $keepLayouts
+ * @param boolean $encodeData Encode $data as JSON?
* @return string|void
*/
- public function direct($data, $sendNow = true, $keepLayouts = false)
+ public function direct($data, $sendNow = true, $keepLayouts = false, $encodeData = true)
{
if ($sendNow) {
- return $this->sendJson($data, $keepLayouts);
+ return $this->sendJson($data, $keepLayouts, $encodeData);
}
- return $this->encodeJson($data, $keepLayouts);
+ return $this->encodeJson($data, $keepLayouts, $encodeData);
}
}
--- a/web/lib/Zend/Controller/Action/Helper/Redirector.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/Redirector.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Redirector.php 23248 2010-10-26 12:45:52Z matthew $
+ * @version $Id: Redirector.php 24843 2012-05-31 18:43:18Z rob $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_Redirector extends Zend_Controller_Action_Helper_Abstract
@@ -100,7 +100,7 @@
}
/**
- * Retrieve HTTP status code for {@link _redirect()} behaviour
+ * Set HTTP status code for {@link _redirect()} behaviour
*
* @param int $code
* @return Zend_Controller_Action_Helper_Redirector Provides a fluent interface
@@ -123,7 +123,7 @@
}
/**
- * Retrieve exit flag for {@link _redirect()} behaviour
+ * Set exit flag for {@link _redirect()} behaviour
*
* @param boolean $flag
* @return Zend_Controller_Action_Helper_Redirector Provides a fluent interface
@@ -146,7 +146,7 @@
}
/**
- * Retrieve 'prepend base' flag for {@link _redirect()} behaviour
+ * Set 'prepend base' flag for {@link _redirect()} behaviour
*
* @param boolean $flag
* @return Zend_Controller_Action_Helper_Redirector Provides a fluent interface
@@ -294,9 +294,9 @@
}
}
- $params['module'] = $module;
- $params['controller'] = $controller;
- $params['action'] = $action;
+ $params[$request->getModuleKey()] = $module;
+ $params[$request->getControllerKey()] = $controller;
+ $params[$request->getActionKey()] = $action;
$router = $this->getFrontController()->getRouter();
$url = $router->assemble($params, 'default', true);
--- a/web/lib/Zend/Controller/Action/Helper/Url.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/Url.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Url.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Url.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_Url extends Zend_Controller_Action_Helper_Abstract
--- a/web/lib/Zend/Controller/Action/Helper/ViewRenderer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Helper/ViewRenderer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewRenderer.php 20261 2010-01-13 18:55:25Z matthew $
+ * @version $Id: ViewRenderer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -68,7 +68,7 @@
* @uses Zend_Controller_Action_Helper_Abstract
* @package Zend_Controller
* @subpackage Zend_Controller_Action_Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_Helper_ViewRenderer extends Zend_Controller_Action_Helper_Abstract
@@ -626,6 +626,9 @@
} elseif (null !== $action) {
$vars['action'] = $action;
}
+
+ $replacePattern = array('/[^a-z0-9]+$/i', '/^[^a-z0-9]+/i');
+ $vars['action'] = preg_replace($replacePattern, '', $vars['action']);
$inflector = $this->getInflector();
if ($this->getNoController() || $this->getNeverController()) {
--- a/web/lib/Zend/Controller/Action/HelperBroker.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/HelperBroker.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelperBroker.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelperBroker.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_HelperBroker
--- a/web/lib/Zend/Controller/Action/HelperBroker/PriorityStack.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/HelperBroker/PriorityStack.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PriorityStack.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PriorityStack.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Action_HelperBroker_PriorityStack implements IteratorAggregate, ArrayAccess, Countable
--- a/web/lib/Zend/Controller/Action/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Action/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Controller_Action_Interface
--- a/web/lib/Zend/Controller/Dispatcher/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Dispatcher/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Controller_Dispatcher_Interface */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Dispatcher_Abstract implements Zend_Controller_Dispatcher_Interface
--- a/web/lib/Zend/Controller/Dispatcher/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Dispatcher/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Dispatcher_Exception extends Zend_Controller_Exception
--- a/web/lib/Zend/Controller/Dispatcher/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Dispatcher/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Controller_Dispatcher_Interface
--- a/web/lib/Zend/Controller/Dispatcher/Standard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Dispatcher/Standard.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Standard.php 22038 2010-04-28 18:54:22Z matthew $
+ * @version $Id: Standard.php 24861 2012-06-01 23:40:13Z adamlundrigan $
*/
/** Zend_Loader */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Dispatcher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Dispatcher_Standard extends Zend_Controller_Dispatcher_Abstract
@@ -257,6 +257,19 @@
}
/**
+ * If we're in a module or prefixDefaultModule is on, we must add the module name
+ * prefix to the contents of $className, as getControllerClass does not do that automatically.
+ * We must keep a separate variable because modules are not strictly PSR-0: We need the no-module-prefix
+ * class name to do the class->file mapping, but the full class name to insantiate the controller
+ */
+ $moduleClassName = $className;
+ if (($this->_defaultModule != $this->_curModule)
+ || $this->getParam('prefixDefaultModule'))
+ {
+ $moduleClassName = $this->formatClassName($this->_curModule, $className);
+ }
+
+ /**
* Load the controller class file
*/
$className = $this->loadClass($className);
@@ -265,12 +278,12 @@
* Instantiate controller with request, response, and invocation
* arguments; throw exception if it's not an action controller
*/
- $controller = new $className($request, $this->getResponse(), $this->getParams());
+ $controller = new $moduleClassName($request, $this->getResponse(), $this->getParams());
if (!($controller instanceof Zend_Controller_Action_Interface) &&
!($controller instanceof Zend_Controller_Action)) {
require_once 'Zend/Controller/Dispatcher/Exception.php';
throw new Zend_Controller_Dispatcher_Exception(
- 'Controller "' . $className . '" is not an instance of Zend_Controller_Action_Interface'
+ 'Controller "' . $moduleClassName . '" is not an instance of Zend_Controller_Action_Interface'
);
}
--- a/web/lib/Zend/Controller/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Exception extends Zend_Exception
--- a/web/lib/Zend/Controller/Front.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Front.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Front.php 20246 2010-01-12 21:36:08Z dasprid $
+ * @version $Id: Front.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Front
--- a/web/lib/Zend/Controller/Plugin/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Plugin/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Plugin_Abstract
--- a/web/lib/Zend/Controller/Plugin/ActionStack.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Plugin/ActionStack.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActionStack.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActionStack.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Controller_Plugin_ActionStack extends Zend_Controller_Plugin_Abstract
{
--- a/web/lib/Zend/Controller/Plugin/Broker.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Plugin/Broker.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Broker.php 20255 2010-01-13 13:23:36Z matthew $
+ * @version $Id: Broker.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Controller_Plugin_Abstract */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Plugin_Broker extends Zend_Controller_Plugin_Abstract
@@ -237,7 +237,7 @@
$plugin->routeStartup($request);
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
}
@@ -260,7 +260,7 @@
$plugin->routeShutdown($request);
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
}
@@ -287,7 +287,7 @@
$plugin->dispatchLoopStartup($request);
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
}
@@ -309,9 +309,11 @@
$plugin->preDispatch($request);
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
+ // skip rendering of normal dispatch give the error handler a try
+ $this->getRequest()->setDispatched(false);
}
}
}
@@ -331,7 +333,7 @@
$plugin->postDispatch($request);
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
}
@@ -353,7 +355,7 @@
$plugin->dispatchLoopShutdown();
} catch (Exception $e) {
if (Zend_Controller_Front::getInstance()->throwExceptions()) {
- throw $e;
+ throw new Zend_Controller_Exception($e->getMessage() . $e->getTraceAsString(), $e->getCode(), $e);
} else {
$this->getResponse()->setException($e);
}
--- a/web/lib/Zend/Controller/Plugin/ErrorHandler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Plugin/ErrorHandler.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ErrorHandler.php 20246 2010-01-12 21:36:08Z dasprid $
+ * @version $Id: ErrorHandler.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Controller_Plugin_ErrorHandler extends Zend_Controller_Plugin_Abstract
{
@@ -193,8 +193,8 @@
/**
* Route shutdown hook -- Ccheck for router exceptions
- *
- * @param Zend_Controller_Request_Abstract $request
+ *
+ * @param Zend_Controller_Request_Abstract $request
*/
public function routeShutdown(Zend_Controller_Request_Abstract $request)
{
@@ -202,6 +202,17 @@
}
/**
+ * Pre dispatch hook -- check for exceptions and dispatch error handler if
+ * necessary
+ *
+ * @param Zend_Controller_Request_Abstract $request
+ */
+ public function preDispatch(Zend_Controller_Request_Abstract $request)
+ {
+ $this->_handleError($request);
+ }
+
+ /**
* Post dispatch hook -- check for exceptions and dispatch error handler if
* necessary
*
--- a/web/lib/Zend/Controller/Plugin/PutHandler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Plugin/PutHandler.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PutHandler.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PutHandler.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -35,7 +35,7 @@
*
* @package Zend_Controller
* @subpackage Zend_Controller_Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Plugin_PutHandler extends Zend_Controller_Plugin_Abstract
--- a/web/lib/Zend/Controller/Request/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Request_Abstract
@@ -312,7 +312,7 @@
{
$this->_params = $this->_params + (array) $array;
- foreach ($this->_params as $key => $value) {
+ foreach ($array as $key => $value) {
if (null === $value) {
unset($this->_params[$key]);
}
--- a/web/lib/Zend/Controller/Request/Apache404.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/Apache404.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Apache404.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Apache404.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Controller_Request_Http */
@@ -50,8 +50,8 @@
$requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
} elseif (isset($_SERVER['REDIRECT_URL'])) { // Check if using mod_rewrite
$requestUri = $_SERVER['REDIRECT_URL'];
- if (isset($_SERVER['REDIRECT_QUERYSTRING'])) {
- $parseUriGetVars = $_SERVER['REDIRECT_QUERYSTRING'];
+ if (isset($_SERVER['REDIRECT_QUERY_STRING'])) {
+ $parseUriGetVars = $_SERVER['REDIRECT_QUERY_STRING'];
}
} elseif (isset($_SERVER['REQUEST_URI'])) {
$requestUri = $_SERVER['REQUEST_URI'];
--- a/web/lib/Zend/Controller/Request/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Request_Exception extends Zend_Controller_Exception
--- a/web/lib/Zend/Controller/Request/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 23414 2010-11-20 10:56:11Z bittarman $
+ * @version $Id: Http.php 24842 2012-05-31 18:31:28Z rob $
*/
/** @see Zend_Controller_Request_Abstract */
@@ -390,7 +390,11 @@
public function setRequestUri($requestUri = null)
{
if ($requestUri === null) {
- if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch
+ if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {
+ // IIS with Microsoft Rewrite Module
+ $requestUri = $_SERVER['HTTP_X_ORIGINAL_URL'];
+ } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
+ // IIS with ISAPI_Rewrite
$requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
} elseif (
// IIS7 with URL Rewrite: make sure we get the unencoded url (double slash problem)
@@ -545,13 +549,13 @@
*
* @return string
*/
- public function getBaseUrl()
+ public function getBaseUrl($raw = false)
{
if (null === $this->_baseUrl) {
$this->setBaseUrl();
}
- return urldecode($this->_baseUrl);
+ return (($raw == false) ? urldecode($this->_baseUrl) : $this->_baseUrl);
}
/**
@@ -612,31 +616,33 @@
public function setPathInfo($pathInfo = null)
{
if ($pathInfo === null) {
- $baseUrl = $this->getBaseUrl();
-
+ $baseUrl = $this->getBaseUrl(); // this actually calls setBaseUrl() & setRequestUri()
+ $baseUrlRaw = $this->getBaseUrl(false);
+ $baseUrlEncoded = urlencode($baseUrlRaw);
+
if (null === ($requestUri = $this->getRequestUri())) {
return $this;
}
-
+
// Remove the query string from REQUEST_URI
if ($pos = strpos($requestUri, '?')) {
$requestUri = substr($requestUri, 0, $pos);
}
- $requestUri = urldecode($requestUri);
-
- if (null !== $baseUrl
- && ((!empty($baseUrl) && 0 === strpos($requestUri, $baseUrl))
- || empty($baseUrl))
- && false === ($pathInfo = substr($requestUri, strlen($baseUrl)))
- ){
- // If substr() returns false then PATH_INFO is set to an empty string
- $pathInfo = '';
- } elseif (null === $baseUrl
- || (!empty($baseUrl) && false === strpos($requestUri, $baseUrl))
- ) {
- $pathInfo = $requestUri;
+ if (!empty($baseUrl) || !empty($baseUrlRaw)) {
+ if (strpos($requestUri, $baseUrl) === 0) {
+ $pathInfo = substr($requestUri, strlen($baseUrl));
+ } elseif (strpos($requestUri, $baseUrlRaw) === 0) {
+ $pathInfo = substr($requestUri, strlen($baseUrlRaw));
+ } elseif (strpos($requestUri, $baseUrlEncoded) === 0) {
+ $pathInfo = substr($requestUri, strlen($baseUrlEncoded));
+ } else {
+ $pathInfo = $requestUri;
+ }
+ } else {
+ $pathInfo = $requestUri;
}
+
}
$this->_pathInfo = (string) $pathInfo;
--- a/web/lib/Zend/Controller/Request/HttpTestCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/HttpTestCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpTestCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
--- a/web/lib/Zend/Controller/Request/Simple.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Request/Simple.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Simple.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Controller_Request_Abstract */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Request_Simple extends Zend_Controller_Request_Abstract
--- a/web/lib/Zend/Controller/Response/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Response/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21301 2010-03-02 23:01:19Z yoshida@zend.co.jp $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
*
* @package Zend_Controller
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Response_Abstract
@@ -257,7 +257,9 @@
}
$key = array_search($headerRaw, $this->_headersRaw);
- unset($this->_headersRaw[$key]);
+ if ($key !== false) {
+ unset($this->_headersRaw[$key]);
+ }
return $this;
}
--- a/web/lib/Zend/Controller/Response/Cli.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Response/Cli.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cli.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cli.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @uses Zend_Controller_Response_Abstract
* @package Zend_Controller
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Response_Cli extends Zend_Controller_Response_Abstract
--- a/web/lib/Zend/Controller/Response/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Response/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Request
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
/**
* @package Zend_Controller
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Response_Exception extends Zend_Controller_Exception
--- a/web/lib/Zend/Controller/Response/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Response/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
--- a/web/lib/Zend/Controller/Response/HttpTestCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Response/HttpTestCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpTestCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
--- a/web/lib/Zend/Controller/Router/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,12 +31,17 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Router_Abstract implements Zend_Controller_Router_Interface
{
/**
+ * URI delimiter
+ */
+ const URI_DELIMITER = '/';
+
+ /**
* Front controller instance
* @var Zend_Controller_Front
*/
--- a/web/lib/Zend/Controller/Router/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Router_Exception extends Zend_Controller_Exception
--- a/web/lib/Zend/Controller/Router/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Controller_Router_Interface
--- a/web/lib/Zend/Controller/Router/Rewrite.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Rewrite.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Rewrite.php 23362 2010-11-18 17:22:41Z bittarman $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Rewrite.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://manuals.rubyonrails.com/read/chapter/65
*/
@@ -381,7 +381,7 @@
// Find the matching route
$routeMatched = false;
-
+
foreach (array_reverse($this->_routes, true) as $name => $route) {
// TODO: Should be an interface method. Hack for 1.0 BC
if (method_exists($route, 'isAbstract') && $route->isAbstract()) {
@@ -450,6 +450,11 @@
*/
public function assemble($userParams, $name = null, $reset = false, $encode = true)
{
+ if (!is_array($userParams)) {
+ require_once 'Zend/Controller/Router/Exception.php';
+ throw new Zend_Controller_Router_Exception('userParams must be an array');
+ }
+
if ($name == null) {
try {
$name = $this->getCurrentRouteName();
@@ -458,14 +463,14 @@
}
}
- // Use UNION (+) in order to preserve numeric keys
+ // Use UNION (+) in order to preserve numeric keys
$params = $userParams + $this->_globalParams;
$route = $this->getRoute($name);
$url = $route->assemble($params, $reset, $encode);
if (!preg_match('|^[a-z]+://|', $url)) {
- $url = rtrim($this->getFrontController()->getBaseUrl(), '/') . '/' . $url;
+ $url = rtrim($this->getFrontController()->getBaseUrl(), self::URI_DELIMITER) . self::URI_DELIMITER . $url;
}
return $url;
--- a/web/lib/Zend/Controller/Router/Route.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Route.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Route.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://manuals.rubyonrails.com/read/chapter/65
*/
@@ -77,7 +77,7 @@
protected $_translatable = array();
protected $_urlVariable = ':';
- protected $_urlDelimiter = '/';
+ protected $_urlDelimiter = self::URI_DELIMITER;
protected $_regexDelimiter = '#';
protected $_defaultRegex = null;
@@ -294,6 +294,9 @@
foreach ($this->_variables as $var) {
if (!array_key_exists($var, $return)) {
return false;
+ } elseif ($return[$var] == '' || $return[$var] === null) {
+ // Empty variable? Replace with the default value.
+ $return[$var] = $this->_defaults[$var];
}
}
@@ -344,7 +347,7 @@
$value = $this->_values[$name];
} elseif (!$reset && !$useDefault && isset($this->_wildcardData[$name])) {
$value = $this->_wildcardData[$name];
- } elseif (isset($this->_defaults[$name])) {
+ } elseif (array_key_exists($name, $this->_defaults)) {
$value = $this->_defaults[$name];
} else {
require_once 'Zend/Controller/Router/Exception.php';
--- a/web/lib/Zend/Controller/Router/Route/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,12 +32,17 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Controller_Router_Route_Abstract implements Zend_Controller_Router_Route_Interface
{
/**
+ * URI delimiter
+ */
+ const URI_DELIMITER = '/';
+
+ /**
* Wether this route is abstract or not
*
* @var boolean
--- a/web/lib/Zend/Controller/Router/Route/Chain.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Chain.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Chain.php 23187 2010-10-20 18:42:37Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Chain.php 25249 2013-02-06 09:54:24Z frosch $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Router_Route_Chain extends Zend_Controller_Router_Route_Abstract
@@ -39,7 +39,8 @@
/**
* Instantiates route based on passed Zend_Config structure
*
- * @param Zend_Config $config Configuration object
+ * @param Zend_Config $config Configuration object
+ * @return Zend_Controller_Router_Route_Chain
*/
public static function getInstance(Zend_Config $config)
{
@@ -54,7 +55,7 @@
* @param string $separator
* @return Zend_Controller_Router_Route_Chain
*/
- public function chain(Zend_Controller_Router_Route_Abstract $route, $separator = '/')
+ public function chain(Zend_Controller_Router_Route_Abstract $route, $separator = self::URI_DELIMITER)
{
$this->_routes[] = $route;
$this->_separators[] = $separator;
@@ -68,18 +69,21 @@
* Assigns and returns an array of defaults on a successful match.
*
* @param Zend_Controller_Request_Http $request Request to get the path info from
+ * @param null $partial
* @return array|false An array of assigned values or a false on a mismatch
*/
public function match($request, $partial = null)
{
- $path = trim($request->getPathInfo(), '/');
- $subPath = $path;
- $values = array();
+ $path = trim($request->getPathInfo(), self::URI_DELIMITER);
+ $subPath = $path;
+ $values = array();
+ $numRoutes = count($this->_routes);
+ $matchedPath = null;
foreach ($this->_routes as $key => $route) {
- if ($key > 0
- && $matchedPath !== null
- && $subPath !== ''
+ if ($key > 0
+ && $matchedPath !== null
+ && $subPath !== ''
&& $subPath !== false
) {
$separator = substr($subPath, 0, strlen($this->_separators[$key]));
@@ -99,7 +103,7 @@
$match = $request;
}
- $res = $route->match($match, true);
+ $res = $route->match($match, true, ($key == $numRoutes - 1));
if ($res === false) {
return false;
}
@@ -126,7 +130,9 @@
/**
* Assembles a URL path defined by this route
*
- * @param array $data An array of variable and value pairs used as parameters
+ * @param array $data An array of variable and value pairs used as parameters
+ * @param bool $reset
+ * @param bool $encode
* @return string Route path with user submitted parameters
*/
public function assemble($data = array(), $reset = false, $encode = false)
@@ -169,5 +175,42 @@
}
}
}
+
+ /**
+ * Return a single parameter of route's defaults
+ *
+ * @param string $name Array key of the parameter
+ * @return string Previously set default
+ */
+ public function getDefault($name)
+ {
+ $default = null;
+ foreach ($this->_routes as $route) {
+ if (method_exists($route, 'getDefault')) {
+ $current = $route->getDefault($name);
+ if (null !== $current) {
+ $default = $current;
+ }
+ }
+ }
-}
+ return $default;
+ }
+
+ /**
+ * Return an array of defaults
+ *
+ * @return array Route defaults
+ */
+ public function getDefaults()
+ {
+ $defaults = array();
+ foreach ($this->_routes as $route) {
+ if (method_exists($route, 'getDefaults')) {
+ $defaults = array_merge($defaults, $route->getDefaults());
+ }
+ }
+
+ return $defaults;
+ }
+}
\ No newline at end of file
--- a/web/lib/Zend/Controller/Router/Route/Hostname.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Hostname.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Hostname.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Hostname.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://manuals.rubyonrails.com/read/chapter/65
*/
@@ -302,7 +302,6 @@
}
}
- $hostname = implode('.', $host);
$url = $scheme . '://' . $url;
return $url;
--- a/web/lib/Zend/Controller/Router/Route/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,7 +26,7 @@
/**
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Controller_Router_Route_Interface {
--- a/web/lib/Zend/Controller/Router/Route/Module.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Module.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Module.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Module.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,18 +30,13 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://manuals.rubyonrails.com/read/chapter/65
*/
class Zend_Controller_Router_Route_Module extends Zend_Controller_Router_Route_Abstract
{
/**
- * URI delimiter
- */
- const URI_DELIMITER = '/';
-
- /**
* Default values for the route (ie. module, controller, action, params)
* @var array
*/
@@ -237,29 +232,29 @@
if (is_array($value)) {
foreach ($value as $arrayValue) {
$arrayValue = ($encode) ? urlencode($arrayValue) : $arrayValue;
- $url .= '/' . $key;
- $url .= '/' . $arrayValue;
+ $url .= self::URI_DELIMITER . $key;
+ $url .= self::URI_DELIMITER . $arrayValue;
}
} else {
if ($encode) $value = urlencode($value);
- $url .= '/' . $key;
- $url .= '/' . $value;
+ $url .= self::URI_DELIMITER . $key;
+ $url .= self::URI_DELIMITER . $value;
}
}
if (!empty($url) || $action !== $this->_defaults[$this->_actionKey]) {
if ($encode) $action = urlencode($action);
- $url = '/' . $action . $url;
+ $url = self::URI_DELIMITER . $action . $url;
}
if (!empty($url) || $controller !== $this->_defaults[$this->_controllerKey]) {
if ($encode) $controller = urlencode($controller);
- $url = '/' . $controller . $url;
+ $url = self::URI_DELIMITER . $controller . $url;
}
if (isset($module)) {
if ($encode) $module = urlencode($module);
- $url = '/' . $module . $url;
+ $url = self::URI_DELIMITER . $module . $url;
}
return ltrim($url, self::URI_DELIMITER);
--- a/web/lib/Zend/Controller/Router/Route/Regex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Regex.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Regex.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Regex.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Router_Route_Regex extends Zend_Controller_Router_Route_Abstract
@@ -74,7 +74,7 @@
public function match($path, $partial = false)
{
if (!$partial) {
- $path = trim(urldecode($path), '/');
+ $path = trim(urldecode($path), self::URI_DELIMITER);
$regex = '#^' . $this->_regex . '$#i';
} else {
$regex = '#^' . $this->_regex . '#i';
--- a/web/lib/Zend/Controller/Router/Route/Static.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Controller/Router/Route/Static.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Static.php 23210 2010-10-21 16:10:55Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Static.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
*
* @package Zend_Controller
* @subpackage Router
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Controller_Router_Route_Static extends Zend_Controller_Router_Route_Abstract
@@ -62,7 +62,7 @@
*/
public function __construct($route, $defaults = array())
{
- $this->_route = trim($route, '/');
+ $this->_route = trim($route, self::URI_DELIMITER);
$this->_defaults = (array) $defaults;
}
@@ -83,7 +83,7 @@
return $this->_defaults;
}
} else {
- if (trim($path, '/') == $this->_route) {
+ if (trim($path, self::URI_DELIMITER) == $this->_route) {
return $this->_defaults;
}
}
--- a/web/lib/Zend/Crypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Crypt.php 23089 2010-10-12 17:05:31Z padraic $
+ * @version $Id: Crypt.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt
--- a/web/lib/Zend/Crypt/DiffieHellman.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/DiffieHellman.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage DiffieHellman
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DiffieHellman.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: DiffieHellman.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_DiffieHellman
--- a/web/lib/Zend/Crypt/DiffieHellman/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/DiffieHellman/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage DiffieHellman
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_DiffieHellman_Exception extends Zend_Crypt_Exception
--- a/web/lib/Zend/Crypt/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Exception extends Zend_Exception
--- a/web/lib/Zend/Crypt/Hmac.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Hmac.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Hmac
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hmac.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hmac.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @todo Check if mhash() is a required alternative (will be PECL-only soon)
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Hmac extends Zend_Crypt
--- a/web/lib/Zend/Crypt/Hmac/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Hmac/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Hmac
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Hmac_Exception extends Zend_Crypt_Exception
--- a/web/lib/Zend/Crypt/Math.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Math.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Math.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math extends Zend_Crypt_Math_BigInteger
--- a/web/lib/Zend/Crypt/Math/BigInteger.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/BigInteger.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BigInteger.php 23439 2010-11-23 21:10:14Z alexander $
+ * @version $Id: BigInteger.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math_BigInteger
--- a/web/lib/Zend/Crypt/Math/BigInteger/Bcmath.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/BigInteger/Bcmath.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Bcmath.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Bcmath.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math_BigInteger_Bcmath implements Zend_Crypt_Math_BigInteger_Interface
--- a/web/lib/Zend/Crypt/Math/BigInteger/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/BigInteger/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math_BigInteger_Exception extends Zend_Crypt_Math_Exception
--- a/web/lib/Zend/Crypt/Math/BigInteger/Gmp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/BigInteger/Gmp.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gmp.php 23439 2010-11-23 21:10:14Z alexander $
+ * @version $Id: Gmp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math_BigInteger_Gmp implements Zend_Crypt_Math_BigInteger_Interface
--- a/web/lib/Zend/Crypt/Math/BigInteger/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/BigInteger/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Crypt_Math_BigInteger_Interface
--- a/web/lib/Zend/Crypt/Math/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Math/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Math_Exception extends Zend_Crypt_Exception
--- a/web/lib/Zend/Crypt/Rsa.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Rsa.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Rsa
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rsa.php 23439 2010-11-23 21:10:14Z alexander $
+ * @version $Id: Rsa.php 24808 2012-05-17 19:56:09Z rob $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Rsa
@@ -71,7 +71,7 @@
{
if (!extension_loaded('openssl')) {
require_once 'Zend/Crypt/Rsa/Exception.php';
- throw new Zend_Crypt_Rsa_Exception('Zend_Crypt_Rsa requires openssl extention to be loaded.');
+ throw new Zend_Crypt_Rsa_Exception('Zend_Crypt_Rsa requires openssl extension to be loaded.');
}
// Set _hashAlgorithm property when we are sure, that openssl extension is loaded
@@ -201,6 +201,13 @@
return $decrypted;
}
+ /**
+ * @param array $configargs
+ *
+ * @throws Zend_Crypt_Rsa_Exception
+ *
+ * @return ArrayObject
+ */
public function generateKeys(array $configargs = null)
{
$config = null;
@@ -215,6 +222,10 @@
$privateKey = null;
$publicKey = null;
$resource = openssl_pkey_new($config);
+ if (!$resource) {
+ require_once 'Zend/Crypt/Rsa/Exception.php';
+ throw new Zend_Crypt_Rsa_Exception('Failed to generate a new private key');
+ }
// above fails on PHP 5.3
openssl_pkey_export($resource, $private, $passPhrase);
$privateKey = new Zend_Crypt_Rsa_Key_Private($private, $passPhrase);
@@ -312,6 +323,9 @@
protected function _parseConfigArgs(array $config = null)
{
$configs = array();
+ if (isset($config['private_key_bits'])) {
+ $configs['private_key_bits'] = $config['private_key_bits'];
+ }
if (isset($config['privateKeyBits'])) {
$configs['private_key_bits'] = $config['privateKeyBits'];
}
--- a/web/lib/Zend/Crypt/Rsa/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Rsa/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Math
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Rsa_Exception extends Zend_Crypt_Exception
--- a/web/lib/Zend/Crypt/Rsa/Key.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Rsa/Key.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Rsa
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Key.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Key.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Rsa_Key implements Countable
--- a/web/lib/Zend/Crypt/Rsa/Key/Private.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Rsa/Key/Private.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Rsa
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Private.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Private.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Rsa_Key_Private extends Zend_Crypt_Rsa_Key
--- a/web/lib/Zend/Crypt/Rsa/Key/Public.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Crypt/Rsa/Key/Public.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Crypt
* @subpackage Rsa
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Public.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Public.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Crypt
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Crypt_Rsa_Key_Public extends Zend_Crypt_Rsa_Key
--- a/web/lib/Zend/Currency.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Currency.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Currency.php 22708 2010-07-28 07:25:16Z thomas $
+ * @version $Id: Currency.php 24855 2012-06-01 00:12:25Z adamlundrigan $
*/
/**
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Currency
@@ -91,6 +91,11 @@
*/
public function __construct($options = null, $locale = null)
{
+ $calloptions = $options;
+ if (is_array($options) && isset($options['display'])) {
+ $this->_options['display'] = $options['display'];
+ }
+
if (is_array($options)) {
$this->setLocale($locale);
$this->setFormat($options);
@@ -120,10 +125,13 @@
}
// Get the format
- if (!empty($this->_options['symbol'])) {
- $this->_options['display'] = self::USE_SYMBOL;
- } else if (!empty($this->_options['currency'])) {
- $this->_options['display'] = self::USE_SHORTNAME;
+ if ((is_array($calloptions) && !isset($calloptions['display']))
+ || (!is_array($calloptions) && $this->_options['display'] == self::NO_SYMBOL)) {
+ if (!empty($this->_options['symbol'])) {
+ $this->_options['display'] = self::USE_SYMBOL;
+ } else if (!empty($this->_options['currency'])) {
+ $this->_options['display'] = self::USE_SHORTNAME;
+ }
}
}
@@ -794,7 +802,7 @@
if (!class_exists($service)) {
$file = str_replace('_', DIRECTORY_SEPARATOR, $service) . '.php';
if (Zend_Loader::isReadable($file)) {
- Zend_Loader::loadClass($class);
+ Zend_Loader::loadClass($service);
}
}
--- a/web/lib/Zend/Currency/CurrencyInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Currency/CurrencyInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CurrencyInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: CurrencyInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Currency_CurrencyInterface
--- a/web/lib/Zend/Currency/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Currency/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Currency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Currency_Exception extends Zend_Exception
--- a/web/lib/Zend/Date.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Date.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Date.php 22713 2010-07-29 11:41:56Z thomas $
+ * @version $Id: Date.php 24880 2012-06-12 20:35:18Z matthew $
*/
/**
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Date extends Zend_Date_DateObject
@@ -1201,7 +1201,7 @@
}
preg_match('/([+-]\d{2}):{0,1}\d{2}/', $zone, $match);
- if (!empty($match) and ($match[count($match) - 1] <= 12) and ($match[count($match) - 1] >= -12)) {
+ if (!empty($match) and ($match[count($match) - 1] <= 14) and ($match[count($match) - 1] >= -12)) {
$zone = "Etc/GMT";
$zone .= ($match[count($match) - 1] < 0) ? "+" : "-";
$zone .= (int) abs($match[count($match) - 1]);
@@ -2107,7 +2107,10 @@
break;
case self::RFC_2822:
- $result = preg_match('/^\w{3},\s(\d{1,2})\s(\w{3})\s(\d{4})\s(\d{2}):(\d{2}):{0,1}(\d{0,2})\s([+-]{1}\d{4})$/', $date, $match);
+ $result = preg_match('/^\w{3},\s(\d{1,2})\s(\w{3})\s(\d{4})\s'
+ . '(\d{2}):(\d{2}):{0,1}(\d{0,2})\s([+-]'
+ . '{1}\d{4}|\w{1,20})$/', $date, $match);
+
if (!$result) {
require_once 'Zend/Date/Exception.php';
throw new Zend_Date_Exception("no RFC 2822 format ($date)", 0, null, $date);
@@ -2641,10 +2644,8 @@
$parsed['day'] = 0;
}
- if (isset($parsed['year'])) {
- $parsed['year'] -= 1970;
- } else {
- $parsed['year'] = 0;
+ if (!isset($parsed['year'])) {
+ $parsed['year'] = 1970;
}
}
@@ -2654,7 +2655,7 @@
isset($parsed['second']) ? $parsed['second'] : 0,
isset($parsed['month']) ? (1 + $parsed['month']) : 1,
isset($parsed['day']) ? (1 + $parsed['day']) : 1,
- isset($parsed['year']) ? (1970 + $parsed['year']) : 1970,
+ $parsed['year'],
false), $this->getUnixTimestamp(), false);
} catch (Zend_Locale_Exception $e) {
if (!is_numeric($date)) {
@@ -3238,7 +3239,7 @@
/**
* Check if location is supported
*
- * @param $location array - locations array
+ * @param array $location locations array
* @return $horizon float
*/
private function _checkLocation($location)
@@ -3281,7 +3282,7 @@
* Returns the time of sunrise for this date and a given location as new date object
* For a list of cities and correct locations use the class Zend_Date_Cities
*
- * @param $location array - location of sunrise
+ * @param array $location location of sunrise
* ['horizon'] -> civil, nautic, astronomical, effective (default)
* ['longitude'] -> longitude of location
* ['latitude'] -> latitude of location
@@ -3301,7 +3302,7 @@
* Returns the time of sunset for this date and a given location as new date object
* For a list of cities and correct locations use the class Zend_Date_Cities
*
- * @param $location array - location of sunset
+ * @param array $location location of sunset
* ['horizon'] -> civil, nautic, astronomical, effective (default)
* ['longitude'] -> longitude of location
* ['latitude'] -> latitude of location
@@ -3321,7 +3322,7 @@
* Returns an array with the sunset and sunrise dates for all horizon types
* For a list of cities and correct locations use the class Zend_Date_Cities
*
- * @param $location array - location of suninfo
+ * @param array $location location of suninfo
* ['horizon'] -> civil, nautic, astronomical, effective (default)
* ['longitude'] -> longitude of location
* ['latitude'] -> latitude of location
@@ -3786,7 +3787,7 @@
* Returns the day as new date object
* Example: 20.May.1986 -> 20.Jan.1970 00:00:00
*
- * @param $locale string|Zend_Locale OPTIONAL Locale for parsing input
+ * @param Zend_Locale $locale OPTIONAL Locale for parsing input
* @return Zend_Date
*/
public function getDay($locale = null)
@@ -3798,9 +3799,9 @@
/**
* Returns the calculated day
*
- * @param $calc string Type of calculation to make
- * @param $day string|integer|Zend_Date Day to calculate, when null the actual day is calculated
- * @param $locale string|Zend_Locale Locale for parsing input
+ * @param string $calc Type of calculation to make
+ * @param Zend_Date $day Day to calculate, when null the actual day is calculated
+ * @param Zend_Locale $locale Locale for parsing input
* @return Zend_Date|integer
*/
private function _day($calc, $day, $locale)
@@ -3929,7 +3930,7 @@
* Weekday is always from 1-7
* Example: 09-Jan-2007 -> 2 = Tuesday -> 02-Jan-1970 (when 02.01.1970 is also Tuesday)
*
- * @param $locale string|Zend_Locale OPTIONAL Locale for parsing input
+ * @param Zend_Locale $locale OPTIONAL Locale for parsing input
* @return Zend_Date
*/
public function getWeekday($locale = null)
@@ -3947,9 +3948,9 @@
/**
* Returns the calculated weekday
*
- * @param $calc string Type of calculation to make
- * @param $weekday string|integer|array|Zend_Date Weekday to calculate, when null the actual weekday is calculated
- * @param $locale string|Zend_Locale Locale for parsing input
+ * @param string $calc Type of calculation to make
+ * @param Zend_Date $weekday Weekday to calculate, when null the actual weekday is calculated
+ * @param Zend_Locale $locale Locale for parsing input
* @return Zend_Date|integer
* @throws Zend_Date_Exception
*/
@@ -4166,7 +4167,7 @@
* Returns the hour as new date object
* Example: 02.Feb.1986 10:30:25 -> 01.Jan.1970 10:00:00
*
- * @param $locale string|Zend_Locale OPTIONAL Locale for parsing input
+ * @param Zend_Locale $locale OPTIONAL Locale for parsing input
* @return Zend_Date
*/
public function getHour($locale = null)
@@ -4617,7 +4618,7 @@
* Returns the week as new date object using monday as begining of the week
* Example: 12.Jan.2007 -> 08.Jan.1970 00:00:00
*
- * @param $locale string|Zend_Locale OPTIONAL Locale for parsing input
+ * @param Zend_Locale $locale OPTIONAL Locale for parsing input
* @return Zend_Date
*/
public function getWeek($locale = null)
--- a/web/lib/Zend/Date/Cities.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Date/Cities.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cities.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cities.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Date
* @subpackage Zend_Date_Cities
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Date_Cities
--- a/web/lib/Zend/Date/DateObject.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Date/DateObject.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: DateObject.php 22712 2010-07-29 08:24:28Z thomas $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: DateObject.php 24880 2012-06-12 20:35:18Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Date
* @subpackage Zend_Date_DateObject
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Date_DateObject {
@@ -312,6 +312,13 @@
}
if (abs($timestamp) <= 0x7FFFFFFF) {
+ // See ZF-11992
+ // "o" will sometimes resolve to the previous year (see
+ // http://php.net/date ; it's part of the ISO 8601
+ // standard). However, this is not desired, so replacing
+ // all occurrences of "o" not preceded by a backslash
+ // with "Y"
+ $format = preg_replace('/(?<!\\\\)o\b/', 'Y', $format);
$result = ($gmt) ? @gmdate($format, $timestamp) : @date($format, $timestamp);
date_default_timezone_set($oldzone);
return $result;
--- a/web/lib/Zend/Date/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Date/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20279 2010-01-14 15:21:47Z thomas $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Date_Exception extends Zend_Exception
--- a/web/lib/Zend/Db.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Db
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db.php 23405 2010-11-19 19:46:10Z bittarman $
+ * @version $Id: Db.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Db
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db
@@ -90,6 +90,9 @@
* 'NULL_TO_STRING', 'ERR_NONE', 'FETCH_ORI_NEXT',
* 'FETCH_ORI_PRIOR', 'FETCH_ORI_FIRST', 'FETCH_ORI_LAST',
* 'FETCH_ORI_ABS', 'FETCH_ORI_REL', 'CURSOR_FWDONLY', 'CURSOR_SCROLL',
+ * 'ERR_CANT_MAP', 'ERR_SYNTAX', 'ERR_CONSTRAINT', 'ERR_NOT_FOUND',
+ * 'ERR_ALREADY_EXISTS', 'ERR_NOT_IMPLEMENTED', 'ERR_MISMATCH',
+ * 'ERR_TRUNCATED', 'ERR_DISCONNECTED', 'ERR_NO_PERM',
* );
*
* $const = array();
@@ -122,7 +125,17 @@
const CASE_UPPER = 1;
const CURSOR_FWDONLY = 0;
const CURSOR_SCROLL = 1;
+ const ERR_ALREADY_EXISTS = NULL;
+ const ERR_CANT_MAP = NULL;
+ const ERR_CONSTRAINT = NULL;
+ const ERR_DISCONNECTED = NULL;
+ const ERR_MISMATCH = NULL;
+ const ERR_NO_PERM = NULL;
const ERR_NONE = '00000';
+ const ERR_NOT_FOUND = NULL;
+ const ERR_NOT_IMPLEMENTED = NULL;
+ const ERR_SYNTAX = NULL;
+ const ERR_TRUNCATED = NULL;
const ERRMODE_EXCEPTION = 2;
const ERRMODE_SILENT = 0;
const ERRMODE_WARNING = 1;
--- a/web/lib/Zend/Db/Adapter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23252 2010-10-26 12:48:32Z matthew $
+ * @version $Id: Abstract.php 25229 2013-01-18 08:17:21Z frosch $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Adapter_Abstract
@@ -156,6 +156,7 @@
* persistent => (boolean) Whether to use a persistent connection or not, defaults to false
* protocol => (string) The network protocol, defaults to TCPIP
* caseFolding => (int) style of case-alteration used for identifiers
+ * socket => (string) The socket or named pipe that should be used
*
* @param array|Zend_Config $config An array or instance of Zend_Config having configuration data
* @throws Zend_Db_Adapter_Exception
@@ -531,6 +532,7 @@
* @param mixed $table The table to insert data into.
* @param array $bind Column-value pairs.
* @return int The number of affected rows.
+ * @throws Zend_Db_Adapter_Exception
*/
public function insert($table, array $bind)
{
@@ -583,6 +585,7 @@
* @param array $bind Column-value pairs.
* @param mixed $where UPDATE WHERE clause(s).
* @return int The number of affected rows.
+ * @throws Zend_Db_Adapter_Exception
*/
public function update($table, array $bind, $where = '')
{
@@ -743,7 +746,7 @@
* @param string|Zend_Db_Select $sql An SQL SELECT statement.
* @param mixed $bind Data to bind into SELECT placeholders.
* @param mixed $fetchMode Override current fetch mode.
- * @return array
+ * @return mixed Array, object, or scalar depending on fetch mode.
*/
public function fetchRow($sql, $bind = array(), $fetchMode = null)
{
--- a/web/lib/Zend/Db/Adapter/Db2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Db2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db2.php 23199 2010-10-21 14:27:06Z ralph $
+ * @version $Id: Db2.php 24593 2012-01-05 20:35:02Z matthew $
*
*/
@@ -39,7 +39,7 @@
/**
* @package Zend_Db
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -161,7 +161,7 @@
$this->_config['driver_options']['i5_naming'] = DB2_I5_NAMING_OFF;
}
}
-
+
if ($this->_config['host'] !== 'localhost' && !$this->_isI5) {
// if the host isn't localhost, use extended connection params
$dbname = 'DRIVER={IBM DB2 ODBC DRIVER}' .
--- a/web/lib/Zend/Db/Adapter/Db2/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Db2/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Db2_Exception extends Zend_Db_Adapter_Exception
@@ -38,7 +38,7 @@
protected $code = '00000';
protected $message = 'unknown exception';
- function __construct($message = 'unknown exception', $code = '00000', Exception $e = null)
+ function __construct($message = 'unknown exception', $code = '00000', Exception $e = null)
{
parent::__construct($message, $code, $e);
}
--- a/web/lib/Zend/Db/Adapter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Exception extends Zend_Db_Exception
--- a/web/lib/Zend/Db/Adapter/Mysqli.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Mysqli.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mysqli.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mysqli.php 25229 2013-01-18 08:17:21Z frosch $
*/
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Mysqli extends Zend_Db_Adapter_Abstract
@@ -297,6 +297,12 @@
$port = null;
}
+ if (isset($this->_config['socket'])) {
+ $socket = $this->_config['socket'];
+ } else {
+ $socket = null;
+ }
+
$this->_connection = mysqli_init();
if(!empty($this->_config['driver_options'])) {
@@ -320,7 +326,8 @@
$this->_config['username'],
$this->_config['password'],
$this->_config['dbname'],
- $port
+ $port,
+ $socket
);
if ($_isConnected === false || mysqli_connect_errno()) {
--- a/web/lib/Zend/Db/Adapter/Mysqli/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Mysqli/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Mysqli_Exception extends Zend_Db_Adapter_Exception
--- a/web/lib/Zend/Db/Adapter/Oracle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Oracle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Oracle.php 21108 2010-02-19 22:36:08Z mikaelkael $
+ * @version $Id: Oracle.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Oracle extends Zend_Db_Adapter_Abstract
@@ -147,8 +147,9 @@
public function isConnected()
{
return ((bool) (is_resource($this->_connection)
- && get_resource_type($this->_connection) == 'oci8 connection'));
- }
+ && (get_resource_type($this->_connection) == 'oci8 connection'
+ || get_resource_type($this->_connection) == 'oci8 persistent connection')));
+ }
/**
* Force the connection to close.
--- a/web/lib/Zend/Db/Adapter/Oracle/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Oracle/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Oracle_Exception extends Zend_Db_Adapter_Exception
--- a/web/lib/Zend/Db/Adapter/Pdo/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Adapter_Pdo_Abstract extends Zend_Db_Adapter_Abstract
--- a/web/lib/Zend/Db/Adapter/Pdo/Ibm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Ibm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ibm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ibm.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Ibm extends Zend_Db_Adapter_Pdo_Abstract
--- a/web/lib/Zend/Db/Adapter/Pdo/Ibm/Db2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Ibm/Db2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db2.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Db2.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Ibm_Db2
--- a/web/lib/Zend/Db/Adapter/Pdo/Ibm/Ids.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Ibm/Ids.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ids.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ids.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Ibm_Ids
--- a/web/lib/Zend/Db/Adapter/Pdo/Mssql.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Mssql.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mssql.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mssql.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Mssql extends Zend_Db_Adapter_Pdo_Abstract
--- a/web/lib/Zend/Db/Adapter/Pdo/Mysql.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Mysql.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mysql.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mysql.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Mysql extends Zend_Db_Adapter_Pdo_Abstract
@@ -77,6 +77,19 @@
);
/**
+ * Override _dsn() and ensure that charset is incorporated in mysql
+ * @see Zend_Db_Adapter_Pdo_Abstract::_dsn()
+ */
+ protected function _dsn()
+ {
+ $dsn = parent::_dsn();
+ if (isset($this->_config['charset'])) {
+ $dsn .= ';charset=' . $this->_config['charset'];
+ }
+ return $dsn;
+ }
+
+ /**
* Creates a PDO object and connects to the database.
*
* @return void
--- a/web/lib/Zend/Db/Adapter/Pdo/Oci.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Oci.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Oci.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Oci.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Oci extends Zend_Db_Adapter_Pdo_Abstract
--- a/web/lib/Zend/Db/Adapter/Pdo/Pgsql.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Pgsql.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pgsql.php 22788 2010-08-03 18:29:55Z ramon $
+ * @version $Id: Pgsql.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Pgsql extends Zend_Db_Adapter_Pdo_Abstract
--- a/web/lib/Zend/Db/Adapter/Pdo/Sqlite.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Pdo/Sqlite.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sqlite.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sqlite.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Pdo_Sqlite extends Zend_Db_Adapter_Pdo_Abstract
--- a/web/lib/Zend/Db/Adapter/Sqlsrv.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Sqlsrv.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sqlsrv.php 21885 2010-04-16 15:13:40Z juokaz $
+ * @version $Id: Sqlsrv.php 25077 2012-11-06 20:06:24Z rob $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Sqlsrv extends Zend_Db_Adapter_Abstract
@@ -437,10 +437,10 @@
$sql = "exec sp_columns @table_name = " . $this->quoteIdentifier($tableName, true);
$stmt = $this->query($sql);
$result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
-
- // ZF-7698
- $stmt->closeCursor();
+ // ZF-7698
+ $stmt->closeCursor();
+
if (count($result) == 0) {
return array();
}
@@ -622,17 +622,22 @@
} else {
$over = preg_replace('/\"[^,]*\".\"([^,]*)\"/i', '"inner_tbl"."$1"', $orderby);
}
-
+
// Remove ORDER BY clause from $sql
$sql = preg_replace('/\s+ORDER BY(.*)/', '', $sql);
-
+
// Add ORDER BY clause as an argument for ROW_NUMBER()
$sql = "SELECT ROW_NUMBER() OVER ($over) AS \"ZEND_DB_ROWNUM\", * FROM ($sql) AS inner_tbl";
-
+
$start = $offset + 1;
- $end = $offset + $count;
- $sql = "WITH outer_tbl AS ($sql) SELECT * FROM outer_tbl WHERE \"ZEND_DB_ROWNUM\" BETWEEN $start AND $end";
+ if ($count == PHP_INT_MAX) {
+ $sql = "WITH outer_tbl AS ($sql) SELECT * FROM outer_tbl WHERE \"ZEND_DB_ROWNUM\" >= $start";
+ }
+ else {
+ $end = $offset + $count;
+ $sql = "WITH outer_tbl AS ($sql) SELECT * FROM outer_tbl WHERE \"ZEND_DB_ROWNUM\" BETWEEN $start AND $end";
+ }
}
return $sql;
--- a/web/lib/Zend/Db/Adapter/Sqlsrv/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Adapter/Sqlsrv/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20625 2010-01-25 21:03:53Z ralph $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Adapter_Sqlsrv_Exception extends Zend_Db_Adapter_Exception
--- a/web/lib/Zend/Db/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Db
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Db
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Exception extends Zend_Exception
--- a/web/lib/Zend/Db/Expr.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Expr.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Expr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Expr.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Expr.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Expr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Expr
--- a/web/lib/Zend/Db/Profiler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Profiler.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Profiler.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Profiler.php 25127 2012-11-16 15:17:42Z rob $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Profiler
@@ -225,7 +225,9 @@
}
/**
- * @param integer $queryId
+ * Clone a profiler query
+ *
+ * @param Zend_Db_Profiler_Query $query
* @return integer or null
*/
public function queryClone(Zend_Db_Profiler_Query $query)
@@ -287,12 +289,12 @@
}
/**
- * Ends a query. Pass it the handle that was returned by queryStart().
+ * Ends a query. Pass it the handle that was returned by queryStart().
* This will mark the query as ended and save the time.
*
* @param integer $queryId
* @throws Zend_Db_Profiler_Exception
- * @return void
+ * @return string Inform that a query is stored or ignored.
*/
public function queryEnd($queryId)
{
--- a/web/lib/Zend/Db/Profiler/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Profiler/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Profiler_Exception extends Zend_Db_Exception
--- a/web/lib/Zend/Db/Profiler/Firebug.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Profiler/Firebug.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Firebug.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Firebug.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Db_Profiler */
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Profiler_Firebug extends Zend_Db_Profiler
--- a/web/lib/Zend/Db/Profiler/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Profiler/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 23382 2010-11-18 22:50:50Z bittarman $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Profiler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Profiler_Query
--- a/web/lib/Zend/Db/Select.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Select.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Select.php 23254 2010-10-26 12:49:23Z matthew $
+ * @version $Id: Select.php 24833 2012-05-30 13:29:41Z adamlundrigan $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Select
@@ -207,8 +207,8 @@
* The first parameter $name can be a simple string, in which case the
* correlation name is generated automatically. If you want to specify
* the correlation name, the first parameter must be an associative
- * array in which the key is the physical table name, and the value is
- * the correlation name. For example, array('table' => 'alias').
+ * array in which the key is the correlation name, and the value is
+ * the physical table name. For example, array('alias' => 'table').
* The correlation name is prepended to all columns fetched for this
* table.
*
@@ -219,8 +219,8 @@
* no correlation name is generated or prepended to the columns named
* in the second parameter.
*
- * @param array|string|Zend_Db_Expr $name The table name or an associative array relating table name to
- * correlation name.
+ * @param array|string|Zend_Db_Expr $name The table name or an associative array
+ * relating correlation name to table name.
* @param array|string|Zend_Db_Expr $cols The columns to select from this table.
* @param string $schema The schema name to specify, if any.
* @return Zend_Db_Select This Zend_Db_Select object.
@@ -880,9 +880,13 @@
$join = $this->_adapter->quoteIdentifier(key($this->_parts[self::FROM]), true);
$from = $this->_adapter->quoteIdentifier($this->_uniqueCorrelation($name), true);
- $cond1 = $from . '.' . $cond;
- $cond2 = $join . '.' . $cond;
- $cond = $cond1 . ' = ' . $cond2;
+ $joinCond = array();
+ foreach ((array)$cond as $fieldName) {
+ $cond1 = $from . '.' . $fieldName;
+ $cond2 = $join . '.' . $fieldName;
+ $joinCond[] = $cond1 . ' = ' . $cond2;
+ }
+ $cond = implode(' '.self::SQL_AND.' ', $joinCond);
return $this->_join($type, $name, $cond, $cols, $schema);
}
@@ -896,7 +900,8 @@
private function _uniqueCorrelation($name)
{
if (is_array($name)) {
- $c = end($name);
+ $k = key($name);
+ $c = is_string($k) ? $k : end($name);
} else {
// Extract just the last name of a qualified table name
$dot = strrpos($name,'.');
--- a/web/lib/Zend/Db/Select/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Select/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Db/Statement.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Statement.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Statement.php 24790 2012-05-10 12:28:51Z mcleod@spaceweb.nl $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Statement implements Zend_Db_Statement_Interface
@@ -176,37 +176,40 @@
*/
protected function _stripQuoted($sql)
{
- // get the character for delimited id quotes,
- // this is usually " but in MySQL is `
- $d = $this->_adapter->quoteIdentifier('a');
- $d = $d[0];
-
- // get the value used as an escaped delimited id quote,
- // e.g. \" or "" or \`
- $de = $this->_adapter->quoteIdentifier($d);
- $de = substr($de, 1, 2);
- $de = str_replace('\\', '\\\\', $de);
// get the character for value quoting
// this should be '
$q = $this->_adapter->quote('a');
- $q = $q[0];
-
+ $q = $q[0];
// get the value used as an escaped quote,
// e.g. \' or ''
$qe = $this->_adapter->quote($q);
$qe = substr($qe, 1, 2);
- $qe = str_replace('\\', '\\\\', $qe);
-
+ $qe = preg_quote($qe);
+ $escapeChar = substr($qe,0,1);
+ // remove 'foo\'bar'
+ if (!empty($q)) {
+ $escapeChar = preg_quote($escapeChar);
+ // this segfaults only after 65,000 characters instead of 9,000
+ $sql = preg_replace("/$q([^$q{$escapeChar}]*|($qe)*)*$q/s", '', $sql);
+ }
+
// get a version of the SQL statement with all quoted
// values and delimited identifiers stripped out
// remove "foo\"bar"
- $sql = preg_replace("/$q($qe|\\\\{2}|[^$q])*$q/", '', $sql);
- // remove 'foo\'bar'
- if (!empty($q)) {
- $sql = preg_replace("/$q($qe|[^$q])*$q/", '', $sql);
- }
+ $sql = preg_replace("/\"(\\\\\"|[^\"])*\"/Us", '', $sql);
+ // get the character for delimited id quotes,
+ // this is usually " but in MySQL is `
+ $d = $this->_adapter->quoteIdentifier('a');
+ $d = $d[0];
+ // get the value used as an escaped delimited id quote,
+ // e.g. \" or "" or \`
+ $de = $this->_adapter->quoteIdentifier($d);
+ $de = substr($de, 1, 2);
+ $de = preg_quote($de);
+ // Note: $de and $d where never used..., now they are:
+ $sql = preg_replace("/$d($de|\\\\{2}|[^$d])*$d/Us", '', $sql);
return $sql;
}
--- a/web/lib/Zend/Db/Statement/Db2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Db2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db2.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Db2.php 24625 2012-02-22 21:53:40Z adamlundrigan $
*/
/**
@@ -30,7 +30,7 @@
*
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Db2 extends Zend_Db_Statement
@@ -96,7 +96,7 @@
$datatype = DB2_CHAR;
}
- if (!db2_bind_param($this->_stmt, $position, "variable", $type, $datatype)) {
+ if (!db2_bind_param($this->_stmt, $parameter, "variable", $type, $datatype)) {
/**
* @see Zend_Db_Statement_Db2_Exception
*/
--- a/web/lib/Zend/Db/Statement/Db2/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Db2/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Db/Statement/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20513 2010-01-22 07:55:48Z ralph $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Exception extends Zend_Db_Exception
--- a/web/lib/Zend/Db/Statement/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Db_Statement_Interface
--- a/web/lib/Zend/Db/Statement/Mysqli.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Mysqli.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mysqli.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mysqli.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Mysqli extends Zend_Db_Statement
--- a/web/lib/Zend/Db/Statement/Mysqli/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Mysqli/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Db/Statement/Oracle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Oracle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Oracle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Oracle.php 24863 2012-06-02 00:22:47Z adamlundrigan $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Oracle extends Zend_Db_Statement
@@ -87,7 +87,7 @@
protected function _prepare($sql)
{
$connection = $this->_adapter->getConnection();
- $this->_stmt = oci_parse($connection, $sql);
+ $this->_stmt = @oci_parse($connection, $sql);
if (!$this->_stmt) {
/**
* @see Zend_Db_Statement_Oracle_Exception
@@ -240,7 +240,7 @@
}
$error = false;
foreach (array_keys($params) as $name) {
- if (!@oci_bind_by_name($this->_stmt, $name, $params[$name], -1)) {
+ if (!$this->bindParam($name, $params[$name], null, -1)) {
$error = true;
break;
}
--- a/web/lib/Zend/Db/Statement/Oracle/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Oracle/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Db/Statement/Pdo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Pdo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pdo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pdo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Pdo extends Zend_Db_Statement implements IteratorAggregate
--- a/web/lib/Zend/Db/Statement/Pdo/Ibm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Pdo/Ibm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ibm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ibm.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Pdo_Ibm extends Zend_Db_Statement_Pdo
--- a/web/lib/Zend/Db/Statement/Pdo/Oci.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Pdo/Oci.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Oci.php 21104 2010-02-19 21:26:36Z mikaelkael $
+ * @version $Id: Oci.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Pdo_Oci extends Zend_Db_Statement_Pdo
--- a/web/lib/Zend/Db/Statement/Sqlsrv.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Sqlsrv.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sqlsrv.php 21887 2010-04-16 18:28:10Z juokaz $
+ * @version $Id: Sqlsrv.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Sqlsrv extends Zend_Db_Statement
@@ -376,11 +376,11 @@
require_once 'Zend/Db/Statement/Sqlsrv/Exception.php';
throw new Zend_Db_Statement_Sqlsrv_Exception(sqlsrv_errors());
}
-
- // reset column keys
- $this->_keys = null;
+
+ // reset column keys
+ $this->_keys = null;
- return true;
+ return true;
}
/**
@@ -411,8 +411,8 @@
return $num_rows;
}
-
- /**
+
+ /**
* Returns an array containing all of the result set rows.
*
* @param int $style OPTIONAL Fetch mode.
--- a/web/lib/Zend/Db/Statement/Sqlsrv/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Statement/Sqlsrv/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @package Zend_Db
* @subpackage Statement
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Statement_Sqlsrv_Exception extends Zend_Db_Statement_Exception
--- a/web/lib/Zend/Db/Table.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Table.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Table.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table extends Zend_Db_Table_Abstract
--- a/web/lib/Zend/Db/Table/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21078 2010-02-18 18:07:16Z tech13 $
+ * @version $Id: Abstract.php 24958 2012-06-15 13:44:04Z adamlundrigan $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Table_Abstract
@@ -70,6 +70,7 @@
const ON_UPDATE = 'onUpdate';
const CASCADE = 'cascade';
+ const CASCADE_RECURSE = 'cascadeRecurse';
const RESTRICT = 'restrict';
const SET_NULL = 'setNull';
@@ -744,6 +745,7 @@
* Initialize database adapter.
*
* @return void
+ * @throws Zend_Db_Table_Exception
*/
protected function _setupDatabaseAdapter()
{
@@ -807,12 +809,23 @@
//get db configuration
$dbConfig = $this->_db->getConfig();
+ $port = isset($dbConfig['options']['port'])
+ ? ':'.$dbConfig['options']['port']
+ : (isset($dbConfig['port'])
+ ? ':'.$dbConfig['port']
+ : null);
+
+ $host = isset($dbConfig['options']['host'])
+ ? ':'.$dbConfig['options']['host']
+ : (isset($dbConfig['host'])
+ ? ':'.$dbConfig['host']
+ : null);
+
// Define the cache identifier where the metadata are saved
$cacheId = md5( // port:host/dbname:schema.table (based on availabilty)
- (isset($dbConfig['options']['port']) ? ':'.$dbConfig['options']['port'] : null)
- . (isset($dbConfig['options']['host']) ? ':'.$dbConfig['options']['host'] : null)
- . '/'.$dbConfig['dbname'].':'.$this->_schema.'.'.$this->_name
- );
+ $port . $host . '/'. $dbConfig['dbname'] . ':'
+ . $this->_schema. '.' . $this->_name
+ );
}
// If $this has no metadata cache or metadata cache misses
@@ -873,7 +886,7 @@
// then throw an exception.
if (empty($this->_primary)) {
require_once 'Zend/Db/Table/Exception.php';
- throw new Zend_Db_Table_Exception('A table must have a primary key, but none was found');
+ throw new Zend_Db_Table_Exception("A table must have a primary key, but none was found for table '{$this->_name}'");
}
} else if (!is_array($this->_primary)) {
$this->_primary = array(1 => $this->_primary);
@@ -961,8 +974,9 @@
* You can elect to return only a part of this information by supplying its key name,
* otherwise all information is returned as an array.
*
- * @param $key The specific info part to return OPTIONAL
+ * @param string $key The specific info part to return OPTIONAL
* @return mixed
+ * @throws Zend_Db_Table_Exception
*/
public function info($key = null)
{
@@ -1035,14 +1049,24 @@
*/
if (is_string($this->_sequence) && !isset($data[$pkIdentity])) {
$data[$pkIdentity] = $this->_db->nextSequenceId($this->_sequence);
+ $pkSuppliedBySequence = true;
}
/**
* If the primary key can be generated automatically, and no value was
* specified in the user-supplied data, then omit it from the tuple.
+ *
+ * Note: this checks for sensible values in the supplied primary key
+ * position of the data. The following values are considered empty:
+ * null, false, true, '', array()
*/
- if (array_key_exists($pkIdentity, $data) && $data[$pkIdentity] === null) {
- unset($data[$pkIdentity]);
+ if (!isset($pkSuppliedBySequence) && array_key_exists($pkIdentity, $data)) {
+ if ($data[$pkIdentity] === null // null
+ || $data[$pkIdentity] === '' // empty string
+ || is_bool($data[$pkIdentity]) // boolean
+ || (is_array($data[$pkIdentity]) && empty($data[$pkIdentity]))) { // empty array
+ unset($data[$pkIdentity]);
+ }
}
/**
@@ -1157,6 +1181,22 @@
*/
public function delete($where)
{
+ $depTables = $this->getDependentTables();
+ if (!empty($depTables)) {
+ $resultSet = $this->fetchAll($where);
+ if (count($resultSet) > 0 ) {
+ foreach ($resultSet as $row) {
+ /**
+ * Execute cascading deletes against dependent tables
+ */
+ foreach ($depTables as $tableClass) {
+ $t = self::getTableFromString($tableClass, $this);
+ $t->_cascadeDelete($tableClass, $row->getPrimaryKey());
+ }
+ }
+ }
+ }
+
$tableSpec = ($this->_schema ? $this->_schema . '.' : '') . $this->_name;
return $this->_db->delete($tableSpec, $where);
}
@@ -1170,27 +1210,56 @@
*/
public function _cascadeDelete($parentTableClassname, array $primaryKey)
{
+ // setup metadata
$this->_setupMetadata();
+
+ // get this class name
+ $thisClass = get_class($this);
+ if ($thisClass === 'Zend_Db_Table') {
+ $thisClass = $this->_definitionConfigName;
+ }
+
$rowsAffected = 0;
+
foreach ($this->_getReferenceMapNormalized() as $map) {
if ($map[self::REF_TABLE_CLASS] == $parentTableClassname && isset($map[self::ON_DELETE])) {
- switch ($map[self::ON_DELETE]) {
- case self::CASCADE:
- $where = array();
- for ($i = 0; $i < count($map[self::COLUMNS]); ++$i) {
- $col = $this->_db->foldCase($map[self::COLUMNS][$i]);
- $refCol = $this->_db->foldCase($map[self::REF_COLUMNS][$i]);
- $type = $this->_metadata[$col]['DATA_TYPE'];
- $where[] = $this->_db->quoteInto(
- $this->_db->quoteIdentifier($col, true) . ' = ?',
- $primaryKey[$refCol], $type);
+
+ $where = array();
+
+ // CASCADE or CASCADE_RECURSE
+ if (in_array($map[self::ON_DELETE], array(self::CASCADE, self::CASCADE_RECURSE))) {
+ for ($i = 0; $i < count($map[self::COLUMNS]); ++$i) {
+ $col = $this->_db->foldCase($map[self::COLUMNS][$i]);
+ $refCol = $this->_db->foldCase($map[self::REF_COLUMNS][$i]);
+ $type = $this->_metadata[$col]['DATA_TYPE'];
+ $where[] = $this->_db->quoteInto(
+ $this->_db->quoteIdentifier($col, true) . ' = ?',
+ $primaryKey[$refCol], $type);
+ }
+ }
+
+ // CASCADE_RECURSE
+ if ($map[self::ON_DELETE] == self::CASCADE_RECURSE) {
+
+ /**
+ * Execute cascading deletes against dependent tables
+ */
+ $depTables = $this->getDependentTables();
+ if (!empty($depTables)) {
+ foreach ($depTables as $tableClass) {
+ $t = self::getTableFromString($tableClass, $this);
+ foreach ($this->fetchAll($where) as $depRow) {
+ $rowsAffected += $t->_cascadeDelete($thisClass, $depRow->getPrimaryKey());
+ }
}
- $rowsAffected += $this->delete($where);
- break;
- default:
- // no action
- break;
+ }
}
+
+ // CASCADE or CASCADE_RECURSE
+ if (in_array($map[self::ON_DELETE], array(self::CASCADE, self::CASCADE_RECURSE))) {
+ $rowsAffected += $this->delete($where);
+ }
+
}
}
return $rowsAffected;
@@ -1342,10 +1411,11 @@
*
* @param string|array|Zend_Db_Table_Select $where OPTIONAL An SQL WHERE clause or Zend_Db_Table_Select object.
* @param string|array $order OPTIONAL An SQL ORDER clause.
+ * @param int $offset OPTIONAL An SQL OFFSET value.
* @return Zend_Db_Table_Row_Abstract|null The row results per the
* Zend_Db_Adapter fetch mode, or null if no row found.
*/
- public function fetchRow($where = null, $order = null)
+ public function fetchRow($where = null, $order = null, $offset = null)
{
if (!($where instanceof Zend_Db_Table_Select)) {
$select = $this->select();
@@ -1358,10 +1428,10 @@
$this->_order($select, $order);
}
- $select->limit(1);
+ $select->limit(1, ((is_numeric($offset)) ? (int) $offset : null));
} else {
- $select = $where->limit(1);
+ $select = $where->limit(1, $where->getPart(Zend_Db_Select::LIMIT_OFFSET));
}
$rows = $this->_fetch($select);
@@ -1507,4 +1577,38 @@
return $data;
}
+ public static function getTableFromString($tableName, Zend_Db_Table_Abstract $referenceTable = null)
+ {
+ if ($referenceTable instanceof Zend_Db_Table_Abstract) {
+ $tableDefinition = $referenceTable->getDefinition();
+
+ if ($tableDefinition !== null && $tableDefinition->hasTableConfig($tableName)) {
+ return new Zend_Db_Table($tableName, $tableDefinition);
+ }
+ }
+
+ // assume the tableName is the class name
+ if (!class_exists($tableName)) {
+ try {
+ require_once 'Zend/Loader.php';
+ Zend_Loader::loadClass($tableName);
+ } catch (Zend_Exception $e) {
+ require_once 'Zend/Db/Table/Row/Exception.php';
+ throw new Zend_Db_Table_Row_Exception($e->getMessage(), $e->getCode(), $e);
+ }
+ }
+
+ $options = array();
+
+ if ($referenceTable instanceof Zend_Db_Table_Abstract) {
+ $options['db'] = $referenceTable->getAdapter();
+ }
+
+ if (isset($tableDefinition) && $tableDefinition !== null) {
+ $options[Zend_Db_Table_Abstract::DEFINITION] = $tableDefinition;
+ }
+
+ return new $tableName($options);
+ }
+
}
--- a/web/lib/Zend/Db/Table/Definition.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Definition.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Definition.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Definition.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Definition
--- a/web/lib/Zend/Db/Table/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Exception extends Zend_Db_Exception
--- a/web/lib/Zend/Db/Table/Row.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Row.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Row.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Row.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Row extends Zend_Db_Table_Row_Abstract
--- a/web/lib/Zend/Db/Table/Row/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Row/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22229 2010-05-21 20:55:01Z ralph $
+ * @version $Id: Abstract.php 24831 2012-05-30 12:52:25Z rob $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Table_Row_Abstract implements ArrayAccess, IteratorAggregate
@@ -646,7 +646,7 @@
{
return new ArrayIterator((array) $this->_data);
}
-
+
/**
* Returns the column/value data as an array.
*
@@ -725,6 +725,17 @@
}
/**
+ * Retrieves an associative array of primary keys.
+ *
+ * @param bool $useDirty
+ * @return array
+ */
+ public function getPrimaryKey($useDirty = true)
+ {
+ return $this->_getPrimaryKey($useDirty);
+ }
+
+ /**
* Constructs where statement for retrieving row(s).
*
* @param bool $useDirty
@@ -1167,37 +1178,7 @@
*/
protected function _getTableFromString($tableName)
{
-
- if ($this->_table instanceof Zend_Db_Table_Abstract) {
- $tableDefinition = $this->_table->getDefinition();
-
- if ($tableDefinition !== null && $tableDefinition->hasTableConfig($tableName)) {
- return new Zend_Db_Table($tableName, $tableDefinition);
- }
- }
-
- // assume the tableName is the class name
- if (!class_exists($tableName)) {
- try {
- require_once 'Zend/Loader.php';
- Zend_Loader::loadClass($tableName);
- } catch (Zend_Exception $e) {
- require_once 'Zend/Db/Table/Row/Exception.php';
- throw new Zend_Db_Table_Row_Exception($e->getMessage(), $e->getCode(), $e);
- }
- }
-
- $options = array();
-
- if (($table = $this->_getTable())) {
- $options['db'] = $table->getAdapter();
- }
-
- if (isset($tableDefinition) && $tableDefinition !== null) {
- $options[Zend_Db_Table_Abstract::DEFINITION] = $tableDefinition;
- }
-
- return new $tableName($options);
+ return Zend_Db_Table_Abstract::getTableFromString($tableName, $this->_table);
}
}
--- a/web/lib/Zend/Db/Table/Row/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Row/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Row_Exception extends Zend_Db_Table_Exception
--- a/web/lib/Zend/Db/Table/Rowset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Rowset.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rowset.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rowset.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Rowset extends Zend_Db_Table_Rowset_Abstract
--- a/web/lib/Zend/Db/Table/Rowset/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Rowset/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23380 2010-11-18 22:22:28Z ralph $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Db_Table_Rowset_Abstract implements SeekableIterator, Countable, ArrayAccess
@@ -384,11 +384,11 @@
require_once 'Zend/Db/Table/Rowset/Exception.php';
throw new Zend_Db_Table_Rowset_Exception('No row could be found at position ' . (int) $position, 0, $e);
}
-
+
if ($seek == true) {
$this->seek($position);
}
-
+
return $row;
}
@@ -408,14 +408,14 @@
}
return $this->_data;
}
-
+
protected function _loadAndReturnRow($position)
{
if (!isset($this->_data[$position])) {
require_once 'Zend/Db/Table/Rowset/Exception.php';
throw new Zend_Db_Table_Rowset_Exception("Data for provided position does not exist");
}
-
+
// do we already have a row object for this position?
if (empty($this->_rows[$position])) {
$this->_rows[$position] = new $this->_rowClass(
--- a/web/lib/Zend/Db/Table/Rowset/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Rowset/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Rowset_Exception extends Zend_Db_Table_Exception
--- a/web/lib/Zend/Db/Table/Select.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Select.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Select.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Select.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Db_Table_Select extends Zend_Db_Select
--- a/web/lib/Zend/Db/Table/Select/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Db/Table/Select/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Db
* @subpackage Select
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Db
* @subpackage Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Debug.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Debug.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Debug
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Debug.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Debug.php 25095 2012-11-07 20:11:07Z rob $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Debug
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -90,7 +90,12 @@
. PHP_EOL;
} else {
if(!extension_loaded('xdebug')) {
- $output = htmlspecialchars($output, ENT_QUOTES);
+ $flags = ENT_QUOTES;
+ // PHP 5.4.0+
+ if (defined('ENT_SUBSTITUTE')) {
+ $flags = ENT_QUOTES | ENT_SUBSTITUTE;
+ }
+ $output = htmlspecialchars($output, $flags);
}
$output = '<pre>'
--- a/web/lib/Zend/Dojo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -22,9 +22,9 @@
* Enable Dojo components
*
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dojo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dojo.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo
{
--- a/web/lib/Zend/Dojo/BuildLayer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/BuildLayer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BuildLayer.php 22280 2010-05-24 20:39:45Z matthew $
+ * @version $Id: BuildLayer.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* Dojo module layer and custom build profile generation support
*
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_BuildLayer
--- a/web/lib/Zend/Dojo/Data.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Data.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Data.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Data.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @uses Iterator
* @uses Countable
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_Data implements ArrayAccess,Iterator,Countable
--- a/web/lib/Zend/Dojo/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Exception */
@@ -27,7 +27,7 @@
*
* @uses Zend_Exception
* @package Zend_Dojo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_Exception extends Zend_Exception
--- a/web/lib/Zend/Dojo/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Form
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Form.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Form.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form extends Zend_Form
{
--- a/web/lib/Zend/Dojo/Form/Decorator/AccordionContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/AccordionContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccordionContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccordionContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_AccordionContainer extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/AccordionPane.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/AccordionPane.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccordionPane.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccordionPane.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_AccordionPane extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/BorderContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/BorderContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BorderContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BorderContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_BorderContainer extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/ContentPane.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/ContentPane.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContentPane.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContentPane.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_ContentPane extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/DijitContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/DijitContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
* @uses Zend_Form_Decorator_Abstract
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DijitContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DijitContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Dojo_Form_Decorator_DijitContainer extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Dojo/Form/Decorator/DijitElement.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/DijitElement.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -36,9 +36,9 @@
*
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DijitElement.php 20621 2010-01-25 20:25:23Z matthew $
+ * @version $Id: DijitElement.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_DijitElement extends Zend_Form_Decorator_ViewHelper
{
--- a/web/lib/Zend/Dojo/Form/Decorator/DijitForm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/DijitForm.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,9 +31,9 @@
*
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DijitForm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DijitForm.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_DijitForm extends Zend_Dojo_Form_Decorator_DijitContainer
{
@@ -56,6 +56,11 @@
$dijitParams = $this->getDijitParams();
$attribs = array_merge($this->getAttribs(), $this->getOptions());
+ // Enforce id attribute of form for dojo events
+ if (!isset($attribs['name']) || !$attribs['name']) {
+ $element->setName(get_class($element) . '_' . uniqid());
+ }
+
return $view->form($element->getName(), $attribs, $content);
}
}
--- a/web/lib/Zend/Dojo/Form/Decorator/SplitContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/SplitContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SplitContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SplitContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_SplitContainer extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/StackContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/StackContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StackContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StackContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_StackContainer extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/Decorator/TabContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Decorator/TabContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_Form_Decorator_DijitContainer
* @package Zend_Dojo
* @subpackage Form_Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TabContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TabContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Decorator_TabContainer extends Zend_Dojo_Form_Decorator_DijitContainer
{
--- a/web/lib/Zend/Dojo/Form/DisplayGroup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/DisplayGroup.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Form_DisplayGroup
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DisplayGroup.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DisplayGroup.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_DisplayGroup extends Zend_Form_DisplayGroup
{
--- a/web/lib/Zend/Dojo/Form/Element/Button.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/Button.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Button.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Button.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_Button extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/CheckBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/CheckBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CheckBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CheckBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_CheckBox extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/ComboBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/ComboBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_DijitMulti
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ComboBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ComboBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_ComboBox extends Zend_Dojo_Form_Element_DijitMulti
{
--- a/web/lib/Zend/Dojo/Form/Element/CurrencyTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/CurrencyTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_NumberTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CurrencyTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CurrencyTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_CurrencyTextBox extends Zend_Dojo_Form_Element_NumberTextBox
{
--- a/web/lib/Zend/Dojo/Form/Element/DateTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/DateTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DateTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DateTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_DateTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{
--- a/web/lib/Zend/Dojo/Form/Element/Dijit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/Dijit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dijit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dijit.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Dojo_Form_Element_Dijit extends Zend_Form_Element
{
--- a/web/lib/Zend/Dojo/Form/Element/DijitMulti.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/DijitMulti.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DijitMulti.php 22322 2010-05-30 11:12:57Z thomas $
+ * @version $Id: DijitMulti.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Dojo_Form_Element_DijitMulti extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/Editor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/Editor.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Editor.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Editor.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_Form_Element_Dijit */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_Form_Element_Editor extends Zend_Dojo_Form_Element_Dijit
@@ -247,7 +247,7 @@
{
$plugin = (string) $plugin;
$plugins = $this->getPlugins();
- if (in_array($plugin, $plugins)) {
+ if (in_array($plugin, $plugins) && $plugin !== '|') {
return $this;
}
@@ -446,11 +446,11 @@
*/
public function setMinHeight($minHeight)
{
- if (!preg_match('/^\d+(em)?$/i', $minHeight)) {
+ if (!preg_match('/^\d+(em|px|%)?$/i', $minHeight)) {
require_once 'Zend/Form/Element/Exception.php';
throw new Zend_Form_Element_Exception('Invalid minHeight provided; must be integer or CSS measurement');
}
- if ('em' != substr($minHeight, -2)) {
+ if (!preg_match('/(em|px|%)$/', $minHeight)) {
$minHeight .= 'em';
}
return $this->setDijitParam('minHeight', $minHeight);
@@ -596,4 +596,102 @@
}
return $this->getDijitParam('updateInterval');
}
+
+ /**
+ * Add a single editor extra plugin.
+ *
+ * @param string $plugin
+ * @return Zend_Dojo_Form_Element_Editor
+ */
+ public function addExtraPlugin($plugin)
+ {
+ $plugin = (string) $plugin;
+ $extraPlugins = $this->getExtraPlugins();
+ if (in_array($plugin, $extraPlugins)) {
+ return $this;
+ }
+
+ $extraPlugins[] = (string) $plugin;
+ $this->setDijitParam('extraPlugins', $extraPlugins);
+ return $this;
+ }
+
+ /**
+ * Add multiple extra plugins.
+ *
+ * @param array $extraPlugins
+ * @return Zend_Dojo_Form_Element_Editor
+ */
+ public function addExtraPlugins(array $plugins)
+ {
+ foreach ($plugins as $plugin) {
+ $this->addExtraPlugin($plugin);
+ }
+ return $this;
+ }
+
+ /**
+ * Overwrite many extra plugins at once.
+ *
+ * @param array $plugins
+ * @return Zend_Dojo_Form_Element_Editor
+ */
+ public function setExtraPlugins(array $plugins)
+ {
+ $this->clearExtraPlugins();
+ $this->addExtraPlugins($plugins);
+ return $this;
+ }
+
+ /**
+ * Get all extra plugins.
+ *
+ * @return array
+ */
+ public function getExtraPlugins()
+ {
+ if (!$this->hasDijitParam('extraPlugins')) {
+ return array();
+ }
+ return $this->getDijitParam('extraPlugins');
+ }
+
+ /**
+ * Is a given extra plugin registered?
+ *
+ * @param string $plugin
+ * @return bool
+ */
+ public function hasExtraPlugin($plugin)
+ {
+ $extraPlugins = $this->getExtraPlugins();
+ return in_array((string) $plugin, $extraPlugins);
+ }
+
+ /**
+ * Remove a given extra plugin.
+ *
+ * @param string $plugin
+ * @return Zend_Dojo_Form_Element_Editor
+ */
+ public function removeExtraPlugin($plugin)
+ {
+ $extraPlugins = $this->getExtraPlugins();
+ if (false === ($index = array_search($plugin, $extraPlugins))) {
+ return $this;
+ }
+ unset($extraPlugins[$index]);
+ $this->setDijitParam('extraPlugins', $extraPlugins);
+ return $this;
+ }
+
+ /**
+ * Clear all extra plugins.
+ *
+ * @return Zend_Dojo_Form_Element_Editor
+ */
+ public function clearExtraPlugins()
+ {
+ return $this->removeDijitParam('extraPlugins');
+ }
}
--- a/web/lib/Zend/Dojo/Form/Element/FilteringSelect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/FilteringSelect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_ComboBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FilteringSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FilteringSelect.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_FilteringSelect extends Zend_Dojo_Form_Element_ComboBox
{
--- a/web/lib/Zend/Dojo/Form/Element/HorizontalSlider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/HorizontalSlider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_Slider
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HorizontalSlider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HorizontalSlider.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_HorizontalSlider extends Zend_Dojo_Form_Element_Slider
{
--- a/web/lib/Zend/Dojo/Form/Element/NumberSpinner.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/NumberSpinner.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumberSpinner.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumberSpinner.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_NumberSpinner extends Zend_Dojo_Form_Element_ValidationTextBox
{
@@ -92,7 +92,7 @@
*/
public function setLargeDelta($delta)
{
- $this->setDijitParam('largeDelta', (int) $delta);
+ $this->setDijitParam('largeDelta', (float) $delta);
return $this;
}
@@ -114,7 +114,7 @@
*/
public function setSmallDelta($delta)
{
- $this->setDijitParam('smallDelta', (int) $delta);
+ $this->setDijitParam('smallDelta', (float) $delta);
return $this;
}
@@ -187,7 +187,7 @@
if ($this->hasDijitParam('constraints')) {
$constraints = $this->getDijitParam('constraints');
}
- $constraints['min'] = (int) $value;
+ $constraints['min'] = (float) $value;
$this->setDijitParam('constraints', $constraints);
return $this;
}
@@ -221,7 +221,7 @@
if ($this->hasDijitParam('constraints')) {
$constraints = $this->getDijitParam('constraints');
}
- $constraints['max'] = (int) $value;
+ $constraints['max'] = (float) $value;
$this->setDijitParam('constraints', $constraints);
return $this;
}
--- a/web/lib/Zend/Dojo/Form/Element/NumberTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/NumberTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumberTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumberTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_NumberTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{
--- a/web/lib/Zend/Dojo/Form/Element/PasswordTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/PasswordTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_ValidationTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PasswordTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PasswordTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_PasswordTextBox extends Zend_Dojo_Form_Element_ValidationTextBox
{
--- a/web/lib/Zend/Dojo/Form/Element/RadioButton.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/RadioButton.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_DijitMulti
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RadioButton.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RadioButton.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_RadioButton extends Zend_Dojo_Form_Element_DijitMulti
{
--- a/web/lib/Zend/Dojo/Form/Element/SimpleTextarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/SimpleTextarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimpleTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimpleTextarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_SimpleTextarea extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/Slider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/Slider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_Dijit
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Slider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Slider.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Dojo_Form_Element_Slider extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/SubmitButton.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/SubmitButton.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubmitButton.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubmitButton.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_SubmitButton extends Zend_Dojo_Form_Element_Button
{
--- a/web/lib/Zend/Dojo/Form/Element/TextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/TextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_TextBox extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/Textarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/Textarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Textarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Textarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_Textarea extends Zend_Dojo_Form_Element_Dijit
{
--- a/web/lib/Zend/Dojo/Form/Element/TimeTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/TimeTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_DateTextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimeTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimeTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_TimeTextBox extends Zend_Dojo_Form_Element_DateTextBox
{
--- a/web/lib/Zend/Dojo/Form/Element/ValidationTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/ValidationTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_TextBox
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ValidationTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ValidationTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_ValidationTextBox extends Zend_Dojo_Form_Element_TextBox
{
@@ -132,6 +132,8 @@
*/
public function setConstraints(array $constraints)
{
+ $tmp = $this->getConstraints();
+ $constraints = array_merge($tmp, $constraints);
array_walk_recursive($constraints, array($this, '_castBoolToString'));
$this->setDijitParam('constraints', $constraints);
return $this;
--- a/web/lib/Zend/Dojo/Form/Element/VerticalSlider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/Element/VerticalSlider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Dojo_Form_Element_Slider
* @package Zend_Dojo
* @subpackage Form_Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VerticalSlider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VerticalSlider.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_Element_VerticalSlider extends Zend_Dojo_Form_Element_Slider
{
--- a/web/lib/Zend/Dojo/Form/SubForm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/Form/SubForm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @uses Zend_Form_SubForm
* @package Zend_Dojo
* @subpackage Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubForm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubForm.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_Form_SubForm extends Zend_Form_SubForm
{
--- a/web/lib/Zend/Dojo/View/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Exception extends Zend_Dojo_Exception
--- a/web/lib/Zend/Dojo/View/Helper/AccordionContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/AccordionContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccordionContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccordionContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_AccordionContainer extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/AccordionPane.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/AccordionPane.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccordionPane.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccordionPane.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_AccordionPane extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/BorderContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/BorderContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BorderContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BorderContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_BorderContainer extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/Button.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Button.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Button.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Button.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Button extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/CheckBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/CheckBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CheckBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CheckBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_CheckBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/ComboBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/ComboBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ComboBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ComboBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_ComboBox extends Zend_Dojo_View_Helper_Dijit
@@ -100,6 +100,10 @@
return $html;
}
+ // required for correct type casting in declerative mode
+ if (isset($params['autocomplete'])) {
+ $params['autocomplete'] = ($params['autocomplete']) ? 'true' : 'false';
+ }
// do as normal select
$attribs = $this->_prepareDijit($attribs, $params, 'element');
return $this->view->formSelect($id, $value, $attribs, $options);
--- a/web/lib/Zend/Dojo/View/Helper/ContentPane.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/ContentPane.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContentPane.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContentPane.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_ContentPane extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/CurrencyTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/CurrencyTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CurrencyTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CurrencyTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_CurrencyTextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/CustomDijit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/CustomDijit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CustomDijit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CustomDijit.php 25024 2012-07-30 15:08:15Z rob $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_CustomDijit extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/DateTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/DateTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DateTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DateTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_DateTextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/Dijit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Dijit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dijit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dijit.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_View_Helper_HtmlElement */
@@ -29,7 +29,7 @@
* @uses Zend_View_Helper_Abstract
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Dojo_View_Helper_Dijit extends Zend_View_Helper_HtmlElement
--- a/web/lib/Zend/Dojo/View/Helper/DijitContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/DijitContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DijitContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DijitContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Dojo_View_Helper_DijitContainer extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/Dojo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Dojo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Dojo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Dojo.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
*
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Dojo
--- a/web/lib/Zend/Dojo/View/Helper/Dojo/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Dojo/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Container.php 23368 2010-11-18 19:56:30Z bittarman $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
*
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Dojo_Container
@@ -882,7 +882,7 @@
*/
public function addJavascript($js)
{
- $js = preg_replace('/^\s*(.*?)\s*$/s', '$1', $js);
+ $js = trim($js);
if (!in_array(substr($js, -1), array(';', '}'))) {
$js .= ';';
}
@@ -1136,7 +1136,7 @@
}
$onLoadActions = array();
- // Get Zend specific onLoad actions; these will always be first to
+ // Get Zend specific onLoad actions; these will always be first to
// ensure that dijits are created in the correct order
foreach ($this->_getZendLoadActions() as $callback) {
$onLoadActions[] = 'dojo.addOnLoad(' . $callback . ');';
@@ -1177,12 +1177,12 @@
/**
* Add an onLoad action related to ZF dijit creation
*
- * This method is public, but prefixed with an underscore to indicate that
+ * This method is public, but prefixed with an underscore to indicate that
* it should not normally be called by userland code. It is pertinent to
- * ensuring that the correct order of operations occurs during dijit
+ * ensuring that the correct order of operations occurs during dijit
* creation.
- *
- * @param string $callback
+ *
+ * @param string $callback
* @return Zend_Dojo_View_Helper_Dojo_Container
*/
public function _addZendLoad($callback)
@@ -1195,7 +1195,7 @@
/**
* Retrieve all ZF dijit callbacks
- *
+ *
* @return array
*/
public function _getZendLoadActions()
--- a/web/lib/Zend/Dojo/View/Helper/Editor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Editor.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Editor.php 20116 2010-01-07 14:18:34Z matthew $
+ * @version $Id: Editor.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -32,7 +32,7 @@
* @uses Zend_Dojo_View_Helper_Textarea
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Editor extends Zend_Dojo_View_Helper_Dijit
@@ -57,14 +57,21 @@
'fontSize' => 'FontChoice',
'formatBlock' => 'FontChoice',
'foreColor' => 'TextColor',
- 'hiliteColor' => 'TextColor'
+ 'hiliteColor' => 'TextColor',
+ 'enterKeyHandling' => 'EnterKeyHandling',
+ 'fullScreen' => 'FullScreen',
+ 'newPage' => 'NewPage',
+ 'print' => 'Print',
+ 'tabIndent' => 'TabIndent',
+ 'toggleDir' => 'ToggleDir',
+ 'viewSource' => 'ViewSource'
);
/**
* JSON-encoded parameters
* @var array
*/
- protected $_jsonParams = array('captureEvents', 'events', 'plugins');
+ protected $_jsonParams = array('captureEvents', 'events', 'plugins', 'extraPlugins');
/**
* dijit.Editor
@@ -83,8 +90,8 @@
}
}
- // Previous versions allowed specifying "degrade" to allow using a
- // textarea instead of a div -- but this is insecure. Removing the
+ // Previous versions allowed specifying "degrade" to allow using a
+ // textarea instead of a div -- but this is insecure. Removing the
// parameter if set to prevent its injection in the dijit.
if (isset($params['degrade'])) {
unset($params['degrade']);
@@ -114,17 +121,18 @@
$attribs = $this->_prepareDijit($attribs, $params, 'textarea');
- $html = '<input' . $this->_htmlAttribs($hiddenAttribs) . $this->getClosingBracket();
- $html .= '<div' . $this->_htmlAttribs($attribs) . '>'
+ $html = '<div' . $this->_htmlAttribs($attribs) . '>'
. $value
. "</div>\n";
- // Embed a textarea in a <noscript> tag to allow for graceful
+ // Embed a textarea in a <noscript> tag to allow for graceful
// degradation
$html .= '<noscript>'
. $this->view->formTextarea($hiddenId, $value, $attribs)
. '</noscript>';
+ $html .= '<input' . $this->_htmlAttribs($hiddenAttribs) . $this->getClosingBracket();
+
return $html;
}
@@ -178,7 +186,11 @@
function() {
var form = zend.findParentForm(dojo.byId('$hiddenId'));
dojo.connect(form, 'submit', function(e) {
- dojo.byId('$hiddenId').value = dijit.byId('$editorId').getValue(false);
+ var value = dijit.byId('$editorId').getValue(false);
+ if(dojo.isFF) {
+ value = value.replace(/<br _moz_editor_bogus_node="TRUE" \/>/, '');
+ }
+ dojo.byId('$hiddenId').value = value;
});
}
EOJ;
--- a/web/lib/Zend/Dojo/View/Helper/FilteringSelect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/FilteringSelect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FilteringSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FilteringSelect.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_ComboBox */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_ComboBox
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_FilteringSelect extends Zend_Dojo_View_Helper_ComboBox
--- a/web/lib/Zend/Dojo/View/Helper/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Form.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Form.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Form extends Zend_Dojo_View_Helper_Dijit
@@ -70,10 +70,6 @@
$attribs['id'] = $id;
}
- if (false === $content) {
- $content = '';
- }
-
$attribs = $this->_prepareDijit($attribs, array(), 'layout');
return $this->getFormHelper()->form($id, $attribs, $content);
--- a/web/lib/Zend/Dojo/View/Helper/HorizontalSlider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/HorizontalSlider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HorizontalSlider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HorizontalSlider.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Slider */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Slider
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_HorizontalSlider extends Zend_Dojo_View_Helper_Slider
--- a/web/lib/Zend/Dojo/View/Helper/NumberSpinner.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/NumberSpinner.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumberSpinner.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumberSpinner.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_NumberSpinner extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/NumberTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/NumberTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumberTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumberTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_NumberTextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/PasswordTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/PasswordTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PasswordTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PasswordTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_ValidationTextBox */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_PasswordTextBox extends Zend_Dojo_View_Helper_ValidationTextBox
--- a/web/lib/Zend/Dojo/View/Helper/RadioButton.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/RadioButton.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RadioButton.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RadioButton.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_RadioButton extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/SimpleTextarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/SimpleTextarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimpleTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimpleTextarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,9 +29,9 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimpleTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimpleTextarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dojo_View_Helper_SimpleTextarea extends Zend_Dojo_View_Helper_Dijit
{
@@ -65,7 +65,6 @@
$attribs['id'] = $id;
}
$attribs['name'] = $id;
- $attribs['type'] = $this->_elementType;
$attribs = $this->_prepareDijit($attribs, $params, 'textarea');
--- a/web/lib/Zend/Dojo/View/Helper/Slider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Slider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Slider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Slider.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Dojo_View_Helper_Slider extends Zend_Dojo_View_Helper_Dijit
@@ -77,7 +77,7 @@
}
$content = '';
- $params['value'] = $value;
+ $attribs['value'] = $value;
if (!array_key_exists('onChange', $attribs)) {
$attribs['onChange'] = "dojo.byId('" . $id . "').value = arguments[0];";
--- a/web/lib/Zend/Dojo/View/Helper/SplitContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/SplitContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SplitContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SplitContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_SplitContainer extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/StackContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/StackContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StackContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StackContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_StackContainer extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/SubmitButton.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/SubmitButton.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubmitButton.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubmitButton.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Button */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Button
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_SubmitButton extends Zend_Dojo_View_Helper_Button
--- a/web/lib/Zend/Dojo/View/Helper/TabContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/TabContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TabContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TabContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_DijitContainer */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_DijitContainer
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_TabContainer extends Zend_Dojo_View_Helper_DijitContainer
--- a/web/lib/Zend/Dojo/View/Helper/TextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/TextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_TextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/Textarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/Textarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Textarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Textarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_Textarea extends Zend_Dojo_View_Helper_Dijit
@@ -67,7 +67,6 @@
$attribs['id'] = $id;
}
$attribs['name'] = $id;
- $attribs['type'] = $this->_elementType;
$attribs = $this->_prepareDijit($attribs, $params, 'textarea');
--- a/web/lib/Zend/Dojo/View/Helper/TimeTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/TimeTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimeTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimeTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_TimeTextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/ValidationTextBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/ValidationTextBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ValidationTextBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ValidationTextBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Dijit */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Dijit
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_ValidationTextBox extends Zend_Dojo_View_Helper_Dijit
--- a/web/lib/Zend/Dojo/View/Helper/VerticalSlider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dojo/View/Helper/VerticalSlider.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VerticalSlider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VerticalSlider.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Dojo_View_Helper_Slider */
@@ -29,7 +29,7 @@
* @uses Zend_Dojo_View_Helper_Slider
* @package Zend_Dojo
* @subpackage View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dojo_View_Helper_VerticalSlider extends Zend_Dojo_View_Helper_Slider
--- a/web/lib/Zend/Dom/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dom/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Dom
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Exception */
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Dom
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dom_Exception extends Zend_Exception
--- a/web/lib/Zend/Dom/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dom/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Dom
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 23062 2010-10-08 14:05:45Z matthew $
+ * @version $Id: Query.php 25033 2012-08-17 19:50:08Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @package Zend_Dom
* @subpackage Query
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Dom_Query
@@ -90,8 +90,8 @@
/**
* Set document encoding
- *
- * @param string $encoding
+ *
+ * @param string $encoding
* @return Zend_Dom_Query
*/
public function setEncoding($encoding)
@@ -102,7 +102,7 @@
/**
* Get document encoding
- *
+ *
* @return null|string
*/
public function getEncoding()
@@ -124,6 +124,10 @@
}
// breaking XML declaration to make syntax highlighting work
if ('<' . '?xml' == substr(trim($document), 0, 5)) {
+ if (preg_match('/<html[^>]*xmlns="([^"]+)"[^>]*>/i', $document, $matches)) {
+ $this->_xpathNamespaces[] = $matches[1];
+ return $this->setDocumentXhtml($document, $encoding);
+ }
return $this->setDocumentXml($document, $encoding);
}
if (strstr($document, 'DTD XHTML')) {
@@ -205,7 +209,7 @@
/**
* Get any DOMDocument errors found
- *
+ *
* @return false|array
*/
public function getDocumentErrors()
@@ -241,6 +245,7 @@
$encoding = $this->getEncoding();
libxml_use_internal_errors(true);
+ libxml_disable_entity_loader(true);
if (null === $encoding) {
$domDoc = new DOMDocument('1.0');
} else {
@@ -250,6 +255,14 @@
switch ($type) {
case self::DOC_XML:
$success = $domDoc->loadXML($document);
+ foreach ($domDoc->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Dom/Exception.php';
+ throw new Zend_Dom_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
break;
case self::DOC_HTML:
case self::DOC_XHTML:
@@ -262,6 +275,7 @@
$this->_documentErrors = $errors;
libxml_clear_errors();
}
+ libxml_disable_entity_loader(false);
libxml_use_internal_errors(false);
if (!$success) {
--- a/web/lib/Zend/Dom/Query/Css2Xpath.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dom/Query/Css2Xpath.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Dom
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,9 +23,9 @@
*
* @package Zend_Dom
* @subpackage Query
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Css2Xpath.php 22044 2010-04-28 19:58:29Z matthew $
+ * @version $Id: Css2Xpath.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dom_Query_Css2Xpath
{
@@ -121,8 +121,8 @@
// Classes
$expression = preg_replace(
- '|\.([a-z][a-z0-9_-]*)|i',
- "[contains(concat(' ', normalize-space(@class), ' '), ' \$1 ')]",
+ '|\.([a-z][a-z0-9_-]*)|i',
+ "[contains(concat(' ', normalize-space(@class), ' '), ' \$1 ')]",
$expression
);
@@ -134,8 +134,8 @@
/**
* Callback for creating equality expressions
- *
- * @param array $matches
+ *
+ * @param array $matches
* @return string
*/
protected static function _createEqualityExpression($matches)
@@ -145,25 +145,25 @@
/**
* Callback for creating expressions to match one or more attribute values
- *
- * @param array $matches
+ *
+ * @param array $matches
* @return string
*/
protected static function _normalizeSpaceAttribute($matches)
{
- return "[contains(concat(' ', normalize-space(@" . strtolower($matches[1]) . "), ' '), ' "
+ return "[contains(concat(' ', normalize-space(@" . strtolower($matches[1]) . "), ' '), ' "
. $matches[2] . " ')]";
}
/**
* Callback for creating a strict "contains" expression
- *
- * @param array $matches
+ *
+ * @param array $matches
* @return string
*/
protected static function _createContainsExpression($matches)
{
- return "[contains(@" . strtolower($matches[1]) . ", '"
+ return "[contains(@" . strtolower($matches[1]) . ", '"
. $matches[2] . "')]";
}
}
--- a/web/lib/Zend/Dom/Query/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Dom/Query/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Dom
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -24,9 +24,9 @@
* @package Zend_Dom
* @subpackage Query
* @uses Iterator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Dom_Query_Result implements Iterator,Countable
{
--- a/web/lib/Zend/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20978 2010-02-08 15:35:25Z matthew $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend
-* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Exception extends Exception
@@ -54,9 +54,9 @@
* Overloading
*
* For PHP < 5.3.0, provides access to the getPrevious() method.
- *
- * @param string $method
- * @param array $args
+ *
+ * @param string $method
+ * @param array $args
* @return mixed
*/
public function __call($method, array $args)
@@ -76,8 +76,8 @@
{
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
if (null !== ($e = $this->getPrevious())) {
- return $e->__toString()
- . "\n\nNext "
+ return $e->__toString()
+ . "\n\nNext "
. parent::__toString();
}
}
--- a/web/lib/Zend/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 25160 2012-12-18 15:17:16Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed
@@ -191,7 +191,8 @@
public static function importString($string)
{
// Load the feed as an XML DOMDocument object
- $libxml_errflag = libxml_use_internal_errors(true);
+ $libxml_errflag = libxml_use_internal_errors(true);
+ $libxml_entity_loader = libxml_disable_entity_loader(true);
$doc = new DOMDocument;
if (trim($string) == '') {
require_once 'Zend/Feed/Exception.php';
@@ -199,9 +200,9 @@
. ' is an Empty string or comes from an empty HTTP response');
}
$status = $doc->loadXML($string);
+ libxml_disable_entity_loader($libxml_entity_loader);
libxml_use_internal_errors($libxml_errflag);
-
if (!$status) {
// prevent the class to generate an undefined variable notice (ZF-2590)
// Build error message
--- a/web/lib/Zend/Feed/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 25160 2012-12-18 15:17:16Z matthew $
*/
@@ -37,7 +37,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Abstract extends Zend_Feed_Element implements Iterator, Countable
@@ -81,9 +81,9 @@
* @see Zend_Feed_Exception
*/
require_once 'Zend/Feed/Exception.php';
- throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus());
+ throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus() . '; request: ' . $client->getLastRequest() . "\nresponse: " . $response->asString());
}
- $this->_element = $response->getBody();
+ $this->_element = $this->_importFeedFromString($response->getBody());
$this->__wakeup();
} elseif ($string !== null) {
// Retrieve the feed from $string
@@ -256,4 +256,49 @@
* @return void
*/
abstract public function send();
+
+ /**
+ * Import a feed from a string
+ *
+ * Protects against XXE attack vectors.
+ *
+ * @param string $feed
+ * @return string
+ * @throws Zend_Feed_Exception on detection of an XXE vector
+ */
+ protected function _importFeedFromString($feed)
+ {
+ // Load the feed as an XML DOMDocument object
+ $libxml_errflag = libxml_use_internal_errors(true);
+ $libxml_entity_loader = libxml_disable_entity_loader(true);
+ $doc = new DOMDocument;
+ if (trim($feed) == '') {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception('Remote feed being imported'
+ . ' is an Empty string or comes from an empty HTTP response');
+ }
+ $status = $doc->loadXML($feed);
+ libxml_disable_entity_loader($libxml_entity_loader);
+ libxml_use_internal_errors($libxml_errflag);
+
+ if (!$status) {
+ // prevent the class to generate an undefined variable notice (ZF-2590)
+ // Build error message
+ $error = libxml_get_last_error();
+ if ($error && $error->message) {
+ $errormsg = "DOMDocument cannot parse XML: {$error->message}";
+ } else {
+ $errormsg = "DOMDocument cannot parse XML";
+ }
+
+
+ /**
+ * @see Zend_Feed_Exception
+ */
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception($errormsg);
+ }
+
+ return $doc->saveXML($doc->documentElement);
+ }
}
--- a/web/lib/Zend/Feed/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -44,7 +44,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Atom extends Zend_Feed_Abstract
--- a/web/lib/Zend/Feed/Builder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Builder.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Builder.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -44,7 +44,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Builder implements Zend_Feed_Builder_Interface
--- a/web/lib/Zend/Feed/Builder/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Builder_Entry extends ArrayObject
--- a/web/lib/Zend/Feed/Builder/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Builder_Exception extends Zend_Feed_Exception
--- a/web/lib/Zend/Feed/Builder/Header.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder/Header.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Header.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Header.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Builder_Header extends ArrayObject
--- a/web/lib/Zend/Feed/Builder/Header/Itunes.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder/Header/Itunes.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Itunes.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Itunes.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Builder_Header_Itunes extends ArrayObject
--- a/web/lib/Zend/Feed/Builder/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Builder/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Builder_Interface
--- a/web/lib/Zend/Feed/Element.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Element.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Element.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: Element.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Element implements ArrayAccess
--- a/web/lib/Zend/Feed/Entry/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Entry/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Entry_Abstract extends Zend_Feed_Element
--- a/web/lib/Zend/Feed/Entry/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Entry/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Entry_Atom extends Zend_Feed_Entry_Abstract
--- a/web/lib/Zend/Feed/Entry/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Entry/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Entry_Rss extends Zend_Feed_Entry_Abstract
--- a/web/lib/Zend/Feed/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Exception extends Zend_Exception
--- a/web/lib/Zend/Feed/Pubsubhubbub.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pubsubhubbub.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Pubsubhubbub.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub
@@ -57,7 +57,7 @@
*/
const VERIFICATION_MODE_SYNC = 'sync';
const VERIFICATION_MODE_ASYNC = 'async';
-
+
/**
* Subscription States
*/
--- a/web/lib/Zend/Feed/Pubsubhubbub/CallbackAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/CallbackAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Callback
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CallbackAbstract.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: CallbackAbstract.php 24842 2012-05-31 18:31:28Z rob $
*/
/**
@@ -34,14 +34,14 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Callback
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Pubsubhubbub_CallbackAbstract
implements Zend_Feed_Pubsubhubbub_CallbackInterface
{
/**
- * An instance of Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface used
+ * An instance of Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface used
* to background save any verification tokens associated with a subscription
* or other.
*
@@ -219,7 +219,9 @@
protected function _detectCallbackUrl()
{
$callbackUrl = '';
- if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
+ if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {
+ $callbackUrl = $_SERVER['HTTP_X_ORIGINAL_URL'];
+ } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
$callbackUrl = $_SERVER['HTTP_X_REWRITE_URL'];
} elseif (isset($_SERVER['REQUEST_URI'])) {
$callbackUrl = $_SERVER['REQUEST_URI'];
--- a/web/lib/Zend/Feed/Pubsubhubbub/CallbackInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/CallbackInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Callback
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CallbackInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: CallbackInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Callback
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Pubsubhubbub_CallbackInterface
--- a/web/lib/Zend/Feed/Pubsubhubbub/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Exception extends Zend_Exception
--- a/web/lib/Zend/Feed/Pubsubhubbub/HttpResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/HttpResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpResponse.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: HttpResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_HttpResponse
--- a/web/lib/Zend/Feed/Pubsubhubbub/Model/ModelAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Model/ModelAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ModelAbstract.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: ModelAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Db_Table */
require_once 'Zend/Db/Table.php';
-/**
+/**
* @see Zend_Registry
* Seems to fix the file not being included by Zend_Db_Table...
*/
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Model_ModelAbstract
@@ -43,12 +43,12 @@
* @var Zend_Db_Table
*/
protected $_db = null;
-
+
/**
* Constructor
- *
- * @param array $data
- * @param Zend_Db_Table_Abstract $tableGateway
+ *
+ * @param array $data
+ * @param Zend_Db_Table_Abstract $tableGateway
* @return void
*/
public function __construct(Zend_Db_Table_Abstract $tableGateway = null)
--- a/web/lib/Zend/Feed/Pubsubhubbub/Model/Subscription.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Model/Subscription.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Entity
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Subscription.php 22507 2010-06-30 19:11:27Z ramon $
+ * @version $Id: Subscription.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Feed_Pubsubhubbub_Model_ModelAbstract */
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Entity
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Model_Subscription
--- a/web/lib/Zend/Feed/Pubsubhubbub/Model/SubscriptionInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Model/SubscriptionInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,21 +15,21 @@
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Entity
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubscriptionInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: SubscriptionInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
* @subpackage Entity
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Pubsubhubbub_Model_SubscriptionInterface
{
-
+
/**
* Save subscription to RDMBS
*
@@ -37,23 +37,23 @@
* @return bool
*/
public function setSubscription(array $data);
-
+
/**
* Get subscription by ID/key
- *
- * @param string $key
+ *
+ * @param string $key
* @return array
*/
public function getSubscription($key);
/**
* Determine if a subscription matching the key exists
- *
- * @param string $key
+ *
+ * @param string $key
* @return bool
*/
public function hasSubscription($key);
-
+
/**
* Delete a subscription
*
@@ -61,5 +61,5 @@
* @return bool
*/
public function deleteSubscription($key);
-
+
}
--- a/web/lib/Zend/Feed/Pubsubhubbub/Publisher.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Publisher.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Publisher.php 23075 2010-10-10 21:31:30Z padraic $
+ * @version $Id: Publisher.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Publisher
--- a/web/lib/Zend/Feed/Pubsubhubbub/Subscriber.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Subscriber.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Subscriber.php 23170 2010-10-19 18:29:24Z mabe $
+ * @version $Id: Subscriber.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Subscriber
@@ -122,7 +122,7 @@
* @var array
*/
protected $_authentications = array();
-
+
/**
* Tells the Subscriber to append any subscription identifier to the path
* of the base Callback URL. E.g. an identifier "subkey1" would be added
@@ -393,12 +393,12 @@
$this->_hubUrls = array_unique($this->_hubUrls);
return $this->_hubUrls;
}
-
+
/**
* Add authentication credentials for a given URL
- *
- * @param string $url
- * @param array $authentication
+ *
+ * @param string $url
+ * @param array $authentication
* @return Zend_Feed_Pubsubhubbub_Subscriber
*/
public function addAuthentication($url, array $authentication)
@@ -412,11 +412,11 @@
$this->_authentications[$url] = $authentication;
return $this;
}
-
+
/**
* Add authentication credentials for hub URLs
- *
- * @param array $authentications
+ *
+ * @param array $authentications
* @return Zend_Feed_Pubsubhubbub_Subscriber
*/
public function addAuthentications(array $authentications)
@@ -426,21 +426,21 @@
}
return $this;
}
-
+
/**
* Get all hub URL authentication credentials
- *
+ *
* @return array
*/
public function getAuthentications()
{
return $this->_authentications;
}
-
+
/**
* Set flag indicating whether or not to use a path parameter
- *
- * @param bool $bool
+ *
+ * @param bool $bool
* @return Zend_Feed_Pubsubhubbub_Subscriber
*/
public function usePathParameter($bool = true)
@@ -538,7 +538,7 @@
}
/**
- * Gets an instance of Zend_Feed_Pubsubhubbub_Storage_StorageInterface used
+ * Gets an instance of Zend_Feed_Pubsubhubbub_Storage_StorageInterface used
* to background save any verification tokens associated with a subscription
* or other.
*
@@ -745,7 +745,7 @@
foreach ($optParams as $name => $value) {
$params[$name] = $value;
}
-
+
// store subscription to storage
$now = new Zend_Date;
$expires = null;
--- a/web/lib/Zend/Feed/Pubsubhubbub/Subscriber/Callback.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Pubsubhubbub/Subscriber/Callback.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Callback.php 23069 2010-10-10 10:57:42Z padraic $
+ * @version $Id: Callback.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Feed_Pubsubhubbub
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Pubsubhubbub_Subscriber_Callback
@@ -49,7 +49,7 @@
* @var string
*/
protected $_feedUpdate = null;
-
+
/**
* Holds a manually set subscription key (i.e. identifies a unique
* subscription) which is typical when it is not passed in the query string
@@ -59,14 +59,14 @@
* @var string
*/
protected $_subscriptionKey = null;
-
+
/**
* After verification, this is set to the verified subscription's data.
*
* @var array
*/
protected $_currentSubscriptionData = null;
-
+
/**
* Set a subscription key to use for the current callback request manually.
* Required if usePathParameter is enabled for the Subscriber.
@@ -155,9 +155,9 @@
return false;
}
$required = array(
- 'hub_mode',
+ 'hub_mode',
'hub_topic',
- 'hub_challenge',
+ 'hub_challenge',
'hub_verify_token',
);
foreach ($required as $key) {
--- a/web/lib/Zend/Feed/Reader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reader.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Reader.php 25275 2013-03-06 09:55:33Z frosch $
*/
/**
@@ -42,7 +42,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader
@@ -240,7 +240,7 @@
$etag = $cache->load($cacheId.'_etag');
}
if ($lastModified === null) {
- $lastModified = $cache->load($cacheId.'_lastmodified');;
+ $lastModified = $cache->load($cacheId.'_lastmodified');
}
if ($etag) {
$client->setHeaders('If-None-Match', $etag);
@@ -266,6 +266,10 @@
$cache->save($response->getHeader('Last-Modified'), $cacheId.'_lastmodified');
}
}
+ if (empty($responseXml)) {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception('Feed failed to load, got empty response body');
+ }
return self::importString($responseXml);
} elseif ($cache) {
$data = $cache->load($cacheId);
@@ -279,6 +283,10 @@
}
$responseXml = $response->getBody();
$cache->save($responseXml, $cacheId);
+ if (empty($responseXml)) {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception('Feed failed to load, got empty response body');
+ }
return self::importString($responseXml);
} else {
$response = $client->request('GET');
@@ -286,7 +294,12 @@
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Feed failed to load, got response code ' . $response->getStatus());
}
- $reader = self::importString($response->getBody());
+ $responseXml = $response->getBody();
+ if (empty($responseXml)) {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception('Feed failed to load, got empty response body');
+ }
+ $reader = self::importString($responseXml);
$reader->setOriginalSourceUri($uri);
return $reader;
}
@@ -321,8 +334,18 @@
public static function importString($string)
{
$libxml_errflag = libxml_use_internal_errors(true);
+ $oldValue = libxml_disable_entity_loader(true);
$dom = new DOMDocument;
$status = $dom->loadXML($string);
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ libxml_disable_entity_loader($oldValue);
libxml_use_internal_errors($libxml_errflag);
if (!$status) {
@@ -393,8 +416,10 @@
}
$responseHtml = $response->getBody();
$libxml_errflag = libxml_use_internal_errors(true);
+ $oldValue = libxml_disable_entity_loader(true);
$dom = new DOMDocument;
$status = $dom->loadHTML($responseHtml);
+ libxml_disable_entity_loader($oldValue);
libxml_use_internal_errors($libxml_errflag);
if (!$status) {
// Build error message
@@ -418,7 +443,9 @@
* Detect the feed type of the provided feed
*
* @param Zend_Feed_Abstract|DOMDocument|string $feed
+ * @param bool $specOnly
* @return string
+ * @throws Zend_Feed_Exception
*/
public static function detectType($feed, $specOnly = false)
{
@@ -428,8 +455,18 @@
$dom = $feed;
} elseif(is_string($feed) && !empty($feed)) {
@ini_set('track_errors', 1);
+ $oldValue = libxml_disable_entity_loader(true);
$dom = new DOMDocument;
$status = @$dom->loadXML($feed);
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Feed/Exception.php';
+ throw new Zend_Feed_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ libxml_disable_entity_loader($oldValue);
@ini_restore('track_errors');
if (!$status) {
if (!isset($php_errormsg)) {
@@ -510,7 +547,7 @@
if ($xpath->query('//atom:feed')->length) {
return self::TYPE_ATOM_10;
}
-
+
if ($xpath->query('//atom:entry')->length) {
if ($specOnly == true) {
return self::TYPE_ATOM_10;
@@ -698,7 +735,7 @@
self::registerExtension('Thread');
self::registerExtension('Podcast');
}
-
+
/**
* Utility method to apply array_unique operation to a multidimensional
* array.
@@ -717,5 +754,5 @@
}
return $array;
}
-
+
}
--- a/web/lib/Zend/Feed/Reader/Collection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Collection.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Collection.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Collection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Collection extends ArrayObject
{
-
+
}
--- a/web/lib/Zend/Feed/Reader/Collection/Author.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Collection/Author.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,11 +14,11 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Author.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Author.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Reader_Collection_CollectionAbstract
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Collection_Author
--- a/web/lib/Zend/Feed/Reader/Collection/Category.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Collection/Category.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,11 +14,11 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Category.php 20953 2010-02-06 17:55:34Z padraic $
+ * @version $Id: Category.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Reader_Collection_CollectionAbstract
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Collection_Category
--- a/web/lib/Zend/Feed/Reader/Collection/CollectionAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Collection/CollectionAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CollectionAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CollectionAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Reader_Collection_CollectionAbstract extends ArrayObject
--- a/web/lib/Zend/Feed/Reader/Entry/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Entry/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Entry_Atom extends Zend_Feed_Reader_EntryAbstract implements Zend_Feed_Reader_EntryInterface
@@ -74,7 +74,7 @@
$threadClass = Zend_Feed_Reader::getPluginLoader()->getClassName('Thread_Entry');
$this->_extensions['Thread_Entry'] = new $threadClass($entry, $entryKey, $type);
-
+
$threadClass = Zend_Feed_Reader::getPluginLoader()->getClassName('DublinCore_Entry');
$this->_extensions['DublinCore_Entry'] = new $threadClass($entry, $entryKey, $type);
}
@@ -344,7 +344,7 @@
return $this->_data['commentfeedlink'];
}
-
+
/**
* Get category data as a Zend_Feed_Reader_Collection_Category object
*
@@ -357,7 +357,7 @@
}
$categoryCollection = $this->getExtension('Atom')->getCategories();
-
+
if (count($categoryCollection) == 0) {
$categoryCollection = $this->getExtension('DublinCore')->getCategories();
}
@@ -366,7 +366,7 @@
return $this->_data['categories'];
}
-
+
/**
* Get source feed metadata from the entry
*
@@ -382,7 +382,7 @@
$this->_data['source'] = $source;
- return $this->_data['source'];
+ return $this->_data['source'];
}
/**
--- a/web/lib/Zend/Feed/Reader/Entry/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Entry/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 22300 2010-05-26 10:13:34Z padraic $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -77,7 +77,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Entry_Rss extends Zend_Feed_Reader_EntryAbstract implements Zend_Feed_Reader_EntryInterface
@@ -159,7 +159,7 @@
if (array_key_exists('authors', $this->_data)) {
return $this->_data['authors'];
}
-
+
$authors = array();
$authors_dc = $this->getExtension('DublinCore')->getAuthors();
if (!empty($authors_dc)) {
@@ -169,7 +169,7 @@
);
}
}
-
+
if ($this->getType() !== Zend_Feed_Reader::TYPE_RSS_10
&& $this->getType() !== Zend_Feed_Reader::TYPE_RSS_090) {
$list = $this->_xpath->query($this->_xpathQueryRss . '//author');
@@ -189,7 +189,7 @@
$data['name'] = $matches[1];
}
$authors[] = $data;
- }
+ }
}
}
@@ -472,7 +472,7 @@
return $this->_data['links'];
}
-
+
/**
* Get all categories
*
@@ -503,7 +503,7 @@
} else {
$categoryCollection = $this->getExtension('DublinCore')->getCategories();
}
-
+
if (count($categoryCollection) == 0) {
$categoryCollection = $this->getExtension('Atom')->getCategories();
}
--- a/web/lib/Zend/Feed/Reader/EntryAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/EntryAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EntryAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EntryAbstract.php 25275 2013-03-06 09:55:33Z frosch $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Reader_EntryAbstract
@@ -72,9 +72,9 @@
/**
* Constructor
*
- * @param DOMElement $entry
- * @param int $entryKey
- * @param string $type
+ * @param DOMElement $entry
+ * @param int $entryKey
+ * @param string|null $type
* @return void
*/
public function __construct(DOMElement $entry, $entryKey, $type = null)
@@ -85,7 +85,9 @@
if ($type !== null) {
$this->_data['type'] = $type;
} else {
- $this->_data['type'] = Zend_Feed_Reader::detectType($feed);
+ $this->_data['type'] = Zend_Feed_Reader::detectType(
+ $this->_domDocument
+ );
}
$this->_loadExtensions();
}
@@ -212,8 +214,10 @@
}
}
require_once 'Zend/Feed/Exception.php';
- throw new Zend_Feed_Exception('Method: ' . $method
- . 'does not exist and could not be located on a registered Extension');
+ throw new Zend_Feed_Exception(
+ 'Method: ' . $method
+ . 'does not exist and could not be located on a registered Extension'
+ );
}
/**
--- a/web/lib/Zend/Feed/Reader/EntryInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/EntryInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EntryInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EntryInterface.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Reader_EntryInterface
@@ -133,7 +133,7 @@
* @return string
*/
public function getCommentFeedLink();
-
+
/**
* Get all categories
*
--- a/web/lib/Zend/Feed/Reader/Extension/Atom/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Atom/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 23170 2010-10-19 18:29:24Z mabe $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,7 +52,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Atom_Entry
@@ -127,9 +127,9 @@
if (array_key_exists('content', $this->_data)) {
return $this->_data['content'];
}
-
+
$content = null;
-
+
$el = $this->getXpath()->query($this->getXpathPrefix() . '/atom:content');
if($el->length > 0) {
$el = $el->item(0);
@@ -158,7 +158,7 @@
break;
}
}
-
+
//var_dump($content); exit;
if (!$content) {
@@ -169,7 +169,7 @@
return $this->_data['content'];
}
-
+
/**
* Parse out XHTML to remove the namespacing
*/
@@ -510,7 +510,7 @@
return $this->_data['commentfeedlink'];
}
-
+
/**
* Get all categories
*
@@ -551,7 +551,7 @@
return $this->_data['categories'];
}
-
+
/**
* Get source feed metadata from the entry
*
@@ -562,7 +562,7 @@
if (array_key_exists('source', $this->_data)) {
return $this->_data['source'];
}
-
+
$source = null;
// TODO: Investigate why _getAtomType() fails here. Is it even needed?
if ($this->getType() == Zend_Feed_Reader::TYPE_ATOM_10) {
@@ -572,9 +572,9 @@
$source = new Zend_Feed_Reader_Feed_Atom_Source($element, $this->getXpathPrefix());
}
}
-
+
$this->_data['source'] = $source;
- return $this->_data['source'];
+ return $this->_data['source'];
}
/**
@@ -607,7 +607,7 @@
$emailNode = $element->getElementsByTagName('email');
$nameNode = $element->getElementsByTagName('name');
$uriNode = $element->getElementsByTagName('uri');
-
+
if ($emailNode->length && strlen($emailNode->item(0)->nodeValue) > 0) {
$author['email'] = $emailNode->item(0)->nodeValue;
}
--- a/web/lib/Zend/Feed/Reader/Extension/Atom/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Atom/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 23170 2010-10-19 18:29:24Z mabe $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Atom_Feed
@@ -315,7 +315,7 @@
return $this->_data['image'];
}
-
+
/**
* Get the feed image
*
@@ -420,7 +420,7 @@
return $this->_data['hubs'];
}
$hubs = array();
-
+
$list = $this->_xpath->query($this->getXpathPrefix()
. '//atom:link[@rel="hub"]/@href');
@@ -458,7 +458,7 @@
return $this->_data['title'];
}
-
+
/**
* Get all categories
*
@@ -513,7 +513,7 @@
$emailNode = $element->getElementsByTagName('email');
$nameNode = $element->getElementsByTagName('name');
$uriNode = $element->getElementsByTagName('uri');
-
+
if ($emailNode->length && strlen($emailNode->item(0)->nodeValue) > 0) {
$author['email'] = $emailNode->item(0)->nodeValue;
}
--- a/web/lib/Zend/Feed/Reader/Extension/Content/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Content/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 22300 2010-05-26 10:13:34Z padraic $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Content_Entry
--- a/web/lib/Zend/Feed/Reader/Extension/CreativeCommons/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/CreativeCommons/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_CreativeCommons_Entry extends Zend_Feed_Reader_Extension_EntryAbstract
--- a/web/lib/Zend/Feed/Reader/Extension/CreativeCommons/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/CreativeCommons/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_CreativeCommons_Feed
--- a/web/lib/Zend/Feed/Reader/Extension/DublinCore/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/DublinCore/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_DublinCore_Entry
@@ -102,7 +102,7 @@
return $this->_data['authors'];
}
-
+
/**
* Get categories (subjects under DC)
*
@@ -113,13 +113,13 @@
if (array_key_exists('categories', $this->_data)) {
return $this->_data['categories'];
}
-
+
$list = $this->_xpath->evaluate($this->getXpathPrefix() . '//dc11:subject');
if (!$list->length) {
$list = $this->_xpath->evaluate($this->getXpathPrefix() . '//dc10:subject');
}
-
+
if ($list->length) {
$categoryCollection = new Zend_Feed_Reader_Collection_Category;
foreach ($list as $category) {
@@ -132,11 +132,11 @@
} else {
$categoryCollection = new Zend_Feed_Reader_Collection_Category;
}
-
+
$this->_data['categories'] = $categoryCollection;
- return $this->_data['categories'];
+ return $this->_data['categories'];
}
-
+
/**
* Get the entry content
--- a/web/lib/Zend/Feed/Reader/Extension/DublinCore/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/DublinCore/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_DublinCore_Feed
@@ -84,7 +84,7 @@
$list = $this->_xpath->query('//dc10:publisher');
}
}
-
+
if ($list->length) {
foreach ($list as $author) {
$authors[] = array(
@@ -261,7 +261,7 @@
return $this->_data['date'];
}
-
+
/**
* Get categories (subjects under DC)
*
@@ -272,13 +272,13 @@
if (array_key_exists('categories', $this->_data)) {
return $this->_data['categories'];
}
-
+
$list = $this->_xpath->evaluate($this->getXpathPrefix() . '//dc11:subject');
if (!$list->length) {
$list = $this->_xpath->evaluate($this->getXpathPrefix() . '//dc10:subject');
}
-
+
if ($list->length) {
$categoryCollection = new Zend_Feed_Reader_Collection_Category;
foreach ($list as $category) {
@@ -291,9 +291,9 @@
} else {
$categoryCollection = new Zend_Feed_Reader_Collection_Category;
}
-
+
$this->_data['categories'] = $categoryCollection;
- return $this->_data['categories'];
+ return $this->_data['categories'];
}
/**
--- a/web/lib/Zend/Feed/Reader/Extension/EntryAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/EntryAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EntryAbstract.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: EntryAbstract.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Reader_Extension_EntryAbstract
--- a/web/lib/Zend/Feed/Reader/Extension/FeedAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/FeedAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FeedAbstract.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -38,7 +38,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Reader_Extension_FeedAbstract
--- a/web/lib/Zend/Feed/Reader/Extension/Podcast/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Podcast/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Podcast_Entry extends Zend_Feed_Reader_Extension_EntryAbstract
--- a/web/lib/Zend/Feed/Reader/Extension/Podcast/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Podcast/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Podcast_Feed extends Zend_Feed_Reader_Extension_FeedAbstract
--- a/web/lib/Zend/Feed/Reader/Extension/Slash/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Slash/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Slash_Entry
--- a/web/lib/Zend/Feed/Reader/Extension/Syndication/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Syndication/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Syndication_Feed
--- a/web/lib/Zend/Feed/Reader/Extension/Thread/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/Thread/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_Thread_Entry
--- a/web/lib/Zend/Feed/Reader/Extension/WellFormedWeb/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Extension/WellFormedWeb/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Extension_WellFormedWeb_Entry
--- a/web/lib/Zend/Feed/Reader/Feed/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Feed/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Feed_Atom extends Zend_Feed_Reader_FeedAbstract
@@ -362,7 +362,7 @@
return $this->_data['hubs'];
}
-
+
/**
* Get all categories
*
@@ -375,7 +375,7 @@
}
$categoryCollection = $this->getExtension('Atom')->getCategories();
-
+
if (count($categoryCollection) == 0) {
$categoryCollection = $this->getExtension('DublinCore')->getCategories();
}
--- a/web/lib/Zend/Feed/Reader/Feed/Atom/Source.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Feed/Atom/Source.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Source.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Source.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Feed_Atom_Source extends Zend_Feed_Reader_Feed_Atom
@@ -49,7 +49,7 @@
$this->_data['type'] = $type;
$this->_registerNamespaces();
$this->_loadExtensions();
-
+
$atomClass = Zend_Feed_Reader::getPluginLoader()->getClassName('Atom_Feed');
$this->_extensions['Atom_Feed'] = new $atomClass($this->_domDocument, $this->_data['type'], $this->_xpath);
$atomClass = Zend_Feed_Reader::getPluginLoader()->getClassName('DublinCore_Feed');
@@ -58,12 +58,12 @@
$extension->setXpathPrefix(rtrim($xpathPrefix, '/') . '/atom:source');
}
}
-
+
/**
* Since this is not an Entry carrier but a vehicle for Feed metadata, any
* applicable Entry methods are stubbed out and do nothing.
*/
-
+
/**
* @return void
*/
@@ -73,7 +73,7 @@
* @return void
*/
public function current() {}
-
+
/**
* @return void
*/
@@ -88,12 +88,12 @@
* @return void
*/
public function rewind() {}
-
+
/**
* @return void
*/
public function valid() {}
-
+
/**
* @return void
*/
--- a/web/lib/Zend/Feed/Reader/Feed/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/Feed/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 23170 2010-10-19 18:29:24Z mabe $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_Feed_Rss extends Zend_Feed_Reader_FeedAbstract
@@ -105,7 +105,7 @@
if (array_key_exists('authors', $this->_data)) {
return $this->_data['authors'];
}
-
+
$authors = array();
$authors_dc = $this->getExtension('DublinCore')->getAuthors();
if (!empty($authors_dc)) {
@@ -139,7 +139,7 @@
$data['name'] = $matches[1];
}
$authors[] = $data;
- }
+ }
}
}
@@ -652,7 +652,7 @@
return $this->_data['hubs'];
}
-
+
/**
* Get all categories
*
@@ -683,7 +683,7 @@
} else {
$categoryCollection = $this->getExtension('DublinCore')->getCategories();
}
-
+
if (count($categoryCollection) == 0) {
$categoryCollection = $this->getExtension('Atom')->getCategories();
}
--- a/web/lib/Zend/Feed/Reader/FeedAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/FeedAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedAbstract.php 22092 2010-05-04 12:50:51Z padraic $
+ * @version $Id: FeedAbstract.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Reader_FeedAbstract implements Zend_Feed_Reader_FeedInterface
--- a/web/lib/Zend/Feed/Reader/FeedInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/FeedInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FeedInterface.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Reader_FeedInterface extends Iterator, Countable
@@ -111,7 +111,7 @@
* @return string|null
*/
public function getTitle();
-
+
/**
* Get all categories
*
--- a/web/lib/Zend/Feed/Reader/FeedSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Reader/FeedSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedSet.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: FeedSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Feed_Reader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Reader_FeedSet extends ArrayObject
@@ -81,7 +81,7 @@
));
}
}
-
+
/**
* Attempt to turn a relative URI into an absolute URI
*/
@@ -103,7 +103,7 @@
}
return $link;
}
-
+
/**
* Canonicalize relative path
*/
--- a/web/lib/Zend/Feed/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Rss extends Zend_Feed_Abstract
--- a/web/lib/Zend/Feed/Writer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,33 +14,33 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Writer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Writer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer
{
- /**
- * Namespace constants
- */
- const NAMESPACE_ATOM_03 = 'http://purl.org/atom/ns#';
+ /**
+ * Namespace constants
+ */
+ const NAMESPACE_ATOM_03 = 'http://purl.org/atom/ns#';
const NAMESPACE_ATOM_10 = 'http://www.w3.org/2005/Atom';
const NAMESPACE_RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
const NAMESPACE_RSS_090 = 'http://my.netscape.com/rdf/simple/0.9/';
const NAMESPACE_RSS_10 = 'http://purl.org/rss/1.0/';
/**
- * Feed type constants
- */
- const TYPE_ANY = 'any';
- const TYPE_ATOM_03 = 'atom-03';
+ * Feed type constants
+ */
+ const TYPE_ANY = 'any';
+ const TYPE_ATOM_03 = 'atom-03';
const TYPE_ATOM_10 = 'atom-10';
const TYPE_ATOM_ANY = 'atom';
const TYPE_RSS_090 = 'rss-090';
@@ -53,7 +53,7 @@
const TYPE_RSS_10 = 'rss-10';
const TYPE_RSS_20 = 'rss-20';
const TYPE_RSS_ANY = 'rss';
-
+
/**
* PluginLoader instance used by component
*
@@ -81,7 +81,7 @@
'entryRenderer' => array(),
'feedRenderer' => array(),
);
-
+
/**
* Set plugin loader for use with Extensions
*
@@ -257,7 +257,7 @@
self::registerExtension('Threading');
self::registerExtension('ITunes');
}
-
+
public static function lcfirst($str)
{
$str[0] = strtolower($str[0]);
--- a/web/lib/Zend/Feed/Writer/Deleted.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Deleted.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,17 +14,17 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Deleted.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Deleted.php 25160 2012-12-18 15:17:16Z matthew $
*/
require_once 'Zend/Feed/Writer/Feed/FeedAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Deleted
@@ -36,7 +36,7 @@
* @var array
*/
protected $_data = array();
-
+
/**
* Holds the value "atom" or "rss" depending on the feed type set when
* when last exported.
@@ -44,7 +44,7 @@
* @var string
*/
protected $_type = null;
-
+
/**
* Set the feed character encoding
*
@@ -71,7 +71,7 @@
}
return $this->_data['encoding'];
}
-
+
/**
* Unset a specific data point
*
@@ -83,7 +83,7 @@
unset($this->_data[$name]);
}
}
-
+
/**
* Set the current feed type being exported to "rss" or "atom". This allows
* other objects to gracefully choose whether to execute or not, depending
@@ -95,7 +95,7 @@
{
$this->_type = $type;
}
-
+
/**
* Retrieve the current or last feed type exported.
*
@@ -105,7 +105,7 @@
{
return $this->_type;
}
-
+
public function setReference($reference)
{
if (empty($reference) || !is_string($reference)) {
@@ -114,7 +114,7 @@
}
$this->_data['reference'] = $reference;
}
-
+
public function getReference()
{
if (!array_key_exists('reference', $this->_data)) {
@@ -122,23 +122,23 @@
}
return $this->_data['reference'];
}
-
+
public function setWhen($date = null)
{
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
}
$this->_data['when'] = $zdate;
}
-
+
public function getWhen()
{
if (!array_key_exists('when', $this->_data)) {
@@ -146,12 +146,12 @@
}
return $this->_data['when'];
}
-
+
public function setBy(array $by)
{
$author = array();
- if (!array_key_exists('name', $by)
- || empty($by['name'])
+ if (!array_key_exists('name', $by)
+ || empty($by['name'])
|| !is_string($by['name'])
) {
require_once 'Zend/Feed/Exception.php';
@@ -166,8 +166,8 @@
$author['email'] = $by['email'];
}
if (isset($by['uri'])) {
- if (empty($by['uri'])
- || !is_string($by['uri'])
+ if (empty($by['uri'])
+ || !is_string($by['uri'])
|| !Zend_Uri::check($by['uri'])
) {
require_once 'Zend/Feed/Exception.php';
@@ -177,7 +177,7 @@
}
$this->_data['by'] = $author;
}
-
+
public function getBy()
{
if (!array_key_exists('by', $this->_data)) {
@@ -185,12 +185,12 @@
}
return $this->_data['by'];
}
-
+
public function setComment($comment)
{
$this->_data['comment'] = $comment;
}
-
+
public function getComment()
{
if (!array_key_exists('comment', $this->_data)) {
--- a/web/lib/Zend/Feed/Writer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Entry.php 25160 2012-12-18 15:17:16Z matthew $
*/
/**
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Entry
@@ -46,14 +46,14 @@
* @var array
*/
protected $_data = array();
-
+
/**
* Registered extensions
*
* @var array
*/
protected $_extensions = array();
-
+
/**
* Holds the value "atom" or "rss" depending on the feed type set when
* when last exported.
@@ -61,7 +61,7 @@
* @var string
*/
protected $_type = null;
-
+
/**
* Constructor: Primarily triggers the registration of core extensions and
* loads those appropriate to this data container.
@@ -84,8 +84,8 @@
{
$author = array();
if (is_array($name)) {
- if (!array_key_exists('name', $name)
- || empty($name['name'])
+ if (!array_key_exists('name', $name)
+ || empty($name['name'])
|| !is_string($name['name'])
) {
require_once 'Zend/Feed/Exception.php';
@@ -100,8 +100,8 @@
$author['email'] = $name['email'];
}
if (isset($name['uri'])) {
- if (empty($name['uri'])
- || !is_string($name['uri'])
+ if (empty($name['uri'])
+ || !is_string($name['uri'])
|| !Zend_Uri::check($name['uri'])
) {
require_once 'Zend/Feed/Exception.php';
@@ -114,7 +114,7 @@
* Array notation (above) is preferred and will be the sole supported input from ZF 2.0
*/
} else {
- if (empty($name['name']) || !is_string($name['name'])) {
+ if (empty($name) || !is_string($name)) {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid parameter: "name" must be a non-empty string value');
}
@@ -148,7 +148,7 @@
$this->addAuthor($author);
}
}
-
+
/**
* Set the feed character encoding
*
@@ -214,10 +214,10 @@
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
@@ -235,10 +235,10 @@
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
@@ -295,7 +295,7 @@
*/
public function setCommentCount($count)
{
- if (empty($count) || !is_numeric($count) || (int) $count < 0) {
+ if ( !is_numeric($count) || (int) $count < 0) {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid parameter: "count" must be a non-empty integer number');
}
@@ -337,7 +337,7 @@
}
$this->_data['commentFeedLinks'][] = $link;
}
-
+
/**
* Set a links to an XML feed for any comments associated with this entry.
* Each link is an array with keys "uri" and "type", where type is one of:
@@ -456,7 +456,7 @@
}
return $this->_data['id'];
}
-
+
/**
* Get a link to the HTML source
*
@@ -536,12 +536,12 @@
}
return $this->_data['commentFeedLinks'];
}
-
+
/**
* Add a entry category
*
* @param string $category
- */
+ */
public function addCategory(array $category)
{
if (!isset($category['term'])) {
@@ -551,7 +551,7 @@
. ' readable category name');
}
if (isset($category['scheme'])) {
- if (empty($category['scheme'])
+ if (empty($category['scheme'])
|| !is_string($category['scheme'])
|| !Zend_Uri::check($category['scheme'])
) {
@@ -565,7 +565,7 @@
}
$this->_data['categories'][] = $category;
}
-
+
/**
* Set an array of entry categories
*
@@ -577,7 +577,7 @@
$this->addCategory($category);
}
}
-
+
/**
* Get the entry categories
*
@@ -590,7 +590,7 @@
}
return $this->_data['categories'];
}
-
+
/**
* Adds an enclosure to the entry. The array parameter may contain the
* keys 'uri', 'type' and 'length'. Only 'uri' is required for Atom, though the
@@ -611,7 +611,7 @@
}
$this->_data['enclosure'] = $enclosure;
}
-
+
/**
* Retrieve an array of all enclosures to be added to entry.
*
@@ -624,7 +624,7 @@
}
return $this->_data['enclosure'];
}
-
+
/**
* Unset a specific data point
*
@@ -636,7 +636,7 @@
unset($this->_data[$name]);
}
}
-
+
/**
* Get registered extensions
*
@@ -660,7 +660,7 @@
}
return null;
}
-
+
/**
* Set the current feed type being exported to "rss" or "atom". This allows
* other objects to gracefully choose whether to execute or not, depending
@@ -672,7 +672,7 @@
{
$this->_type = $type;
}
-
+
/**
* Retrieve the current or last feed type exported.
*
@@ -703,7 +703,7 @@
throw new Zend_Feed_Exception('Method: ' . $method
. ' does not exist and could not be located on a registered Extension');
}
-
+
/**
* Creates a new Zend_Feed_Writer_Source data container for use. This is NOT
* added to the current feed automatically, but is necessary to create a
@@ -731,7 +731,7 @@
{
$this->_data['source'] = $source;
}
-
+
/**
* @return Zend_Feed_Writer_Source
*/
--- a/web/lib/Zend/Feed/Writer/Exception/InvalidMethodException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Exception/InvalidMethodException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InvalidMethodException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InvalidMethodException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Feed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Exception_InvalidMethodException extends Zend_Exception
--- a/web/lib/Zend/Feed/Writer/Extension/Atom/Renderer/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/Atom/Renderer/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20325 2010-01-16 00:17:59Z padraic $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_Atom_Renderer_Feed
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render feed
- *
+ *
* @return void
*/
public function render()
@@ -63,23 +63,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append namespaces to root element of feed
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:atom',
- 'http://www.w3.org/2005/Atom');
+ 'http://www.w3.org/2005/Atom');
}
/**
* Set feed link elements
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setFeedLinks(DOMDocument $dom, DOMElement $root)
@@ -98,12 +98,12 @@
}
$this->_called = true;
}
-
+
/**
* Set PuSH hubs
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setHubs(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/Content/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/Content/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20325 2010-01-16 00:17:59Z padraic $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_Content_Renderer_Entry
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -58,23 +58,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append namespaces to root element
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:content',
- 'http://purl.org/rss/1.0/modules/content/');
+ 'http://purl.org/rss/1.0/modules/content/');
}
/**
* Set entry content
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setContent(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/DublinCore/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/DublinCore/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20325 2010-01-16 00:17:59Z padraic $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_DublinCore_Renderer_Entry
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -58,23 +58,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append namespaces to entry
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:dc',
- 'http://purl.org/dc/elements/1.1/');
+ 'http://purl.org/dc/elements/1.1/');
}
/**
* Set entry author elements
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -88,7 +88,7 @@
if (array_key_exists('name', $data)) {
$text = $dom->createTextNode($data['name']);
$author->appendChild($text);
- $root->appendChild($author);
+ $root->appendChild($author);
}
}
$this->_called = true;
--- a/web/lib/Zend/Feed/Writer/Extension/DublinCore/Renderer/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/DublinCore/Renderer/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20325 2010-01-16 00:17:59Z padraic $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_DublinCore_Renderer_Feed
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render feed
- *
+ *
* @return void
*/
public function render()
@@ -58,23 +58,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append namespaces to feed element
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:dc',
- 'http://purl.org/dc/elements/1.1/');
+ 'http://purl.org/dc/elements/1.1/');
}
/**
* Set feed authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -88,7 +88,7 @@
if (array_key_exists('name', $data)) {
$text = $dom->createTextNode($data['name']);
$author->appendChild($text);
- $root->appendChild($author);
+ $root->appendChild($author);
}
}
$this->_called = true;
--- a/web/lib/Zend/Feed/Writer/Extension/ITunes/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/ITunes/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_ITunes_Entry
@@ -33,18 +33,18 @@
* @var array
*/
protected $_data = array();
-
+
/**
* Encoding of all text values
*
* @var string
*/
protected $_encoding = 'UTF-8';
-
+
/**
* Set feed encoding
- *
- * @param string $enc
+ *
+ * @param string $enc
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setEncoding($enc)
@@ -52,17 +52,17 @@
$this->_encoding = $enc;
return $this;
}
-
+
/**
* Get feed encoding
- *
+ *
* @return string
*/
public function getEncoding()
{
return $this->_encoding;
}
-
+
/**
* Set a block value of "yes" or "no". You may also set an empty string.
*
@@ -83,11 +83,11 @@
}
$this->_data['block'] = $value;
}
-
+
/**
* Add authors to itunes entry
- *
- * @param array $values
+ *
+ * @param array $values
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function addItunesAuthors(array $values)
@@ -97,11 +97,11 @@
}
return $this;
}
-
+
/**
* Add author to itunes entry
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function addItunesAuthor($value)
@@ -114,14 +114,14 @@
if (!isset($this->_data['authors'])) {
$this->_data['authors'] = array();
}
- $this->_data['authors'][] = $value;
+ $this->_data['authors'][] = $value;
return $this;
}
-
+
/**
* Set duration
- *
- * @param int $value
+ *
+ * @param int $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setItunesDuration($value)
@@ -138,11 +138,11 @@
$this->_data['duration'] = $value;
return $this;
}
-
+
/**
* Set "explicit" flag
- *
- * @param bool $value
+ *
+ * @param bool $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setItunesExplicit($value)
@@ -155,11 +155,11 @@
$this->_data['explicit'] = $value;
return $this;
}
-
+
/**
* Set keywords
- *
- * @param array $value
+ *
+ * @param array $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setItunesKeywords(array $value)
@@ -179,11 +179,11 @@
$this->_data['keywords'] = $value;
return $this;
}
-
+
/**
* Set subtitle
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setItunesSubtitle($value)
@@ -196,11 +196,11 @@
$this->_data['subtitle'] = $value;
return $this;
}
-
+
/**
* Set summary
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Entry
*/
public function setItunesSummary($value)
@@ -213,12 +213,12 @@
$this->_data['summary'] = $value;
return $this;
}
-
+
/**
* Overloading to itunes specific setters
- *
- * @param string $method
- * @param array $params
+ *
+ * @param string $method
+ * @param array $params
* @return mixed
*/
public function __call($method, array $params)
@@ -232,7 +232,7 @@
'invalid method: ' . $method
);
}
- if (!array_key_exists($point, $this->_data)
+ if (!array_key_exists($point, $this->_data)
|| empty($this->_data[$point])
) {
return null;
--- a/web/lib/Zend/Feed/Writer/Extension/ITunes/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/ITunes/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 25107 2012-11-07 20:42:00Z rob $
*/
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_ITunes_Feed
@@ -33,18 +33,18 @@
* @var array
*/
protected $_data = array();
-
+
/**
* Encoding of all text values
*
* @var string
*/
protected $_encoding = 'UTF-8';
-
+
/**
* Set feed encoding
- *
- * @param string $enc
+ *
+ * @param string $enc
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setEncoding($enc)
@@ -52,17 +52,17 @@
$this->_encoding = $enc;
return $this;
}
-
+
/**
* Get feed encoding
- *
+ *
* @return string
*/
public function getEncoding()
{
return $this->_encoding;
}
-
+
/**
* Set a block value of "yes" or "no". You may also set an empty string.
*
@@ -84,11 +84,11 @@
$this->_data['block'] = $value;
return $this;
}
-
+
/**
* Add feed authors
- *
- * @param array $values
+ *
+ * @param array $values
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function addItunesAuthors(array $values)
@@ -98,11 +98,11 @@
}
return $this;
}
-
+
/**
* Add feed author
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function addItunesAuthor($value)
@@ -115,14 +115,14 @@
if (!isset($this->_data['authors'])) {
$this->_data['authors'] = array();
}
- $this->_data['authors'][] = $value;
+ $this->_data['authors'][] = $value;
return $this;
}
-
+
/**
* Set feed categories
- *
- * @param array $values
+ *
+ * @param array $values
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesCategories(array $values)
@@ -152,16 +152,16 @@
. ' contain a maximum of 255 characters each');
}
$this->_data['categories'][$key][] = $val;
- }
+ }
}
}
return $this;
}
-
+
/**
* Set feed image (icon)
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesImage($value)
@@ -180,11 +180,11 @@
$this->_data['image'] = $value;
return $this;
}
-
+
/**
* Set feed cumulative duration
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesDuration($value)
@@ -201,11 +201,11 @@
$this->_data['duration'] = $value;
return $this;
}
-
+
/**
* Set "explicit" flag
- *
- * @param bool $value
+ *
+ * @param string $value Valid values: "yes", "no" or "clean"
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesExplicit($value)
@@ -218,11 +218,11 @@
$this->_data['explicit'] = $value;
return $this;
}
-
+
/**
* Set feed keywords
- *
- * @param array $value
+ *
+ * @param array $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesKeywords(array $value)
@@ -242,11 +242,11 @@
$this->_data['keywords'] = $value;
return $this;
}
-
+
/**
* Set new feed URL
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesNewFeedUrl($value)
@@ -259,25 +259,25 @@
$this->_data['newFeedUrl'] = $value;
return $this;
}
-
+
/**
* Add feed owners
- *
- * @param array $values
+ *
+ * @param array $values
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function addItunesOwners(array $values)
{
foreach ($values as $value) {
- $this->addItunesOwner($value);
+ $this->addItunesOwner($value);
}
return $this;
}
-
+
/**
* Add feed owner
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function addItunesOwner(array $value)
@@ -300,11 +300,11 @@
$this->_data['owners'][] = $value;
return $this;
}
-
+
/**
* Set feed subtitle
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesSubtitle($value)
@@ -317,11 +317,11 @@
$this->_data['subtitle'] = $value;
return $this;
}
-
+
/**
* Set feed summary
- *
- * @param string $value
+ *
+ * @param string $value
* @return Zend_Feed_Writer_Extension_ITunes_Feed
*/
public function setItunesSummary($value)
@@ -334,12 +334,12 @@
$this->_data['summary'] = $value;
return $this;
}
-
+
/**
* Overloading: proxy to internal setters
- *
- * @param string $method
- * @param array $params
+ *
+ * @param string $method
+ * @param array $params
* @return mixed
*/
public function __call($method, array $params)
--- a/web/lib/Zend/Feed/Writer/Extension/ITunes/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/ITunes/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_ITunes_Renderer_Entry
@@ -41,10 +41,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -60,23 +60,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append namespaces to entry root
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:itunes',
- 'http://www.itunes.com/dtds/podcast-1.0.dtd');
+ 'http://www.itunes.com/dtds/podcast-1.0.dtd');
}
/**
* Set entry authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -93,12 +93,12 @@
$this->_called = true;
}
}
-
+
/**
* Set itunes block
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setBlock(DOMDocument $dom, DOMElement $root)
@@ -113,12 +113,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set entry duration
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDuration(DOMDocument $dom, DOMElement $root)
@@ -133,12 +133,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set explicit flag
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setExplicit(DOMDocument $dom, DOMElement $root)
@@ -153,12 +153,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set entry keywords
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setKeywords(DOMDocument $dom, DOMElement $root)
@@ -173,12 +173,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set entry subtitle
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setSubtitle(DOMDocument $dom, DOMElement $root)
@@ -193,12 +193,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set entry summary
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setSummary(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/ITunes/Renderer/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/ITunes/Renderer/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,26 +14,26 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_ITunes_Renderer_Feed
extends Zend_Feed_Writer_Extension_RendererAbstract
{
-
+
/**
* Set to TRUE if a rendering method actually renders something. This
* is used to prevent premature appending of a XML namespace declaration
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render feed
- *
+ *
* @return void
*/
public function render()
@@ -65,23 +65,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append feed namespaces
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:itunes',
- 'http://www.itunes.com/dtds/podcast-1.0.dtd');
+ 'http://www.itunes.com/dtds/podcast-1.0.dtd');
}
/**
* Set feed authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -98,12 +98,12 @@
}
$this->_called = true;
}
-
+
/**
* Set feed itunes block
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setBlock(DOMDocument $dom, DOMElement $root)
@@ -118,12 +118,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set feed categories
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCategories(DOMDocument $dom, DOMElement $root)
@@ -150,12 +150,12 @@
}
$this->_called = true;
}
-
+
/**
* Set feed image (icon)
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setImage(DOMDocument $dom, DOMElement $root)
@@ -169,12 +169,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set feed cumulative duration
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDuration(DOMDocument $dom, DOMElement $root)
@@ -189,12 +189,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set explicit flag
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setExplicit(DOMDocument $dom, DOMElement $root)
@@ -209,12 +209,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set feed keywords
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setKeywords(DOMDocument $dom, DOMElement $root)
@@ -229,12 +229,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set feed's new URL
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setNewFeedUrl(DOMDocument $dom, DOMElement $root)
@@ -249,12 +249,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
- * Set feed owners
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set feed owners
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setOwners(DOMDocument $dom, DOMElement $root)
@@ -277,12 +277,12 @@
}
$this->_called = true;
}
-
+
/**
* Set feed subtitle
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setSubtitle(DOMDocument $dom, DOMElement $root)
@@ -297,12 +297,12 @@
$root->appendChild($el);
$this->_called = true;
}
-
+
/**
* Set feed summary
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setSummary(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/RendererAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/RendererAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,21 +13,21 @@
* to padraic dot brady at yahoo dot com so we can send you a copy immediately.
*
* @category Zend
- * @package Zend_Feed_Writer_Entry_Rss
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @package Zend_Feed_Writer
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererAbstract.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: RendererAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererInterface
*/
require_once 'Zend/Feed/Writer/Extension/RendererInterface.php';
-
+
/**
* @category Zend
- * @package Zend_Feed_Writer_Entry_Rss
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @package Zend_Feed_Writer
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Feed_Writer_Extension_RendererAbstract
@@ -37,32 +37,32 @@
* @var DOMDocument
*/
protected $_dom = null;
-
+
/**
* @var mixed
*/
protected $_entry = null;
-
+
/**
* @var DOMElement
*/
protected $_base = null;
-
+
/**
* @var mixed
*/
protected $_container = null;
-
+
/**
* @var string
*/
protected $_type = null;
-
+
/**
* @var DOMElement
*/
protected $_rootElement = null;
-
+
/**
* Encoding of all text values
*
@@ -72,19 +72,19 @@
/**
* Constructor
- *
- * @param mixed $container
+ *
+ * @param mixed $container
* @return void
*/
public function __construct($container)
{
$this->_container = $container;
}
-
+
/**
* Set feed encoding
- *
- * @param string $enc
+ *
+ * @param string $enc
* @return Zend_Feed_Writer_Extension_RendererAbstract
*/
public function setEncoding($enc)
@@ -92,22 +92,22 @@
$this->_encoding = $enc;
return $this;
}
-
+
/**
* Get feed encoding
- *
+ *
* @return void
*/
public function getEncoding()
{
return $this->_encoding;
}
-
+
/**
* Set DOMDocument and DOMElement on which to operate
- *
- * @param DOMDocument $dom
- * @param DOMElement $base
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $base
* @return Zend_Feed_Writer_Extension_RendererAbstract
*/
public function setDomDocument(DOMDocument $dom, DOMElement $base)
@@ -116,21 +116,21 @@
$this->_base = $base;
return $this;
}
-
+
/**
* Get data container being rendered
- *
+ *
* @return mixed
*/
public function getDataContainer()
{
return $this->_container;
}
-
+
/**
* Set feed type
- *
- * @param string $type
+ *
+ * @param string $type
* @return Zend_Feed_Writer_Extension_RendererAbstract
*/
public function setType($type)
@@ -138,21 +138,21 @@
$this->_type = $type;
return $this;
}
-
+
/**
* Get feedtype
- *
+ *
* @return string
*/
public function getType()
{
return $this->_type;
}
-
+
/**
- * Set root element of document
- *
- * @param DOMElement $root
+ * Set root element of document
+ *
+ * @param DOMElement $root
* @return Zend_Feed_Writer_Extension_RendererAbstract
*/
public function setRootElement(DOMElement $root)
@@ -160,20 +160,20 @@
$this->_rootElement = $root;
return $this;
}
-
+
/**
* Get root element
- *
+ *
* @return DOMElement
*/
public function getRootElement()
{
return $this->_rootElement;
}
-
+
/**
* Append namespaces to feed
- *
+ *
* @return void
*/
abstract protected function _appendNamespaces();
--- a/web/lib/Zend/Feed/Writer/Extension/RendererInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/RendererInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: RendererInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Writer_Extension_RendererInterface
@@ -30,30 +30,30 @@
/**
* Constructor
*
- * @param mixed $container
+ * @param mixed $container
* @return void
*/
public function __construct($container);
-
+
/**
* Set DOMDocument and DOMElement on which to operate
- *
- * @param DOMDocument $dom
- * @param DOMElement $base
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $base
* @return void
*/
public function setDomDocument(DOMDocument $dom, DOMElement $base);
-
+
/**
* Render
- *
+ *
* @return void
*/
public function render();
-
+
/**
* Retrieve container
- *
+ *
* @return mixed
*/
public function getDataContainer();
--- a/web/lib/Zend/Feed/Writer/Extension/Slash/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/Slash/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 23077 2010-10-10 23:06:49Z padraic $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_Slash_Renderer_Entry
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -58,23 +58,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append entry namespaces
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:slash',
- 'http://purl.org/rss/1.0/modules/slash/');
+ 'http://purl.org/rss/1.0/modules/slash/');
}
/**
* Set entry comment count
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentCount(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/Threading/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/Threading/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_Threading_Renderer_Entry
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -60,23 +60,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append entry namespaces
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:thr',
- 'http://purl.org/syndication/thread/1.0');
+ 'http://purl.org/syndication/thread/1.0');
}
-
+
/**
* Set comment link
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentLink(DOMDocument $dom, DOMElement $root)
@@ -96,12 +96,12 @@
$root->appendChild($clink);
$this->_called = true;
}
-
+
/**
* Set comment feed links
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentFeedLinks(DOMDocument $dom, DOMElement $root)
@@ -126,9 +126,9 @@
/**
* Set entry comment count
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentCount(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Extension/WellFormedWeb/Renderer/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Extension/WellFormedWeb/Renderer/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,20 +14,20 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20325 2010-01-16 00:17:59Z padraic $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/**
* @see Zend_Feed_Writer_Extension_RendererAbstract
*/
require_once 'Zend/Feed/Writer/Extension/RendererAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Extension_WellFormedWeb_Renderer_Entry
@@ -42,10 +42,10 @@
* @var bool
*/
protected $_called = false;
-
+
/**
* Render entry
- *
+ *
* @return void
*/
public function render()
@@ -58,23 +58,23 @@
$this->_appendNamespaces();
}
}
-
+
/**
* Append entry namespaces
- *
+ *
* @return void
*/
protected function _appendNamespaces()
{
$this->getRootElement()->setAttribute('xmlns:wfw',
- 'http://wellformedweb.org/CommentAPI/');
+ 'http://wellformedweb.org/CommentAPI/');
}
-
+
/**
* Set entry comment feed links
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentFeedLinks(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20518 2010-01-22 14:00:30Z padraic $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -59,7 +59,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Feed extends Zend_Feed_Writer_Feed_FeedAbstract
@@ -107,7 +107,7 @@
{
$this->_entries[] = $deleted;
}
-
+
/**
* Creates a new Zend_Feed_Writer_Deleted data container for use. This is NOT
* added to the current feed automatically, but is necessary to create a
@@ -205,7 +205,7 @@
return count($this->_entries);
}
- /**
+ /**
* Return the current entry
*
* @return Zend_Feed_Reader_Entry_Interface
@@ -225,7 +225,7 @@
return $this->_entriesKey;
}
- /**
+ /**
* Move the feed pointer forward
*
* @return void
@@ -258,7 +258,8 @@
/**
* Attempt to build and return the feed resulting from the data set
*
- * @param $type The feed type "rss" or "atom" to export as
+ * @param string $type The feed type "rss" or "atom" to export as
+ * @param bool $ignoreExceptions
* @return string
*/
public function export($type, $ignoreExceptions = false)
--- a/web/lib/Zend/Feed/Writer/Feed/FeedAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Feed/FeedAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedAbstract.php 23090 2010-10-12 17:28:16Z padraic $
+ * @version $Id: FeedAbstract.php 25160 2012-12-18 15:17:16Z matthew $
*/
/**
@@ -55,7 +55,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Feed_FeedAbstract
@@ -66,7 +66,7 @@
* @var array
*/
protected $_data = array();
-
+
/**
* Holds the value "atom" or "rss" depending on the feed type set when
* when last exported.
@@ -74,7 +74,7 @@
* @var string
*/
protected $_type = null;
-
+
/**
* Constructor: Primarily triggers the registration of core extensions and
* loads those appropriate to this data container.
@@ -117,7 +117,7 @@
$author['uri'] = $name['uri'];
}
} else {
- if (empty($name['name']) || !is_string($name['name'])) {
+ if (empty($name) || !is_string($name)) {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid parameter: "name" must be a non-empty string value');
}
@@ -176,10 +176,10 @@
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
@@ -197,10 +197,10 @@
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
@@ -218,10 +218,10 @@
$zdate = null;
if ($date === null) {
$zdate = new Zend_Date;
- } elseif (ctype_digit($date) && strlen($date) == 10) {
- $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} elseif ($date instanceof Zend_Date) {
$zdate = $date;
+ } elseif (ctype_digit((string)$date)) {
+ $zdate = new Zend_Date($date, Zend_Date::TIMESTAMP);
} else {
require_once 'Zend/Feed/Exception.php';
throw new Zend_Feed_Exception('Invalid Zend_Date object or UNIX Timestamp passed as parameter');
@@ -310,7 +310,7 @@
}
$this->_data['id'] = $id;
}
-
+
/**
* Validate a URI using the tag scheme (RFC 4151)
*
@@ -359,9 +359,9 @@
throw new Zend_Feed_Exception('Invalid parameter: parameter \'uri\''
. ' must be a non-empty string and valid URI/IRI');
}
- $this->_data['image'] = $data;
+ $this->_data['image'] = $data;
}
-
+
/**
* Set a feed icon (URI at minimum). Parameter is a single array with the
* required key 'uri'. Only 'uri' is required and used for Atom rendering.
@@ -377,7 +377,7 @@
throw new Zend_Feed_Exception('Invalid parameter: parameter \'uri\''
. ' must be a non-empty string and valid URI/IRI');
}
- $this->_data['icon'] = $data;
+ $this->_data['icon'] = $data;
}
/**
@@ -453,7 +453,7 @@
}
$this->_data['encoding'] = $encoding;
}
-
+
/**
* Set the feed's base URL
*
@@ -468,7 +468,7 @@
}
$this->_data['baseUrl'] = $url;
}
-
+
/**
* Add a Pubsubhubbub hub endpoint URL
*
@@ -486,7 +486,7 @@
}
$this->_data['hubs'][] = $url;
}
-
+
/**
* Add Pubsubhubbub hub endpoint URLs
*
@@ -498,12 +498,12 @@
$this->addHub($url);
}
}
-
+
/**
* Add a feed category
*
* @param string $category
- */
+ */
public function addCategory(array $category)
{
if (!isset($category['term'])) {
@@ -513,7 +513,7 @@
. ' readable category name');
}
if (isset($category['scheme'])) {
- if (empty($category['scheme'])
+ if (empty($category['scheme'])
|| !is_string($category['scheme'])
|| !Zend_Uri::check($category['scheme'])
) {
@@ -527,7 +527,7 @@
}
$this->_data['categories'][] = $category;
}
-
+
/**
* Set an array of feed categories
*
@@ -671,7 +671,7 @@
}
return $this->_data['image'];
}
-
+
/**
* Get the feed icon URI
*
@@ -749,7 +749,7 @@
}
return $this->_data['encoding'];
}
-
+
/**
* Get the feed's base url
*
@@ -762,7 +762,7 @@
}
return $this->_data['baseUrl'];
}
-
+
/**
* Get the URLs used as Pubsubhubbub hubs endpoints
*
@@ -775,7 +775,7 @@
}
return $this->_data['hubs'];
}
-
+
/**
* Get the feed categories
*
@@ -798,7 +798,7 @@
{
$this->_data = array();
}
-
+
/**
* Set the current feed type being exported to "rss" or "atom". This allows
* other objects to gracefully choose whether to execute or not, depending
@@ -810,7 +810,7 @@
{
$this->_type = $type;
}
-
+
/**
* Retrieve the current or last feed type exported.
*
@@ -820,7 +820,7 @@
{
return $this->_type;
}
-
+
/**
* Unset a specific data point
*
@@ -832,7 +832,7 @@
unset($this->_data[$name]);
}
}
-
+
/**
* Method overloading: call given method on first extension implementing it
*
--- a/web/lib/Zend/Feed/Writer/Renderer/Entry/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Entry/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 22758 2010-08-01 19:23:27Z padraic $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Entry_Atom
@@ -38,8 +38,8 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Entry $container
+ *
+ * @param Zend_Feed_Writer_Entry $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Entry $container)
@@ -49,7 +49,7 @@
/**
* Render atom entry
- *
+ *
* @return Zend_Feed_Writer_Renderer_Entry_Atom
*/
public function render()
@@ -58,7 +58,7 @@
$this->_dom->formatOutput = true;
$entry = $this->_dom->createElementNS(Zend_Feed_Writer::NAMESPACE_ATOM_10, 'entry');
$this->_dom->appendChild($entry);
-
+
$this->_setSource($this->_dom, $entry);
$this->_setTitle($this->_dom, $entry);
$this->_setDescription($this->_dom, $entry);
@@ -77,15 +77,15 @@
$ext->setDomDocument($this->getDomDocument(), $entry);
$ext->render();
}
-
+
return $this;
}
-
+
/**
* Set entry title
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setTitle(DOMDocument $dom, DOMElement $root)
@@ -108,12 +108,12 @@
$cdata = $dom->createCDATASection($this->getDataContainer()->getTitle());
$title->appendChild($cdata);
}
-
+
/**
* Set entry description
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDescription(DOMDocument $dom, DOMElement $root)
@@ -129,12 +129,12 @@
);
$subtitle->appendChild($cdata);
}
-
+
/**
* Set date entry was modified
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateModified(DOMDocument $dom, DOMElement $root)
@@ -159,12 +159,12 @@
);
$updated->appendChild($text);
}
-
+
/**
* Set date entry was created
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateCreated(DOMDocument $dom, DOMElement $root)
@@ -179,12 +179,12 @@
);
$el->appendChild($text);
}
-
+
/**
- * Set entry authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set entry authors
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -218,12 +218,12 @@
}
}
}
-
+
/**
* Set entry enclosure
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setEnclosure(DOMDocument $dom, DOMElement $root)
@@ -243,7 +243,7 @@
$enclosure->setAttribute('href', $data['uri']);
$root->appendChild($enclosure);
}
-
+
protected function _setLink(DOMDocument $dom, DOMElement $root)
{
if(!$this->getDataContainer()->getLink()) {
@@ -255,12 +255,12 @@
$link->setAttribute('type', 'text/html');
$link->setAttribute('href', $this->getDataContainer()->getLink());
}
-
+
/**
- * Set entry identifier
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set entry identifier
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setId(DOMDocument $dom, DOMElement $root)
@@ -297,7 +297,7 @@
$text = $dom->createTextNode($this->getDataContainer()->getId());
$id->appendChild($text);
}
-
+
/**
* Validate a URI using the tag scheme (RFC 4151)
*
@@ -329,12 +329,12 @@
}
return false;
}
-
+
/**
- * Set entry content
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set entry content
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setContent(DOMDocument $dom, DOMElement $root)
@@ -364,7 +364,7 @@
$element->appendChild($xhtml);
$root->appendChild($element);
}
-
+
/**
* Load a HTML string and attempt to normalise to XML
*/
@@ -386,19 +386,19 @@
$xhtml = $content;
}
$xhtml = preg_replace(array(
- "/(<[\/]?)([a-zA-Z]+)/"
+ "/(<[\/]?)([a-zA-Z]+)/"
), '$1xhtml:$2', $xhtml);
$dom = new DOMDocument('1.0', $this->getEncoding());
$dom->loadXML('<xhtml:div xmlns:xhtml="http://www.w3.org/1999/xhtml">'
. $xhtml . '</xhtml:div>');
return $dom->documentElement;
}
-
+
/**
- * Set entry cateories
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set entry cateories
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCategories(DOMDocument $dom, DOMElement $root)
@@ -421,12 +421,12 @@
$root->appendChild($category);
}
}
-
+
/**
* Append Source element (Atom 1.0 Feed Metadata)
*
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setSource(DOMDocument $dom, DOMElement $root)
@@ -439,6 +439,6 @@
$renderer->setType($this->getType());
$element = $renderer->render()->getElement();
$imported = $dom->importNode($element, true);
- $root->appendChild($imported);
+ $root->appendChild($imported);
}
}
--- a/web/lib/Zend/Feed/Writer/Renderer/Entry/Atom/Deleted.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Entry/Atom/Deleted.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Deleted.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Deleted.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Entry_Atom_Deleted
@@ -36,8 +36,8 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Deleted $container
+ *
+ * @param Zend_Feed_Writer_Deleted $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Deleted $container)
@@ -47,7 +47,7 @@
/**
* Render atom entry
- *
+ *
* @return Zend_Feed_Writer_Renderer_Entry_Atom
*/
public function render()
@@ -56,21 +56,21 @@
$this->_dom->formatOutput = true;
$entry = $this->_dom->createElement('at:deleted-entry');
$this->_dom->appendChild($entry);
-
+
$entry->setAttribute('ref', $this->_container->getReference());
$entry->setAttribute('when', $this->_container->getWhen()->get(Zend_Date::ISO_8601));
-
+
$this->_setBy($this->_dom, $entry);
$this->_setComment($this->_dom, $entry);
-
+
return $this;
}
-
+
/**
* Set tombstone comment
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setComment(DOMDocument $dom, DOMElement $root)
@@ -84,12 +84,12 @@
$cdata = $dom->createCDATASection($this->getDataContainer()->getComment());
$c->appendChild($cdata);
}
-
+
/**
- * Set entry authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set entry authors
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setBy(DOMDocument $dom, DOMElement $root)
@@ -117,5 +117,5 @@
$uri->appendChild($text);
}
}
-
+
}
--- a/web/lib/Zend/Feed/Writer/Renderer/Entry/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Entry/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 22064 2010-04-30 14:02:38Z padraic $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Entry_Rss
@@ -36,18 +36,18 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Entry $container
+ *
+ * @param Zend_Feed_Writer_Entry $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Entry $container)
{
parent::__construct($container);
}
-
+
/**
* Render RSS entry
- *
+ *
* @return Zend_Feed_Writer_Renderer_Entry_Rss
*/
public function render()
@@ -57,7 +57,7 @@
$this->_dom->substituteEntities = false;
$entry = $this->_dom->createElement('item');
$this->_dom->appendChild($entry);
-
+
$this->_setTitle($this->_dom, $entry);
$this->_setDescription($this->_dom, $entry);
$this->_setDateCreated($this->_dom, $entry);
@@ -77,12 +77,12 @@
return $this;
}
-
+
/**
* Set entry title
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setTitle(DOMDocument $dom, DOMElement $root)
@@ -106,12 +106,12 @@
$text = $dom->createTextNode($this->getDataContainer()->getTitle());
$title->appendChild($text);
}
-
+
/**
* Set entry description
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDescription(DOMDocument $dom, DOMElement $root)
@@ -139,12 +139,12 @@
$text = $dom->createCDATASection($this->getDataContainer()->getDescription());
$subtitle->appendChild($text);
}
-
+
/**
* Set date entry was last modified
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateModified(DOMDocument $dom, DOMElement $root)
@@ -160,12 +160,12 @@
);
$updated->appendChild($text);
}
-
+
/**
* Set date entry was created
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateCreated(DOMDocument $dom, DOMElement $root)
@@ -179,12 +179,12 @@
);
}
}
-
+
/**
* Set entry authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -204,12 +204,12 @@
$root->appendChild($author);
}
}
-
+
/**
* Set entry enclosure
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setEnclosure(DOMDocument $dom, DOMElement $root)
@@ -255,12 +255,12 @@
$enclosure->setAttribute('url', $data['uri']);
$root->appendChild($enclosure);
}
-
+
/**
* Set link to entry
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLink(DOMDocument $dom, DOMElement $root)
@@ -273,12 +273,12 @@
$text = $dom->createTextNode($this->getDataContainer()->getLink());
$link->appendChild($text);
}
-
+
/**
* Set entry identifier
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setId(DOMDocument $dom, DOMElement $root)
@@ -300,12 +300,12 @@
$id->setAttribute('isPermaLink', 'false');
}
}
-
+
/**
* Set link to entry comments
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCommentLink(DOMDocument $dom, DOMElement $root)
@@ -319,12 +319,12 @@
$clink->appendChild($text);
$root->appendChild($clink);
}
-
+
/**
* Set entry categories
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCategories(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Atom.php 23090 2010-10-12 17:28:16Z padraic $
+ * @version $Id: Atom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Feed_Writer_Feed */
@@ -42,7 +42,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Feed_Atom
@@ -51,8 +51,8 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Feed $container
+ *
+ * @param Zend_Feed_Writer_Feed $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Feed $container)
@@ -62,7 +62,7 @@
/**
* Render Atom feed
- *
+ *
* @return Zend_Feed_Writer_Renderer_Feed_Atom
*/
public function render()
@@ -93,14 +93,14 @@
$this->_setCopyright($this->_dom, $root);
$this->_setCategories($this->_dom, $root);
$this->_setHubs($this->_dom, $root);
-
+
foreach ($this->_extensions as $ext) {
$ext->setType($this->getType());
$ext->setRootElement($this->getRootElement());
$ext->setDomDocument($this->getDomDocument(), $root);
$ext->render();
}
-
+
foreach ($this->_container as $entry) {
if ($this->getDataContainer()->getEncoding()) {
$entry->setEncoding($this->getDataContainer()->getEncoding());
--- a/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom/AtomAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom/AtomAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AtomAbstract.php 23090 2010-10-12 17:28:16Z padraic $
+ * @version $Id: AtomAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Feed_Writer_Feed */
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Feed_Atom_AtomAbstract
@@ -45,8 +45,8 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Feed $container
+ *
+ * @param Zend_Feed_Writer_Feed $container
* @return void
*/
public function __construct ($container)
@@ -56,9 +56,9 @@
/**
* Set feed language
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLanguage(DOMDocument $dom, DOMElement $root)
@@ -71,9 +71,9 @@
/**
* Set feed title
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setTitle(DOMDocument $dom, DOMElement $root)
@@ -100,9 +100,9 @@
/**
* Set feed description
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDescription(DOMDocument $dom, DOMElement $root)
@@ -119,9 +119,9 @@
/**
* Set date feed was last modified
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateModified(DOMDocument $dom, DOMElement $root)
@@ -149,9 +149,9 @@
/**
* Set feed generator string
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setGenerator(DOMDocument $dom, DOMElement $root)
@@ -176,9 +176,9 @@
/**
* Set link to feed
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLink(DOMDocument $dom, DOMElement $root)
@@ -195,9 +195,9 @@
/**
* Set feed links
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setFeedLinks(DOMDocument $dom, DOMElement $root)
@@ -227,12 +227,12 @@
$flink->setAttribute('href', $href);
}
}
-
+
/**
- * Set feed authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set feed authors
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -270,9 +270,9 @@
/**
* Set feed identifier
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setId(DOMDocument $dom, DOMElement $root)
@@ -302,12 +302,12 @@
$text = $dom->createTextNode($this->getDataContainer()->getId());
$id->appendChild($text);
}
-
+
/**
* Set feed copyright
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCopyright(DOMDocument $dom, DOMElement $root)
@@ -324,9 +324,9 @@
/**
* Set feed level logo (image)
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setImage(DOMDocument $dom, DOMElement $root)
@@ -340,12 +340,12 @@
$text = $dom->createTextNode($image['uri']);
$img->appendChild($text);
}
-
+
/**
* Set feed level icon (image)
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setIcon(DOMDocument $dom, DOMElement $root)
@@ -359,12 +359,12 @@
$text = $dom->createTextNode($image['uri']);
$img->appendChild($text);
}
-
+
/**
- * Set date feed was created
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set date feed was created
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateCreated(DOMDocument $dom, DOMElement $root)
@@ -378,12 +378,12 @@
);
}
}
-
+
/**
* Set base URL to feed links
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setBaseUrl(DOMDocument $dom, DOMElement $root)
@@ -394,12 +394,12 @@
}
$root->setAttribute('xml:base', $baseUrl);
}
-
+
/**
- * Set hubs to which this feed pushes
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set hubs to which this feed pushes
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setHubs(DOMDocument $dom, DOMElement $root)
@@ -415,12 +415,12 @@
$root->appendChild($hub);
}
}
-
+
/**
- * Set feed cateories
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ * Set feed cateories
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCategories(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom/Source.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Feed/Atom/Source.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,17 +14,17 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Source.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Source.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
require_once 'Zend/Feed/Writer/Renderer/Feed/Atom/AtomAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Feed_Atom_Source
@@ -34,18 +34,18 @@
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Feed_Source $container
+ *
+ * @param Zend_Feed_Writer_Feed_Source $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Source $container)
{
parent::__construct($container);
}
-
+
/**
* Render Atom Feed Metadata (Source element)
- *
+ *
* @return Zend_Feed_Writer_Renderer_Feed_Atom
*/
public function render()
@@ -71,7 +71,7 @@
$this->_setAuthors($this->_dom, $root);
$this->_setCopyright($this->_dom, $root);
$this->_setCategories($this->_dom, $root);
-
+
foreach ($this->_extensions as $ext) {
$ext->setType($this->getType());
$ext->setRootElement($this->getRootElement());
@@ -80,12 +80,12 @@
}
return $this;
}
-
+
/**
* Set feed generator string
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setGenerator(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Renderer/Feed/Rss.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/Feed/Rss.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rss.php 22107 2010-05-05 13:42:20Z padraic $
+ * @version $Id: Rss.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Feed_Writer_Feed */
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_Feed_Rss
@@ -46,8 +46,8 @@
{
/**
* Constructor
- *
- * @param Zend_Feed_Writer_Feed $container
+ *
+ * @param Zend_Feed_Writer_Feed $container
* @return void
*/
public function __construct (Zend_Feed_Writer_Feed $container)
@@ -57,7 +57,7 @@
/**
* Render RSS feed
- *
+ *
* @return Zend_Feed_Writer_Renderer_Feed_Rss
*/
public function render()
@@ -71,7 +71,7 @@
$rss = $this->_dom->createElement('rss');
$this->setRootElement($rss);
$rss->setAttribute('version', '2.0');
-
+
$channel = $this->_dom->createElement('channel');
$rss->appendChild($channel);
$this->_dom->appendChild($rss);
@@ -88,14 +88,14 @@
$this->_setAuthors($this->_dom, $channel);
$this->_setCopyright($this->_dom, $channel);
$this->_setCategories($this->_dom, $channel);
-
+
foreach ($this->_extensions as $ext) {
$ext->setType($this->getType());
$ext->setRootElement($this->getRootElement());
$ext->setDomDocument($this->getDomDocument(), $channel);
$ext->render();
}
-
+
foreach ($this->_container as $entry) {
if ($this->getDataContainer()->getEncoding()) {
$entry->setEncoding($this->getDataContainer()->getEncoding());
@@ -120,9 +120,9 @@
/**
* Set feed language
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLanguage(DOMDocument $dom, DOMElement $root)
@@ -138,9 +138,9 @@
/**
* Set feed title
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setTitle(DOMDocument $dom, DOMElement $root)
@@ -166,9 +166,9 @@
/**
* Set feed description
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDescription(DOMDocument $dom, DOMElement $root)
@@ -193,9 +193,9 @@
/**
* Set date feed was last modified
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateModified(DOMDocument $dom, DOMElement $root)
@@ -214,9 +214,9 @@
/**
* Set feed generator string
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setGenerator(DOMDocument $dom, DOMElement $root)
@@ -242,9 +242,9 @@
/**
* Set link to feed
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLink(DOMDocument $dom, DOMElement $root)
@@ -270,12 +270,12 @@
$link->setAttribute('isPermaLink', 'false');
}
}
-
+
/**
* Set feed authors
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setAuthors(DOMDocument $dom, DOMElement $root)
@@ -295,12 +295,12 @@
$root->appendChild($author);
}
}
-
+
/**
* Set feed copyright
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCopyright(DOMDocument $dom, DOMElement $root)
@@ -317,9 +317,9 @@
/**
* Set feed channel image
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setImage(DOMDocument $dom, DOMElement $root)
@@ -422,12 +422,12 @@
$img->appendChild($desc);
}
}
-
+
/**
* Set date feed was created
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setDateCreated(DOMDocument $dom, DOMElement $root)
@@ -444,9 +444,9 @@
/**
* Set date feed last build date
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setLastBuildDate(DOMDocument $dom, DOMElement $root)
@@ -462,12 +462,12 @@
);
$lastBuildDate->appendChild($text);
}
-
+
/**
* Set base URL to feed links
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setBaseUrl(DOMDocument $dom, DOMElement $root)
@@ -478,12 +478,12 @@
}
$root->setAttribute('xml:base', $baseUrl);
}
-
+
/**
* Set feed categories
- *
- * @param DOMDocument $dom
- * @param DOMElement $root
+ *
+ * @param DOMDocument $dom
+ * @param DOMElement $root
* @return void
*/
protected function _setCategories(DOMDocument $dom, DOMElement $root)
--- a/web/lib/Zend/Feed/Writer/Renderer/RendererAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/RendererAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,21 +14,21 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RendererAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
+
/** @see Zend_Feed_Writer */
require_once 'Zend/Feed/Writer.php';
/** @see Zend_Version */
require_once 'Zend/Version.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Renderer_RendererAbstract
@@ -38,7 +38,7 @@
* @var array
*/
protected $_extensions = array();
-
+
/**
* @var mixed
*/
@@ -58,14 +58,14 @@
* @var array
*/
protected $_exceptions = array();
-
+
/**
* Encoding of all text values
*
* @var string
*/
protected $_encoding = 'UTF-8';
-
+
/**
* Holds the value "atom" or "rss" depending on the feed type set when
* when last exported.
@@ -73,7 +73,7 @@
* @var string
*/
protected $_type = null;
-
+
/**
* @var DOMElement
*/
@@ -81,8 +81,8 @@
/**
* Constructor
- *
- * @param mixed $container
+ *
+ * @param mixed $container
* @return void
*/
public function __construct($container)
@@ -91,10 +91,10 @@
$this->setType($container->getType());
$this->_loadExtensions();
}
-
+
/**
* Save XML to string
- *
+ *
* @return string
*/
public function saveXml()
@@ -104,7 +104,7 @@
/**
* Get DOM document
- *
+ *
* @return DOMDocument
*/
public function getDomDocument()
@@ -114,7 +114,7 @@
/**
* Get document element from DOM
- *
+ *
* @return DOMElement
*/
public function getElement()
@@ -124,18 +124,18 @@
/**
* Get data container of items being rendered
- *
+ *
* @return mixed
*/
public function getDataContainer()
{
return $this->_container;
}
-
+
/**
* Set feed encoding
- *
- * @param string $enc
+ *
+ * @param string $enc
* @return Zend_Feed_Writer_Renderer_RendererAbstract
*/
public function setEncoding($enc)
@@ -143,10 +143,10 @@
$this->_encoding = $enc;
return $this;
}
-
+
/**
* Get feed encoding
- *
+ *
* @return string
*/
public function getEncoding()
@@ -156,8 +156,8 @@
/**
* Indicate whether or not to ignore exceptions
- *
- * @param bool $bool
+ *
+ * @param bool $bool
* @return Zend_Feed_Writer_Renderer_RendererAbstract
*/
public function ignoreExceptions($bool = true)
@@ -172,14 +172,14 @@
/**
* Get exception list
- *
+ *
* @return array
*/
public function getExceptions()
{
return $this->_exceptions;
}
-
+
/**
* Set the current feed type being exported to "rss" or "atom". This allows
* other objects to gracefully choose whether to execute or not, depending
@@ -191,7 +191,7 @@
{
$this->_type = $type;
}
-
+
/**
* Retrieve the current or last feed type exported.
*
@@ -201,7 +201,7 @@
{
return $this->_type;
}
-
+
/**
* Sets the absolute root element for the XML feed being generated. This
* helps simplify the appending of namespace declarations, but also ensures
@@ -214,7 +214,7 @@
{
$this->_rootElement = $root;
}
-
+
/**
* Retrieve the absolute root element for the XML feed being generated.
*
@@ -224,7 +224,7 @@
{
return $this->_rootElement;
}
-
+
/**
* Load extensions from Zend_Feed_Writer
*
--- a/web/lib/Zend/Feed/Writer/Renderer/RendererInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Renderer/RendererInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,68 +14,68 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RendererInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Feed_Writer_Renderer_RendererInterface
{
/**
* Render feed/entry
- *
+ *
* @return void
*/
public function render();
/**
* Save feed and/or entry to XML and return string
- *
+ *
* @return string
*/
public function saveXml();
/**
* Get DOM document
- *
+ *
* @return DOMDocument
*/
public function getDomDocument();
/**
* Get document element from DOM
- *
+ *
* @return DOMElement
*/
public function getElement();
/**
* Get data container containing feed items
- *
+ *
* @return mixed
*/
public function getDataContainer();
/**
* Should exceptions be ignored?
- *
+ *
* @return mixed
*/
public function ignoreExceptions();
-
+
/**
* Get list of thrown exceptions
- *
+ *
* @return array
*/
public function getExceptions();
-
+
/**
* Set the current feed type being exported to "rss" or "atom". This allows
* other objects to gracefully choose whether to execute or not, depending
@@ -84,14 +84,14 @@
* @param string $type
*/
public function setType($type);
-
+
/**
* Retrieve the current or last feed type exported.
*
* @return string Value will be "rss" or "atom"
*/
public function getType();
-
+
/**
* Sets the absolute root element for the XML feed being generated. This
* helps simplify the appending of namespace declarations, but also ensures
@@ -101,7 +101,7 @@
* @param DOMElement $root
*/
public function setRootElement(DOMElement $root);
-
+
/**
* Retrieve the absolute root element for the XML feed being generated.
*
--- a/web/lib/Zend/Feed/Writer/Source.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Feed/Writer/Source.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,17 +14,17 @@
*
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Source.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Source.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Feed/Writer/Feed/FeedAbstract.php';
-
+
/**
* @category Zend
* @package Zend_Feed_Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Feed_Writer_Source extends Zend_Feed_Writer_Feed_FeedAbstract
--- a/web/lib/Zend/File/Transfer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/File/Transfer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Transfer.php 21201 2010-02-24 22:13:20Z thomas $
+ * @version $Id: Transfer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_File_Transfer
--- a/web/lib/Zend/File/Transfer/Adapter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/File/Transfer/Adapter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22371 2010-06-04 20:09:44Z thomas $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_File_Transfer_Adapter_Abstract
--- a/web/lib/Zend/File/Transfer/Adapter/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/File/Transfer/Adapter/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 22563 2010-07-15 20:42:04Z thomas $
+ * @version $Id: Http.php 25087 2012-11-06 21:15:45Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_File_Transfer_Adapter_Http extends Zend_File_Transfer_Adapter_Abstract
@@ -128,6 +128,10 @@
// Workaround for a PHP error returning empty $_FILES when form data exceeds php settings
if (empty($this->_files) && ($content > 0)) {
if (is_array($files)) {
+ if (0 === count($files)) {
+ return false;
+ }
+
$files = current($files);
}
--- a/web/lib/Zend/File/Transfer/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/File/Transfer/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_File_Transfer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_File_Transfer_Exception extends Zend_Exception
--- a/web/lib/Zend/Filter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Filter.php 21096 2010-02-19 20:10:54Z thomas $
+ * @version $Id: Filter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Alnum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Alnum.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Alnum.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Alnum.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Alnum implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Alpha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Alpha.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Alpha.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Alpha.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Alpha implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/BaseName.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/BaseName.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BaseName.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BaseName.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_BaseName implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Boolean.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Boolean.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Boolean.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Boolean.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Boolean implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Callback.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Callback.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Callback.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Callback.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Callback implements Zend_Filter_Interface
@@ -130,7 +130,7 @@
/**
* Calls the filter per callback
*
- * @param $value mixed Options for the set callback
+ * @param mixed $value Options for the set callback
* @return mixed Result from the filter which was callbacked
*/
public function filter($value)
@@ -149,4 +149,4 @@
return call_user_func_array($this->_callback, $options);
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/Filter/Compress.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Compress.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Compress.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Compress/Bz2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Bz2.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Bz2.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Bz2.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Bz2 extends Zend_Filter_Compress_CompressAbstract
--- a/web/lib/Zend/Filter/Compress/CompressAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/CompressAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CompressAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CompressAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Filter_Compress_CompressAbstract implements Zend_Filter_Compress_CompressInterface
--- a/web/lib/Zend/Filter/Compress/CompressInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/CompressInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CompressInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CompressInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Filter_Compress_CompressInterface
--- a/web/lib/Zend/Filter/Compress/Gz.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Gz.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gz.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Gz.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Gz extends Zend_Filter_Compress_CompressAbstract
--- a/web/lib/Zend/Filter/Compress/Lzf.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Lzf.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Lzf.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Lzf.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Lzf implements Zend_Filter_Compress_CompressInterface
--- a/web/lib/Zend/Filter/Compress/Rar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Rar.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rar.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Rar.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Rar extends Zend_Filter_Compress_CompressAbstract
--- a/web/lib/Zend/Filter/Compress/Tar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Tar.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tar.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tar.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Tar extends Zend_Filter_Compress_CompressAbstract
--- a/web/lib/Zend/Filter/Compress/Zip.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Compress/Zip.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Zip.php 20126 2010-01-07 18:10:58Z ralph $
+ * @version $Id: Zip.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Compress_Zip extends Zend_Filter_Compress_CompressAbstract
@@ -218,7 +218,7 @@
if (!empty($target) && !is_dir($target)) {
$target = dirname($target);
}
-
+
if (!empty($target)) {
$target = rtrim($target, '/\\') . DIRECTORY_SEPARATOR;
}
@@ -249,8 +249,8 @@
);
}
}
- }
-
+ }
+
$res = @$zip->extractTo($target);
if ($res !== true) {
require_once 'Zend/Filter/Exception.php';
--- a/web/lib/Zend/Filter/Decompress.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Decompress.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decompress.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Decompress.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Decompress extends Zend_Filter_Compress
--- a/web/lib/Zend/Filter/Decrypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Decrypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decrypt.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Decrypt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Decrypt extends Zend_Filter_Encrypt
--- a/web/lib/Zend/Filter/Digits.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Digits.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Digits.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Digits.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Digits implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Dir.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Dir.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dir.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dir.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Dir implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Encrypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Encrypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Encrypt.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Encrypt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Encrypt implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Encrypt/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Encrypt/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Filter_Encrypt_Interface
--- a/web/lib/Zend/Filter/Encrypt/Mcrypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Encrypt/Mcrypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mcrypt.php 21212 2010-02-27 17:33:27Z thomas $
+ * @version $Id: Mcrypt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Encrypt_Mcrypt implements Zend_Filter_Encrypt_Interface
--- a/web/lib/Zend/Filter/Encrypt/Openssl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Encrypt/Openssl.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Openssl.php 21212 2010-02-27 17:33:27Z thomas $
+ * @version $Id: Openssl.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Encrypt_Openssl implements Zend_Filter_Encrypt_Interface
--- a/web/lib/Zend/Filter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Exception extends Zend_Exception
--- a/web/lib/Zend/Filter/File/Decrypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/File/Decrypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decrypt.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Decrypt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_File_Decrypt extends Zend_Filter_Decrypt
--- a/web/lib/Zend/Filter/File/Encrypt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/File/Encrypt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Encrypt.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Encrypt.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_File_Encrypt extends Zend_Filter_Encrypt
--- a/web/lib/Zend/Filter/File/LowerCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/File/LowerCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LowerCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LowerCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_File_LowerCase extends Zend_Filter_StringToLower
--- a/web/lib/Zend/Filter/File/Rename.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/File/Rename.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rename.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rename.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_File_Rename implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/File/UpperCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/File/UpperCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpperCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UpperCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_File_UpperCase extends Zend_Filter_StringToUpper
--- a/web/lib/Zend/Filter/HtmlEntities.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/HtmlEntities.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlEntities.php 21060 2010-02-15 21:56:07Z thomas $
+ * @version $Id: HtmlEntities.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_HtmlEntities implements Zend_Filter_Interface
@@ -197,6 +197,20 @@
*/
public function filter($value)
{
- return htmlentities((string) $value, $this->getQuoteStyle(), $this->getEncoding(), $this->getDoubleQuote());
+ $filtered = htmlentities((string) $value, $this->getQuoteStyle(), $this->getEncoding(), $this->getDoubleQuote());
+ if (strlen((string) $value) && !strlen($filtered)) {
+ if (!function_exists('iconv')) {
+ require_once 'Zend/Filter/Exception.php';
+ throw new Zend_Filter_Exception('Encoding mismatch has resulted in htmlentities errors');
+ }
+ $enc = $this->getEncoding();
+ $value = iconv('', $enc . '//IGNORE', (string) $value);
+ $filtered = htmlentities($value, $this->getQuoteStyle(), $enc, $this->getDoubleQuote());
+ if (!strlen($filtered)) {
+ require_once 'Zend/Filter/Exception.php';
+ throw new Zend_Filter_Exception('Encoding mismatch has resulted in htmlentities errors');
+ }
+ }
+ return $filtered;
}
}
--- a/web/lib/Zend/Filter/Inflector.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Inflector.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Inflector.php 21371 2010-03-07 19:56:01Z thomas $
+ * @version $Id: Inflector.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Inflector implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Input.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Input.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Input.php 22472 2010-06-20 07:36:16Z thomas $
+ * @version $Id: Input.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Input
@@ -801,6 +801,9 @@
$this->_data = array();
return;
}
+
+ // remember the default not empty message in case we want to temporarily change it
+ $preserveDefaultNotEmptyMessage = $this->_defaults[self::NOT_EMPTY_MESSAGE];
foreach ($this->_validatorRules as $ruleName => &$validatorRule) {
/**
@@ -836,7 +839,46 @@
$validatorRule[self::PRESENCE] = $this->_defaults[self::PRESENCE];
}
if (!isset($validatorRule[self::ALLOW_EMPTY])) {
- $validatorRule[self::ALLOW_EMPTY] = $this->_defaults[self::ALLOW_EMPTY];
+ $foundNotEmptyValidator = false;
+
+ foreach ($validatorRule as $rule) {
+ if ($rule === 'NotEmpty') {
+ $foundNotEmptyValidator = true;
+ // field may not be empty, we are ready
+ break 1;
+ }
+
+ if (is_array($rule)) {
+ $keys = array_keys($rule);
+ $classKey = array_shift($keys);
+ if (isset($rule[$classKey])) {
+ $ruleClass = $rule[$classKey];
+ if ($ruleClass === 'NotEmpty') {
+ $foundNotEmptyValidator = true;
+ // field may not be empty, we are ready
+ break 1;
+ }
+ }
+ }
+
+ // we must check if it is an object before using instanceof
+ if (!is_object($rule)) {
+ // it cannot be a NotEmpty validator, skip this one
+ continue;
+ }
+
+ if($rule instanceof Zend_Validate_NotEmpty) {
+ $foundNotEmptyValidator = true;
+ // field may not be empty, we are ready
+ break 1;
+ }
+ }
+
+ if (!$foundNotEmptyValidator) {
+ $validatorRule[self::ALLOW_EMPTY] = $this->_defaults[self::ALLOW_EMPTY];
+ } else {
+ $validatorRule[self::ALLOW_EMPTY] = false;
+ }
}
if (!isset($validatorRule[self::MESSAGES])) {
@@ -844,6 +886,8 @@
} else if (!is_array($validatorRule[self::MESSAGES])) {
$validatorRule[self::MESSAGES] = array($validatorRule[self::MESSAGES]);
} else if (array_intersect_key($validatorList, $validatorRule[self::MESSAGES])) {
+ // this seems pointless... it just re-adds what it already has...
+ // I can disable all this and not a single unit test fails...
// There are now corresponding numeric keys in the validation rule messages array
// Treat it as a named messages list for all rule validators
$unifiedMessages = $validatorRule[self::MESSAGES];
@@ -876,7 +920,17 @@
}
if ($validator instanceof Zend_Validate_NotEmpty) {
- $this->_defaults[self::NOT_EMPTY_MESSAGE] = $value;
+ /** we are changing the defaults here, this is alright if all subsequent validators are also a not empty
+ * validator, but it goes wrong if one of them is not AND is required!!!
+ * that is why we restore the default value at the end of this loop
+ */
+ if (is_array($value)) {
+ $temp = $value; // keep the original value
+ $this->_defaults[self::NOT_EMPTY_MESSAGE] = array_pop($temp);
+ unset($temp);
+ } else {
+ $this->_defaults[self::NOT_EMPTY_MESSAGE] = $value;
+ }
}
}
@@ -897,7 +951,12 @@
} else {
$this->_validateRule($validatorRule);
}
+
+ // reset the default not empty message
+ $this->_defaults[self::NOT_EMPTY_MESSAGE] = $preserveDefaultNotEmptyMessage;
}
+
+
/**
* Unset fields in $_data that have been added to other arrays.
@@ -972,9 +1031,12 @@
$messages = array();
foreach ($data as $fieldKey => $field) {
- $notEmptyValidator = $this->_getValidator('NotEmpty');
- $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldKey));
-
+ // if there is no Zend_Validate_NotEmpty instance in the rules, we will use the default
+ if (!($notEmptyValidator = $this->_getNotEmptyValidatorInstance($validatorRule))) {
+ $notEmptyValidator = $this->_getValidator('NotEmpty');
+ $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldKey));
+ }
+
if (!$notEmptyValidator->isValid($field)) {
foreach ($notEmptyValidator->getMessages() as $messageKey => $message) {
if (!isset($messages[$messageKey])) {
@@ -1011,8 +1073,12 @@
$field = array($field);
}
- $notEmptyValidator = $this->_getValidator('NotEmpty');
- $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldName));
+ // if there is no Zend_Validate_NotEmpty instance in the rules, we will use the default
+ if (!($notEmptyValidator = $this->_getNotEmptyValidatorInstance($validatorRule))) {
+ $notEmptyValidator = $this->_getValidator('NotEmpty');
+ $notEmptyValidator->setMessage($this->_getNotEmptyMessage($validatorRule[self::RULE], $fieldName));
+ }
+
if ($validatorRule[self::ALLOW_EMPTY]) {
$validatorChain = $validatorRule[self::VALIDATOR_CHAIN];
} else {
@@ -1021,7 +1087,7 @@
$validatorChain->addValidator($validatorRule[self::VALIDATOR_CHAIN]);
}
- foreach ($field as $value) {
+ foreach ($field as $key => $value) {
if ($validatorRule[self::ALLOW_EMPTY] && !$notEmptyValidator->isValid($value)) {
// Field is empty AND it's allowed. Do nothing.
continue;
@@ -1070,6 +1136,23 @@
}
}
}
+
+ /**
+ * Check a validatorRule for the presence of a NotEmpty validator instance.
+ * The purpose is to preserve things like a custom message, that may have been
+ * set on the validator outside Zend_Filter_Input.
+ * @param array $validatorRule
+ * @return mixed false if none is found, Zend_Validate_NotEmpty instance if found
+ */
+ protected function _getNotEmptyValidatorInstance($validatorRule) {
+ foreach ($validatorRule as $rule => $value) {
+ if (is_object($value) and $value instanceof Zend_Validate_NotEmpty) {
+ return $value;
+ }
+ }
+
+ return false;
+ }
/**
* @param mixed $classBaseName
--- a/web/lib/Zend/Filter/Int.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Int.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Int.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Int.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Int implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Filter_Interface
--- a/web/lib/Zend/Filter/LocalizedToNormalized.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/LocalizedToNormalized.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalizedToNormalized.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LocalizedToNormalized.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_LocalizedToNormalized implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/NormalizedToLocalized.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/NormalizedToLocalized.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NormalizedToLocalized.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NormalizedToLocalized.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_NormalizedToLocalized implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/Null.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Null.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Null implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/PregReplace.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/PregReplace.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PregReplace.php 21085 2010-02-18 21:08:39Z thomas $
+ * @version $Id: PregReplace.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_PregReplace implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/RealPath.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/RealPath.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RealPath.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RealPath.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_RealPath implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/StringToLower.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/StringToLower.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StringToLower.php 22790 2010-08-03 19:16:33Z thomas $
+ * @version $Id: StringToLower.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_StringToLower implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/StringToUpper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/StringToUpper.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StringToUpper.php 22790 2010-08-03 19:16:33Z thomas $
+ * @version $Id: StringToUpper.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_StringToUpper implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/StringTrim.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/StringTrim.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StringTrim.php 23401 2010-11-19 18:52:08Z ramon $
+ * @version $Id: StringTrim.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_StringTrim implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/StripNewlines.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/StripNewlines.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StripNewlines.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StripNewlines.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_StripNewlines implements Zend_Filter_Interface
--- a/web/lib/Zend/Filter/StripTags.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/StripTags.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StripTags.php 22806 2010-08-08 08:31:28Z thomas $
+ * @version $Id: StripTags.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_StripTags implements Zend_Filter_Interface
@@ -319,7 +319,7 @@
// If there are non-whitespace characters in the attribute string
if (strlen($tagAttributes)) {
// Parse iteratively for well-formed attributes
- preg_match_all('/(\w+)\s*=\s*(?:(")(.*?)"|(\')(.*?)\')/s', $tagAttributes, $matches);
+ preg_match_all('/([\w-]+)\s*=\s*(?:(")(.*?)"|(\')(.*?)\')/s', $tagAttributes, $matches);
// Initialize valid attribute accumulator
$tagAttributes = '';
--- a/web/lib/Zend/Filter/Word/CamelCaseToDash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/CamelCaseToDash.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CamelCaseToDash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CamelCaseToDash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_CamelCaseToDash extends Zend_Filter_Word_CamelCaseToSeparator
--- a/web/lib/Zend/Filter/Word/CamelCaseToSeparator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/CamelCaseToSeparator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CamelCaseToSeparator.php 21088 2010-02-19 06:47:48Z thomas $
+ * @version $Id: CamelCaseToSeparator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_CamelCaseToSeparator extends Zend_Filter_Word_Separator_Abstract
--- a/web/lib/Zend/Filter/Word/CamelCaseToUnderscore.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/CamelCaseToUnderscore.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CamelCaseToUnderscore.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CamelCaseToUnderscore.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_CamelCaseToUnderscore extends Zend_Filter_Word_CamelCaseToSeparator
--- a/web/lib/Zend/Filter/Word/DashToCamelCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/DashToCamelCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DashToCamelCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DashToCamelCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_DashToCamelCase extends Zend_Filter_Word_SeparatorToCamelCase
--- a/web/lib/Zend/Filter/Word/DashToSeparator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/DashToSeparator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DashToSeparator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DashToSeparator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_DashToSeparator extends Zend_Filter_Word_Separator_Abstract
--- a/web/lib/Zend/Filter/Word/DashToUnderscore.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/DashToUnderscore.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DashToUnderscore.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DashToUnderscore.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_DashToUnderscore extends Zend_Filter_Word_SeparatorToSeparator
--- a/web/lib/Zend/Filter/Word/Separator/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/Separator/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Filter
* @uses Zend_Filter_PregReplace
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Filter_Word_Separator_Abstract extends Zend_Filter_PregReplace
--- a/web/lib/Zend/Filter/Word/SeparatorToCamelCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/SeparatorToCamelCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SeparatorToCamelCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SeparatorToCamelCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_SeparatorToCamelCase extends Zend_Filter_Word_Separator_Abstract
--- a/web/lib/Zend/Filter/Word/SeparatorToDash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/SeparatorToDash.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SeparatorToDash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SeparatorToDash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_SeparatorToDash extends Zend_Filter_Word_SeparatorToSeparator
--- a/web/lib/Zend/Filter/Word/SeparatorToSeparator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/SeparatorToSeparator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SeparatorToSeparator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SeparatorToSeparator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_SeparatorToSeparator extends Zend_Filter_PregReplace
--- a/web/lib/Zend/Filter/Word/UnderscoreToCamelCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/UnderscoreToCamelCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UnderscoreToCamelCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UnderscoreToCamelCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_UnderscoreToCamelCase extends Zend_Filter_Word_SeparatorToCamelCase
--- a/web/lib/Zend/Filter/Word/UnderscoreToDash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/UnderscoreToDash.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UnderscoreToDash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UnderscoreToDash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_UnderscoreToDash extends Zend_Filter_Word_SeparatorToSeparator
--- a/web/lib/Zend/Filter/Word/UnderscoreToSeparator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Filter/Word/UnderscoreToSeparator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UnderscoreToSeparator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UnderscoreToSeparator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Filter_Word_UnderscoreToSeparator extends Zend_Filter_Word_SeparatorToSeparator
--- a/web/lib/Zend/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Form.php 23429 2010-11-22 23:06:46Z bittarman $
+ * @version $Id: Form.php 25223 2013-01-17 14:44:54Z frosch $
*/
class Zend_Form implements Iterator, Countable, Zend_Validate_Interface
{
@@ -353,6 +353,11 @@
unset($options['attribs']);
}
+ if (isset($options['subForms'])) {
+ $this->addSubForms($options['subForms']);
+ unset($options['subForms']);
+ }
+
$forbidden = array(
'Options', 'Config', 'PluginLoader', 'SubForms', 'Translator',
'Attrib', 'Default',
@@ -495,12 +500,13 @@
$loader->addPrefixPath($prefix, $path);
return $this;
case null:
- $prefix = rtrim($prefix, '_');
+ $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
+ $prefix = rtrim($prefix, $nsSeparator);
$path = rtrim($path, DIRECTORY_SEPARATOR);
foreach (array(self::DECORATOR, self::ELEMENT) as $type) {
$cType = ucfirst(strtolower($type));
$pluginPath = $path . DIRECTORY_SEPARATOR . $cType . DIRECTORY_SEPARATOR;
- $pluginPrefix = $prefix . '_' . $cType;
+ $pluginPrefix = $prefix . $nsSeparator . $cType;
$loader = $this->getPluginLoader($type);
$loader->addPrefixPath($pluginPrefix, $pluginPath);
}
@@ -1013,6 +1019,7 @@
* @param string|Zend_Form_Element $element
* @param string $name
* @param array|Zend_Config $options
+ * @throws Zend_Form_Exception on invalid element
* @return Zend_Form
*/
public function addElement($element, $name = null, $options = null)
@@ -1020,20 +1027,9 @@
if (is_string($element)) {
if (null === $name) {
require_once 'Zend/Form/Exception.php';
- throw new Zend_Form_Exception('Elements specified by string must have an accompanying name');
- }
-
- if (is_array($this->_elementDecorators)) {
- if (null === $options) {
- $options = array('decorators' => $this->_elementDecorators);
- } elseif ($options instanceof Zend_Config) {
- $options = $options->toArray();
- }
- if (is_array($options)
- && !array_key_exists('decorators', $options)
- ) {
- $options['decorators'] = $this->_elementDecorators;
- }
+ throw new Zend_Form_Exception(
+ 'Elements specified by string must have an accompanying name'
+ );
}
$this->_elements[$name] = $this->createElement($element, $name, $options);
@@ -1044,12 +1040,23 @@
$prefixPaths = array_merge($prefixPaths, $this->_elementPrefixPaths);
}
+ if (is_array($this->_elementDecorators)
+ && 0 == count($element->getDecorators())
+ ) {
+ $element->setDecorators($this->_elementDecorators);
+ }
+
if (null === $name) {
$name = $element->getName();
}
$this->_elements[$name] = $element;
$this->_elements[$name]->addPrefixPaths($prefixPaths);
+ } else {
+ require_once 'Zend/Form/Exception.php';
+ throw new Zend_Form_Exception(
+ 'Element must be specified by string or Zend_Form_Element instance'
+ );
}
$this->_order[$name] = $this->_elements[$name]->getOrder();
@@ -1096,12 +1103,22 @@
if ((null === $options) || !is_array($options)) {
$options = array('prefixPath' => $prefixPaths);
+
+ if (is_array($this->_elementDecorators)) {
+ $options['decorators'] = $this->_elementDecorators;
+ }
} elseif (is_array($options)) {
if (array_key_exists('prefixPath', $options)) {
$options['prefixPath'] = array_merge($prefixPaths, $options['prefixPath']);
} else {
$options['prefixPath'] = $prefixPaths;
}
+
+ if (is_array($this->_elementDecorators)
+ && !array_key_exists('decorators', $options)
+ ) {
+ $options['decorators'] = $this->_elementDecorators;
+ }
}
$class = $this->getPluginLoader(self::ELEMENT)->load($type);
@@ -1340,11 +1357,11 @@
{
$values = array();
$eBelongTo = null;
-
+
if ($this->isArray()) {
$eBelongTo = $this->getElementsBelongTo();
}
-
+
foreach ($this->getElements() as $key => $element) {
if (!$element->getIgnore()) {
$merge = array();
@@ -1637,12 +1654,8 @@
*/
public function addSubForms(array $subForms)
{
- foreach ($subForms as $key => $spec) {
- $name = null;
- if (!is_numeric($key)) {
- $name = $key;
- }
-
+ foreach ($subForms as $key => $spec) {
+ $name = (string) $key;
if ($spec instanceof Zend_Form) {
$this->addSubForm($spec, $name);
continue;
@@ -1656,6 +1669,10 @@
continue;
case (1 <= $argc):
$subForm = array_shift($spec);
+
+ if (!$subForm instanceof Zend_Form) {
+ $subForm = new Zend_Form_SubForm($subForm);
+ }
case (2 <= $argc):
$name = array_shift($spec);
case (3 <= $argc):
@@ -1786,7 +1803,11 @@
$group = array();
foreach ($elements as $element) {
if($element instanceof Zend_Form_Element) {
- $element = $element->getId();
+ $elementName = $element->getName();
+ if (!isset($this->_elements[$elementName])) {
+ $this->addElement($element);
+ }
+ $element = $elementName;
}
if (isset($this->_elements[$element])) {
@@ -2102,8 +2123,8 @@
* Given an array, an optional arrayPath and a key this method
* dissolves the arrayPath and unsets the key within the array
* if it exists.
- *
- * @param array $array
+ *
+ * @param array $array
* @param string|null $arrayPath
* @param string $key
* @return array
@@ -2113,7 +2134,7 @@
$unset =& $array;
$path = trim(strtr((string)$arrayPath, array('[' => '/', ']' => '')), '/');
$segs = ('' !== $path) ? explode('/', $path) : array();
-
+
foreach ($segs as $seg) {
if (!array_key_exists($seg, (array)$unset)) {
return $array;
@@ -2159,9 +2180,9 @@
* Subitems are inserted based on their order Setting if set,
* otherwise they are appended, the resulting numerical index
* may differ from the order value.
- *
+ *
* @access protected
- * @return array
+ * @return array
*/
public function getElementsAndSubFormsOrdered()
{
@@ -2187,8 +2208,8 @@
}
/**
- * This is a helper function until php 5.3 is widespreaded
- *
+ * This is a helper function until php 5.3 is widespreaded
+ *
* @param array $into
* @access protected
* @return void
@@ -2250,7 +2271,8 @@
}
}
foreach ($this->getSubForms() as $key => $form) {
- if (null !== $translator && !$form->hasTranslator()) {
+ if (null !== $translator && $this->hasTranslator()
+ && !$form->hasTranslator()) {
$form->setTranslator($translator);
}
if (isset($data[$key]) && !$form->isArray()) {
@@ -2457,10 +2479,21 @@
/**
* Are there errors in the form?
*
+ * @deprecated since 1.11.1 - use hasErrors() instead
* @return bool
*/
public function isErrors()
{
+ return $this->hasErrors();
+ }
+
+ /**
+ * Are there errors in the form?
+ *
+ * @return bool
+ */
+ public function hasErrors()
+ {
return $this->_errorsExist;
}
@@ -2480,7 +2513,7 @@
return $this->getSubForm($name)->getErrors(null, true);
}
}
-
+
foreach ($this->_elements as $key => $element) {
$errors[$key] = $element->getErrors();
}
@@ -2568,7 +2601,7 @@
/**
* Retrieve translated custom error messages
* Proxies to {@link _getErrorMessages()}.
- *
+ *
* @return array
*/
public function getCustomMessages()
@@ -2985,16 +3018,16 @@
return $this->_translator;
}
-
+
/**
* Does this form have its own specific translator?
- *
+ *
* @return bool
*/
public function hasTranslator()
{
return (bool)$this->_translator;
- }
+ }
/**
* Get global default translator object
@@ -3019,14 +3052,14 @@
/**
* Is there a default translation object set?
- *
+ *
* @return boolean
*/
public static function hasDefaultTranslator()
- {
+ {
return (bool)self::$_translatorDefault;
}
-
+
/**
* Indicate whether or not translation should be disabled
*
@@ -3272,7 +3305,7 @@
/**
* Load the default decorators
*
- * @return void
+ * @return Zend_Form
*/
public function loadDefaultDecorators()
{
@@ -3291,7 +3324,7 @@
/**
* Remove an element from iteration
- *
+ *
* @param string $name Element/group/form name
* @return void
*/
--- a/web/lib/Zend/Form/Decorator/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21146 2010-02-23 14:35:57Z yoshida@zend.co.jp $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Form_Decorator_Abstract implements Zend_Form_Decorator_Interface
{
--- a/web/lib/Zend/Form/Decorator/Callback.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Callback.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -44,9 +44,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Callback.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Callback.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Callback extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/Captcha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Captcha.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Captcha.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Captcha.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Captcha extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/Captcha/Word.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Captcha/Word.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Word.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Word.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Captcha_Word extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/Description.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Description.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -37,9 +37,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Description.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Description.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Description extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/DtDdWrapper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/DtDdWrapper.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,9 +31,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DtDdWrapper.php 22128 2010-05-06 11:18:02Z alab $
+ * @version $Id: DtDdWrapper.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_DtDdWrapper extends Zend_Form_Decorator_Abstract
{
@@ -51,14 +51,14 @@
* <dd>$content</dd>
*
* $dtLabel can be set via 'dtLabel' option, defaults to '\ '
- *
+ *
* @param string $content
* @return string
*/
public function render($content)
{
$elementName = $this->getElement()->getName();
-
+
$dtLabel = $this->getOption('dtLabel');
if( null === $dtLabel ) {
$dtLabel = ' ';
--- a/web/lib/Zend/Form/Decorator/Errors.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Errors.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Errors.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Errors.php 25253 2013-02-12 14:09:16Z frosch $
*/
class Zend_Form_Decorator_Errors extends Zend_Form_Decorator_Abstract
{
@@ -50,7 +50,15 @@
return $content;
}
- $errors = $element->getMessages();
+ // Get error messages
+ if ($element instanceof Zend_Form
+ && null !== $element->getElementsBelongTo()
+ ) {
+ $errors = $element->getMessages(null, true);
+ } else {
+ $errors = $element->getMessages();
+ }
+
if (empty($errors)) {
return $content;
}
--- a/web/lib/Zend/Form/Decorator/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Form_Decorator_Exception extends Zend_Form_Exception
--- a/web/lib/Zend/Form/Decorator/Fieldset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Fieldset.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fieldset.php 23426 2010-11-22 22:50:25Z bittarman $
+ * @version $Id: Fieldset.php 24961 2012-06-15 14:15:47Z adamlundrigan $
*/
class Zend_Form_Decorator_Fieldset extends Zend_Form_Decorator_Abstract
{
@@ -46,6 +46,7 @@
'helper',
'method',
'name',
+ 'accept-charset',
);
/**
@@ -131,7 +132,7 @@
$name = $element->getFullyQualifiedName();
$id = (string)$element->getId();
- if (!array_key_exists('id', $attribs) && '' !== $id) {
+ if ((!array_key_exists('id', $attribs) || $attribs['id'] == $id) && '' !== $id) {
$attribs['id'] = 'fieldset-' . $id;
}
--- a/web/lib/Zend/Form/Decorator/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -36,9 +36,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 25067 2012-11-03 14:20:28Z rob $
*/
class Zend_Form_Decorator_File
extends Zend_Form_Decorator_Abstract
@@ -117,16 +117,17 @@
$markup[] = $view->formHidden('UPLOAD_IDENTIFIER', uniqid(), array('id' => 'progress_key'));
}
+ $helper = $element->helper;
if ($element->isArray()) {
$name .= "[]";
$count = $element->getMultiFile();
for ($i = 0; $i < $count; ++$i) {
$htmlAttribs = $attribs;
$htmlAttribs['id'] .= '-' . $i;
- $markup[] = $view->formFile($name, $htmlAttribs);
+ $markup[] = $view->$helper($name, $htmlAttribs);
}
} else {
- $markup[] = $view->formFile($name, $attribs);
+ $markup[] = $view->$helper($name, $attribs);
}
$markup = implode($separator, $markup);
--- a/web/lib/Zend/Form/Decorator/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -37,9 +37,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Form.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Form.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Form extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/FormElements.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/FormElements.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormElements.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormElements.php 25093 2012-11-07 20:08:05Z rob $
*/
class Zend_Form_Decorator_FormElements extends Zend_Form_Decorator_Abstract
{
@@ -76,14 +76,29 @@
$belongsTo = ($form instanceof Zend_Form) ? $form->getElementsBelongTo() : null;
$elementContent = '';
+ $displayGroups = ($form instanceof Zend_Form) ? $form->getDisplayGroups() : array();
$separator = $this->getSeparator();
$translator = $form->getTranslator();
$items = array();
$view = $form->getView();
foreach ($form as $item) {
- $item->setView($view)
- ->setTranslator($translator);
+ $item->setView($view);
+
+ // Set translator
+ if (!$item->hasTranslator()) {
+ $item->setTranslator($translator);
+ }
+
if ($item instanceof Zend_Form_Element) {
+ foreach ($displayGroups as $group) {
+ $elementName = $item->getName();
+ $element = $group->getElement($elementName);
+ if ($element) {
+ // Element belongs to display group; only render in that
+ // context.
+ continue 2;
+ }
+ }
$item->setBelongsTo($belongsTo);
} elseif (!empty($belongsTo) && ($item instanceof Zend_Form)) {
if ($item->isArray()) {
--- a/web/lib/Zend/Form/Decorator/FormErrors.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/FormErrors.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormErrors.php 22316 2010-05-29 10:03:37Z alab $
+ * @version $Id: FormErrors.php 25257 2013-02-13 16:47:18Z frosch $
*/
class Zend_Form_Decorator_FormErrors extends Zend_Form_Decorator_Abstract
{
@@ -70,6 +70,12 @@
/**#@-*/
/**
+ * Whether or not to escape error label and error message
+ * @var bool
+ */
+ protected $_escape;
+
+ /**
* Render errors
*
* @param string $content
@@ -345,13 +351,13 @@
/**
* Get showCustomFormErrors
- *
+ *
* @return bool
*/
public function getShowCustomFormErrors()
{
if (null === $this->_showCustomFormErrors) {
- if (null === ($how = $this->getOption('showCustomFormErrors'))) {
+ if (null === ($show = $this->getOption('showCustomFormErrors'))) {
$this->setShowCustomFormErrors($this->_defaults['showCustomFormErrors']);
} else {
$this->setShowCustomFormErrors($show);
@@ -375,7 +381,7 @@
/**
* Get onlyCustomFormErrors
- *
+ *
* @return bool
*/
public function getOnlyCustomFormErrors()
@@ -405,6 +411,41 @@
}
/**
+ * Set whether or not to escape error label and error message
+ *
+ * Sets also the 'escape' option for the view helper
+ *
+ * @param bool $flag
+ * @return Zend_Form_Decorator_FormErrors
+ */
+ public function setEscape($flag)
+ {
+ $this->_escape = (bool) $flag;
+
+ // Set also option for view helper
+ $this->setOption('escape', $this->_escape);
+ return $this;
+ }
+
+ /**
+ * Get escape flag
+ *
+ * @return bool
+ */
+ public function getEscape()
+ {
+ if (null === $this->_escape) {
+ if (null !== ($escape = $this->getOption('escape'))) {
+ $this->setEscape($escape);
+ } else {
+ $this->setEscape(true);
+ }
+ }
+
+ return $this->_escape;
+ }
+
+ /**
* Render element label
*
* @param Zend_Form_Element $element
@@ -416,10 +457,19 @@
$label = $element->getLabel();
if (empty($label)) {
$label = $element->getName();
+
+ // Translate element name
+ if (null !== ($translator = $element->getTranslator())) {
+ $label = $translator->translate($label);
+ }
+ }
+
+ if ($this->getEscape()) {
+ $label = $view->escape($label);
}
return $this->getMarkupElementLabelStart()
- . $view->escape($label)
+ . $label
. $this->getMarkupElementLabelEnd();
}
@@ -451,9 +501,13 @@
. $this->getMarkupListItemEnd();
}
} else if ($subitem instanceof Zend_Form && !$this->ignoreSubForms()) {
- $content .= $this->getMarkupListStart()
- . $this->_recurseForm($subitem, $view)
- . $this->getMarkupListEnd();
+ $markup = $this->_recurseForm($subitem, $view);
+
+ if (!empty($markup)) {
+ $content .= $this->getMarkupListStart()
+ . $markup
+ . $this->getMarkupListEnd();
+ }
}
}
return $content;
--- a/web/lib/Zend/Form/Decorator/HtmlTag.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/HtmlTag.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -43,9 +43,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlTag.php 21970 2010-04-22 18:14:45Z alab $
+ * @version $Id: HtmlTag.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_HtmlTag extends Zend_Form_Decorator_Abstract
{
@@ -85,8 +85,9 @@
$key = htmlspecialchars($key, ENT_COMPAT, $enc);
if (is_array($val)) {
if (array_key_exists('callback', $val)
- && is_callable($val['callback'])) {
- $val = $val['callback']($this);
+ && is_callable($val['callback'])
+ ) {
+ $val = call_user_func($val['callback'], $this);
} else {
$val = implode(' ', $val);
}
@@ -231,7 +232,7 @@
/**
* Get encoding for use with htmlspecialchars()
- *
+ *
* @return string
*/
protected function _getEncoding()
--- a/web/lib/Zend/Form/Decorator/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_Image extends Zend_Form_Decorator_Abstract
{
--- a/web/lib/Zend/Form/Decorator/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -24,9 +24,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Form_Decorator_Interface
{
--- a/web/lib/Zend/Form/Decorator/Label.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Label.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,8 +29,9 @@
* - separator: separator to use between label and content (defaults to PHP_EOL)
* - placement: whether to append or prepend label to content (defaults to prepend)
* - tag: if set, used to wrap the label in an additional HTML tag
+ * - tagClass: if tag option is set, used to add a class to the label wrapper
* - opt(ional)Prefix: a prefix to the label to use when the element is optional
- * - opt(iona)lSuffix: a suffix to the label to use when the element is optional
+ * - opt(ional)Suffix: a suffix to the label to use when the element is optional
* - req(uired)Prefix: a prefix to the label to use when the element is required
* - req(uired)Suffix: a suffix to the label to use when the element is required
*
@@ -39,13 +40,20 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Label.php 22128 2010-05-06 11:18:02Z alab $
+ * @version $Id: Label.php 25243 2013-01-22 12:07:26Z frosch $
*/
class Zend_Form_Decorator_Label extends Zend_Form_Decorator_Abstract
{
/**
+ * Placement constants
+ */
+ const IMPLICIT = 'IMPLICIT';
+ const IMPLICIT_PREPEND = 'IMPLICIT_PREPEND';
+ const IMPLICIT_APPEND = 'IMPLICIT_APPEND';
+
+ /**
* Default placement: prepend
* @var string
*/
@@ -58,6 +66,12 @@
protected $_tag;
/**
+ * Class for the HTML tag with which to surround label
+ * @var string
+ */
+ protected $_tagClass;
+
+ /**
* Set element ID
*
* @param string $id
@@ -129,6 +143,43 @@
}
/**
+ * Set the class to apply to the HTML tag with which to surround label
+ *
+ * @param string $tagClass
+ * @return Zend_Form_Decorator_Label
+ */
+ public function setTagClass($tagClass)
+ {
+ if (empty($tagClass)) {
+ $this->_tagClass = null;
+ } else {
+ $this->_tagClass = (string) $tagClass;
+ }
+
+ $this->removeOption('tagClass');
+
+ return $this;
+ }
+
+ /**
+ * Get the class to apply to the HTML tag, if any, with which to surround label
+ *
+ * @return void
+ */
+ public function getTagClass()
+ {
+ if (null === $this->_tagClass) {
+ $tagClass = $this->getOption('tagClass');
+ if (null !== $tagClass) {
+ $this->removeOption('tagClass');
+ $this->setTagClass($tagClass);
+ }
+ }
+
+ return $this->_tagClass;
+ }
+
+ /**
* Get class with which to define label
*
* Appends either 'optional' or 'required' to class, depending on whether
@@ -242,7 +293,7 @@
/**
* Get label to render
*
- * @return void
+ * @return string
*/
public function getLabel()
{
@@ -257,10 +308,6 @@
return '';
}
- if (null !== ($translator = $element->getTranslator())) {
- $label = $translator->translate($label);
- }
-
$optPrefix = $this->getOptPrefix();
$optSuffix = $this->getOptSuffix();
$reqPrefix = $this->getReqPrefix();
@@ -278,6 +325,35 @@
return $label;
}
+ /**
+ * Determine if label should append, prepend or implicit content
+ *
+ * @return string
+ */
+ public function getPlacement()
+ {
+ $placement = $this->_placement;
+ if (null !== ($placementOpt = $this->getOption('placement'))) {
+ $placementOpt = strtoupper($placementOpt);
+ switch ($placementOpt) {
+ case self::APPEND:
+ case self::PREPEND:
+ case self::IMPLICIT:
+ case self::IMPLICIT_PREPEND:
+ case self::IMPLICIT_APPEND:
+ $placement = $this->_placement = $placementOpt;
+ break;
+ case false:
+ $placement = $this->_placement = null;
+ break;
+ default:
+ break;
+ }
+ $this->removeOption('placement');
+ }
+
+ return $placement;
+ }
/**
* Render a label
@@ -297,6 +373,7 @@
$separator = $this->getSeparator();
$placement = $this->getPlacement();
$tag = $this->getTag();
+ $tagClass = $this->getTagClass();
$id = $this->getId();
$class = $this->getClass();
$options = $this->getOptions();
@@ -308,7 +385,48 @@
if (!empty($label)) {
$options['class'] = $class;
- $label = $view->formLabel($element->getFullyQualifiedName(), trim($label), $options);
+ $label = trim($label);
+
+ switch ($placement) {
+ case self::IMPLICIT:
+ // Break was intentionally omitted
+
+ case self::IMPLICIT_PREPEND:
+ $options['escape'] = false;
+ $options['disableFor'] = true;
+
+ $label = $view->formLabel(
+ $element->getFullyQualifiedName(),
+ $label . $separator . $content,
+ $options
+ );
+ break;
+
+ case self::IMPLICIT_APPEND:
+ $options['escape'] = false;
+ $options['disableFor'] = true;
+
+ $label = $view->formLabel(
+ $element->getFullyQualifiedName(),
+ $content . $separator . $label,
+ $options
+ );
+ break;
+
+ case self::APPEND:
+ // Break was intentionally omitted
+
+ case self::PREPEND:
+ // Break was intentionally omitted
+
+ default:
+ $label = $view->formLabel(
+ $element->getFullyQualifiedName(),
+ $label,
+ $options
+ );
+ break;
+ }
} else {
$label = ' ';
}
@@ -316,8 +434,14 @@
if (null !== $tag) {
require_once 'Zend/Form/Decorator/HtmlTag.php';
$decorator = new Zend_Form_Decorator_HtmlTag();
- $decorator->setOptions(array('tag' => $tag,
- 'id' => $id . '-label'));
+ if (null !== $this->_tagClass) {
+ $decorator->setOptions(array('tag' => $tag,
+ 'id' => $id . '-label',
+ 'class' => $tagClass));
+ } else {
+ $decorator->setOptions(array('tag' => $tag,
+ 'id' => $id . '-label'));
+ }
$label = $decorator->render($label);
}
@@ -325,8 +449,18 @@
switch ($placement) {
case self::APPEND:
return $content . $separator . $label;
+
case self::PREPEND:
return $label . $separator . $content;
+
+ case self::IMPLICIT:
+ // Break was intentionally omitted
+
+ case self::IMPLICIT_PREPEND:
+ // Break was intentionally omitted
+
+ case self::IMPLICIT_APPEND:
+ return $label;
}
}
}
--- a/web/lib/Zend/Form/Decorator/Marker/File/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Marker/File/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -24,9 +24,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Form_Decorator_Marker_File_Interface
{
--- a/web/lib/Zend/Form/Decorator/PrepareElements.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/PrepareElements.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PrepareElements.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PrepareElements.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_PrepareElements extends Zend_Form_Decorator_FormElements
{
--- a/web/lib/Zend/Form/Decorator/Tooltip.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/Tooltip.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Tooltip.php$
*/
--- a/web/lib/Zend/Form/Decorator/ViewHelper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/ViewHelper.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -37,9 +37,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewHelper.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ViewHelper.php 25189 2013-01-08 08:32:43Z frosch $
*/
class Zend_Form_Decorator_ViewHelper extends Zend_Form_Decorator_Abstract
{
@@ -196,7 +196,8 @@
if ($element instanceof $type) {
if (stristr($type, 'button')) {
$element->content = $element->getLabel();
- return null;
+
+ return $element->getValue();
}
return $element->getLabel();
}
@@ -243,7 +244,18 @@
$helperObject->setTranslator($element->getTranslator());
}
- $elementContent = $view->$helper($name, $value, $attribs, $element->options);
+ // Check list separator
+ if (isset($attribs['listsep'])
+ && in_array($helper, array('formMulticheckbox', 'formRadio', 'formSelect'))
+ ) {
+ $listsep = $attribs['listsep'];
+ unset($attribs['listsep']);
+
+ $elementContent = $view->$helper($name, $value, $attribs, $element->options, $listsep);
+ } else {
+ $elementContent = $view->$helper($name, $value, $attribs, $element->options);
+ }
+
switch ($this->getPlacement()) {
case self::APPEND:
return $content . $separator . $elementContent;
--- a/web/lib/Zend/Form/Decorator/ViewScript.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Decorator/ViewScript.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -46,9 +46,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Decorator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewScript.php 23299 2010-11-05 04:38:14Z matthew $
+ * @version $Id: ViewScript.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Decorator_ViewScript extends Zend_Form_Decorator_Abstract
{
@@ -108,7 +108,7 @@
/**
* Set view script module
- *
+ *
* @param string $module
* @return Zend_Form_Decorator_ViewScript
*/
@@ -120,7 +120,7 @@
/**
* Get view script module
- *
+ *
* @return string|null
*/
public function getViewModule()
--- a/web/lib/Zend/Form/DisplayGroup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/DisplayGroup.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,9 +23,9 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DisplayGroup.php 22930 2010-09-09 18:45:18Z matthew $
+ * @version $Id: DisplayGroup.php 25093 2012-11-07 20:08:05Z rob $
*/
class Zend_Form_DisplayGroup implements Iterator,Countable
{
@@ -67,7 +67,7 @@
/**
* Form object to which the display group is currently registered
- *
+ *
* @var Zend_Form
*/
protected $_form;
@@ -284,15 +284,15 @@
/**
* Set form object to which the display group is attached
- *
- * @param Zend_Form $form
+ *
+ * @param Zend_Form $form
* @return Zend_Form_DisplayGroup
*/
public function setForm(Zend_Form $form)
{
$this->_form = $form;
- // Ensure any elements attached prior to setting the form are now
+ // Ensure any elements attached prior to setting the form are now
// removed from iteration by the form
foreach ($this->getElements() as $element) {
$form->removeFromIteration($element->getName());
@@ -303,7 +303,7 @@
/**
* Get form object to which the group is attached
- *
+ *
* @return Zend_Form|null
*/
public function getForm()
@@ -657,7 +657,7 @@
/**
* Load default decorators
*
- * @return void
+ * @return Zend_Form_DisplayGroup
*/
public function loadDefaultDecorators()
{
@@ -977,6 +977,16 @@
}
/**
+ * Does this display group have its own specific translator?
+ *
+ * @return bool
+ */
+ public function hasTranslator()
+ {
+ return (bool) $this->getTranslator();
+ }
+
+ /**
* Indicate whether or not translation should be disabled
*
* @param bool $flag
--- a/web/lib/Zend/Form/Element.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -36,9 +36,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Element.php 22464 2010-06-19 17:31:21Z alab $
+ * @version $Id: Element.php 25173 2012-12-22 20:05:32Z rob $
*/
class Zend_Form_Element implements Zend_Validate_Interface
{
@@ -315,20 +315,32 @@
$decorators = $this->getDecorators();
if (empty($decorators)) {
- $getId = create_function('$decorator',
- 'return $decorator->getElement()->getId()
- . "-element";');
$this->addDecorator('ViewHelper')
->addDecorator('Errors')
->addDecorator('Description', array('tag' => 'p', 'class' => 'description'))
- ->addDecorator('HtmlTag', array('tag' => 'dd',
- 'id' => array('callback' => $getId)))
+ ->addDecorator('HtmlTag', array(
+ 'tag' => 'dd',
+ 'id' => array('callback' => array(get_class($this), 'resolveElementId'))
+ ))
->addDecorator('Label', array('tag' => 'dt'));
}
return $this;
}
/**
+ * Used to resolve and return an element ID
+ *
+ * Passed to the HtmlTag decorator as a callback in order to provide an ID.
+ *
+ * @param Zend_Form_Decorator_Interface $decorator
+ * @return string
+ */
+ public static function resolveElementId(Zend_Form_Decorator_Interface $decorator)
+ {
+ return $decorator->getElement()->getId() . '-element';
+ }
+
+ /**
* Set object state from options array
*
* @param array $options
@@ -892,6 +904,7 @@
public function getAttribs()
{
$attribs = get_object_vars($this);
+ unset($attribs['helper']);
foreach ($attribs as $key => $value) {
if ('_' == substr($key, 0, 1)) {
unset($attribs[$key]);
@@ -1058,14 +1071,13 @@
$loader->addPrefixPath($prefix, $path);
return $this;
case null:
- $prefix = rtrim($prefix, '_');
- $path = rtrim($path, DIRECTORY_SEPARATOR);
+ $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
+ $prefix = rtrim($prefix, $nsSeparator) . $nsSeparator;
+ $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
foreach (array(self::DECORATOR, self::FILTER, self::VALIDATE) as $type) {
$cType = ucfirst(strtolower($type));
- $pluginPath = $path . DIRECTORY_SEPARATOR . $cType . DIRECTORY_SEPARATOR;
- $pluginPrefix = $prefix . '_' . $cType;
$loader = $this->getPluginLoader($type);
- $loader->addPrefixPath($pluginPrefix, $pluginPath);
+ $loader->addPrefixPath($prefix . $cType, $path . $cType . DIRECTORY_SEPARATOR);
}
return $this;
default:
@@ -1377,7 +1389,14 @@
if ($isArray && is_array($value)) {
$messages = array();
$errors = array();
- foreach ($value as $val) {
+ if (empty($value)) {
+ if ($this->isRequired()
+ || (!$this->isRequired() && !$this->getAllowEmpty())
+ ) {
+ $value = '';
+ }
+ }
+ foreach ((array)$value as $val) {
if (!$validator->isValid($val, $context)) {
$result = false;
if ($this->_hasErrorMessages()) {
@@ -2223,14 +2242,14 @@
if (null !== $translator) {
$message = $translator->translate($message);
}
- if (($this->isArray() || is_array($value))
- && !empty($value)
- ) {
+ if ($this->isArray() || is_array($value)) {
$aggregateMessages = array();
foreach ($value as $val) {
$aggregateMessages[] = str_replace('%value%', $val, $message);
}
- $messages[$key] = implode($this->getErrorMessageSeparator(), $aggregateMessages);
+ if (count($aggregateMessages)) {
+ $messages[$key] = implode($this->getErrorMessageSeparator(), $aggregateMessages);
+ }
} else {
$messages[$key] = str_replace('%value%', $value, $message);
}
--- a/web/lib/Zend/Form/Element/Button.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Button.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Button.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Button.php 25189 2013-01-08 08:32:43Z frosch $
*/
class Zend_Form_Element_Button extends Zend_Form_Element_Submit
{
@@ -39,4 +39,18 @@
* @var string
*/
public $helper = 'formButton';
+
+ /**
+ * Validate element value (pseudo)
+ *
+ * There is no need to reset the value
+ *
+ * @param mixed $value Is always ignored
+ * @param mixed $context Is always ignored
+ * @return boolean Returns always TRUE
+ */
+ public function isValid($value, $context = null)
+ {
+ return true;
+ }
}
--- a/web/lib/Zend/Form/Element/Captcha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Captcha.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Captcha.php 22328 2010-05-30 15:09:06Z bittarman $
+ * @version $Id: Captcha.php 24848 2012-05-31 19:28:48Z rob $
*/
/** @see Zend_Form_Element_Xhtml */
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Form_Element_Captcha extends Zend_Form_Element_Xhtml
@@ -127,24 +127,6 @@
}
/**
- * Return all attributes
- *
- * @return array
- */
- public function getAttribs()
- {
- $attribs = get_object_vars($this);
- unset($attribs['helper']);
- foreach ($attribs as $key => $value) {
- if ('_' == substr($key, 0, 1)) {
- unset($attribs[$key]);
- }
- }
-
- return $attribs;
- }
-
- /**
* Set options
*
* Overrides to allow passing captcha options
@@ -154,16 +136,22 @@
*/
public function setOptions(array $options)
{
+ $captcha = null;
+ $captchaOptions = array();
+
if (array_key_exists('captcha', $options)) {
+ $captcha = $options['captcha'];
if (array_key_exists('captchaOptions', $options)) {
- $this->setCaptcha($options['captcha'], $options['captchaOptions']);
+ $captchaOptions = $options['captchaOptions'];
unset($options['captchaOptions']);
- } else {
- $this->setCaptcha($options['captcha']);
}
unset($options['captcha']);
}
parent::setOptions($options);
+
+ if(null !== $captcha) {
+ $this->setCaptcha($captcha, $captchaOptions);
+ }
return $this;
}
@@ -178,18 +166,25 @@
$captcha = $this->getCaptcha();
$captcha->setName($this->getFullyQualifiedName());
- $decorators = $this->getDecorators();
+ if (!$this->loadDefaultDecoratorsIsDisabled()) {
+ $decorators = $this->getDecorators();
+ $decorator = $captcha->getDecorator();
+ $key = get_class($this->_getDecorator($decorator, null));
+
+ if (!empty($decorator) && !array_key_exists($key, $decorators)) {
+ array_unshift($decorators, $decorator);
+ }
- $decorator = $captcha->getDecorator();
- if (!empty($decorator)) {
- array_unshift($decorators, $decorator);
+ $decorator = array('Captcha', array('captcha' => $captcha));
+ $key = get_class($this->_getDecorator($decorator[0], $decorator[1]));
+
+ if ($captcha instanceof Zend_Captcha_Word && !array_key_exists($key, $decorators)) {
+ array_unshift($decorators, $decorator);
+ }
+
+ $this->setDecorators($decorators);
}
- $decorator = array('Captcha', array('captcha' => $captcha));
- array_unshift($decorators, $decorator);
-
- $this->setDecorators($decorators);
-
$this->setValue($this->getCaptcha()->generate());
return parent::render($view);
@@ -237,7 +232,8 @@
switch ($type) {
case null:
$loader = $this->getPluginLoader(self::CAPTCHA);
- $cPrefix = rtrim($prefix, '_') . '_Captcha';
+ $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
+ $cPrefix = rtrim($prefix, $nsSeparator) . $nsSeparator . 'Captcha';
$cPath = rtrim($path, '/\\') . '/Captcha';
$loader->addPrefixPath($cPrefix, $cPath);
return parent::addPrefixPath($prefix, $path);
@@ -253,7 +249,7 @@
/**
* Load default decorators
*
- * @return void
+ * @return Zend_Form_Element_Captcha
*/
public function loadDefaultDecorators()
{
--- a/web/lib/Zend/Form/Element/Checkbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Checkbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Checkbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Checkbox.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Checkbox extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Form_Element_Exception extends Zend_Form_Exception
--- a/web/lib/Zend/Form/Element/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 22371 2010-06-04 20:09:44Z thomas $
+ * @version $Id: File.php 25225 2013-01-17 15:59:16Z frosch $
*/
class Zend_Form_Element_File extends Zend_Form_Element_Xhtml
{
@@ -71,7 +71,7 @@
/**
* Load default decorators
*
- * @return void
+ * @return Zend_Form_Element_File
*/
public function loadDefaultDecorators()
{
@@ -150,7 +150,8 @@
}
if (empty($type)) {
- $pluginPrefix = rtrim($prefix, '_') . '_Transfer_Adapter';
+ $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
+ $pluginPrefix = rtrim($prefix, $nsSeparator) . $nsSeparator . 'Transfer' . $nsSeparator . 'Adapter';
$pluginPath = rtrim($path, DIRECTORY_SEPARATOR) . '/Transfer/Adapter/';
$loader = $this->getPluginLoader(self::TRANSFER_ADAPTER);
$loader->addPrefixPath($pluginPrefix, $pluginPath);
@@ -430,7 +431,7 @@
} else {
$adapter->setOptions(array('ignoreNoFile' => false), $this->getName());
if ($this->autoInsertNotEmptyValidator() && !$this->getValidator('NotEmpty')) {
- $this->addValidator = array('validator' => 'NotEmpty', 'breakChainOnFailure' => true);
+ $this->addValidator('NotEmpty', true);
}
}
--- a/web/lib/Zend/Form/Element/Hash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Hash.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hash.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Hash extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Hidden.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Hidden.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hidden.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hidden.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Hidden extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 22328 2010-05-30 15:09:06Z bittarman $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Image extends Zend_Form_Element_Xhtml
{
@@ -55,7 +55,7 @@
/**
* Load default decorators
*
- * @return void
+ * @return Zend_Form_Element_Image
*/
public function loadDefaultDecorators()
{
--- a/web/lib/Zend/Form/Element/Multi.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Multi.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Multi.php 22322 2010-05-30 11:12:57Z thomas $
+ * @version $Id: Multi.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Form_Element_Multi extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/MultiCheckbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/MultiCheckbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MultiCheckbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MultiCheckbox.php 24963 2012-06-15 14:32:23Z adamlundrigan $
*/
class Zend_Form_Element_MultiCheckbox extends Zend_Form_Element_Multi
{
@@ -49,4 +49,25 @@
* @var bool
*/
protected $_isArray = true;
+
+ /**
+ * Load default decorators
+ *
+ * @return Zend_Form_Element_MultiCheckbox
+ */
+ public function loadDefaultDecorators()
+ {
+ if ($this->loadDefaultDecoratorsIsDisabled()) {
+ return $this;
+ }
+
+ parent::loadDefaultDecorators();
+
+ // Disable 'for' attribute
+ if (false !== $decorator = $this->getDecorator('label')) {
+ $decorator->setOption('disableFor', true);
+ }
+
+ return $this;
+ }
}
--- a/web/lib/Zend/Form/Element/Multiselect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Multiselect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Multiselect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Multiselect.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Multiselect extends Zend_Form_Element_Select
{
--- a/web/lib/Zend/Form/Element/Password.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Password.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Password.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Password.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Password extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Radio.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Radio.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Radio.php 22328 2010-05-30 15:09:06Z bittarman $
+ * @version $Id: Radio.php 25109 2012-11-07 20:48:04Z rob $
*/
class Zend_Form_Element_Radio extends Zend_Form_Element_Multi
{
@@ -45,7 +45,7 @@
*
* Disables "for" attribute of label if label decorator enabled.
*
- * @return void
+ * @return Zend_Form_Element_Radio
*/
public function loadDefaultDecorators()
{
@@ -53,8 +53,14 @@
return $this;
}
parent::loadDefaultDecorators();
- $this->addDecorator('Label', array('tag' => 'dt',
- 'disableFor' => true));
+
+ // Disable 'for' attribute
+ if (isset($this->_decorators['Label'])
+ && !isset($this->_decorators['Label']['options']['disableFor']))
+ {
+ $this->_decorators['Label']['options']['disableFor'] = true;
+ }
+
return $this;
}
}
--- a/web/lib/Zend/Form/Element/Reset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Reset.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reset.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Reset.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Reset extends Zend_Form_Element_Submit
{
--- a/web/lib/Zend/Form/Element/Select.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Select.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,13 +28,19 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Select.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Select.php 25183 2013-01-07 17:38:54Z frosch $
*/
class Zend_Form_Element_Select extends Zend_Form_Element_Multi
{
/**
+ * 'multiple' attribute
+ * @var string
+ */
+ public $multiple = false;
+
+ /**
* Use formSelect view helper by default
* @var string
*/
--- a/web/lib/Zend/Form/Element/Submit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Submit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Submit.php 22328 2010-05-30 15:09:06Z bittarman $
+ * @version $Id: Submit.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Submit extends Zend_Form_Element_Xhtml
{
@@ -52,7 +52,7 @@
if (is_string($spec) && ((null !== $options) && is_string($options))) {
$options = array('label' => $options);
}
-
+
if (!isset($options['ignore'])) {
$options['ignore'] = true;
}
@@ -75,10 +75,10 @@
if (null === $value) {
$value = $this->getName();
- }
- if (null !== ($translator = $this->getTranslator())) {
- return $translator->translate($value);
+ if (null !== ($translator = $this->getTranslator())) {
+ return $translator->translate($value);
+ }
}
return $value;
@@ -108,7 +108,7 @@
*
* Uses only 'Submit' and 'DtDdWrapper' decorators by default.
*
- * @return void
+ * @return Zend_Form_Element_Submit
*/
public function loadDefaultDecorators()
{
--- a/web/lib/Zend/Form/Element/Text.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Text.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Text.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Text.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Text extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Textarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Textarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Textarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Textarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_Element_Textarea extends Zend_Form_Element_Xhtml
{
--- a/web/lib/Zend/Form/Element/Xhtml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Element/Xhtml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Form
* @subpackage Element
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xhtml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Xhtml.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Form_Element_Xhtml extends Zend_Form_Element
{
--- a/web/lib/Zend/Form/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Form_Exception extends Zend_Exception
--- a/web/lib/Zend/Form/SubForm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Form/SubForm.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
*
* @category Zend
* @package Zend_Form
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubForm.php 22328 2010-05-30 15:09:06Z bittarman $
+ * @version $Id: SubForm.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Form_SubForm extends Zend_Form
{
--- a/web/lib/Zend/Gdata.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gdata.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Gdata.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata extends Zend_Gdata_App
--- a/web/lib/Zend/Gdata/App.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: App.php 22972 2010-09-18 20:33:53Z ramon $
+ * @version $Id: App.php 25259 2013-02-13 17:38:12Z frosch $
*/
/**
@@ -42,6 +42,11 @@
require_once 'Zend/Gdata/App/MediaSource.php';
/**
+ * Zend_Uri/Http
+ */
+require_once 'Zend/Uri/Http.php';
+
+/**
* Provides Atom Publishing Protocol (APP) functionality. This class and all
* other components of Zend_Gdata_App are designed to work independently from
* other Zend_Gdata components in order to interact with generic APP services.
@@ -49,7 +54,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App
@@ -719,14 +724,14 @@
* @param string $uri
* @param Zend_Http_Client $client The client used for communication
* @param string $className The class which is used as the return type
+ * @param bool $useObjectMapping Enable/disable the use of XML to object mapping.
* @throws Zend_Gdata_App_Exception
- * @return string|Zend_Gdata_App_Feed Returns string only if the object
- * mapping has been disabled explicitly
- * by passing false to the
- * useObjectMapping() function.
+ * @return string|Zend_Gdata_App_Feed Returns string only if the fourth
+ * parameter ($useObjectMapping) is set
+ * to false.
*/
public static function import($uri, $client = null,
- $className='Zend_Gdata_App_Feed')
+ $className='Zend_Gdata_App_Feed', $useObjectMapping = true)
{
$app = new Zend_Gdata_App($client);
$requestData = $app->prepareRequest('GET', $uri);
@@ -734,7 +739,7 @@
$requestData['method'], $requestData['url']);
$feedContent = $response->getBody();
- if (!$this->_useObjectMapping) {
+ if (false === $useObjectMapping) {
return $feedContent;
}
$feed = self::importString($feedContent, $className);
@@ -1055,6 +1060,9 @@
break;
} catch (Zend_Exception $e) {
// package wasn't here- continue searching
+ } catch (ErrorException $e) {
+ // package wasn't here- continue searching
+ // @see ZF-7013 and ZF-11959
}
}
if ($foundClassName != null) {
@@ -1087,7 +1095,7 @@
* significant amount of time to complete. In some cases this may cause
* execution to timeout without proper precautions in place.
*
- * @param $feed The feed to iterate through.
+ * @param object $feed The feed to iterate through.
* @return mixed A new feed of the same type as the one originally
* passed in, containing all relevent entries.
*/
@@ -1117,7 +1125,7 @@
* NOTE: This will not work if you have customized the adapter
* already to use a proxy server or other interface.
*
- * @param $logfile The logfile to use when logging the requests
+ * @param string $logfile The logfile to use when logging the requests
*/
public function enableRequestDebugLogging($logfile)
{
--- a/web/lib/Zend/Gdata/App/AuthException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/AuthException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AuthException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AuthException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_AuthException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/App/BadMethodCallException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/BadMethodCallException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BadMethodCallException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BadMethodCallException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_BadMethodCallException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/App/Base.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Base.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_Base
--- a/web/lib/Zend/Gdata/App/BaseMediaSource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/BaseMediaSource.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BaseMediaSource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BaseMediaSource.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_BaseMediaSource implements Zend_Gdata_App_MediaSource
--- a/web/lib/Zend/Gdata/App/CaptchaRequiredException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/CaptchaRequiredException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CaptchaRequiredException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CaptchaRequiredException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_CaptchaRequiredException extends Zend_Gdata_App_AuthException
--- a/web/lib/Zend/Gdata/App/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -62,7 +62,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Entry extends Zend_Gdata_App_FeedEntryParent
--- a/web/lib/Zend/Gdata/App/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Exception extends Zend_Exception
--- a/web/lib/Zend/Gdata/App/Extension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extension.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Extension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_Extension extends Zend_Gdata_App_Base
--- a/web/lib/Zend/Gdata/App/Extension/Author.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Author.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Author.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Author.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Author extends Zend_Gdata_App_Extension_Person
--- a/web/lib/Zend/Gdata/App/Extension/Category.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Category.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Category.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Category.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Category extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Content.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Content.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Content.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Content.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Content extends Zend_Gdata_App_Extension_Text
--- a/web/lib/Zend/Gdata/App/Extension/Contributor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Contributor.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Contributor.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Contributor.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Contributor extends Zend_Gdata_App_Extension_Person
--- a/web/lib/Zend/Gdata/App/Extension/Control.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Control.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Control.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Control.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Control extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Draft.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Draft.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Draft.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Draft.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Draft extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Edited.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Edited.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Edited.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Edited.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Edited extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Element.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Element.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Element.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Element.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Element extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Email.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Email.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Email.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Email.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Email extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Generator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Generator.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Generator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Generator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Generator extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Icon.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Icon.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Icon.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Icon.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Icon extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Id.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Id.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Id.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Id.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Id extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Link.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Link.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Link.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Link.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Link extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Logo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Logo.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Logo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Logo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Logo extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Name.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Name.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Name.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Name.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Name extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Person.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Person.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Person.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Person.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_Extension_Person extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Published.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Published.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Published.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Published.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Published extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Rights.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Rights.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rights.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rights.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Rights extends Zend_Gdata_App_Extension_Text
--- a/web/lib/Zend/Gdata/App/Extension/Source.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Source.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Source.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Source.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Source extends Zend_Gdata_App_FeedSourceParent
--- a/web/lib/Zend/Gdata/App/Extension/Subtitle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Subtitle.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Subtitle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Subtitle.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Subtitle extends Zend_Gdata_App_Extension_Text
--- a/web/lib/Zend/Gdata/App/Extension/Summary.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Summary.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Summary.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Summary.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Summary extends Zend_Gdata_App_Extension_Text
--- a/web/lib/Zend/Gdata/App/Extension/Text.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Text.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Text.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Text.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_Extension_Text extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Title.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Title.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Title.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Title.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Title extends Zend_Gdata_App_Extension_Text
--- a/web/lib/Zend/Gdata/App/Extension/Updated.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Updated.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Updated.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Updated.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Updated extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Extension/Uri.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Extension/Uri.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Uri.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Uri.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Extension_Uri extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/App/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 22880 2010-08-21 23:44:00Z ramon $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Feed extends Zend_Gdata_App_FeedSourceParent
--- a/web/lib/Zend/Gdata/App/FeedEntryParent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/FeedEntryParent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedEntryParent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FeedEntryParent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -77,7 +77,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_FeedEntryParent extends Zend_Gdata_App_Base
--- a/web/lib/Zend/Gdata/App/FeedSourceParent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/FeedSourceParent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedSourceParent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FeedSourceParent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_App_FeedSourceParent extends Zend_Gdata_App_FeedEntryParent
--- a/web/lib/Zend/Gdata/App/HttpException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/HttpException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_HttpException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/App/IOException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/IOException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IOException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: IOException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_IOException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/App/InvalidArgumentException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/InvalidArgumentException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InvalidArgumentException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InvalidArgumentException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_InvalidArgumentException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/LoggingHttpClientAdapterSocket.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @version $Id: LoggingHttpClientAdapterSocket.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: LoggingHttpClientAdapterSocket.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_LoggingHttpClientAdapterSocket extends Zend_Http_Client_Adapter_Socket
--- a/web/lib/Zend/Gdata/App/MediaEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/MediaEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_MediaEntry extends Zend_Gdata_App_Entry
--- a/web/lib/Zend/Gdata/App/MediaFileSource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/MediaFileSource.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaFileSource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaFileSource.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
--- a/web/lib/Zend/Gdata/App/MediaSource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/MediaSource.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaSource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaSource.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Gdata_App_MediaSource
--- a/web/lib/Zend/Gdata/App/Util.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/Util.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Util.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Util.php 24643 2012-02-25 21:35:32Z adamlundrigan $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_Util
@@ -45,7 +45,7 @@
$rfc3339 = '/^(\d{4})\-?(\d{2})\-?(\d{2})((T|t)(\d{2})\:?(\d{2})' .
'\:?(\d{2})(\.\d{1,})?((Z|z)|([\+\-])(\d{2})\:?(\d{2})))?$/';
- if (ctype_digit($timestamp)) {
+ if (ctype_digit((string)$timestamp)) {
return gmdate('Y-m-d\TH:i:sP', $timestamp);
} elseif (preg_match($rfc3339, $timestamp) > 0) {
// timestamp is already properly formatted
--- a/web/lib/Zend/Gdata/App/VersionException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/App/VersionException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VersionException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VersionException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage App
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_App_VersionException extends Zend_Gdata_App_Exception
--- a/web/lib/Zend/Gdata/AuthSub.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/AuthSub.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AuthSub.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AuthSub.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_AuthSub
@@ -169,6 +169,7 @@
try {
$response = $client->request('GET');
} catch (Zend_Http_Client_Exception $e) {
+ ob_end_clean();
require_once 'Zend/Gdata/App/HttpException.php';
throw new Zend_Gdata_App_HttpException($e->getMessage(), $e);
}
@@ -210,6 +211,7 @@
try {
$response = $client->request('GET');
} catch (Zend_Http_Client_Exception $e) {
+ ob_end_clean();
require_once 'Zend/Gdata/App/HttpException.php';
throw new Zend_Gdata_App_HttpException($e->getMessage(), $e);
}
@@ -229,9 +231,9 @@
if ($client == null) {
$client = new Zend_Gdata_HttpClient();
}
- if (!$client instanceof Zend_Http_Client) {
+ if (!$client instanceof Zend_Gdata_HttpClient) {
require_once 'Zend/Gdata/App/HttpException.php';
- throw new Zend_Gdata_App_HttpException('Client is not an instance of Zend_Http_Client.');
+ throw new Zend_Gdata_App_HttpException('Client is not an instance of Zend_Gdata_HttpClient.');
}
$useragent = 'Zend_Framework_Gdata/' . Zend_Version::VERSION;
$client->setConfig(array(
--- a/web/lib/Zend/Gdata/Books.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Books.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Books.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,14 +57,14 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books extends Zend_Gdata
{
- const VOLUME_FEED_URI = 'http://books.google.com/books/feeds/volumes';
- const MY_LIBRARY_FEED_URI = 'http://books.google.com/books/feeds/users/me/collections/library/volumes';
- const MY_ANNOTATION_FEED_URI = 'http://books.google.com/books/feeds/users/me/volumes';
+ const VOLUME_FEED_URI = 'https://books.google.com/books/feeds/volumes';
+ const MY_LIBRARY_FEED_URI = 'https://books.google.com/books/feeds/users/me/collections/library/volumes';
+ const MY_ANNOTATION_FEED_URI = 'https://books.google.com/books/feeds/users/me/volumes';
const AUTH_SERVICE_NAME = 'print';
/**
--- a/web/lib/Zend/Gdata/Books/CollectionEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/CollectionEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CollectionEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CollectionEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_CollectionEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Books/CollectionFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/CollectionFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CollectionFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CollectionFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_CollectionFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Books/Extension/AnnotationLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/AnnotationLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AnnotationLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AnnotationLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_AnnotationLink extends
--- a/web/lib/Zend/Gdata/Books/Extension/BooksCategory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/BooksCategory.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BooksCategory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BooksCategory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_BooksCategory extends
--- a/web/lib/Zend/Gdata/Books/Extension/BooksLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/BooksLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BooksLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BooksLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_BooksLink extends Zend_Gdata_App_Extension_Link
--- a/web/lib/Zend/Gdata/Books/Extension/Embeddability.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/Embeddability.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Embeddability.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Embeddability.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_Embeddability extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Books/Extension/InfoLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/InfoLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -17,7 +17,7 @@
* @package Zend_Gdata
* @subpackage Books
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InfoLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InfoLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_InfoLink extends
--- a/web/lib/Zend/Gdata/Books/Extension/PreviewLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/PreviewLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PreviewLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PreviewLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_PreviewLink extends
--- a/web/lib/Zend/Gdata/Books/Extension/Review.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/Review.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Review.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Review.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_Review extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Books/Extension/ThumbnailLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/ThumbnailLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ThumbnailLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ThumbnailLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_ThumbnailLink extends
--- a/web/lib/Zend/Gdata/Books/Extension/Viewability.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/Extension/Viewability.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Viewability.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Viewability.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_Extension_Viewability extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Books/VolumeEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/VolumeEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VolumeEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VolumeEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -102,7 +102,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_VolumeEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Books/VolumeFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/VolumeFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VolumeFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VolumeFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_VolumeFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Books/VolumeQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Books/VolumeQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VolumeQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VolumeQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Books
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Books_VolumeQuery extends Zend_Gdata_Query
--- a/web/lib/Zend/Gdata/Calendar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Calendar.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Calendar.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -53,14 +53,14 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar extends Zend_Gdata
{
- const CALENDAR_FEED_URI = 'http://www.google.com/calendar/feeds';
- const CALENDAR_EVENT_FEED_URI = 'http://www.google.com/calendar/feeds/default/private/full';
+ const CALENDAR_FEED_URI = 'https://www.google.com/calendar/feeds';
+ const CALENDAR_EVENT_FEED_URI = 'https://www.google.com/calendar/feeds/default/private/full';
const AUTH_SERVICE_NAME = 'cl';
protected $_defaultPostUri = self::CALENDAR_EVENT_FEED_URI;
--- a/web/lib/Zend/Gdata/Calendar/EventEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/EventEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EventEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EventEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_EventEntry extends Zend_Gdata_Kind_EventEntry
--- a/web/lib/Zend/Gdata/Calendar/EventFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/EventFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EventFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EventFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_EventFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Calendar/EventQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/EventQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EventQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EventQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,13 +39,13 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_EventQuery extends Zend_Gdata_Query
{
- const CALENDAR_FEED_URI = 'http://www.google.com/calendar/feeds';
+ const CALENDAR_FEED_URI = 'https://www.google.com/calendar/feeds';
/**
* The default URI used for feeds.
@@ -91,9 +91,9 @@
/**
* Create Gdata_Calendar_EventQuery object. If a URL is provided,
* it becomes the base URL, and additional URL components may be
- * appended. For instance, if $url is 'http://www.google.com/calendar',
+ * appended. For instance, if $url is 'https://www.google.com/calendar',
* the default URL constructed will be
- * 'http://www.google.com/calendar/default/public/full'.
+ * 'https://www.google.com/calendar/default/public/full'.
*
* If the URL already contains a calendar ID, projection, visibility,
* event ID, or comment ID, you will need to set these fields to null
--- a/web/lib/Zend/Gdata/Calendar/Extension/AccessLevel.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/AccessLevel.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccessLevel.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccessLevel.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_AccessLevel extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/Color.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/Color.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Color.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Color.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_Color extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/Hidden.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/Hidden.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hidden.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hidden.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_Hidden extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/Link.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/Link.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Link.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Link.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_Link extends Zend_Gdata_App_Extension_Link
--- a/web/lib/Zend/Gdata/Calendar/Extension/QuickAdd.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/QuickAdd.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QuickAdd.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QuickAdd.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_QuickAdd extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/Selected.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/Selected.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Selected.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Selected.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_Selected extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/SendEventNotifications.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/SendEventNotifications.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendEventNotifications.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SendEventNotifications.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_SendEventNotifications extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/Timezone.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/Timezone.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Timezone.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Timezone.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_Timezone extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Calendar/Extension/WebContent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/Extension/WebContent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WebContent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: WebContent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_Extension_WebContent extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/Calendar/ListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/ListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -69,7 +69,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_ListEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Calendar/ListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Calendar/ListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Calendar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Calendar_ListFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/ClientLogin.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/ClientLogin.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ClientLogin.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ClientLogin.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_ClientLogin
--- a/web/lib/Zend/Gdata/Docs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Docs.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Docs.php 20112 2010-01-07 02:39:32Z tjohns $
+ * @version $Id: Docs.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -53,14 +53,14 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Docs extends Zend_Gdata
{
- const DOCUMENTS_LIST_FEED_URI = 'http://docs.google.com/feeds/documents/private/full';
- const DOCUMENTS_FOLDER_FEED_URI = 'http://docs.google.com/feeds/folders/private/full';
+ const DOCUMENTS_LIST_FEED_URI = 'https://docs.google.com/feeds/documents/private/full';
+ const DOCUMENTS_FOLDER_FEED_URI = 'https://docs.google.com/feeds/folders/private/full';
const DOCUMENTS_CATEGORY_SCHEMA = 'http://schemas.google.com/g/2005#kind';
const DOCUMENTS_CATEGORY_TERM = 'http://schemas.google.com/docs/2007#folder';
const AUTH_SERVICE_NAME = 'writely';
@@ -162,7 +162,7 @@
* @return Zend_Gdata_Docs_DocumentListEntry
*/
public function getDoc($docId, $docType) {
- $location = 'http://docs.google.com/feeds/documents/private/full/' .
+ $location = 'https://docs.google.com/feeds/documents/private/full/' .
$docType . '%3A' . $docId;
return $this->getDocumentListEntry($location);
}
@@ -215,7 +215,7 @@
* which are enumerated in SUPPORTED_FILETYPES.
* @param string $uri (optional) The URL to which the upload should be
* made.
- * Example: 'http://docs.google.com/feeds/documents/private/full'.
+ * Example: 'https://docs.google.com/feeds/documents/private/full'.
* @return Zend_Gdata_Docs_DocumentListEntry The entry for the newly
* created Google Document.
*/
@@ -265,7 +265,7 @@
* the appropriate type doesn't exist yet.
*/
public function createFolder($folderName, $folderResourceId=null) {
- $category = new Zend_Gdata_App_Extension_Category(self::DOCUMENTS_CATEGORY_TERM,
+ $category = new Zend_Gdata_App_Extension_Category(self::DOCUMENTS_CATEGORY_TERM,
self::DOCUMENTS_CATEGORY_SCHEMA);
$title = new Zend_Gdata_App_Extension_Title($folderName);
$entry = new Zend_Gdata_Entry();
--- a/web/lib/Zend/Gdata/Docs/DocumentListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Docs/DocumentListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocumentListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocumentListEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Docs_DocumentListEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Docs/DocumentListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Docs/DocumentListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocumentListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocumentListFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Docs_DocumentListFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Docs/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Docs/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Docs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Docs_Query extends Zend_Gdata_Query
@@ -45,7 +45,7 @@
*
* @var string
*/
- const DOCUMENTS_LIST_FEED_URI = 'http://docs.google.com/feeds/documents';
+ const DOCUMENTS_LIST_FEED_URI = 'https://docs.google.com/feeds/documents';
/**
* The generic base URL used by some inherited methods
--- a/web/lib/Zend/Gdata/DublinCore.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DublinCore.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DublinCore.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore extends Zend_Gdata
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Creator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Creator.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Creator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Creator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Creator extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Date.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Date.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Date.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Date.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Date extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Description.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Description.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Description.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Description.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Description extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Format.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Format.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Format.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Format.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Format extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Identifier.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Identifier.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Identifier.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Identifier.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Identifier extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Language.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Language.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Language.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Language.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Language extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Publisher.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Publisher.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Publisher.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Publisher.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Publisher extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Rights.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Rights.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rights.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rights.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Rights extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Subject.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Subject.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Subject.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Subject.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Subject extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/DublinCore/Extension/Title.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/DublinCore/Extension/Title.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Title.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Title.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage DublinCore
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_DublinCore_Extension_Title extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Entry extends Zend_Gdata_App_MediaEntry
--- a/web/lib/Zend/Gdata/Exif.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exif.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exif.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif extends Zend_Gdata
--- a/web/lib/Zend/Gdata/Exif/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Entry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Exif/Extension/Distance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Distance.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Distance.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Distance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Distance extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Exposure.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Exposure.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exposure.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exposure.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Exposure extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/FStop.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/FStop.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FStop.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FStop.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_FStop extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Flash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Flash.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Flash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Flash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Flash extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/FocalLength.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/FocalLength.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FocalLength.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FocalLength.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_FocalLength extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/ImageUniqueId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/ImageUniqueId.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImageUniqueId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ImageUniqueId.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_ImageUniqueId extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Iso.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Iso.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Iso.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Iso.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Iso extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Make.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Make.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Make.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Make.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Make extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Model.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Model.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Model.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Model.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Model extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Tags.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Tags.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tags.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tags.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -87,7 +87,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Tags extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Extension/Time.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Extension/Time.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Time.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Time.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Extension_Time extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Exif/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Exif/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Exif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Exif_Feed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Extension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extension.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Extension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/Extension/AttendeeStatus.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/AttendeeStatus.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AttendeeStatus.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AttendeeStatus.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_AttendeeStatus extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/AttendeeType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/AttendeeType.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AttendeeType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AttendeeType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_AttendeeType extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Comments.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Comments.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Comments.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Comments.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Comments extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/EntryLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/EntryLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EntryLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EntryLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_EntryLink extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/EventStatus.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/EventStatus.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EventStatus.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EventStatus.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_EventStatus extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/ExtendedProperty.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/ExtendedProperty.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ExtendedProperty.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ExtendedProperty.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_ExtendedProperty extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/FeedLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/FeedLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FeedLink.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FeedLink.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_FeedLink extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/OpenSearchItemsPerPage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/OpenSearchItemsPerPage.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenSearchItemsPerPage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenSearchItemsPerPage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_OpenSearchItemsPerPage extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/OpenSearchStartIndex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/OpenSearchStartIndex.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenSearchStartIndex.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenSearchStartIndex.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_OpenSearchStartIndex extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/OpenSearchTotalResults.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/OpenSearchTotalResults.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenSearchTotalResults.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenSearchTotalResults.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_OpenSearchTotalResults extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/OriginalEvent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/OriginalEvent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OriginalEvent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OriginalEvent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_OriginalEvent extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Rating.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Rating.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rating.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rating.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Rating extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Recurrence.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Recurrence.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Recurrence.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Recurrence.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Recurrence extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/RecurrenceException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/RecurrenceException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RecurrenceException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RecurrenceException.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_RecurrenceException extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Reminder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Reminder.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reminder.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Reminder.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Reminder extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Transparency.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Transparency.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Transparency.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Transparency.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Transparency extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Visibility.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Visibility.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Visibility.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Visibility.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Visibility extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/When.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/When.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: When.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: When.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_When extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Where.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Where.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Where.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Where.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Where extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Extension/Who.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Extension/Who.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Who.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Who.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Extension_Who extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Feed extends Zend_Gdata_App_Feed
--- a/web/lib/Zend/Gdata/Gapps.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gapps.php 22511 2010-07-01 01:41:46Z tjohns $
+ * @version $Id: Gapps.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -76,7 +76,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps extends Zend_Gdata
@@ -1178,7 +1178,7 @@
{
$i = 0;
$group = $this->newGroupEntry();
-
+
$properties[$i] = $this->newProperty();
$properties[$i]->name = 'groupId';
$properties[$i]->value = $groupId;
@@ -1200,8 +1200,8 @@
$properties[$i]->name = 'emailPermission';
$properties[$i]->value = $emailPermission;
$i++;
- }
-
+ }
+
$group->property = $properties;
return $this->insertGroup($group);
@@ -1240,7 +1240,7 @@
* @return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry objects
* representing all groups apart of the domain.
*/
- public function retrieveAllGroups()
+ public function retrieveAllGroups()
{
return $this->retrieveAllEntriesForFeed($this->retrievePageOfGroups());
}
@@ -1257,7 +1257,7 @@
$this->delete($uri);
}
-
+
/**
* Check to see if a member id or group id is a member of group
*
@@ -1269,7 +1269,7 @@
{
$uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
$uri .= $this->getDomain() . '/' . $groupId . '/member/' . $memberId;
-
+
//if the enitiy is not a member, an exception is thrown
try {
$results = $this->get($uri);
@@ -1353,7 +1353,7 @@
$uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
$uri .= $this->getDomain() . '/' . $groupId . '/owner';
-
+
return $this->insertOwner($owner, $uri);
}
@@ -1383,9 +1383,9 @@
{
$uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
$uri .= $this->getDomain() . '/' . $groupId . '/owner/' . $email;
-
+
//if the enitiy is not an owner of the group, an exception is thrown
- try {
+ try {
$results = $this->get($uri);
} catch (Exception $e) {
$results = false;
@@ -1427,7 +1427,7 @@
{
$i = 0;
$group = $this->newGroupEntry();
-
+
$properties[$i] = $this->newProperty();
$properties[$i]->name = 'groupId';
$properties[$i]->value = $groupId;
@@ -1453,20 +1453,20 @@
$properties[$i]->value = $emailPermission;
$i++;
}
-
+
$group->property = $properties;
$uri = self::APPS_BASE_FEED_URI . self::APPS_GROUP_PATH . '/';
$uri .= $this->getDomain() . '/' . $groupId;
- return $this->updateEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry');
+ return $this->updateEntry($group, $uri, 'Zend_Gdata_Gapps_GroupEntry');
}
/**
* Retrieve all of the groups that a user is a member of
*
* @param string $memberId Member username
- * @param bool $directOnly (Optional) If true, members with direct association
+ * @param bool $directOnly (Optional) If true, members with direct association
* only will be considered
* @return Zend_Gdata_Gapps_GroupFeed Collection of Zend_Gdata_GroupEntry
* objects representing all groups member is apart of in the domain.
--- a/web/lib/Zend/Gdata/Gapps/EmailListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -53,7 +53,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/EmailListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/EmailListQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListQuery extends Zend_Gdata_Gapps_Query
--- a/web/lib/Zend/Gdata/Gapps/EmailListRecipientEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListRecipientEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListRecipientEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListRecipientEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListRecipientEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/EmailListRecipientFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListRecipientFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListRecipientFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListRecipientFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListRecipientFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/EmailListRecipientQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/EmailListRecipientQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailListRecipientQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailListRecipientQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_EmailListRecipientQuery extends Zend_Gdata_Gapps_Query
--- a/web/lib/Zend/Gdata/Gapps/Error.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Error.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Error.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Error.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Error extends Zend_Gdata_App_Base
--- a/web/lib/Zend/Gdata/Gapps/Extension/EmailList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/EmailList.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailList.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EmailList.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_EmailList extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Gapps/Extension/Login.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/Login.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Login.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Login.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_Login extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Gapps/Extension/Name.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/Name.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Name.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Name.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_Name extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Gapps/Extension/Nickname.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/Nickname.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Nickname.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Nickname.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_Nickname extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Gapps/Extension/Property.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/Property.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: EmailList.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_Property extends Zend_Gdata_Extension
@@ -177,4 +177,3 @@
"\nProperty Value: " . $this->getValue();
}
}
-?>
\ No newline at end of file
--- a/web/lib/Zend/Gdata/Gapps/Extension/Quota.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Extension/Quota.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Quota.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Quota.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_Extension_Quota extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Gapps/GroupEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/GroupEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_GroupEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/GroupFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/GroupFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_GroupFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/GroupQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/GroupQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_GroupQuery extends Zend_Gdata_Gapps_Query
@@ -55,7 +55,7 @@
* Create a new instance.
*
* @param string $domain (optional) The Google Apps-hosted domain to use
- * when constructing query URIs.
+ * when constructing query URIs.
* @param string $groupId (optional) Value for the groupId property.
* @param string $startGroupName (optional) Value for the
* startGroupName property.
@@ -210,15 +210,15 @@
$uri = Zend_Gdata_Gapps::APPS_BASE_FEED_URI;
$uri .= Zend_Gdata_Gapps::APPS_GROUP_PATH;
$uri .= '/' . $this->_domain;
-
+
if ($this->_groupId !== null) {
$uri .= '/' . $this->_groupId;
}
-
+
if(array_key_exists('member', $this->_params)) {
$uri .= '/';
}
-
+
$uri .= $this->getQueryString();
return $uri;
}
--- a/web/lib/Zend/Gdata/Gapps/MemberEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/MemberEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_MemberEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/MemberFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/MemberFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_MemberFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/MemberQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/MemberQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_MemberQuery extends Zend_Gdata_Gapps_Query
--- a/web/lib/Zend/Gdata/Gapps/NicknameEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/NicknameEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NicknameEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NicknameEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -53,7 +53,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_NicknameEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/NicknameFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/NicknameFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NicknameFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NicknameFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_NicknameFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/NicknameQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/NicknameQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NicknameQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NicknameQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_NicknameQuery extends Zend_Gdata_Gapps_Query
--- a/web/lib/Zend/Gdata/Gapps/OwnerEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/OwnerEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_OwnerEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/OwnerFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/OwnerFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_OwnerFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/OwnerQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/OwnerQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_OwnerQuery extends Zend_Gdata_Gapps_Query
@@ -76,7 +76,7 @@
* Set the group id to query for.
*
* @see getGroupId
- * @param string $value
+ * @param string $value
*/
public function setGroupId($value)
{
@@ -133,9 +133,9 @@
throw new Zend_Gdata_App_InvalidArgumentException(
'groupId must not be null');
}
-
+
$uri .= '/owner';
-
+
if ($this->_ownerEmail !== null) {
$uri .= '/' . $this->_ownerEmail;
}
--- a/web/lib/Zend/Gdata/Gapps/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Gdata_Gapps_Query extends Zend_Gdata_Query
--- a/web/lib/Zend/Gdata/Gapps/ServiceException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/ServiceException.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ServiceException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ServiceException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_ServiceException extends Zend_Exception
--- a/web/lib/Zend/Gdata/Gapps/UserEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/UserEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -61,7 +61,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_UserEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Gapps/UserFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/UserFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_UserFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Gapps/UserQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gapps/UserQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gapps
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gapps_UserQuery extends Zend_Gdata_Gapps_Query
--- a/web/lib/Zend/Gdata/Gbase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,37 +16,22 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gbase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Gbase.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata
*/
require_once 'Zend/Gdata.php';
/**
- * @see Zend_Gdata_Gbase_ItemFeed
- */
-require_once 'Zend/Gdata/Gbase/ItemFeed.php';
-
-/**
- * @see Zend_Gdata_Gbase_ItemEntry
- */
-require_once 'Zend/Gdata/Gbase/ItemEntry.php';
-
-/**
- * @see Zend_Gdata_Gbase_SnippetEntry
- */
-require_once 'Zend/Gdata/Gbase/SnippetEntry.php';
-
-/**
- * @see Zend_Gdata_Gbase_SnippetFeed
- */
-require_once 'Zend/Gdata/Gbase/SnippetFeed.php';
-
-/**
* Service class for interacting with the Google Base data API
*
* @link http://code.google.com/apis/base
@@ -54,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase extends Zend_Gdata
@@ -63,12 +48,12 @@
/**
* Path to the customer items feeds on the Google Base server.
*/
- const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items';
+ const GBASE_ITEM_FEED_URI = 'https://www.google.com/base/feeds/items';
/**
* Path to the snippets feeds on the Google Base server.
*/
- const GBASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets';
+ const GBASE_SNIPPET_FEED_URI = 'https://www.google.com/base/feeds/snippets';
/**
* Authentication service name for Google Base
@@ -76,23 +61,6 @@
const AUTH_SERVICE_NAME = 'gbase';
/**
- * The default URI for POST methods
- *
- * @var string
- */
- protected $_defaultPostUri = self::GBASE_ITEM_FEED_URI;
-
- /**
- * Namespaces used for Zend_Gdata_Gbase
- *
- * @var array
- */
- public static $namespaces = array(
- array('g', 'http://base.google.com/ns/1.0', 1, 0),
- array('batch', 'http://schemas.google.com/gdata/batch', 1, 0)
- );
-
- /**
* Create Zend_Gdata_Gbase object
*
* @param Zend_Http_Client $client (optional) The HTTP client to use when
@@ -101,109 +69,10 @@
*/
public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0')
{
- $this->registerPackage('Zend_Gdata_Gbase');
- $this->registerPackage('Zend_Gdata_Gbase_Extension');
- parent::__construct($client, $applicationId);
- $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME);
- }
-
- /**
- * Retreive feed object
- *
- * @param mixed $location The location for the feed, as a URL or Query
- * @return Zend_Gdata_Gbase_ItemFeed
- */
- public function getGbaseItemFeed($location = null)
- {
- if ($location === null) {
- $uri = self::GBASE_ITEM_FEED_URI;
- } else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
- } else {
- $uri = $location;
- }
- return parent::getFeed($uri, 'Zend_Gdata_Gbase_ItemFeed');
- }
-
- /**
- * Retreive entry object
- *
- * @param mixed $location The location for the feed, as a URL or Query
- * @return Zend_Gdata_Gbase_ItemEntry
- */
- public function getGbaseItemEntry($location = null)
- {
- if ($location === null) {
- require_once 'Zend/Gdata/App/InvalidArgumentException.php';
- throw new Zend_Gdata_App_InvalidArgumentException(
- 'Location must not be null');
- } else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
- } else {
- $uri = $location;
- }
- return parent::getEntry($uri, 'Zend_Gdata_Gbase_ItemEntry');
- }
-
- /**
- * Insert an entry
- *
- * @param Zend_Gdata_Gbase_ItemEntry $entry The Base entry to upload
- * @param boolean $dryRun Flag for the 'dry-run' parameter
- * @return Zend_Gdata_Gbase_ItemFeed
- */
- public function insertGbaseItem($entry, $dryRun = false)
- {
- if ($dryRun == false) {
- $uri = $this->_defaultPostUri;
- } else {
- $uri = $this->_defaultPostUri . '?dry-run=true';
- }
- $newitem = $this->insertEntry($entry, $uri, 'Zend_Gdata_Gbase_ItemEntry');
- return $newitem;
- }
-
- /**
- * Update an entry
- *
- * @param Zend_Gdata_Gbase_ItemEntry $entry The Base entry to be updated
- * @param boolean $dryRun Flag for the 'dry-run' parameter
- * @return Zend_Gdata_Gbase_ItemEntry
- */
- public function updateGbaseItem($entry, $dryRun = false)
- {
- $returnedEntry = $entry->save($dryRun);
- return $returnedEntry;
- }
-
- /**
- * Delete an entry
- *
- * @param Zend_Gdata_Gbase_ItemEntry $entry The Base entry to remove
- * @param boolean $dryRun Flag for the 'dry-run' parameter
- * @return Zend_Gdata_Gbase_ItemFeed
- */
- public function deleteGbaseItem($entry, $dryRun = false)
- {
- $entry->delete($dryRun);
- return $this;
- }
-
- /**
- * Retrieve feed object
- *
- * @param mixed $location The location for the feed, as a URL or Query
- * @return Zend_Gdata_Gbase_SnippetFeed
- */
- public function getGbaseSnippetFeed($location = null)
- {
- if ($location === null) {
- $uri = self::GBASE_SNIPPET_FEED_URI;
- } else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
- } else {
- $uri = $location;
- }
- return parent::getFeed($uri, 'Zend_Gdata_Gbase_SnippetFeed');
+ throw new Zend_Exception(
+ 'Google Base API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Gbase/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,22 +16,22 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Entry
*/
require_once 'Zend/Gdata/Entry.php';
/**
- * @see Zend_Gdata_Gbase_Extension_BaseAttribute
- */
-require_once 'Zend/Gdata/Gbase/Extension/BaseAttribute.php';
-
-/**
* Base class for working with Google Base entries.
*
* @link http://code.google.com/apis/base/
@@ -39,113 +39,21 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_Entry extends Zend_Gdata_Entry
{
-
- /**
- * Name of the base class for Google Base entries
- *
- * var @string
- */
- protected $_entryClassName = 'Zend_Gdata_Gbase_Entry';
-
- /**
- * Google Base attribute elements in the 'g' namespace
- *
- * @var array
- */
- protected $_baseAttributes = array();
-
/**
* Constructs a new Zend_Gdata_Gbase_ItemEntry object.
* @param DOMElement $element (optional) The DOMElement on which to base this object.
*/
public function __construct($element = null)
{
- $this->registerAllNamespaces(Zend_Gdata_Gbase::$namespaces);
- parent::__construct($element);
- }
-
- /**
- * Retrieves a DOMElement which corresponds to this element and all
- * child properties. This is used to build an entry back into a DOM
- * and eventually XML text for application storage/persistence.
- *
- * @param DOMDocument $doc The DOMDocument used to construct DOMElements
- * @return DOMElement The DOMElement representing this element and all
- * child properties.
- */
- public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
- {
- $element = parent::getDOM($doc, $majorVersion, $minorVersion);
- foreach ($this->_baseAttributes as $baseAttribute) {
- $element->appendChild($baseAttribute->getDOM($element->ownerDocument));
- }
- return $element;
- }
-
- /**
- * Creates individual Entry objects of the appropriate type and
- * stores them as members of this entry based upon DOM data.
- *
- * @param DOMNode $child The DOMNode to process
- */
- protected function takeChildFromDOM($child)
- {
- $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
-
- if (strstr($absoluteNodeName, $this->lookupNamespace('g') . ':')) {
- $baseAttribute = new Zend_Gdata_Gbase_Extension_BaseAttribute();
- $baseAttribute->transferFromDOM($child);
- $this->_baseAttributes[] = $baseAttribute;
- } else {
- parent::takeChildFromDOM($child);
- }
+ throw new Zend_Exception(
+ 'Google Base API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html'
+ );
}
-
- /**
- * Get the value of the itme_type
- *
- * @return Zend_Gdata_Gbase_Extension_ItemType The requested object.
- */
- public function getItemType()
- {
- $itemType = $this->getGbaseAttribute('item_type');
- if (is_object($itemType[0])) {
- return $itemType[0];
- } else {
- return null;
- }
- }
-
- /**
- * Return all the Base attributes
- * @return Zend_Gdata_Gbase_Extension_BaseAttribute
- */
- public function getGbaseAttributes() {
- return $this->_baseAttributes;
- }
-
- /**
- * Return an array of Base attributes that match the given attribute name
- *
- * @param string $name The name of the Base attribute to look for
- * @return array $matches Array that contains the matching list of Base attributes
- */
- public function getGbaseAttribute($name)
- {
- $matches = array();
- for ($i = 0; $i < count($this->_baseAttributes); $i++) {
- $baseAttribute = $this->_baseAttributes[$i];
- if ($baseAttribute->rootElement == $name &&
- $baseAttribute->rootNamespaceURI == $this->lookupNamespace('g')) {
- $matches[] = &$this->_baseAttributes[$i];
- }
- }
- return $matches;
- }
-
}
--- a/web/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BaseAttribute.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BaseAttribute.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
@@ -31,19 +31,11 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_Extension_BaseAttribute extends Zend_Gdata_App_Extension_Element
{
-
- /**
- * Namespace for Google Base elements
- *
- * var @string
- */
- protected $_rootNamespace = 'g';
-
/**
* Create a new instance.
*
@@ -53,63 +45,10 @@
*/
public function __construct($name = null, $text = null, $type = null)
{
- $this->registerAllNamespaces(Zend_Gdata_Gbase::$namespaces);
- if ($type !== null) {
- $attr = array('name' => 'type', 'value' => $type);
- $typeAttr = array('type' => $attr);
- $this->setExtensionAttributes($typeAttr);
- }
- parent::__construct($name,
- $this->_rootNamespace,
- $this->lookupNamespace($this->_rootNamespace),
- $text);
- }
-
- /**
- * Get the name of the attribute
- *
- * @return attribute name The requested object.
- */
- public function getName() {
- return $this->_rootElement;
- }
-
- /**
- * Get the type of the attribute
- *
- * @return attribute type The requested object.
- */
- public function getType() {
- $typeAttr = $this->getExtensionAttributes();
- return $typeAttr['type']['value'];
+ throw new Zend_Exception(
+ 'Google Base API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html'
+ );
}
-
- /**
- * Set the 'name' of the Base attribute object:
- * <g:[$name] type='[$type]'>[$value]</g:[$name]>
- *
- * @param Zend_Gdata_App_Extension_Element $attribute The attribute object
- * @param string $name The name of the Base attribute
- * @return Zend_Gdata_Extension_ItemEntry Provides a fluent interface
- */
- public function setName($name) {
- $this->_rootElement = $name;
- return $this;
- }
-
- /**
- * Set the 'type' of the Base attribute object:
- * <g:[$name] type='[$type]'>[$value]</g:[$name]>
- *
- * @param Zend_Gdata_App_Extension_Element $attribute The attribute object
- * @param string $type The type of the Base attribute
- * @return Zend_Gdata_Extension_ItemEntry Provides a fluent interface
- */
- public function setType($type) {
- $attr = array('name' => 'type', 'value' => $type);
- $typeAttr = array('type' => $attr);
- $this->setExtensionAttributes($typeAttr);
- return $this;
- }
-
}
--- a/web/lib/Zend/Gdata/Gbase/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,12 +16,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Feed
*/
require_once 'Zend/Gdata/Feed.php';
@@ -34,19 +39,12 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_Feed extends Zend_Gdata_Feed
{
/**
- * The classname for the feed.
- *
- * @var string
- */
- protected $_feedClassName = 'Zend_Gdata_Gbase_Feed';
-
- /**
* Create a new instance.
*
* @param DOMElement $element (optional) DOMElement from which this
@@ -54,7 +52,10 @@
*/
public function __construct($element = null)
{
- $this->registerAllNamespaces(Zend_Gdata_Gbase::$namespaces);
- parent::__construct($element);
+ throw new Zend_Exception(
+ 'Google Base API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Gbase/ItemEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/ItemEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ItemEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ItemEntry.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
@@ -34,128 +34,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_ItemEntry extends Zend_Gdata_Gbase_Entry
{
- /**
- * The classname for individual item entry elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Gbase_ItemEntry';
-
- /**
- * Set the value of the itme_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)
- {
- $this->addGbaseAttribute('item_type', $value, 'text');
- return $this;
- }
-
- /**
- * Adds a custom attribute to the entry in the following format:
- * <g:[$name] type='[$type]'>[$value]</g:[$name]>
- *
- * @param string $name The name of the attribute
- * @param string $value The text value of the attribute
- * @param string $type (optional) The type of the attribute.
- * e.g.: 'text', 'number', 'floatUnit'
- * @return Zend_Gdata_Gbase_ItemEntry Provides a fluent interface
- */
- public function addGbaseAttribute($name, $text, $type = null) {
- $newBaseAttribute = new Zend_Gdata_Gbase_Extension_BaseAttribute($name, $text, $type);
- $this->_baseAttributes[] = $newBaseAttribute;
- return $this;
- }
-
- /**
- * 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
- */
- public function removeGbaseAttribute($baseAttribute) {
- $baseAttributes = $this->_baseAttributes;
- for ($i = 0; $i < count($this->_baseAttributes); $i++) {
- if ($this->_baseAttributes[$i] == $baseAttribute) {
- array_splice($baseAttributes, $i, 1);
- break;
- }
- }
- $this->_baseAttributes = $baseAttributes;
- return $this;
- }
-
- /**
- * Uploads changes in this entry to the server using Zend_Gdata_App
- *
- * @param boolean $dryRun Whether the transaction is dry run or not.
- * @param string|null $uri The URI to send requests to, or null if $data
- * contains the URI.
- * @param string|null $className The name of the class that should we
- * deserializing the server response. If null, then
- * 'Zend_Gdata_App_Entry' will be used.
- * @param array $extraHeaders Extra headers to add to the request, as an
- * array of string-based key/value pairs.
- * @return Zend_Gdata_App_Entry The updated entry
- * @throws Zend_Gdata_App_Exception
- */
- public function save($dryRun = false,
- $uri = null,
- $className = null,
- $extraHeaders = array())
- {
- if ($dryRun == true) {
- $editLink = $this->getEditLink();
- if ($uri == null && $editLink !== null) {
- $uri = $editLink->getHref() . '?dry-run=true';
- }
- if ($uri === null) {
- require_once 'Zend/Gdata/App/InvalidArgumentException.php';
- throw new Zend_Gdata_App_InvalidArgumentException('You must specify an URI which needs deleted.');
- }
- $service = new Zend_Gdata_App($this->getHttpClient());
- return $service->updateEntry($this,
- $uri,
- $className,
- $extraHeaders);
- } else {
- parent::save($uri, $className, $extraHeaders);
- }
- }
-
- /**
- * Deletes this entry to the server using the referenced
- * Zend_Http_Client to do a HTTP DELETE to the edit link stored in this
- * entry's link collection.
- *
- * @param boolean $dyrRun Whether the transaction is dry run or not
- * @return void
- * @throws Zend_Gdata_App_Exception
- */
- public function delete($dryRun = false)
- {
- $uri = null;
-
- if ($dryRun == true) {
- $editLink = $this->getEditLink();
- if ($editLink !== null) {
- $uri = $editLink->getHref() . '?dry-run=true';
- }
- if ($uri === null) {
- require_once 'Zend/Gdata/App/InvalidArgumentException.php';
- throw new Zend_Gdata_App_InvalidArgumentException('You must specify an URI which needs deleted.');
- }
- parent::delete($uri);
- } else {
- parent::delete();
- }
- }
-
}
--- a/web/lib/Zend/Gdata/Gbase/ItemFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/ItemFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ItemFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ItemFeed.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
@@ -34,15 +34,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_ItemFeed extends Zend_Gdata_Feed
{
- /**
- * The classname for individual item feed elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Gbase_ItemEntry';
}
--- a/web/lib/Zend/Gdata/Gbase/ItemQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/ItemQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,20 +16,20 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ItemQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ItemQuery.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
- * @see Zend_Gdata_Query
+ * @see Zend_Exception
*/
-require_once('Zend/Gdata/Query.php');
+require_once 'Zend/Exception.php';
/**
* @see Zend_Gdata_Gbase_Query
*/
-require_once('Zend/Gdata/Gbase/Query.php');
+require_once 'Zend/Gdata/Gbase/Query.php';
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_ItemQuery extends Zend_Gdata_Gbase_Query
@@ -48,54 +48,5 @@
/**
* Path to the customer items feeds on the Google Base server.
*/
- const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items';
-
- /**
- * 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;
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setId($value)
- {
- $this->_id = $value;
- return $this;
- }
-
- /*
- * @return string id
- */
- public function getId()
- {
- return $this->_id;
- }
-
- /**
- * Returns the query URL generated by this query instance.
- *
- * @return string The query URL for this instance.
- */
- public function getQueryUrl()
- {
- $uri = $this->_defaultFeedUri;
- if ($this->getId() !== null) {
- $uri .= '/' . $this->getId();
- } else {
- $uri .= $this->getQueryString();
- }
- return $uri;
- }
-
+ const GBASE_ITEM_FEED_URI = 'https://www.google.com/base/feeds/items';
}
--- a/web/lib/Zend/Gdata/Gbase/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,15 +16,20 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Query
*/
-require_once('Zend/Gdata/Query.php');
+require_once 'Zend/Gdata/Query.php';
/**
* Assists in constructing queries for Google Base
@@ -34,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_Query extends Zend_Gdata_Query
@@ -43,226 +48,22 @@
/**
* Path to the customer items feeds on the Google Base server.
*/
- const GBASE_ITEM_FEED_URI = 'http://www.google.com/base/feeds/items';
+ const GBASE_ITEM_FEED_URI = 'https://www.google.com/base/feeds/items';
/**
* Path to the snippets feeds on the Google Base server.
*/
- const GBASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets';
-
- /**
- * The default URI for POST methods
- *
- * @var string
- */
- protected $_defaultFeedUri = self::GBASE_ITEM_FEED_URI;
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_Query Provides a fluent interface
- */
- public function setKey($value)
- {
- if ($value !== null) {
- $this->_params['key'] = $value;
- } else {
- unset($this->_params['key']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setBq($value)
- {
- if ($value !== null) {
- $this->_params['bq'] = $value;
- } else {
- unset($this->_params['bq']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setRefine($value)
- {
- if ($value !== null) {
- $this->_params['refine'] = $value;
- } else {
- unset($this->_params['refine']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setContent($value)
- {
- if ($value !== null) {
- $this->_params['content'] = $value;
- } else {
- unset($this->_params['content']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setOrderBy($value)
- {
- if ($value !== null) {
- $this->_params['orderby'] = $value;
- } else {
- unset($this->_params['orderby']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setSortOrder($value)
- {
- if ($value !== null) {
- $this->_params['sortorder'] = $value;
- } else {
- unset($this->_params['sortorder']);
- }
- return $this;
- }
-
- /**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setCrowdBy($value)
- {
- if ($value !== null) {
- $this->_params['crowdby'] = $value;
- } else {
- unset($this->_params['crowdby']);
- }
- return $this;
- }
+ const GBASE_SNIPPET_FEED_URI = 'https://www.google.com/base/feeds/snippets';
/**
- * @param string $value
- * @return Zend_Gdata_Gbase_ItemQuery Provides a fluent interface
- */
- public function setAdjust($value)
- {
- if ($value !== null) {
- $this->_params['adjust'] = $value;
- } else {
- unset($this->_params['adjust']);
- }
- return $this;
- }
-
- /**
- * @return string key
+ * Create Gdata_Query object
*/
- public function getKey()
- {
- if (array_key_exists('key', $this->_params)) {
- return $this->_params['key'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string bq
- */
- public function getBq()
- {
- if (array_key_exists('bq', $this->_params)) {
- return $this->_params['bq'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string refine
- */
- public function getRefine()
- {
- if (array_key_exists('refine', $this->_params)) {
- return $this->_params['refine'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string content
- */
- public function getContent()
+ public function __construct($url = null)
{
- if (array_key_exists('content', $this->_params)) {
- return $this->_params['content'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string orderby
- */
- public function getOrderBy()
- {
- if (array_key_exists('orderby', $this->_params)) {
- return $this->_params['orderby'];
- } else {
- return null;
- }
+ throw new Zend_Exception(
+ 'Google Base API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googlemerchantblog.blogspot.ca/2010/12/new-shopping-apis-and-deprecation-of.html'
+ );
}
-
- /**
- * @return string sortorder
- */
- public function getSortOrder()
- {
- if (array_key_exists('sortorder', $this->_params)) {
- return $this->_params['sortorder'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string crowdby
- */
- public function getCrowdBy()
- {
- if (array_key_exists('crowdby', $this->_params)) {
- return $this->_params['crowdby'];
- } else {
- return null;
- }
- }
-
- /**
- * @return string adjust
- */
- public function getAdjust()
- {
- if (array_key_exists('adjust', $this->_params)) {
- return $this->_params['adjust'];
- } else {
- return null;
- }
- }
-
}
--- a/web/lib/Zend/Gdata/Gbase/SnippetEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/SnippetEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SnippetEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SnippetEntry.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
@@ -34,15 +34,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_SnippetEntry extends Zend_Gdata_Gbase_Entry
{
- /**
- * The classname for individual snippet entry elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Gbase_SnippetEntry';
}
--- a/web/lib/Zend/Gdata/Gbase/SnippetFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/SnippetFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,15 +16,20 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SnippetFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SnippetFeed.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
- * @see Zend_Gdata_Gbase_Feed
+ * @see Zend_Exception
*/
-require_once 'Zend/Gdata/Gbase/Feed.php';
+require_once 'Zend/Exception.php';
+
+/**
+ * @see Zend_Gdata_Feed
+ */
+require_once 'Zend/Gdata/Feed.php';
/**
* Represents the Google Base Snippets Feed
@@ -34,15 +39,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_SnippetFeed extends Zend_Gdata_Feed
{
- /**
- * The classname for individual snippet feed elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Gbase_SnippetEntry';
}
--- a/web/lib/Zend/Gdata/Gbase/SnippetQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Gbase/SnippetQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,20 +16,15 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SnippetQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SnippetQuery.php 24777 2012-05-08 18:50:23Z adamlundrigan $
*/
/**
- * Zend_Gdata_Query
+ * @see Zend_Gdata_Gbase_Query
*/
-require_once('Zend/Gdata/Query.php');
-
-/**
- * Zend_Gdata_Gbase_Query
- */
-require_once('Zend/Gdata/Gbase/Query.php');
+require_once 'Zend/Gdata/Gbase/Query.php';
/**
* Assists in constructing queries for Google Base Snippets Feed
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gbase
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Gbase_SnippetQuery extends Zend_Gdata_Gbase_Query
@@ -47,28 +42,5 @@
/**
* Path to the snippets feeds on the Google Base server.
*/
- const BASE_SNIPPET_FEED_URI = 'http://www.google.com/base/feeds/snippets';
-
- /**
- * 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()
- {
- $uri = $this->_defaultFeedUri;
- if ($this->getCategory() !== null) {
- $uri .= '/-/' . $this->getCategory();
- }
- $uri .= $this->getQueryString();
- return $uri;
- }
-
+ const BASE_SNIPPET_FEED_URI = 'https://www.google.com/base/feeds/snippets';
}
--- a/web/lib/Zend/Gdata/Geo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Geo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Geo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo extends Zend_Gdata
--- a/web/lib/Zend/Gdata/Geo/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo_Entry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Geo/Extension/GeoRssWhere.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo/Extension/GeoRssWhere.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GeoRssWhere.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GeoRssWhere.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo_Extension_GeoRssWhere extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Geo/Extension/GmlPoint.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo/Extension/GmlPoint.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GmlPoint.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GmlPoint.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo_Extension_GmlPoint extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Geo/Extension/GmlPos.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo/Extension/GmlPos.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GmlPos.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GmlPos.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo_Extension_GmlPos extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Geo/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Geo/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Geo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Geo_Feed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Health.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,37 +16,22 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Health.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Health.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata
*/
require_once 'Zend/Gdata.php';
/**
- * @see Zend_Gdata_Health_ProfileFeed
- */
-require_once 'Zend/Gdata/Health/ProfileFeed.php';
-
-/**
- * @see Zend_Gdata_Health_ProfileListFeed
- */
-require_once 'Zend/Gdata/Health/ProfileListFeed.php';
-
-/**
- * @see Zend_Gdata_Health_ProfileListEntry
- */
-require_once 'Zend/Gdata/Health/ProfileListEntry.php';
-
-/**
- * @see Zend_Gdata_Health_ProfileEntry
- */
-require_once 'Zend/Gdata/Health/ProfileEntry.php';
-
-/**
* Service class for interacting with the Google Health Data API
*
* @link http://code.google.com/apis/health
@@ -54,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health extends Zend_Gdata
@@ -84,29 +69,6 @@
const H9_SANDBOX_SERVICE_NAME = 'weaver';
/**
- * Profile ID used for all API interactions. This can only be set when
- * using ClientLogin for authentication.
- *
- * @var string
- */
- private $_profileID = null;
-
- /**
- * True if API calls should be made to the H9 developer sandbox at /h9
- * rather than /health
- *
- * @var bool
- */
- private $_useH9Sandbox = false;
-
- public static $namespaces =
- array('ccr' => 'urn:astm-org:CCR',
- 'batch' => 'http://schemas.google.com/gdata/batch',
- 'h9m' => 'http://schemas.google.com/health/metadata',
- 'gAcl' => 'http://schemas.google.com/acl/2007',
- 'gd' => 'http://schemas.google.com/g/2005');
-
- /**
* Create Zend_Gdata_Health object
*
* @param Zend_Http_Client $client (optional) The HTTP client to use when
@@ -118,157 +80,10 @@
*/
public function __construct($client = null, $applicationId = 'MyCompany-MyApp-1.0', $useH9Sandbox = false)
{
- $this->registerPackage('Zend_Gdata_Health');
- $this->registerPackage('Zend_Gdata_Health_Extension_Ccr');
- parent::__construct($client, $applicationId);
- $this->_useH9Sandbox = $useH9Sandbox;
- }
-
- /**
- * Gets the id of the user's profile
- *
- * @return string The profile id
- */
- public function getProfileID()
- {
- return $this->_profileID;
- }
-
- /**
- * Sets which of the user's profiles will be used
- *
- * @param string $id The profile ID
- * @return Zend_Gdata_Health Provides a fluent interface
- */
- public function setProfileID($id) {
- $this->_profileID = $id;
- return $this;
- }
-
- /**
- * Retrieves the list of profiles associated with the user's ClientLogin
- * credentials.
- *
- * @param string $query The query of the feed as a URL or Query object
- * @return Zend_Gdata_Feed
- */
- public function getHealthProfileListFeed($query = null)
- {
- if ($this->_httpClient->getClientLoginToken() === null) {
- require_once 'Zend/Gdata/App/AuthException.php';
- throw new Zend_Gdata_App_AuthException(
- 'Profiles list feed is only available when using ClientLogin');
- }
-
- if($query === null) {
- $uri = self::CLIENTLOGIN_PROFILELIST_FEED_URI;
- } else if ($query instanceof Zend_Gdata_Query) {
- $uri = $query->getQueryUrl();
- } else {
- $uri = $query;
- }
-
- // use correct feed for /h9 or /health
- if ($this->_useH9Sandbox) {
- $uri = preg_replace('/\/health\//', '/h9/', $uri);
- }
-
- return parent::getFeed($uri, 'Zend_Gdata_Health_ProfileListFeed');
- }
-
- /**
- * Retrieve a user's profile as a feed object. If ClientLogin is used, the
- * profile associated with $this->_profileID is returned, otherwise
- * the profile associated with the AuthSub token is read.
- *
- * @param mixed $query The query for the feed, as a URL or Query
- * @return Zend_Gdata_Health_ProfileFeed
- */
- public function getHealthProfileFeed($query = null)
- {
- if ($this->_httpClient->getClientLoginToken() !== null &&
- $this->getProfileID() == null) {
- require_once 'Zend/Gdata/App/AuthException.php';
- throw new Zend_Gdata_App_AuthException(
- 'Profile ID must not be null. Did you call setProfileID()?');
- }
-
- if ($query instanceof Zend_Gdata_Query) {
- $uri = $query->getQueryUrl();
- } else if ($this->_httpClient->getClientLoginToken() !== null &&
- $query == null) {
- $uri = self::CLIENTLOGIN_PROFILE_FEED_URI . '/' . $this->getProfileID();
- } else if ($query === null) {
- $uri = self::AUTHSUB_PROFILE_FEED_URI;
- } else {
- $uri = $query;
- }
-
- // use correct feed for /h9 or /health
- if ($this->_useH9Sandbox) {
- $uri = preg_replace('/\/health\//', '/h9/', $uri);
- }
-
- return parent::getFeed($uri, 'Zend_Gdata_Health_ProfileFeed');
- }
-
- /**
- * Retrieve a profile entry object
- *
- * @param mixed $query The query for the feed, as a URL or Query
- * @return Zend_Gdata_Health_ProfileEntry
- */
- public function getHealthProfileEntry($query = null)
- {
- if ($query === null) {
- require_once 'Zend/Gdata/App/InvalidArgumentException.php';
- throw new Zend_Gdata_App_InvalidArgumentException(
- 'Query must not be null');
- } else if ($query instanceof Zend_Gdata_Query) {
- $uri = $query->getQueryUrl();
- } else {
- $uri = $query;
- }
- return parent::getEntry($uri, 'Zend_Gdata_Health_ProfileEntry');
- }
-
- /**
- * Posts a new notice using the register feed. This function constructs
- * the atom profile entry.
- *
- * @param string $subject The subject line of the notice
- * @param string $body The message body of the notice
- * @param string $bodyType The (optional) type of message body
- * (text, xhtml, html, etc.)
- * @param string $ccrXML The (optional) CCR to add to the user's profile
- * @return Zend_Gdata_Health_ProfileEntry
- */
- public function sendHealthNotice($subject, $body, $bodyType = null, $ccrXML = null)
- {
- if ($this->_httpClient->getClientLoginToken()) {
- $profileID = $this->getProfileID();
- if ($profileID !== null) {
- $uri = self::CLIENTLOGIN_REGISTER_FEED_URI . '/' . $profileID;
- } else {
- require_once 'Zend/Gdata/App/AuthException.php';
- throw new Zend_Gdata_App_AuthException(
- 'Profile ID must not be null. Did you call setProfileID()?');
- }
- } else {
- $uri = self::AUTHSUB_REGISTER_FEED_URI;
- }
-
- $entry = new Zend_Gdata_Health_ProfileEntry();
- $entry->title = $this->newTitle($subject);
- $entry->content = $this->newContent($body);
- $entry->content->type = $bodyType ? $bodyType : 'text';
- $entry->setCcr($ccrXML);
-
- // use correct feed for /h9 or /health
- if ($this->_useH9Sandbox) {
- $uri = preg_replace('/\/health\//', '/h9/', $uri);
- }
-
- return $this->insertEntry($entry, $uri, 'Zend_Gdata_Health_ProfileEntry');
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Health/Extension/Ccr.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/Extension/Ccr.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,12 +15,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ccr.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ccr.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_App_Extension_Element
*/
require_once 'Zend/Gdata/App/Extension/Element.php';
@@ -31,15 +36,11 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_Extension_Ccr extends Zend_Gdata_App_Extension_Element
{
- protected $_rootNamespace = 'ccr';
- protected $_rootElement = 'ContinuityOfCareRecord';
- protected $_ccrDom = null;
-
/**
* Creates a Zend_Gdata_Health_Extension_Ccr entry, representing CCR data
*
@@ -48,77 +49,10 @@
*/
public function __construct($element = null)
{
- foreach (Zend_Gdata_Health::$namespaces as $nsPrefix => $nsUri) {
- $this->registerNamespace($nsPrefix, $nsUri);
- }
- }
-
- /**
- * Transfers each child and attribute into member variables.
- * This is called when XML is received over the wire and the data
- * model needs to be built to represent this XML.
- *
- * @param DOMNode $node The DOMNode that represents this object's data
- */
- public function transferFromDOM($node)
- {
- $this->_ccrDom = $node;
- }
-
- /**
- * Retrieves a DOMElement which corresponds to this element and all
- * child properties. This is used to build an entry back into a DOM
- * and eventually XML text for sending to the server upon updates, or
- * for application storage/persistence.
- *
- * @param DOMDocument $doc The DOMDocument used to construct DOMElements
- * @return DOMElement The DOMElement representing this element and all
- * child properties.
- */
- public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
- {
- if ($doc === null) {
- $doc = new DOMDocument('1.0', 'utf-8');
- }
- $domElement = $doc->importNode($this->_ccrDom, true);
- return $domElement;
- }
-
- /**
- * Magic helper that allows drilling down and returning specific elements
- * in the CCR. For example, to retrieve the users medications
- * (/ContinuityOfCareRecord/Body/Medications) from the entry's CCR, call
- * $entry->getCcr()->getMedications(). Similarly, getConditions() would
- * return extract the user's conditions.
- *
- * @param string $name Name of the function to call
- * @param unknown $args
- * @return array.<DOMElement> A list of the appropriate CCR data
- */
- public function __call($name, $args)
- {
- if (substr($name, 0, 3) === 'get') {
- $category = substr($name, 3);
-
- switch ($category) {
- case 'Conditions':
- $category = 'Problems';
- break;
- case 'Allergies':
- $category = 'Alerts';
- break;
- case 'TestResults':
- // TestResults is an alias for LabResults
- case 'LabResults':
- $category = 'Results';
- break;
- default:
- // $category is already well formatted
- }
-
- return $this->_ccrDom->getElementsByTagNameNS($this->lookupNamespace('ccr'), $category);
- } else {
- return null;
- }
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Health/ProfileEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/ProfileEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,22 +16,22 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProfileEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProfileEntry.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Entry
*/
require_once 'Zend/Gdata/Entry.php';
/**
- * @see Zend_Gdata_Health_Extension_Ccr
- */
-require_once 'Zend/Gdata/Health/Extension/Ccr.php';
-
-/**
* Concrete class for working with Health profile entries.
*
* @link http://code.google.com/apis/health/
@@ -39,97 +39,21 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_ProfileEntry extends Zend_Gdata_Entry
{
/**
- * The classname for individual profile entry elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Health_ProfileEntry';
-
- /**
- * Google Health CCR data
- *
- * @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.
*/
public function __construct($element = null)
{
- foreach (Zend_Gdata_Health::$namespaces as $nsPrefix => $nsUri) {
- $this->registerNamespace($nsPrefix, $nsUri);
- }
- parent::__construct($element);
- }
-
- /**
- * Retrieves a DOMElement which corresponds to this element and all
- * child properties. This is used to build an entry back into a DOM
- * and eventually XML text for application storage/persistence.
- *
- * @param DOMDocument $doc The DOMDocument used to construct DOMElements
- * @return DOMElement The DOMElement representing this element and all
- * child properties.
- */
- public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
- {
- $element = parent::getDOM($doc, $majorVersion, $minorVersion);
- if ($this->_ccrData !== null) {
- $element->appendChild($this->_ccrData->getDOM($element->ownerDocument));
- }
-
- return $element;
- }
-
- /**
- * Creates individual Entry objects of the appropriate type and
- * stores them as members of this entry based upon DOM data.
- *
- * @param DOMNode $child The DOMNode to process
- */
- protected function takeChildFromDOM($child)
- {
- $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
-
- if (strstr($absoluteNodeName, $this->lookupNamespace('ccr') . ':')) {
- $ccrElement = new Zend_Gdata_Health_Extension_Ccr();
- $ccrElement->transferFromDOM($child);
- $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
- */
- public function setCcr($ccrXMLStr) {
- $ccrElement = null;
- if ($ccrXMLStr != null) {
- $ccrElement = new Zend_Gdata_Health_Extension_Ccr();
- $ccrElement->transferFromXML($ccrXMLStr);
- $this->_ccrData = $ccrElement;
- }
- return $ccrElement;
- }
-
-
- /**
- * Returns all the CCR data in a profile entry
- * @return Zend_Gdata_Health_Extension_Ccr
- */
- public function getCcr() {
- return $this->_ccrData;
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Health/ProfileFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/ProfileFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,12 +16,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProfileFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProfileFeed.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Feed
*/
require_once 'Zend/Gdata/Feed.php';
@@ -34,19 +39,12 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_ProfileFeed extends Zend_Gdata_Feed
{
/**
- * The class name for individual profile feed elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Health_ProfileEntry';
-
- /**
* Creates a Health Profile feed, representing a user's Health profile
*
* @param DOMElement $element (optional) DOMElement from which this
@@ -54,14 +52,10 @@
*/
public function __construct($element = null)
{
- foreach (Zend_Gdata_Health::$namespaces as $nsPrefix => $nsUri) {
- $this->registerNamespace($nsPrefix, $nsUri);
- }
- parent::__construct($element);
- }
-
- public function getEntries()
- {
- return $this->entry;
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Health/ProfileListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/ProfileListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,12 +16,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProfileListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProfileListEntry.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Entry
*/
require_once 'Zend/Gdata/Entry.php';
@@ -34,67 +39,21 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
{
/**
- * The classname for individual profile list entry elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
-
- /**
* Constructs a new Zend_Gdata_Health_ProfileListEntry object.
* @param DOMElement $element (optional) The DOMElement on which to base this object.
*/
public function __construct($element = null)
{
- parent::__construct($element);
- }
-
- /**
- * Retrieves a DOMElement which corresponds to this element and all
- * child properties. This is used to build an entry back into a DOM
- * and eventually XML text for application storage/persistence.
- *
- * @param DOMDocument $doc The DOMDocument used to construct DOMElements
- * @return DOMElement The DOMElement representing this element and all
- * child properties.
- */
- public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
- {
- $element = parent::getDOM($doc, $majorVersion, $minorVersion);
- return $element;
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
-
- /**
- * Creates individual Entry objects of the appropriate type and
- * stores them as members of this entry based upon DOM data.
- *
- * @param DOMNode $child The DOMNode to process
- */
- protected function takeChildFromDOM($child)
- {
- 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
- */
- public function getProfileName() {
- return $this->getTitle()->text;
- }
-
}
--- a/web/lib/Zend/Gdata/Health/ProfileListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/ProfileListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,12 +16,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProfileListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProfileListFeed.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Feed
*/
require_once 'Zend/Gdata/Feed.php';
@@ -34,20 +39,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_ProfileListFeed extends Zend_Gdata_Feed
{
- /**
- * The class name for individual profile feed elements.
- *
- * @var string
- */
- protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
-
- public function getEntries()
+ public function __construct($element = null)
{
- return $this->entry;
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/Health/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Health/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,12 +16,17 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24779 2012-05-08 19:13:59Z adamlundrigan $
*/
/**
+ * @see Zend_Exception
+ */
+require_once 'Zend/Exception.php';
+
+/**
* @see Zend_Gdata_Query
*/
require_once('Zend/Gdata/Query.php');
@@ -34,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Health_Query extends Zend_Gdata_Query
@@ -55,231 +60,16 @@
* Namespace for an item category
*/
const ITEM_CATEGORY_NS = 'http://schemas.google.com/health/item';
-
- /**
- * The default URI for POST methods
- *
- * @var string
- */
- protected $_defaultFeedUri = self::HEALTH_PROFILE_FEED_URI;
-
- /**
- * Sets the digest parameter's value.
- *
- * @param string $value
- * @return Zend_Gdata_Health_Query Provides a fluent interface
- */
- public function setDigest($value)
- {
- if ($value !== null) {
- $this->_params['digest'] = $value;
- }
- return $this;
- }
-
- /**
- * Returns the digest parameter's value.
- *
- * @return string The value set for the digest parameter.
- */
- public function getDigest()
- {
- if (array_key_exists('digest', $this->_params)) {
- return $this->_params['digest'];
- } else {
- return null;
- }
- }
-
- /**
- * Setter for category queries.
- *
- * @param string $item A category to query.
- * @param string $name (optional) A specific item to search a category for.
- * An example would be 'Lipitor' if $item is set to 'medication'.
- * @return Zend_Gdata_Health_Query Provides a fluent interface
- */
- public function setCategory($item, $name = null)
- {
- $this->_category = $item .
- ($name ? '/' . urlencode('{' . self::ITEM_CATEGORY_NS . '}' . $name) : null);
- return $this;
- }
-
- /**
- * Returns the query object's category.
- *
- * @return string id
- */
- public function getCategory()
- {
- return $this->_category;
- }
-
- /**
- * Setter for the grouped parameter.
- *
- * @param string $value setting a count of results per group.
- * @return Zend_Gdata_Health_Query Provides a fluent interface
- */
- public function setGrouped($value)
- {
- if ($value !== null) {
- $this->_params['grouped'] = $value;
- }
- return $this;
- }
-
- /**
- * Returns the value set for the grouped parameter.
- *
- * @return string grouped parameter.
- */
- public function getGrouped()
- {
- if (array_key_exists('grouped', $this->_params)) {
- return $this->_params['grouped'];
- } else {
- return null;
- }
- }
-
- /**
- * Setter for the max-results-group parameter.
- *
- * @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
- */
- public function setMaxResultsGroup($value)
- {
- if ($value !== null) {
- if ($value <= 0 || $this->getGrouped() !== 'true') {
- 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');
- } else {
- $this->_params['max-results-group'] = $value;
- }
- }
- return $this;
- }
-
+
/**
- * Returns the value set for max-results-group.
- *
- * @return int Returns max-results-group parameter.
+ * Create Gdata_Query object
*/
- public function getMaxResultsGroup()
- {
- if (array_key_exists('max-results-group', $this->_params)) {
- return $this->_params['max-results-group'];
- } else {
- return null;
- }
- }
-
- /**
- * 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
- * zero. This parameter is only valid if grouped=true.
- * @return Zend_Gdata_Health_Query Provides a fluent interface
- */
- public function setMaxResultsInGroup($value)
- {
- 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');
- } else {
- $this->_params['max-results-in-group'] = $value;
- }
- }
- return $this;
- }
-
- /**
- * Returns the value set for max-results-in-group.
- *
- * @return int Returns max-results-in-group parameter.
- */
- public function getMaxResultsInGroup()
+ public function __construct($url = null)
{
- if (array_key_exists('max-results-in-group', $this->_params)) {
- return $this->_params['max-results-in-group'];
- } else {
- return null;
- }
- }
-
- /**
- * Setter for the start-index-group parameter.
- *
- * @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.
- * This parameter is only valid if grouped=true.
- * @return Zend_Gdata_Health_Query Provides a fluent interface
- */
- public function setStartIndexGroup($value)
- {
- if ($value !== null && $this->getGrouped() !== 'true') {
- throw new Zend_Gdata_App_InvalidArgumentException(
- 'The start-index-group can only be used if grouped=true');
- } else {
- $this->_params['start-index-group'] = $value;
- }
- return $this;
- }
-
- /**
- * Returns the value set for start-index-group.
- *
- * @return int Returns start-index-group parameter.
- */
- public function getStartIndexGroup()
- {
- if (array_key_exists('start-index-group', $this->_params)) {
- return $this->_params['start-index-group'];
- } else {
- return null;
- }
- }
-
- /**
- * Setter for the start-index-in-group parameter.
- *
- * @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
- */
- public function setStartIndexInGroup($value)
- {
- if ($value !== null && $this->getGrouped() !== 'true') {
- throw new Zend_Gdata_App_InvalidArgumentException('start-index-in-group');
- } else {
- $this->_params['start-index-in-group'] = $value;
- }
- return $this;
- }
-
- /**
- * Returns the value set for start-index-in-group.
- *
- * @return int Returns start-index-in-group parameter.
- */
- public function getStartIndexInGroup()
- {
- if (array_key_exists('start-index-in-group', $this->_params)) {
- return $this->_params['start-index-in-group'];
- } else {
- return null;
- }
+ throw new Zend_Exception(
+ 'Google Health API has been discontinued by Google and was removed'
+ . ' from Zend Framework in 1.12.0. For more information see: '
+ . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
+ );
}
}
--- a/web/lib/Zend/Gdata/HttpAdapterStreamingProxy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/HttpAdapterStreamingProxy.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpAdapterStreamingProxy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpAdapterStreamingProxy.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_HttpAdapterStreamingProxy extends Zend_Http_Client_Adapter_Proxy
--- a/web/lib/Zend/Gdata/HttpAdapterStreamingSocket.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/HttpAdapterStreamingSocket.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpAdapterStreamingSocket.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpAdapterStreamingSocket.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_HttpAdapterStreamingSocket extends Zend_Http_Client_Adapter_Socket
--- a/web/lib/Zend/Gdata/HttpClient.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/HttpClient.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpClient.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpClient.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_HttpClient extends Zend_Http_Client
--- a/web/lib/Zend/Gdata/Kind/EventEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Kind/EventEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EventEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EventEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -92,7 +92,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Kind_EventEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Media.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Media.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Media.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media extends Zend_Gdata
--- a/web/lib/Zend/Gdata/Media/Entry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Entry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Entry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Entry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Entry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Media/Extension/MediaCategory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaCategory.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaCategory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaCategory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaCategory extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaContent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaContent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaContent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaContent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaContent extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaCopyright.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaCopyright.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaCopyright.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaCopyright.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaCopyright extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaCredit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaCredit.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaCredit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaCredit.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaCredit extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaDescription.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaDescription.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaDescription.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaDescription.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaDescription extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaGroup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaGroup.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaGroup.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaGroup.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -106,7 +106,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaGroup extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaHash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaHash.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaHash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaHash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaHash extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaKeywords.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaKeywords.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaKeywords.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaKeywords.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaKeywords extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaPlayer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaPlayer.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaPlayer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaPlayer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaPlayer extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaRating.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaRating.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaRating.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaRating.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaRating extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaRestriction.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaRestriction.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaRestriction.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaRestriction.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaRestriction extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaText.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaText.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaText.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaText.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaText extends Zend_Gdata_Extension
@@ -64,11 +64,11 @@
/**
* Constructs a new MediaText element
*
- * @param $text string
- * @param $type string
- * @param $lang string
- * @param $start string
- * @param $end string
+ * @param string $text
+ * @param string $type
+ * @param string $lang
+ * @param string $start
+ * @param string $end
*/
public function __construct($text = null, $type = null, $lang = null,
$start = null, $end = null)
--- a/web/lib/Zend/Gdata/Media/Extension/MediaThumbnail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaThumbnail.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaThumbnail.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaThumbnail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaThumbnail extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Extension/MediaTitle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Extension/MediaTitle.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaTitle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaTitle.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Extension_MediaTitle extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Media/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Media/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Feed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Feed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Media_Feed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/MediaMimeStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/MediaMimeStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaMimeStream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaMimeStream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_MediaMimeStream
--- a/web/lib/Zend/Gdata/MimeBodyString.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/MimeBodyString.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MimeBodyString.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MimeBodyString.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_MimeBodyString
--- a/web/lib/Zend/Gdata/MimeFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/MimeFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MimeFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MimeFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_MimeFile
--- a/web/lib/Zend/Gdata/Photos.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Photos.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Photos.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,14 +52,14 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos extends Zend_Gdata
{
- const PICASA_BASE_URI = 'http://picasaweb.google.com/data';
- const PICASA_BASE_FEED_URI = 'http://picasaweb.google.com/data/feed';
+ const PICASA_BASE_URI = 'https://picasaweb.google.com/data';
+ const PICASA_BASE_FEED_URI = 'https://picasaweb.google.com/data/feed';
const AUTH_SERVICE_NAME = 'lh2';
/**
--- a/web/lib/Zend/Gdata/Photos/AlbumEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/AlbumEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AlbumEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AlbumEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -98,7 +98,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_AlbumEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Photos/AlbumFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/AlbumFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AlbumFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AlbumFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_AlbumFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Photos/AlbumQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/AlbumQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AlbumQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AlbumQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_AlbumQuery extends Zend_Gdata_Photos_UserQuery
--- a/web/lib/Zend/Gdata/Photos/CommentEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/CommentEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommentEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommentEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -58,7 +58,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_CommentEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Photos/Extension/Access.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Access.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Access.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Access.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Access extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/AlbumId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/AlbumId.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AlbumId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AlbumId.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_AlbumId extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/BytesUsed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/BytesUsed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BytesUsed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BytesUsed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_BytesUsed extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Checksum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Checksum.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Checksum.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Checksum.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Checksum extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Client extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/CommentCount.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/CommentCount.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommentCount.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommentCount.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_CommentCount extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/CommentingEnabled.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/CommentingEnabled.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommentingEnabled.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommentingEnabled.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_CommentingEnabled extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Height.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Height.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Height.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Height.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Height extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Id.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Id.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Id.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Id.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Id extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Location.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Location.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Location.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Location.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Location extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/MaxPhotosPerAlbum.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MaxPhotosPerAlbum.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MaxPhotosPerAlbum.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Name.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Name.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Name.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Name.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Name extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Nickname.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Nickname.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Nickname.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Nickname.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Nickname extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/NumPhotos.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/NumPhotos.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumPhotos.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumPhotos.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_NumPhotos extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/NumPhotosRemaining.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NumPhotosRemaining.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NumPhotosRemaining.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_NumPhotosRemaining extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/PhotoId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/PhotoId.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhotoId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PhotoId.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_PhotoId extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Position.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Position.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Position.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Position.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Position extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/QuotaCurrent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/QuotaCurrent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QuotaCurrent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QuotaCurrent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_QuotaCurrent extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/QuotaLimit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/QuotaLimit.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QuotaLimit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QuotaLimit.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_QuotaLimit extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Rotation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Rotation.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rotation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rotation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Rotation extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Size.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Size.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Size.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Size.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Size extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Thumbnail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Thumbnail.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Thumbnail.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Thumbnail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Thumbnail extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Timestamp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Timestamp.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Timestamp.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Timestamp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Timestamp extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/User.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/User.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: User.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: User.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_User extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Version.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Version.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Version.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Version.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Version extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Weight.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Weight.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Weight.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Weight.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Weight extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/Extension/Width.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/Extension/Width.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Width.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Width.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_Extension_Width extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Photos/PhotoEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/PhotoEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhotoEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PhotoEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -113,7 +113,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_PhotoEntry extends Zend_Gdata_Media_Entry
--- a/web/lib/Zend/Gdata/Photos/PhotoFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/PhotoFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhotoFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PhotoFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_PhotoFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Photos/PhotoQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/PhotoQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhotoQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PhotoQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_PhotoQuery extends Zend_Gdata_Photos_AlbumQuery
--- a/web/lib/Zend/Gdata/Photos/TagEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/TagEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TagEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -48,7 +48,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_TagEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Photos/UserEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/UserEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -78,7 +78,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_UserEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Photos/UserFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/UserFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -66,7 +66,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_UserFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Photos/UserQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Photos/UserQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Photos
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Photos_UserQuery extends Zend_Gdata_Query
--- a/web/lib/Zend/Gdata/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Gdata
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Query
--- a/web/lib/Zend/Gdata/Spreadsheets.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Spreadsheets.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Spreadsheets.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -89,13 +89,13 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets extends Zend_Gdata
{
- const SPREADSHEETS_FEED_URI = 'http://spreadsheets.google.com/feeds/spreadsheets';
- const SPREADSHEETS_POST_URI = 'http://spreadsheets.google.com/feeds/spreadsheets/private/full';
+ const SPREADSHEETS_FEED_URI = 'https://spreadsheets.google.com/feeds/spreadsheets';
+ const SPREADSHEETS_POST_URI = 'https://spreadsheets.google.com/feeds/spreadsheets/private/full';
const WORKSHEETS_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#worksheetsfeed';
const LIST_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#listfeed';
const CELL_FEED_LINK_URI = 'http://schemas.google.com/spreadsheets/2006#cellsfeed';
--- a/web/lib/Zend/Gdata/Spreadsheets/CellEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/CellEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CellEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CellEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_CellEntry extends Zend_Gdata_Entry
@@ -92,7 +92,8 @@
/**
* Sets the Cell element of this Cell Entry.
- * @param $cell Zend_Gdata_Spreadsheets_Extension_Cell $cell
+ * @param Zend_Gdata_Spreadsheets_Extension_Cell $cell
+ * @return Zend_Gdata_Spreadsheets_CellEntry
*/
public function setCell($cell)
{
--- a/web/lib/Zend/Gdata/Spreadsheets/CellFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/CellFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CellFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CellFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_CellFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Spreadsheets/CellQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/CellQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CellQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CellQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,13 +39,13 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_CellQuery extends Zend_Gdata_Query
{
- const SPREADSHEETS_CELL_FEED_URI = 'http://spreadsheets.google.com/feeds/cells';
+ const SPREADSHEETS_CELL_FEED_URI = 'https://spreadsheets.google.com/feeds/cells';
protected $_defaultFeedUri = self::SPREADSHEETS_CELL_FEED_URI;
protected $_visibility = 'private';
--- a/web/lib/Zend/Gdata/Spreadsheets/DocumentQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/DocumentQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocumentQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocumentQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,13 +39,13 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_DocumentQuery extends Zend_Gdata_Query
{
- const SPREADSHEETS_FEED_URI = 'http://spreadsheets.google.com/feeds';
+ const SPREADSHEETS_FEED_URI = 'https://spreadsheets.google.com/feeds';
protected $_defaultFeedUri = self::SPREADSHEETS_FEED_URI;
protected $_documentType;
--- a/web/lib/Zend/Gdata/Spreadsheets/Extension/Cell.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/Extension/Cell.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cell.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cell.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_Extension_Cell extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Spreadsheets/Extension/ColCount.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/Extension/ColCount.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ColCount.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ColCount.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_Extension_ColCount extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Spreadsheets/Extension/Custom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/Extension/Custom.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Custom.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Custom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_Extension_Custom extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Spreadsheets/Extension/RowCount.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/Extension/RowCount.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RowCount.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RowCount.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_Extension_RowCount extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/Spreadsheets/ListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/ListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_ListEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Spreadsheets/ListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/ListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_ListFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Spreadsheets/ListQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/ListQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,13 +39,13 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_ListQuery extends Zend_Gdata_Query
{
- const SPREADSHEETS_LIST_FEED_URI = 'http://spreadsheets.google.com/feeds/list';
+ const SPREADSHEETS_LIST_FEED_URI = 'https://spreadsheets.google.com/feeds/list';
protected $_defaultFeedUri = self::SPREADSHEETS_LIST_FEED_URI;
protected $_visibility = 'private';
--- a/web/lib/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/SpreadsheetEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SpreadsheetEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SpreadsheetEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_SpreadsheetEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/SpreadsheetFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SpreadsheetFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SpreadsheetFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_SpreadsheetFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/Spreadsheets/WorksheetEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/WorksheetEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WorksheetEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: WorksheetEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_WorksheetEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/Spreadsheets/WorksheetFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/Spreadsheets/WorksheetFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WorksheetFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: WorksheetFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Spreadsheets
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_Spreadsheets_WorksheetFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/YouTube.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: YouTube.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: YouTube.php 24796 2012-05-12 03:34:26Z adamlundrigan $
*/
/**
@@ -79,7 +79,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube extends Zend_Gdata_Media
@@ -88,22 +88,22 @@
const AUTH_SERVICE_NAME = 'youtube';
const CLIENTLOGIN_URL = 'https://www.google.com/youtube/accounts/ClientLogin';
- const STANDARD_TOP_RATED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated';
- const STANDARD_MOST_VIEWED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed';
- const STANDARD_RECENTLY_FEATURED_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured';
- const STANDARD_WATCH_ON_MOBILE_URI = 'http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile';
+ const STANDARD_TOP_RATED_URI = 'https://gdata.youtube.com/feeds/api/standardfeeds/top_rated';
+ const STANDARD_MOST_VIEWED_URI = 'https://gdata.youtube.com/feeds/api/standardfeeds/most_viewed';
+ const STANDARD_RECENTLY_FEATURED_URI = 'https://gdata.youtube.com/feeds/api/standardfeeds/recently_featured';
+ const STANDARD_WATCH_ON_MOBILE_URI = 'https://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile';
const STANDARD_TOP_RATED_URI_V2 =
- 'http://gdata.youtube.com/feeds/api/standardfeeds/top_rated';
+ 'https://gdata.youtube.com/feeds/api/standardfeeds/top_rated';
const STANDARD_MOST_VIEWED_URI_V2 =
- 'http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed';
+ 'https://gdata.youtube.com/feeds/api/standardfeeds/most_viewed';
const STANDARD_RECENTLY_FEATURED_URI_V2 =
- 'http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured';
+ 'https://gdata.youtube.com/feeds/api/standardfeeds/recently_featured';
const STANDARD_WATCH_ON_MOBILE_URI_V2 =
- 'http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile';
+ 'https://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile';
- const USER_URI = 'http://gdata.youtube.com/feeds/api/users';
- const VIDEO_URI = 'http://gdata.youtube.com/feeds/api/videos';
+ const USER_URI = 'https://gdata.youtube.com/feeds/api/users';
+ const VIDEO_URI = 'https://gdata.youtube.com/feeds/api/videos';
const PLAYLIST_REL = 'http://gdata.youtube.com/schemas/2007#playlist';
const USER_UPLOADS_REL = 'http://gdata.youtube.com/schemas/2007#user.uploads';
const USER_PLAYLISTS_REL = 'http://gdata.youtube.com/schemas/2007#user.playlists';
@@ -113,9 +113,9 @@
const VIDEO_RESPONSES_REL = 'http://gdata.youtube.com/schemas/2007#video.responses';
const VIDEO_RATINGS_REL = 'http://gdata.youtube.com/schemas/2007#video.ratings';
const VIDEO_COMPLAINTS_REL = 'http://gdata.youtube.com/schemas/2007#video.complaints';
- const ACTIVITY_FEED_URI = 'http://gdata.youtube.com/feeds/api/events';
+ const ACTIVITY_FEED_URI = 'https://gdata.youtube.com/feeds/api/events';
const FRIEND_ACTIVITY_FEED_URI =
- 'http://gdata.youtube.com/feeds/api/users/default/friendsactivity';
+ 'https://gdata.youtube.com/feeds/api/users/default/friendsactivity';
/**
* The URI of the in-reply-to schema for comments in reply to
@@ -132,7 +132,7 @@
* @var string
*/
const INBOX_FEED_URI =
- 'http://gdata.youtube.com/feeds/api/users/default/inbox';
+ 'https://gdata.youtube.com/feeds/api/users/default/inbox';
/**
* The maximum number of users for which activity can be requested for,
@@ -256,7 +256,7 @@
if ($location == null) {
$uri = self::VIDEO_URI;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -286,7 +286,7 @@
$uri = self::VIDEO_URI . "/" . $videoId;
}
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -324,7 +324,7 @@
$uri = self::VIDEO_URI . "/" . $videoId . "/" .
self::RELATED_URI_SUFFIX;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -346,7 +346,7 @@
$uri = self::VIDEO_URI . "/" . $videoId . "/" .
self::RESPONSES_URI_SUFFIX;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -367,7 +367,7 @@
if ($videoId !== null) {
$uri = self::VIDEO_URI . "/" . $videoId . "/comments";
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -398,7 +398,7 @@
$location->setFeedType('top rated');
}
}
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -430,7 +430,7 @@
$location->setFeedType('most viewed');
}
}
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -461,7 +461,7 @@
$location->setFeedType('recently featured');
}
}
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -493,7 +493,7 @@
$location->setFeedType('watch on mobile');
}
}
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -513,7 +513,7 @@
if ($user !== null) {
$uri = self::USER_URI . '/' . $user . '/playlists';
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -531,7 +531,7 @@
public function getPlaylistVideoFeed($location)
{
if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -551,7 +551,7 @@
if ($user !== null) {
$uri = self::USER_URI . '/' . $user . '/subscriptions';
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -571,7 +571,7 @@
if ($user !== null) {
$uri = self::USER_URI . '/' . $user . '/contacts';
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -592,7 +592,7 @@
$uri = self::USER_URI . '/' . $user . '/' .
self::UPLOADS_URI_SUFFIX;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -613,7 +613,7 @@
$uri = self::USER_URI . '/' . $user . '/' .
self::FAVORITES_URI_SUFFIX;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -633,7 +633,7 @@
if ($user !== null) {
$uri = self::USER_URI . '/' . $user;
} else if ($location instanceof Zend_Gdata_Query) {
- $uri = $location->getQueryUrl();
+ $uri = $location->getQueryUrl($this->getMajorProtocolVersion());
} else {
$uri = $location;
}
@@ -697,7 +697,7 @@
* @return array An array containing a token and URL
*/
public function getFormUploadToken($videoEntry,
- $url='http://gdata.youtube.com/action/GetUploadToken')
+ $url='https://gdata.youtube.com/action/GetUploadToken')
{
if ($url != null && is_string($url)) {
// $response is a Zend_Http_response object
@@ -729,7 +729,7 @@
$uri = null;
if ($username instanceof Zend_Gdata_Query) {
- $uri = $username->getQueryUrl();
+ $uri = $username->getQueryUrl($this->getMajorProtocolVersion());
} else {
if (count(explode(',', $username)) >
self::ACTIVITY_FEED_MAX_USERS) {
@@ -834,7 +834,7 @@
$messageEntry->setSummary($this->newSummary($body));
}
- $insertUrl = 'http://gdata.youtube.com/feeds/api/users/' .
+ $insertUrl = 'https://gdata.youtube.com/feeds/api/users/' .
$recipientUserName . '/inbox';
$response = $this->insertEntry($messageEntry, $insertUrl,
'Zend_Gdata_YouTube_InboxEntry');
@@ -844,11 +844,11 @@
/**
* Post a comment in reply to an existing comment
*
- * @param $commentEntry Zend_Gdata_YouTube_CommentEntry The comment entry
- * to reply to
- * @param $commentText string The text of the comment to post
- * @return A Zend_Gdata_YouTube_CommentEntry representing the posted
- * comment
+ * @param Zend_Gdata_YouTube_CommentEntry $commentEntry The comment entry
+ * to reply to
+ * @param string $commentText The text of the
+ * comment to post
+ * @return Zend_Gdata_YouTube_CommentEntry the posted comment
*/
public function replyToCommentEntry($commentEntry, $commentText)
{
--- a/web/lib/Zend/Gdata/YouTube/ActivityEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/ActivityEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Health
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActivityEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActivityEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_ActivityEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/YouTube/ActivityFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/ActivityFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActivityFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActivityFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_ActivityFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/YouTube/CommentEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/CommentEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommentEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommentEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_CommentEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/YouTube/CommentFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/CommentFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommentFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CommentFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_CommentFeed extends Zend_Gdata_Feed
--- a/web/lib/Zend/Gdata/YouTube/ContactEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/ContactEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContactEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContactEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_ContactEntry extends Zend_Gdata_YouTube_UserProfileEntry
--- a/web/lib/Zend/Gdata/YouTube/ContactFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/ContactFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContactFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContactFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_ContactFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/Extension/AboutMe.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/AboutMe.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AboutMe.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AboutMe.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_AboutMe extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Age.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Age.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Age.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Age.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Age extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Books.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Books.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Books.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Books.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Books extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Company.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Company.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Company.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Company.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Company extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Control.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Control.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Control.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Control.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Control extends Zend_Gdata_App_Extension_Control
--- a/web/lib/Zend/Gdata/YouTube/Extension/CountHint.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/CountHint.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CountHint.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CountHint.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_CountHint extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Description.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Description.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Description.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Description.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Description extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Duration.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Duration.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Duration.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Duration.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Duration extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/FirstName.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/FirstName.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FirstName.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FirstName.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_FirstName extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Gender.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Gender.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gender.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Gender.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Gender extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Hobbies.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Hobbies.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hobbies.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hobbies.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Hobbies extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Hometown.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Hometown.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hometown.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hometown.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Hometown extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/LastName.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/LastName.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LastName.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LastName.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_LastName extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Link.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Link.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Link.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Link.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Link extends Zend_Gdata_App_Extension_Link
--- a/web/lib/Zend/Gdata/YouTube/Extension/Location.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Location.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Location.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Location.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Location extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/MediaContent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/MediaContent.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaContent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaContent.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_MediaContent extends Zend_Gdata_Media_Extension_MediaContent
--- a/web/lib/Zend/Gdata/YouTube/Extension/MediaCredit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/MediaCredit.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaCredit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaCredit.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_MediaCredit extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/MediaGroup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/MediaGroup.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaGroup.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaGroup.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -70,7 +70,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_MediaGroup extends Zend_Gdata_Media_Extension_MediaGroup
--- a/web/lib/Zend/Gdata/YouTube/Extension/MediaRating.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/MediaRating.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage Media
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaRating.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaRating.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_MediaRating extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Movies.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Movies.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Movies.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Movies.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Movies extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Music.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Music.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Music.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Music.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Music extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/NoEmbed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/NoEmbed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NoEmbed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NoEmbed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_NoEmbed extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Occupation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Occupation.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Occupation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Occupation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Occupation extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/PlaylistId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/PlaylistId.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistId.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_PlaylistId extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/PlaylistTitle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/PlaylistTitle.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistTitle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistTitle.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_PlaylistTitle extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Position.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Position.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Position.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Position.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Position extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Private.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Private.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Private.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Private.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Private extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/QueryString.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/QueryString.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryString.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryString.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_QueryString extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Racy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Racy.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Racy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Racy.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Racy extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Recorded.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Recorded.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Recorded.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Recorded.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Recorded extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Relationship.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Relationship.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Relationship.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Relationship.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Relationship extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/ReleaseDate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/ReleaseDate.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ReleaseDate.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ReleaseDate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_ReleaseDate extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/School.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/School.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: School.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: School.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_School extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/State.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/State.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: State.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: State.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_State extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Statistics.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Statistics.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Statistics.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Statistics.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Statistics extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Status.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Status.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Status.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Status.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Status extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Token.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Token.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Token.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Token.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Token extends Zend_Gdata_App_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Uploaded.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Uploaded.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Uploaded.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Uploaded.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Uploaded extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/Username.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/Username.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Username.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Username.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_Username extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/Extension/VideoId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/Extension/VideoId.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoId.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VideoId.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_Extension_VideoId extends Zend_Gdata_Extension
--- a/web/lib/Zend/Gdata/YouTube/InboxEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/InboxEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InboxEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InboxEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -53,7 +53,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_InboxEntry extends Zend_Gdata_Media_Entry
--- a/web/lib/Zend/Gdata/YouTube/InboxFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/InboxFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InboxFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InboxFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_InboxFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/MediaEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/MediaEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MediaEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MediaEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_MediaEntry extends Zend_Gdata_Media_Entry
--- a/web/lib/Zend/Gdata/YouTube/PlaylistListEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/PlaylistListEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistListEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistListEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_PlaylistListEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/YouTube/PlaylistListFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/PlaylistListFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistListFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistListFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_PlaylistListFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/PlaylistVideoEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/PlaylistVideoEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistVideoEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistVideoEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_PlaylistVideoEntry extends Zend_Gdata_YouTube_VideoEntry
--- a/web/lib/Zend/Gdata/YouTube/PlaylistVideoFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/PlaylistVideoFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlaylistVideoFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlaylistVideoFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_PlaylistVideoFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/SubscriptionEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/SubscriptionEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubscriptionEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubscriptionEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -72,7 +72,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_SubscriptionEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/YouTube/SubscriptionFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/SubscriptionFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubscriptionFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubscriptionFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_SubscriptionFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/UserProfileEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/UserProfileEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserProfileEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UserProfileEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -132,7 +132,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_UserProfileEntry extends Zend_Gdata_Entry
--- a/web/lib/Zend/Gdata/YouTube/VideoEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/VideoEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VideoEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -92,7 +92,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_VideoEntry extends Zend_Gdata_YouTube_MediaEntry
--- a/web/lib/Zend/Gdata/YouTube/VideoFeed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/VideoFeed.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VideoFeed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_VideoFeed extends Zend_Gdata_Media_Feed
--- a/web/lib/Zend/Gdata/YouTube/VideoQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Gdata/YouTube/VideoQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoQuery.php 20097 2010-01-06 15:40:27Z bate $
+ * @version $Id: VideoQuery.php 25185 2013-01-08 08:07:08Z frosch $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Gdata
* @subpackage YouTube
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Gdata_YouTube_VideoQuery extends Zend_Gdata_Query
@@ -92,7 +92,7 @@
'Video ID must be set for feed of type: ' . $feedType);
} else {
$this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' . $videoId .
- 'responses';
+ '/responses';
}
break;
case 'comments':
@@ -102,7 +102,7 @@
'Video ID must be set for feed of type: ' . $feedType);
} else {
$this->_url = Zend_Gdata_YouTube::VIDEO_URI . '/' .
- $videoId . 'comments';
+ $videoId . '/comments';
if ($entry !== null) {
$this->_url .= '/' . $entry;
}
--- a/web/lib/Zend/Http/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client
- * @version $Id: Client.php 23443 2010-11-24 11:53:13Z shahar $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -60,7 +60,7 @@
* @package Zend_Http
* @subpackage Client
* @throws Zend_Http_Client_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client
@@ -103,6 +103,12 @@
const ENC_FORMDATA = 'multipart/form-data';
/**
+ * Value types for Body key/value pairs
+ */
+ const VTYPE_SCALAR = 'SCALAR';
+ const VTYPE_FILE = 'FILE';
+
+ /**
* Configuration array, set using the constructor or using ::setConfig()
*
* @var array
@@ -203,6 +209,16 @@
protected $files = array();
/**
+ * Ordered list of keys from key/value pair data to include in body
+ *
+ * An associative array, where each element is of the format:
+ * '<field name>' => VTYPE_SCALAR | VTYPE_FILE
+ *
+ * @var array
+ */
+ protected $body_field_order = array();
+
+ /**
* The client's cookie jar
*
* @var Zend_Http_CookieJar
@@ -231,6 +247,20 @@
protected $redirectCounter = 0;
/**
+ * Status for unmasking GET array params
+ *
+ * @var boolean
+ */
+ protected $_unmaskStatus = false;
+
+ /**
+ * Status if the http_build_query function escapes brackets
+ *
+ * @var boolean
+ */
+ protected $_queryBracketsEscaped = true;
+
+ /**
* Fileinfo magic database resource
*
* This variable is populated the first time _detectFileMimeType is called
@@ -255,6 +285,8 @@
if ($config !== null) {
$this->setConfig($config);
}
+
+ $this->_queryBracketsEscaped = version_compare(phpversion(), '5.1.3', '>=');
}
/**
@@ -266,7 +298,10 @@
*/
public function setUri($uri)
{
- if (is_string($uri)) {
+ if ($uri instanceof Zend_Uri_Http) {
+ // clone the URI in order to keep the passed parameter constant
+ $uri = clone $uri;
+ } elseif (is_string($uri)) {
$uri = Zend_Uri::factory($uri);
}
@@ -355,7 +390,7 @@
throw new Zend_Http_Client_Exception("'{$method}' is not a valid HTTP request method.");
}
- if ($method == self::POST && $this->enctype === null) {
+ if (($method == self::POST || $method == self::PUT || $method == self::DELETE) && $this->enctype === null) {
$this->setEncType(self::ENC_URLENCODED);
}
@@ -501,6 +536,12 @@
break;
case 'post':
$parray = &$this->paramsPost;
+ if ( $value === null ) {
+ if (isset($this->body_field_order[$name]))
+ unset($this->body_field_order[$name]);
+ } else {
+ $this->body_field_order[$name] = self::VTYPE_SCALAR;
+ }
break;
}
@@ -718,6 +759,8 @@
'ctype' => $ctype,
'data' => $data
);
+
+ $this->body_field_order[$formname] = self::VTYPE_FILE;
return $this;
}
@@ -764,6 +807,35 @@
}
/**
+ * Set the unmask feature for GET parameters as array
+ *
+ * Example:
+ * foo%5B0%5D=a&foo%5B1%5D=b
+ * becomes
+ * foo=a&foo=b
+ *
+ * This is usefull for some services
+ *
+ * @param boolean $status
+ * @return Zend_Http_Client
+ */
+ public function setUnmaskStatus($status = true)
+ {
+ $this->_unmaskStatus = (BOOL)$status;
+ return $this;
+ }
+
+ /**
+ * Returns the currently configured unmask status
+ *
+ * @return boolean
+ */
+ public function getUnmaskStatus()
+ {
+ return $this->_unmaskStatus;
+ }
+
+ /**
* Clear all GET and POST parameters
*
* Should be used to reset the request parameters if the client is
@@ -782,6 +854,7 @@
$this->paramsPost = array();
$this->files = array();
$this->raw_post_data = null;
+ $this->enctype = null;
if($clearAll) {
$this->headers = array();
@@ -866,6 +939,10 @@
*/
public function getAdapter()
{
+ if (null === $this->adapter) {
+ $this->setAdapter($this->config['adapter']);
+ }
+
return $this->adapter;
}
@@ -911,10 +988,10 @@
require_once 'Zend/Http/Client/Exception.php';
throw new Zend_Http_Client_Exception("Could not open temp file {$this->_stream_name}");
}
-
+
return $fp;
}
-
+
/**
* Send the HTTP request and return an HTTP response object
*
@@ -955,6 +1032,15 @@
$query = str_replace('+', '%20', $query);
}
+ // @see ZF-11671 to unmask for some services to foo=val1&foo=val2
+ if ($this->getUnmaskStatus()) {
+ if ($this->_queryBracketsEscaped) {
+ $query = preg_replace('/%5B(?:[0-9]|[1-9][0-9]+)%5D=/', '=', $query);
+ } else {
+ $query = preg_replace('/\\[(?:[0-9]|[1-9][0-9]+)\\]=/', '=', $query);
+ }
+ }
+
$uri->setQuery($query);
}
@@ -994,7 +1080,10 @@
}
if($this->config['output_stream']) {
- rewind($stream);
+ $streamMetaData = stream_get_meta_data($stream);
+ if ($streamMetaData['seekable']) {
+ rewind($stream);
+ }
// cleanup the adapter
$this->adapter->setOutputStream(null);
$response = Zend_Http_Response_Stream::fromStream($response, $stream);
@@ -1019,6 +1108,10 @@
// If we got redirected, look for the Location header
if ($response->isRedirect() && ($location = $response->getHeader('location'))) {
+ // Avoid problems with buggy servers that add whitespace at the
+ // end of some headers (See ZF-11283)
+ $location = trim($location);
+
// Check whether we send the exact same request again, or drop the parameters
// and send a GET request
if ($response->getStatus() == 303 ||
@@ -1030,7 +1123,7 @@
}
// If we got a well formed absolute URI
- if (Zend_Uri_Http::check($location)) {
+ if (($scheme = substr($location, 0, 6)) && ($scheme == 'http:/' || $scheme == 'https:')) {
$this->setHeaders('host', null);
$this->setUri($location);
@@ -1198,16 +1291,30 @@
$boundary = '---ZENDHTTPCLIENT-' . md5(microtime());
$this->setHeaders(self::CONTENT_TYPE, self::ENC_FORMDATA . "; boundary={$boundary}");
- // Get POST parameters and encode them
- $params = self::_flattenParametersArray($this->paramsPost);
- foreach ($params as $pp) {
- $body .= self::encodeFormData($boundary, $pp[0], $pp[1]);
- }
-
- // Encode files
- foreach ($this->files as $file) {
- $fhead = array(self::CONTENT_TYPE => $file['ctype']);
- $body .= self::encodeFormData($boundary, $file['formname'], $file['data'], $file['filename'], $fhead);
+ // Encode all files and POST vars in the order they were given
+ foreach ($this->body_field_order as $fieldName=>$fieldType) {
+ switch ($fieldType) {
+ case self::VTYPE_FILE:
+ foreach ($this->files as $file) {
+ if ($file['formname']===$fieldName) {
+ $fhead = array(self::CONTENT_TYPE => $file['ctype']);
+ $body .= self::encodeFormData($boundary, $file['formname'], $file['data'], $file['filename'], $fhead);
+ }
+ }
+ break;
+ case self::VTYPE_SCALAR:
+ if (isset($this->paramsPost[$fieldName])) {
+ if (is_array($this->paramsPost[$fieldName])) {
+ $flattened = self::_flattenParametersArray($this->paramsPost[$fieldName], $fieldName);
+ foreach ($flattened as $pp) {
+ $body .= self::encodeFormData($boundary, $pp[0], $pp[1]);
+ }
+ } else {
+ $body .= self::encodeFormData($boundary, $fieldName, $this->paramsPost[$fieldName]);
+ }
+ }
+ break;
+ }
}
$body .= "--{$boundary}--\r\n";
--- a/web/lib/Zend/Http/Client/Adapter/Curl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Curl.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Curl.php 22216 2010-05-20 21:12:05Z dragonbe $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Curl.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Adapter_Curl implements Zend_Http_Client_Adapter_Interface, Zend_Http_Client_Adapter_Stream
@@ -334,7 +334,7 @@
$curlMethod = CURLOPT_CUSTOMREQUEST;
$curlValue = "TRACE";
break;
-
+
case Zend_Http_Client::HEAD:
$curlMethod = CURLOPT_CUSTOMREQUEST;
$curlValue = "HEAD";
@@ -393,6 +393,9 @@
} elseif ($method == Zend_Http_Client::PUT) {
// This is a PUT by a setRawData string, not by file-handle
curl_setopt($this->_curl, CURLOPT_POSTFIELDS, $body);
+ } elseif ($method == Zend_Http_Client::DELETE) {
+ // This is a DELETE by a setRawData string
+ curl_setopt($this->_curl, CURLOPT_POSTFIELDS, $body);
}
// set additional curl options
--- a/web/lib/Zend/Http/Client/Adapter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter_Exception
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Adapter_Exception extends Zend_Http_Client_Exception
--- a/web/lib/Zend/Http/Client/Adapter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Http_Client_Adapter_Interface
--- a/web/lib/Zend/Http/Client/Adapter/Proxy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Proxy.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Proxy.php 21792 2010-04-08 00:27:06Z stas $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Proxy.php 25273 2013-03-06 08:02:21Z frosch $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Adapter_Proxy extends Zend_Http_Client_Adapter_Socket
@@ -66,7 +66,7 @@
'proxy_user' => '',
'proxy_pass' => '',
'proxy_auth' => Zend_Http_Client::AUTH_BASIC,
- 'persistent' => false
+ 'persistent' => false,
);
/**
@@ -75,6 +75,13 @@
* @var boolean
*/
protected $negotiated = false;
+
+ /**
+ * Stores the last CONNECT handshake request
+ *
+ * @var string
+ */
+ protected $connectHandshakeRequest;
/**
* Connect to the remote server
@@ -89,13 +96,13 @@
public function connect($host, $port = 80, $secure = false)
{
// If no proxy is set, fall back to Socket adapter
- if (! $this->config['proxy_host']) {
+ if (!$this->config['proxy_host']) {
return parent::connect($host, $port, $secure);
}
-
+
/* Url might require stream context even if proxy connection doesn't */
if ($secure) {
- $this->config['sslusecontext'] = true;
+ $this->config['sslusecontext'] = true;
}
// Connect (a non-secure connection) to the proxy server
@@ -115,36 +122,63 @@
* @param array $headers
* @param string $body
* @return string Request as string
+ * @throws Zend_Http_Client_Adapter_Exception
*/
- public function write($method, $uri, $http_ver = '1.1', $headers = array(), $body = '')
+ public function write(
+ $method, $uri, $http_ver = '1.1', $headers = array(), $body = ''
+ )
{
// If no proxy is set, fall back to default Socket adapter
- if (! $this->config['proxy_host']) return parent::write($method, $uri, $http_ver, $headers, $body);
+ if (!$this->config['proxy_host']) {
+ return parent::write($method, $uri, $http_ver, $headers, $body);
+ }
// Make sure we're properly connected
- if (! $this->socket) {
+ if (!$this->socket) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected");
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Trying to write but we are not connected'
+ );
}
$host = $this->config['proxy_host'];
$port = $this->config['proxy_port'];
- if ($this->connected_to[0] != "tcp://$host" || $this->connected_to[1] != $port) {
+ if ($this->connected_to[0] != "tcp://$host"
+ || $this->connected_to[1] != $port
+ ) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are connected to the wrong proxy server");
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Trying to write but we are connected to the wrong proxy server'
+ );
}
// Add Proxy-Authorization header
- if ($this->config['proxy_user'] && ! isset($headers['proxy-authorization'])) {
- $headers['proxy-authorization'] = Zend_Http_Client::encodeAuthHeader(
- $this->config['proxy_user'], $this->config['proxy_pass'], $this->config['proxy_auth']
- );
+ if ($this->config['proxy_user']) {
+ // Check to see if one already exists
+ $hasProxyAuthHeader = false;
+ foreach ($headers as $k => $v) {
+ if ((string) $k == 'proxy-authorization'
+ || preg_match("/^proxy-authorization:/i", $v)
+ ) {
+ $hasProxyAuthHeader = true;
+ break;
+ }
+ }
+ if (!$hasProxyAuthHeader) {
+ $headers[] = 'Proxy-authorization: '
+ . Zend_Http_Client::encodeAuthHeader(
+ $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);
+ if ($uri->getScheme() == 'https' && (!$this->negotiated)) {
+ $this->connectHandshake(
+ $uri->getHost(), $uri->getPort(), $http_ver, $headers
+ );
$this->negotiated = true;
}
@@ -174,20 +208,24 @@
// Add the request body
$request .= "\r\n" . $body;
}
-
+
// Send the request
- if (! @fwrite($this->socket, $request)) {
+ if (!@fwrite($this->socket, $request)) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Error writing request to proxy server");
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Error writing request to proxy server'
+ );
}
-
+
if(is_resource($body)) {
if(stream_copy_to_stream($body, $this->socket) == 0) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception('Error writing request to server');
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Error writing request to server'
+ );
}
}
-
+
return $request;
}
@@ -198,30 +236,41 @@
* @param integer $port
* @param string $http_ver
* @param array $headers
+ * @return void
+ * @throws Zend_Http_Client_Adapter_Exception
*/
- protected function connectHandshake($host, $port = 443, $http_ver = '1.1', array &$headers = array())
+ protected function connectHandshake(
+ $host, $port = 443, $http_ver = '1.1', array &$headers = array()
+ )
{
$request = "CONNECT $host:$port HTTP/$http_ver\r\n" .
"Host: " . $this->config['proxy_host'] . "\r\n";
- // Add the user-agent header
- if (isset($this->config['useragent'])) {
- $request .= "User-agent: " . $this->config['useragent'] . "\r\n";
- }
+ // Process provided headers, including important ones to CONNECT request
+ foreach ($headers as $k => $v) {
+ switch (strtolower(substr($v,0,strpos($v,':')))) {
+ case 'proxy-authorization':
+ // break intentionally omitted
- // If the proxy-authorization header is set, send it to proxy but remove
- // it from headers sent to target host
- if (isset($headers['proxy-authorization'])) {
- $request .= "Proxy-authorization: " . $headers['proxy-authorization'] . "\r\n";
- unset($headers['proxy-authorization']);
+ case 'user-agent':
+ $request .= $v . "\r\n";
+ break;
+
+ default:
+ break;
+ }
}
-
$request .= "\r\n";
+
+ // @see ZF-3189
+ $this->connectHandshakeRequest = $request;
// Send the request
- if (! @fwrite($this->socket, $request)) {
+ if (!@fwrite($this->socket, $request)) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Error writing request to proxy server");
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Error writing request to proxy server'
+ );
}
// Read response headers only
@@ -231,14 +280,18 @@
$gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
if ($gotStatus) {
$response .= $line;
- if (!chop($line)) break;
+ if (!chop($line)) {
+ break;
+ }
}
}
// Check that the response from the proxy is 200
if (Zend_Http_Response::extractCode($response) != 200) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Unable to connect to HTTPS proxy. Server response: " . $response);
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Unable to connect to HTTPS proxy. Server response: ' . $response
+ );
}
// If all is good, switch socket to secure mode. We have to fall back
@@ -253,13 +306,17 @@
$success = false;
foreach($modes as $mode) {
$success = stream_socket_enable_crypto($this->socket, true, $mode);
- if ($success) break;
+ if ($success) {
+ break;
+ }
}
- if (! $success) {
- require_once 'Zend/Http/Client/Adapter/Exception.php';
- throw new Zend_Http_Client_Adapter_Exception("Unable to connect to" .
- " HTTPS server through proxy: could not negotiate secure connection.");
+ if (!$success) {
+ require_once 'Zend/Http/Client/Adapter/Exception.php';
+ throw new Zend_Http_Client_Adapter_Exception(
+ 'Unable to connect to HTTPS server through proxy: could not '
+ . 'negotiate secure connection.'
+ );
}
}
@@ -279,6 +336,8 @@
*/
public function __destruct()
{
- if ($this->socket) $this->close();
+ if ($this->socket) {
+ $this->close();
+ }
}
}
--- a/web/lib/Zend/Http/Client/Adapter/Socket.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Socket.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Socket.php 22576 2010-07-16 15:49:24Z dragonbe $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Socket.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Adapter_Socket implements Zend_Http_Client_Adapter_Interface, Zend_Http_Client_Adapter_Stream
@@ -62,11 +62,11 @@
/**
* Stream for storing output
- *
+ *
* @var resource
*/
protected $out_stream = null;
-
+
/**
* Parameters array
*
@@ -124,17 +124,17 @@
}
}
- /**
- * Retrieve the array of all configuration options
- *
- * @return array
- */
- public function getConfig()
- {
- return $this->config;
- }
+ /**
+ * Retrieve the array of all configuration options
+ *
+ * @return array
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
- /**
+ /**
* Set the stream context for the TCP connection to the server
*
* Can accept either a pre-existing stream context resource, or an array
@@ -290,13 +290,13 @@
// Add the request body
$request .= "\r\n" . $body;
}
-
+
// Send the request
if (! @fwrite($this->socket, $request)) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
throw new Zend_Http_Client_Adapter_Exception('Error writing request to server');
}
-
+
if(is_resource($body)) {
if(stream_copy_to_stream($body, $this->socket) == 0) {
require_once 'Zend/Http/Client/Adapter/Exception.php';
@@ -317,7 +317,6 @@
// First, read headers only
$response = '';
$gotStatus = false;
- $stream = !empty($this->config['stream']);
while (($line = @fgets($this->socket)) !== false) {
$gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false);
@@ -326,7 +325,7 @@
if (rtrim($line) === '') break;
}
}
-
+
$this->_checkSocketReadTimeout();
$statusCode = Zend_Http_Response::extractCode($response);
@@ -353,7 +352,7 @@
// If we got a 'transfer-encoding: chunked' header
if (isset($headers['transfer-encoding'])) {
-
+
if (strtolower($headers['transfer-encoding']) == 'chunked') {
do {
@@ -384,7 +383,7 @@
if($this->out_stream) {
if(stream_copy_to_stream($this->socket, $this->out_stream, $read_to - $current_pos) == 0) {
$this->_checkSocketReadTimeout();
- break;
+ break;
}
} else {
$line = @fread($this->socket, $read_to - $current_pos);
@@ -405,11 +404,11 @@
} while ($chunksize > 0);
} else {
$this->close();
- require_once 'Zend/Http/Client/Adapter/Exception.php';
+ require_once 'Zend/Http/Client/Adapter/Exception.php';
throw new Zend_Http_Client_Adapter_Exception('Cannot handle "' .
$headers['transfer-encoding'] . '" transfer encoding');
}
-
+
// We automatically decode chunked-messages when writing to a stream
// this means we have to disallow the Zend_Http_Response to do it again
if ($this->out_stream) {
@@ -421,11 +420,11 @@
// If we got more than one Content-Length header (see ZF-9404) use
// the last value sent
if (is_array($headers['content-length'])) {
- $contentLength = $headers['content-length'][count($headers['content-length']) - 1];
+ $contentLength = $headers['content-length'][count($headers['content-length']) - 1];
} else {
$contentLength = $headers['content-length'];
}
-
+
$current_pos = ftell($this->socket);
$chunk = '';
@@ -436,7 +435,7 @@
if($this->out_stream) {
if(@stream_copy_to_stream($this->socket, $this->out_stream, $read_to - $current_pos) == 0) {
$this->_checkSocketReadTimeout();
- break;
+ break;
}
} else {
$chunk = @fread($this->socket, $read_to - $current_pos);
@@ -459,7 +458,7 @@
if($this->out_stream) {
if(@stream_copy_to_stream($this->socket, $this->out_stream) == 0) {
$this->_checkSocketReadTimeout();
- break;
+ break;
}
} else {
$buff = @fread($this->socket, 8192);
@@ -516,19 +515,19 @@
}
}
}
-
+
/**
* Set output stream for the response
- *
+ *
* @param resource $stream
* @return Zend_Http_Client_Adapter_Socket
*/
- public function setOutputStream($stream)
+ public function setOutputStream($stream)
{
$this->out_stream = $stream;
return $this;
}
-
+
/**
* Destructor: make sure the socket is disconnected
*
--- a/web/lib/Zend/Http/Client/Adapter/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Stream.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,18 +29,18 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Http_Client_Adapter_Stream
{
/**
* Set output stream
- *
+ *
* This function sets output stream where the result will be stored.
- *
+ *
* @param resource $stream Stream to write the output to
- *
+ *
*/
- function setOutputStream($stream);
+ public function setOutputStream($stream);
}
--- a/web/lib/Zend/Http/Client/Adapter/Test.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Adapter/Test.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @version $Id: Test.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Test.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -44,7 +44,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Adapter_Test implements Zend_Http_Client_Adapter_Interface
@@ -235,4 +235,14 @@
}
$this->responseIndex = $index;
}
+
+ /**
+ * Retrieve the array of all configuration options
+ *
+ * @return array
+ */
+ public function getConfig()
+ {
+ return $this->config;
+ }
}
--- a/web/lib/Zend/Http/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Client_Exception
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Client_Exception extends Zend_Http_Exception
--- a/web/lib/Zend/Http/Cookie.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Cookie.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Cookie
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Cookie.php 23443 2010-11-24 11:53:13Z shahar $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Cookie.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -41,7 +41,7 @@
*
* @category Zend
* @package Zend_Http
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Cookie
--- a/web/lib/Zend/Http/CookieJar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/CookieJar.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Http
* @subpackage CookieJar
- * @version $Id: CookieJar.php 23443 2010-11-24 11:53:13Z shahar $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: CookieJar.php 24856 2012-06-01 01:10:47Z adamlundrigan $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -54,7 +54,7 @@
* @category Zend
* @package Zend_Http
* @subpackage CookieJar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_CookieJar implements Countable, IteratorAggregate
@@ -78,6 +78,13 @@
const COOKIE_STRING_CONCAT = 2;
/**
+ * Return all cookies as one long string (strict mode)
+ * - Single space after the semi-colon separating each cookie
+ * - Remove trailing semi-colon, if any
+ */
+ const COOKIE_STRING_CONCAT_STRICT = 3;
+
+ /**
* Array storing cookies
*
* Cookies are stored according to domain and path:
@@ -173,6 +180,9 @@
public function getAllCookies($ret_as = self::COOKIE_OBJECT)
{
$cookies = $this->_flattenCookiesArray($this->cookies, $ret_as);
+ if($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
+ $cookies = rtrim(trim($cookies), ';');
+ }
return $cookies;
}
@@ -209,6 +219,9 @@
// Now, use self::_flattenCookiesArray again - only to convert to the return format ;)
$ret = $this->_flattenCookiesArray($ret, $ret_as);
+ if($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
+ $ret = rtrim(trim($ret), ';');
+ }
return $ret;
}
@@ -245,6 +258,10 @@
return $cookie;
break;
+ case self::COOKIE_STRING_CONCAT_STRICT:
+ return rtrim(trim($cookie->__toString()), ';');
+ break;
+
case self::COOKIE_STRING_ARRAY:
case self::COOKIE_STRING_CONCAT:
return $cookie->__toString();
@@ -270,9 +287,12 @@
*/
protected function _flattenCookiesArray($ptr, $ret_as = self::COOKIE_OBJECT) {
if (is_array($ptr)) {
- $ret = ($ret_as == self::COOKIE_STRING_CONCAT ? '' : array());
+ $ret = ($ret_as == self::COOKIE_STRING_CONCAT || $ret_as == self::COOKIE_STRING_CONCAT_STRICT) ? '' : array();
foreach ($ptr as $item) {
- if ($ret_as == self::COOKIE_STRING_CONCAT) {
+ if ($ret_as == self::COOKIE_STRING_CONCAT_STRICT) {
+ $postfix_combine = (!is_array($item) ? ' ' : '');
+ $ret .= $this->_flattenCookiesArray($item, $ret_as) . $postfix_combine;
+ } elseif ($ret_as == self::COOKIE_STRING_CONCAT) {
$ret .= $this->_flattenCookiesArray($item, $ret_as);
} else {
$ret = array_merge($ret, $this->_flattenCookiesArray($item, $ret_as));
@@ -285,6 +305,9 @@
return array($ptr->__toString());
break;
+ case self::COOKIE_STRING_CONCAT_STRICT:
+ // break intentionally omitted
+
case self::COOKIE_STRING_CONCAT:
return $ptr->__toString();
break;
--- a/web/lib/Zend/Http/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Exception
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Http
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Exception extends Zend_Exception
--- a/web/lib/Zend/Http/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Response
- * @version $Id: Response.php 22810 2010-08-08 10:29:09Z shahar $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Response.php 25081 2012-11-06 20:59:47Z rob $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Http
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Response
@@ -165,7 +165,7 @@
require_once 'Zend/Http/Exception.php';
throw new Zend_Http_Exception("'{$value}' is not a valid HTTP header");
}
-
+
$name = trim($header[0]);
$value = trim($header[1]);
}
@@ -641,7 +641,7 @@
* @link http://framework.zend.com/issues/browse/ZF-6040
*/
$zlibHeader = unpack('n', substr($body, 0, 2));
- if ($zlibHeader[1] % 31 == 0) {
+ if ($zlibHeader[1] % 31 == 0 && ord($body[0]) == 0x78 && in_array(ord($body[1]), array(0x01, 0x5e, 0x9c, 0xda))) {
return gzuncompress($body);
} else {
return gzinflate($body);
--- a/web/lib/Zend/Http/Response/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/Response/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,8 +16,8 @@
* @category Zend
* @package Zend_Http
* @subpackage Response
- * @version $Id: Stream.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Http
* @subpackage Response
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_Response_Stream extends Zend_Http_Response
@@ -90,7 +90,7 @@
/**
* Set the cleanup trigger
*
- * @param $cleanup Set cleanup trigger
+ * @param bool $cleanup Set cleanup trigger
*/
public function setCleanup($cleanup = true) {
$this->_cleanup = $cleanup;
--- a/web/lib/Zend/Http/UserAgent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http_UserAgent
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Http_UserAgent
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent implements Serializable
@@ -52,17 +52,17 @@
const DEFAULT_BROWSER_TYPE = 'desktop';
/**
- * Default User Agent chain to prevent empty value
+ * Default User Agent chain to prevent empty value
*/
const DEFAULT_HTTP_USER_AGENT = 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)';
/**
- * Default Http Accept param to prevent empty value
+ * Default Http Accept param to prevent empty value
*/
const DEFAULT_HTTP_ACCEPT = "application/xhtml+xml";
/**
- * Default markup language
+ * Default markup language
*/
const DEFAULT_MARKUP_LANGUAGE = "xhtml";
@@ -85,9 +85,9 @@
/**
* Array to store config
*
- * Default values are provided to ensure specific keys are present at
+ * Default values are provided to ensure specific keys are present at
* instantiation.
- *
+ *
* @var array
*/
protected $_config = array(
@@ -113,7 +113,7 @@
* - User-Agent (defined in $_server)
* - HTTP Accept value (defined in $_server)
* - $_storage
- *
+ *
* @var bool
*/
protected $_immutable = false;
@@ -139,7 +139,7 @@
/**
* Server variable
- *
+ *
* @var array
*/
protected $_server;
@@ -153,8 +153,8 @@
/**
* Constructor
- *
- * @param null|array|Zend_Config|ArrayAccess $options
+ *
+ * @param null|array|Zend_Config|ArrayAccess $options
* @return void
*/
public function __construct($options = null)
@@ -166,16 +166,17 @@
/**
* Serialized representation of the object
- *
+ *
* @return string
*/
public function serialize()
{
+ $device = $this->getDevice();
$spec = array(
'browser_type' => $this->_browserType,
'config' => $this->_config,
- 'device_class' => get_class($this->_device),
- 'device' => $this->_device->serialize(),
+ 'device_class' => get_class($device),
+ 'device' => $device->serialize(),
'user_agent' => $this->getServerValue('http_user_agent'),
'http_accept' => $this->getServerValue('http_accept'),
);
@@ -184,7 +185,7 @@
/**
* Unserialize a previous representation of the object
- *
+ *
* @param string $serialized
* @return void
*/
@@ -209,8 +210,8 @@
/**
* Configure instance
- *
- * @param array|Zend_Config|ArrayAccess $options
+ *
+ * @param array|Zend_Config|ArrayAccess $options
* @return Zend_Http_UserAgent
*/
public function setOptions($options)
@@ -219,8 +220,8 @@
$options = $options->toArray();
}
- if (!is_array($options)
- && !$options instanceof ArrayAccess
+ if (!is_array($options)
+ && !$options instanceof ArrayAccess
&& !$options instanceof Traversable
) {
require_once 'Zend/Http/UserAgent/Exception.php';
@@ -273,7 +274,7 @@
/**
* Comparison of the UserAgent chain and browser signatures.
- *
+ *
* The comparison is case-insensitive : the browser signatures must be in lower
* case
*
@@ -295,8 +296,8 @@
// Call match method on device class
return call_user_func(
- array($deviceClass, 'match'),
- $userAgent,
+ array($deviceClass, 'match'),
+ $userAgent,
$this->getServer()
);
}
@@ -315,7 +316,7 @@
return $this->_browserTypeClass[$browserType];
}
- if (isset($this->_config[$browserType])
+ if (isset($this->_config[$browserType])
&& isset($this->_config[$browserType]['device'])
) {
$deviceConfig = $this->_config[$browserType]['device'];
@@ -410,9 +411,9 @@
/**
* Returns the persistent storage handler
*
- * Session storage is used by default unless a different storage adapter
- * has been set via the "persistent_storage_adapter" key. That key should
- * contain either a fully qualified class name, or a short name that
+ * Session storage is used by default unless a different storage adapter
+ * has been set via the "persistent_storage_adapter" key. That key should
+ * contain either a fully qualified class name, or a short name that
* resolves via the plugin loader.
*
* @param string $browser Browser identifier (User Agent chain)
@@ -482,20 +483,20 @@
/**
* Config parameters is an Array or a Zend_Config object
- *
+ *
* The allowed parameters are :
* - the identification sequence (can be empty) => desktop browser type is the
* default browser type returned
* $config['identification_sequence'] : ',' separated browser types
- * - the persistent storage adapter
+ * - the persistent storage adapter
* $config['persistent_storage_adapter'] = "Session" or "NonPersistent"
- * - to add or replace a browser type device
+ * - to add or replace a browser type device
* $config[(type)]['device']['path']
* $config[(type)]['device']['classname']
- * - to add or replace a browser type features adapter
+ * - to add or replace a browser type features adapter
* $config[(type)]['features']['path']
* $config[(type)]['features']['classname']
- *
+ *
* @param mixed $config (option) Config array
* @return Zend_Http_UserAgent
*/
@@ -504,7 +505,7 @@
if ($config instanceof Zend_Config) {
$config = $config->toArray();
}
-
+
// Verify that Config parameters are in an array.
if (!is_array($config) && !$config instanceof Traversable) {
require_once 'Zend/Http/UserAgent/Exception.php';
@@ -528,7 +529,12 @@
}
/**
- * @return the $device
+ * Returns the device object
+ *
+ * This is the object that will contain the various discovered device
+ * capabilities.
+ *
+ * @return Zend_Http_UserAgent_Device $device
*/
public function getDevice()
{
@@ -540,9 +546,9 @@
// search an existing identification in the session
$storage = $this->getStorage($userAgent);
-
+
if (!$storage->isEmpty()) {
- // If the user agent and features are already existing, the
+ // If the user agent and features are already existing, the
// Zend_Http_UserAgent object is serialized in the session
$object = $storage->read();
$this->unserialize($object);
@@ -551,7 +557,7 @@
// Find the browser type:
$this->setBrowserType($this->_matchUserAgent());
$this->_createDevice();
-
+
// put the result in storage:
$this->getStorage($userAgent)
->write($this->serialize());
@@ -596,10 +602,10 @@
/**
* Retrieve the "$_SERVER" array
*
- * Basically, the $_SERVER array or an equivalent container storing the
+ * Basically, the $_SERVER array or an equivalent container storing the
* data that will be introspected.
*
- * If the value has not been previously set, it sets itself from the
+ * If the value has not been previously set, it sets itself from the
* $_SERVER superglobal.
*
* @return array
@@ -613,9 +619,9 @@
}
/**
- * Retrieve the "$_SERVER" array
+ * Set the "$_SERVER" array
*
- * Basically, the $_SERVER array or an equivalent container storing the
+ * Basically, the $_SERVER array or an equivalent container storing the
* data that will be introspected.
*
* @param array|ArrayAccess $server
@@ -660,7 +666,7 @@
/**
* Retrieve a server value
- *
+ *
* @param string $key
* @return mixed
*/
@@ -700,9 +706,9 @@
/**
* Set plugin loader
- *
+ *
* @param string $type Type of plugin loader; one of 'storage', (?)
- * @param string|Zend_Loader_PluginLoader $loader
+ * @param string|Zend_Loader_PluginLoader $loader
* @return Zend_Http_UserAgent
*/
public function setPluginLoader($type, $loader)
@@ -749,7 +755,7 @@
/**
* Get a plugin loader
- *
+ *
* @param string $type A valid plugin loader type; see {@link $_loaderTypes}
* @return Zend_Loader_PluginLoader
*/
@@ -766,10 +772,10 @@
/**
* Validate a plugin loader type
*
- * Verifies that it is in {@link $_loaderTypes}, and returns a normalized
+ * Verifies that it is in {@link $_loaderTypes}, and returns a normalized
* version of the type.
- *
- * @param string $type
+ *
+ * @param string $type
* @return string
* @throws Zend_Http_UserAgent_Exception on invalid type
*/
--- a/web/lib/Zend/Http/UserAgent/AbstractDevice.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/AbstractDevice.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Http_UserAgent_AbstractDevice
@@ -49,7 +49,7 @@
/**
* Configuration
- *
+ *
* @var array
*/
protected $_config;
@@ -63,22 +63,22 @@
/**
* Server variable
- *
+ *
* @var array
*/
protected $_server;
/**
* Image types
- *
+ *
* @var array
*/
protected $_images = array(
- 'jpeg',
- 'gif',
- 'png',
- 'pjpeg',
- 'x-png',
+ 'jpeg',
+ 'gif',
+ 'png',
+ 'pjpeg',
+ 'x-png',
'bmp',
);
@@ -100,8 +100,8 @@
* Constructor
*
* @param null|string|array $userAgent If array, restores from serialized version
- * @param array $server
- * @param array $config
+ * @param array $server
+ * @param array $config
* @return void
*/
public function __construct($userAgent = null, array $server = array(), array $config = array())
@@ -121,7 +121,7 @@
/**
* Serialize object
- *
+ *
* @return string
*/
public function serialize()
@@ -139,8 +139,8 @@
/**
* Unserialize
- *
- * @param string $serialized
+ *
+ * @param string $serialized
* @return void
*/
public function unserialize($serialized)
@@ -151,8 +151,8 @@
/**
* Restore object state from array
- *
- * @param array $spec
+ *
+ * @param array $spec
* @return void
*/
protected function _restoreFromArray(array $spec)
@@ -176,7 +176,7 @@
if (is_array($features)) {
$this->_aFeatures = array_merge($this->_aFeatures, $features);
}
-
+
return $this->_aFeatures;
}
@@ -195,7 +195,7 @@
*/
public function hasFeature($feature)
{
- return (!empty($this->_aFeatures[$feature]));
+ return (isset($this->_aFeatures[$feature]) && !is_null($this->_aFeatures[$feature]));
}
/**
@@ -286,16 +286,16 @@
protected function _getDefaultFeatures()
{
$server = array();
-
- // gets info from user agent chain
+
+ // gets info from user agent chain
$uaExtract = $this->extractFromUserAgent($this->getUserAgent());
-
+
if (is_array($uaExtract)) {
foreach ($uaExtract as $key => $info) {
$this->setFeature($key, $info, 'product_info');
}
}
-
+
if (isset($uaExtract['browser_name'])) {
$this->_browser = $uaExtract['browser_name'];
}
@@ -305,7 +305,7 @@
if (isset($uaExtract['device_os'])) {
$this->device_os = $uaExtract['device_os_name'];
}
-
+
/* browser & device info */
$this->setFeature('is_wireless_device', false, 'product_info');
$this->setFeature('is_mobile', false, 'product_info');
@@ -315,9 +315,9 @@
$this->setFeature('is_email', false, 'product_info');
$this->setFeature('is_text', false, 'product_info');
$this->setFeature('device_claims_web_support', false, 'product_info');
-
+
$this->setFeature('is_' . strtolower($this->getType()), true, 'product_info');
-
+
/* sets the browser name */
if (isset($this->list) && empty($this->_browser)) {
$lowerUserAgent = strtolower($this->getUserAgent());
@@ -328,7 +328,7 @@
}
}
}
-
+
/* sets the client IP */
if (isset($this->_server['remote_addr'])) {
$this->setFeature('client_ip', $this->_server['remote_addr'], 'product_info');
@@ -337,7 +337,7 @@
} elseif (isset($this->_server['http_client_ip'])) {
$this->setFeature('client_ip', $this->_server['http_client_ip'], 'product_info');
}
-
+
/* sets the server infos */
if (isset($this->_server['server_software'])) {
if (strpos($this->_server['server_software'], 'Apache') !== false || strpos($this->_server['server_software'], 'LiteSpeed') !== false) {
@@ -347,11 +347,11 @@
}
$server['server'] = 'apache';
}
-
+
if (strpos($this->_server['server_software'], 'Microsoft-IIS') !== false) {
$server['server'] = 'iis';
}
-
+
if (strpos($this->_server['server_software'], 'Unix') !== false) {
$server['os'] = 'unix';
if (isset($_ENV['MACHTYPE'])) {
@@ -362,7 +362,7 @@
} elseif (strpos($this->_server['server_software'], 'Win') !== false) {
$server['os'] = 'windows';
}
-
+
if (preg_match('/Apache\/([0-9\.]*)/', $this->_server['server_software'], $arr)) {
if ($arr[1]) {
$server['version'] = $arr[1];
@@ -370,7 +370,7 @@
}
}
}
-
+
$this->setFeature('php_version', phpversion(), 'server_info');
if (isset($server['server'])) {
$this->setFeature('server_os', $server['server'], 'server_info');
@@ -401,7 +401,7 @@
public static function extractFromUserAgent($userAgent)
{
$userAgent = trim($userAgent);
-
+
/**
* @see http://www.texsoft.it/index.php?c=software&m=sw.php.useragent&l=it
*/
@@ -412,13 +412,13 @@
if (isset($match[7])) {
$comment = explode(';', $match[7]);
}
-
+
// second part if exists
$end = substr($userAgent, strlen($match[0]));
if (!empty($end)) {
$result['others']['full'] = $end;
}
-
+
$match2 = array();
if (isset($result['others'])) {
preg_match_all('/(([^\/\s]*)(\/)?([^\/\(\)\s]*)?)(\s\((([^\)]*)*)\))?/i', $result['others']['full'], $match2);
@@ -451,18 +451,18 @@
for ($i = 0; $i < $max; $i ++) {
if (!empty($match2[0][$i])) {
$result['others']['detail'][] = array(
- $match2[0][$i],
- $match2[2][$i],
+ $match2[0][$i],
+ $match2[2][$i],
$match2[4][$i],
);
}
}
}
-
+
/** Security level */
$security = array(
- 'N' => 'no security',
- 'U' => 'strong security',
+ 'N' => 'no security',
+ 'U' => 'strong security',
'I' => 'weak security',
);
if (!empty($result['browser_token'])) {
@@ -471,9 +471,9 @@
unset($result['browser_token']);
}
}
-
+
$product = strtolower($result['browser_name']);
-
+
// Mozilla : true && false
$compatibleOrIe = false;
if (isset($result['compatibility_flag']) && isset($result['comment'])) {
@@ -492,26 +492,28 @@
$real[1][0] = "Internet Explorer";
$temp = explode(' ', trim($v));
$real[3][0] = $temp[1];
-
+
}
if (strpos($v, 'Win') !== false) {
$result['device_os_token'] = trim($v);
}
}
}
-
+
if (!empty($real[0])) {
$result['browser_name'] = $real[1][0];
$result['browser_version'] = $real[3][0];
} else {
- $result['browser_name'] = $result['browser_token'];
+ if(isset($result['browser_token'])) {
+ $result['browser_name'] = $result['browser_token'];
+ }
$result['browser_version'] = '??';
}
} elseif ($product == 'mozilla' && $result['browser_version'] < 5.0) {
// handles the real Mozilla (or old Netscape if version < 5.0)
$result['browser_name'] = 'Netscape';
}
-
+
/** windows */
if ($result['browser_name'] == 'MSIE') {
$result['browser_engine'] = 'MSIE';
@@ -519,21 +521,21 @@
}
if (isset($result['device_os_token'])) {
if (strpos($result['device_os_token'], 'Win') !== false) {
-
+
$windows = array(
- 'Windows NT 6.1' => 'Windows 7',
- 'Windows NT 6.0' => 'Windows Vista',
- 'Windows NT 5.2' => 'Windows Server 2003',
- 'Windows NT 5.1' => 'Windows XP',
- 'Windows NT 5.01' => 'Windows 2000 SP1',
- 'Windows NT 5.0' => 'Windows 2000',
- 'Windows NT 4.0' => 'Microsoft Windows NT 4.0',
- 'WinNT' => 'Microsoft Windows NT 4.0',
- 'Windows 98; Win 9x 4.90' => 'Windows Me',
- 'Windows 98' => 'Windows 98',
- 'Win98' => 'Windows 98',
- 'Windows 95' => 'Windows 95',
- 'Win95' => 'Windows 95',
+ 'Windows NT 6.1' => 'Windows 7',
+ 'Windows NT 6.0' => 'Windows Vista',
+ 'Windows NT 5.2' => 'Windows Server 2003',
+ 'Windows NT 5.1' => 'Windows XP',
+ 'Windows NT 5.01' => 'Windows 2000 SP1',
+ 'Windows NT 5.0' => 'Windows 2000',
+ 'Windows NT 4.0' => 'Microsoft Windows NT 4.0',
+ 'WinNT' => 'Microsoft Windows NT 4.0',
+ 'Windows 98; Win 9x 4.90' => 'Windows Me',
+ 'Windows 98' => 'Windows 98',
+ 'Win98' => 'Windows 98',
+ 'Windows 95' => 'Windows 95',
+ 'Win95' => 'Windows 95',
'Windows CE' => 'Windows CE',
);
if (isset($windows[$result['device_os_token']])) {
@@ -543,19 +545,25 @@
}
}
}
-
- // iphone
+
+ // iphone
$apple_device = array(
- 'iPhone',
- 'iPod',
+ 'iPhone',
+ 'iPod',
'iPad',
);
if (isset($result['compatibility_flag'])) {
if (in_array($result['compatibility_flag'], $apple_device)) {
$result['device'] = strtolower($result['compatibility_flag']);
$result['device_os_token'] = 'iPhone OS';
- $result['browser_language'] = trim($comment[3]);
- $result['browser_version'] = $result['others']['detail'][1][2];
+ if (isset($comment[3])) {
+ $result['browser_language'] = trim($comment[3]);
+ }
+ if (isset($result['others']['detail'][1])) {
+ $result['browser_version'] = $result['others']['detail'][1][2];
+ } elseif (isset($result['others']['detail']) && count($result['others']['detail'])) {
+ $result['browser_version'] = $result['others']['detail'][0][2];
+ }
if (!empty($result['others']['detail'][2])) {
$result['firmware'] = $result['others']['detail'][2][2];
}
@@ -565,12 +573,12 @@
}
}
}
-
+
// Safari
if (isset($result['others'])) {
if ($result['others']['detail'][0][1] == 'AppleWebKit') {
$result['browser_engine'] = 'AppleWebKit';
- if ($result['others']['detail'][1][1] == 'Version') {
+ if (isset($result['others']['detail'][1]) && $result['others']['detail'][1][1] == 'Version') {
$result['browser_version'] = $result['others']['detail'][1][2];
} else {
$result['browser_version'] = $result['others']['detail'][count($result['others']['detail']) - 1][2];
@@ -578,16 +586,21 @@
if (isset($comment[3])) {
$result['browser_language'] = trim($comment[3]);
}
-
+
$last = $result['others']['detail'][count($result['others']['detail']) - 1][1];
-
+
if (empty($result['others']['detail'][2][1]) || $result['others']['detail'][2][1] == 'Safari') {
- $result['browser_name'] = ($result['others']['detail'][1][1] && $result['others']['detail'][1][1] != 'Version' ? $result['others']['detail'][1][1] : 'Safari');
- $result['browser_version'] = ($result['others']['detail'][1][2] ? $result['others']['detail'][1][2] : $result['others']['detail'][0][2]);
+ if (isset($result['others']['detail'][1])) {
+ $result['browser_name'] = ($result['others']['detail'][1][1] && $result['others']['detail'][1][1] != 'Version' ? $result['others']['detail'][1][1] : 'Safari');
+ $result['browser_version'] = ($result['others']['detail'][1][2] ? $result['others']['detail'][1][2] : $result['others']['detail'][0][2]);
+ } else {
+ $result['browser_name'] = ($result['others']['detail'][0][1] && $result['others']['detail'][0][1] != 'Version' ? $result['others']['detail'][0][1] : 'Safari');
+ $result['browser_version'] = $result['others']['detail'][0][2];
+ }
} else {
$result['browser_name'] = $result['others']['detail'][2][1];
$result['browser_version'] = $result['others']['detail'][2][2];
-
+
// mobile version
if ($result['browser_name'] == 'Mobile') {
$result['browser_name'] = 'Safari ' . $result['browser_name'];
@@ -596,18 +609,18 @@
}
}
}
-
+
// For Safari < 2.2, AppleWebKit version gives the Safari version
if (strpos($result['browser_version'], '.') > 2 || (int) $result['browser_version'] > 20) {
$temp = explode('.', $result['browser_version']);
$build = (int) $temp[0];
$awkVersion = array(
- 48 => '0.8',
- 73 => '0.9',
- 85 => '1.0',
- 103 => '1.1',
- 124 => '1.2',
- 300 => '1.3',
+ 48 => '0.8',
+ 73 => '0.9',
+ 85 => '1.0',
+ 103 => '1.1',
+ 124 => '1.2',
+ 300 => '1.3',
400 => '2.0',
);
foreach ($awkVersion as $k => $v) {
@@ -617,28 +630,28 @@
}
}
}
-
+
// Gecko (Firefox or compatible)
if ($result['others']['detail'][0][1] == 'Gecko') {
$searchRV = true;
if (!empty($result['others']['detail'][1][1]) && !empty($result['others']['detail'][count($result['others']['detail']) - 1][2]) || strpos(strtolower($result['others']['full']), 'opera') !== false) {
$searchRV = false;
$result['browser_engine'] = $result['others']['detail'][0][1];
-
- // the name of the application is at the end indepenently
+
+ // the name of the application is at the end indepenently
// of quantity of information in $result['others']['detail']
$last = count($result['others']['detail']) - 1;
-
- // exception : if the version of the last information is
+
+ // exception : if the version of the last information is
// empty we take the previous one
if (empty($result['others']['detail'][$last][2])) {
$last --;
}
-
- // exception : if the last one is 'Red Hat' or 'Debian' =>
+
+ // exception : if the last one is 'Red Hat' or 'Debian' =>
// use rv: to find browser_version */
if (in_array($result['others']['detail'][$last][1], array(
- 'Debian',
+ 'Debian',
'Hat',
))) {
$searchRV = true;
@@ -648,8 +661,10 @@
if (isset($comment[4])) {
$result['browser_build'] = trim($comment[4]);
}
- $result['browser_language'] = trim($comment[3]);
-
+ if (isset($comment[3])) {
+ $result['browser_language'] = trim($comment[3]);
+ }
+
// Netscape
if ($result['browser_name'] == 'Navigator' || $result['browser_name'] == 'Netscape6') {
$result['browser_name'] = 'Netscape';
@@ -667,14 +682,14 @@
}
}
}
-
+
// Netscape
if ($result['others']['detail'][0][1] == 'Netscape') {
$result['browser_name'] = 'Netscape';
$result['browser_version'] = $result['others']['detail'][0][2];
}
-
- // Opera
+
+ // Opera
// Opera: engine Presto
if ($result['others']['detail'][0][1] == 'Presto') {
$result['browser_engine'] = 'Presto';
@@ -682,40 +697,46 @@
$result['browser_version'] = $result['others']['detail'][1][2];
}
}
-
- // UA ends with 'Opera X.XX'
+
+ // UA ends with 'Opera X.XX' or 'Opera/X.XX'
if ($result['others']['detail'][0][1] == 'Opera') {
$result['browser_name'] = $result['others']['detail'][0][1];
- $result['browser_version'] = $result['others']['detail'][1][1];
+ // Opera X.XX
+ if (isset($result['others']['detail'][1][1])) {
+ $result['browser_version'] = $result['others']['detail'][1][1];
+ // Opera/X.XX
+ } elseif (isset($result['others']['detail'][0][2])) {
+ $result['browser_version'] = $result['others']['detail'][0][2];
+ }
}
-
+
// Opera Mini
if (isset($result["browser_token"])) {
if (strpos($result["browser_token"], 'Opera Mini') !== false) {
$result['browser_name'] = 'Opera Mini';
}
}
-
+
// Symbian
if ($result['others']['detail'][0][1] == 'SymbianOS') {
$result['device_os_token'] = 'SymbianOS';
}
}
-
+
// UA ends with 'Opera X.XX'
if (isset($result['browser_name']) && isset($result['browser_engine'])) {
if ($result['browser_name'] == 'Opera' && $result['browser_engine'] == 'Gecko' && empty($result['browser_version'])) {
$result['browser_version'] = $result['others']['detail'][count($result['others']['detail']) - 1][1];
}
}
-
+
// cleanup
if (isset($result['browser_version']) && isset($result['browser_build'])) {
if ($result['browser_version'] == $result['browser_build']) {
unset($result['browser_build']);
}
}
-
+
// compatibility
$compatibility['AppleWebKit'] = 'Safari';
$compatibility['Gecko'] = 'Firefox';
@@ -726,7 +747,7 @@
$result['browser_compatibility'] = $compatibility[$result['browser_engine']];
}
}
-
+
ksort($result);
return $result;
}
@@ -760,13 +781,13 @@
require_once 'Zend/Http/UserAgent/Exception.php';
throw new Zend_Http_UserAgent_Exception('The ' . $this->getType() . ' features adapter must have a "path" config parameter defined');
}
-
+
if (false === include_once ($path)) {
require_once 'Zend/Http/UserAgent/Exception.php';
throw new Zend_Http_UserAgent_Exception('The ' . $this->getType() . ' features adapter path that does not exist');
}
}
-
+
return call_user_func(array($className, 'getFromRequest'), $this->_server, $this->_config);
}
@@ -953,9 +974,9 @@
/**
* Match a user agent string against a list of signatures
- *
- * @param string $userAgent
- * @param array $signatures
+ *
+ * @param string $userAgent
+ * @param array $signatures
* @return bool
*/
protected static function _matchAgentAgainstSignatures($userAgent, $signatures)
--- a/web/lib/Zend/Http/UserAgent/Bot.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Bot.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
require_once 'Zend/Http/UserAgent/AbstractDevice.php';
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -40,67 +40,68 @@
*/
protected static $_uaSignatures = array(
// The most common ones.
- 'googlebot',
- 'msnbot',
- 'slurp',
+ 'googlebot',
+ 'msnbot',
+ 'slurp',
'yahoo',
// The rest, alphabetically.
- 'alexa',
- 'appie',
- 'archiver',
- 'ask jeeves',
- 'baiduspider',
- 'bot',
- 'crawl',
- 'crawler',
- 'curl',
- 'eventbox',
- 'facebookexternal',
- 'fast',
- 'feedfetcher-google',
- 'firefly',
- 'froogle',
- 'gigabot',
- 'girafabot',
- 'google',
- 'infoseek',
- 'inktomi',
- 'java',
+ 'alexa',
+ 'appie',
+ 'archiver',
+ 'ask jeeves',
+ 'baiduspider',
+ 'bot',
+ 'crawl',
+ 'crawler',
+ 'curl',
+ 'eventbox',
+ 'facebookexternal',
+ 'fast',
+ 'feedfetcher-google',
+ 'firefly',
+ 'froogle',
+ 'gigabot',
+ 'girafabot',
+ 'google',
+ 'htdig',
+ 'infoseek',
+ 'inktomi',
+ 'java',
'larbin',
- 'looksmart',
- 'mechanize',
- 'mediapartners-google',
- 'monitor',
- 'nambu',
- 'nationaldirectory',
- 'novarra',
- 'pear',
- 'perl',
- 'python',
- 'rabaz',
- 'radian',
- 'rankivabot',
- 'scooter',
- 'sogou web spider',
- 'spade',
- 'sphere',
- 'spider',
- 'technoratisnoop',
- 'tecnoseek',
- 'teoma',
- 'toolbar',
- 'transcoder',
- 'twitt',
- 'url_spider_sql',
- 'webalta crawler',
- 'webbug',
- 'webfindbot',
- 'wordpress',
- 'www.galaxy.com',
- 'yahoo! searchmonkey',
- 'yahoo! slurp',
- 'yandex',
+ 'looksmart',
+ 'mechanize',
+ 'mediapartners-google',
+ 'monitor',
+ 'nambu',
+ 'nationaldirectory',
+ 'novarra',
+ 'pear',
+ 'perl',
+ 'python',
+ 'rabaz',
+ 'radian',
+ 'rankivabot',
+ 'scooter',
+ 'sogou web spider',
+ 'spade',
+ 'sphere',
+ 'spider',
+ 'technoratisnoop',
+ 'tecnoseek',
+ 'teoma',
+ 'toolbar',
+ 'transcoder',
+ 'twitt',
+ 'url_spider_sql',
+ 'webalta crawler',
+ 'webbug',
+ 'webfindbot',
+ 'wordpress',
+ 'www.galaxy.com',
+ 'yahoo! searchmonkey',
+ 'yahoo! slurp',
+ 'yandex',
'zyborg',
);
--- a/web/lib/Zend/Http/UserAgent/Checker.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Checker.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
require_once 'Zend/Http/UserAgent/Desktop.php';
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -40,15 +40,15 @@
*/
protected static $_uaSignatures = array(
'abilogic',
- 'checklink',
- 'checker',
- 'linksmanager',
- 'mojoo',
- 'notifixious',
- 'ploetz',
- 'zeller',
- 'sitebar',
- 'xenu',
+ 'checklink',
+ 'checker',
+ 'linksmanager',
+ 'mojoo',
+ 'notifixious',
+ 'ploetz',
+ 'zeller',
+ 'sitebar',
+ 'xenu',
'sleuth',
);
--- a/web/lib/Zend/Http/UserAgent/Console.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Console.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Console extends Zend_Http_UserAgent_Desktop
@@ -38,8 +38,8 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'playstation',
- 'wii',
+ 'playstation',
+ 'wii',
'libnup',
);
--- a/web/lib/Zend/Http/UserAgent/Desktop.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Desktop.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Browser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Desktop extends Zend_Http_UserAgent_AbstractDevice
--- a/web/lib/Zend/Http/UserAgent/Device.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Device.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Http_UserAgent_Device extends Serializable
@@ -33,13 +33,13 @@
/**
* Constructor
*
- * Allows injecting user agent, server array, and/or config array. If an
+ * Allows injecting user agent, server array, and/or config array. If an
* array is provided for the first argument, the assumption should be that
* the device object is being seeded with cached values from serialization.
- *
- * @param null|string|array $userAgent
- * @param array $server
- * @param array $config
+ *
+ * @param null|string|array $userAgent
+ * @param array $server
+ * @param array $config
* @return void
*/
public function __construct($userAgent = null, array $server = array(), array $config = array());
@@ -48,145 +48,145 @@
* Attempt to match the user agent
*
* Return either an array of browser signature strings, or a boolean.
- *
- * @param string $userAgent
- * @param array $server
+ *
+ * @param string $userAgent
+ * @param array $server
* @return bool|array
*/
public static function match($userAgent, $server);
/**
* Get all browser/device features
- *
+ *
* @return array
*/
public function getAllFeatures();
/**
* Get all of the browser/device's features' groups
- *
+ *
* @return void
*/
public function getAllGroups();
/**
* Whether or not the device has a given feature
- *
- * @param string $feature
+ *
+ * @param string $feature
* @return bool
*/
public function hasFeature($feature);
/**
* Get the value of a specific device feature
- *
- * @param string $feature
+ *
+ * @param string $feature
* @return mixed
*/
public function getFeature($feature);
/**
* Get the browser type
- *
+ *
* @return string
*/
public function getBrowser();
/**
* Retrurn the browser version
- *
+ *
* @return string
*/
public function getBrowserVersion();
/**
* Get an array of features associated with a group
- *
- * @param string $group
+ *
+ * @param string $group
* @return array
*/
public function getGroup($group);
/**
* Retrieve image format support
- *
+ *
* @return array
*/
public function getImageFormatSupport();
/**
* Get image types
- *
+ *
* @return array
*/
public function getImages();
/**
* Get the maximum image height supported by this device
- *
+ *
* @return int
*/
public function getMaxImageHeight();
/**
* Get the maximum image width supported by this device
- *
+ *
* @return int
*/
public function getMaxImageWidth();
/**
* Get the physical screen height of this device
- *
+ *
* @return int
*/
public function getPhysicalScreenHeight();
/**
* Get the physical screen width of this device
- *
+ *
* @return int
*/
public function getPhysicalScreenWidth();
/**
* Get the preferred markup type
- *
+ *
* @return string
*/
public function getPreferredMarkup();
/**
* Get the user agent string
- *
+ *
* @return string
*/
public function getUserAgent();
/**
* Get supported X/HTML version
- *
+ *
* @return int
*/
public function getXhtmlSupportLevel();
/**
* Does the device support Flash?
- *
+ *
* @return bool
*/
public function hasFlashSupport();
/**
* Does the device support PDF?
- *
+ *
* @return bool
*/
public function hasPdfSupport();
/**
* Does the device have a phone number associated with it?
- *
+ *
* @return bool
*/
public function hasPhoneNumber();
--- a/web/lib/Zend/Http/UserAgent/Email.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Email.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Email extends Zend_Http_UserAgent_Desktop
--- a/web/lib/Zend/Http/UserAgent/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Exception extends Zend_Exception
--- a/web/lib/Zend/Http/UserAgent/Features/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Features/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,17 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
/**
- * The interface required by all Zend_Browser_Features Adapter classes to implement.
+ * The interface required by all Zend_Browser_Features Adapter classes to implement.
*
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Http_UserAgent_Features_Adapter
--- a/web/lib/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Features/Adapter/DeviceAtlas.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,12 +26,12 @@
/**
* Features adapter build with the Tera Wurfl Api
- * See installation instruction here : http://deviceatlas.com/licences
+ * See installation instruction here : http://deviceatlas.com/licences
* Download : http://deviceatlas.com/getAPI/php
*
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Features_Adapter_DeviceAtlas implements Zend_Http_UserAgent_Features_Adapter
@@ -50,9 +50,9 @@
throw new Zend_Http_UserAgent_Features_Exception('"DeviceAtlas" configuration is not defined');
}
}
-
+
$config = $config['deviceatlas'];
-
+
if (!class_exists('Mobi_Mtld_DA_Api')) {
if (empty($config['deviceatlas_lib_dir'])) {
require_once 'Zend/Http/UserAgent/Features/Exception.php';
@@ -62,17 +62,17 @@
// Include the Device Atlas file from the specified lib_dir
require_once ($config['deviceatlas_lib_dir'] . '/Mobi/Mtld/DA/Api.php');
}
-
+
if (empty($config['deviceatlas_data'])) {
require_once 'Zend/Http/UserAgent/Features/Exception.php';
throw new Zend_Http_UserAgent_Features_Exception('The "deviceatlas_data" parameter is not defined');
}
-
+
//load the device data-tree : e.g. 'json/DeviceAtlas.json
$tree = Mobi_Mtld_DA_Api::getTreeFromFile($config['deviceatlas_data']);
-
+
$properties = Mobi_Mtld_DA_Api::getProperties($tree, $request['http_user_agent']);
-
+
return $properties;
}
}
--- a/web/lib/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Features/Adapter/TeraWurfl.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,12 +26,12 @@
/**
* Features adapter build with the Tera Wurfl Api
- * See installation instruction here : http://www.tera-wurfl.com/wiki/index.php/Installation
+ * See installation instruction here : http://www.tera-wurfl.com/wiki/index.php/Installation
* Download : http://www.tera-wurfl.com/wiki/index.php/Downloads
*
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Features_Adapter_TeraWurfl implements Zend_Http_UserAgent_Features_Adapter
@@ -45,7 +45,7 @@
public static function getFromRequest($request, array $config)
{
if (!class_exists('TeraWurfl')) {
- // If TeraWurfl class not found, see if we can load it from
+ // If TeraWurfl class not found, see if we can load it from
// configuration
//
if (!isset($config['terawurfl'])) {
@@ -53,7 +53,7 @@
require_once 'Zend/Http/UserAgent/Features/Exception.php';
throw new Zend_Http_UserAgent_Features_Exception('"TeraWurfl" configuration is not defined');
}
-
+
$config = $config['terawurfl'];
if (empty($config['terawurfl_lib_dir'])) {
@@ -65,25 +65,25 @@
// Include the Tera-WURFL file
require_once ($config['terawurfl_lib_dir'] . '/TeraWurfl.php');
}
-
-
+
+
// instantiate the Tera-WURFL object
$wurflObj = new TeraWurfl();
-
+
// Get the capabilities of the current client.
$matched = $wurflObj->getDeviceCapabilitiesFromRequest(array_change_key_case($request, CASE_UPPER));
-
+
return self::getAllCapabilities($wurflObj);
}
/***
* Builds an array with all capabilities
- *
+ *
* @param TeraWurfl $wurflObj TeraWurfl object
*/
public static function getAllCapabilities(TeraWurfl $wurflObj)
{
-
+
foreach ($wurflObj->capabilities as $group) {
if (!is_array($group)) {
continue;
--- a/web/lib/Zend/Http/UserAgent/Features/Adapter/WurflApi.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +0,0 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Http
- * @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * Zend_Http_UserAgent_Features_Adapter_Interface
- */
-require_once 'Zend/Http/UserAgent/Features/Adapter.php';
-
-/**
- * Features adapter build with the official WURFL PHP API
- * See installation instruction here : http://wurfl.sourceforge.net/nphp/
- * Download : http://sourceforge.net/projects/wurfl/files/WURFL PHP/1.1/wurfl-php-1.1.tar.gz/download
- *
- * @package Zend_Http
- * @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Http_UserAgent_Features_Adapter_WurflApi
- implements Zend_Http_UserAgent_Features_Adapter
-{
- const DEFAULT_API_VERSION = '1.1';
-
- /**
- * Get features from request
- *
- * @param array $request $_SERVER variable
- * @return array
- */
- public static function getFromRequest($request, array $config)
- {
- if (!isset($config['wurflapi'])) {
- require_once 'Zend/Http/UserAgent/Features/Exception.php';
- throw new Zend_Http_UserAgent_Features_Exception('"wurflapi" configuration is not defined');
- }
-
- $config = $config['wurflapi'];
-
- if (empty($config['wurfl_lib_dir'])) {
- require_once 'Zend/Http/UserAgent/Features/Exception.php';
- throw new Zend_Http_UserAgent_Features_Exception('The "wurfl_lib_dir" parameter is not defined');
- }
- if (empty($config['wurfl_config_file']) && empty($config['wurfl_config_array'])) {
- require_once 'Zend/Http/UserAgent/Features/Exception.php';
- throw new Zend_Http_UserAgent_Features_Exception('The "wurfl_config_file" parameter is not defined');
- }
-
- if (empty($config['wurfl_api_version'])) {
- $config['wurfl_api_version'] = self::DEFAULT_API_VERSION;
- }
-
- switch ($config['wurfl_api_version']) {
- case '1.0':
- // Zend_Http_UserAgent::$config['wurfl_config_file'] must be an XML file
- require_once ($config['wurfl_lib_dir'] . 'WURFLManagerProvider.php');
- $wurflManager = WURFL_WURFLManagerProvider::getWURFLManager(Zend_Http_UserAgent::$config['wurfl_config_file']);
- break;
- case '1.1':
- require_once ($config['wurfl_lib_dir'] . 'Application.php');
- if (!empty($config['wurfl_config_file'])) {
- $wurflConfig = WURFL_Configuration_ConfigFactory::create($config['wurfl_config_file']);
- } elseif (!empty($config['wurfl_config_array'])) {
- $c = $config['wurfl_config_array'];
- $wurflConfig = new WURFL_Configuration_InMemoryConfig();
- $wurflConfig->wurflFile($c['wurfl']['main-file'])
- ->wurflPatch($c['wurfl']['patches'])
- ->persistence($c['persistence']['provider'], $c['persistence']['dir']);
- }
-
- $wurflManagerFactory = new WURFL_WURFLManagerFactory($wurflConfig);
- $wurflManager = $wurflManagerFactory->create();
- break;
- default:
- require_once 'Zend/Http/UserAgent/Features/Exception.php';
- throw new Zend_Http_UserAgent_Features_Exception(sprintf(
- 'Unknown API version "%s"',
- $config['wurfl_api_version']
- ));
- }
-
- $device = $wurflManager->getDeviceForHttpRequest(array_change_key_case($request, CASE_UPPER));
- $features = $device->getAllCapabilities();
- return $features;
- }
-}
--- a/web/lib/Zend/Http/UserAgent/Features/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Features/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Features_Exception extends Zend_Http_UserAgent_Exception
--- a/web/lib/Zend/Http/UserAgent/Feed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Feed.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Feed extends Zend_Http_UserAgent_AbstractDevice
@@ -38,9 +38,9 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'bloglines',
- 'everyfeed',
- 'feedfetcher',
+ 'bloglines',
+ 'everyfeed',
+ 'feedfetcher',
'gregarius',
);
--- a/web/lib/Zend/Http/UserAgent/Mobile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Mobile.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,534 +1,536 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Http
- * @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-require_once 'Zend/Http/UserAgent/AbstractDevice.php';
-
-/**
- * Mobile browser type matcher
- *
- * @category Zend
- * @package Zend_Http
- * @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Http_UserAgent_Mobile extends Zend_Http_UserAgent_AbstractDevice
-{
-
- const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_WurflApi';
-
- const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/WurflApi.php';
-
- /**
- * User Agent Signatures
- *
- * @var array
- */
- protected static $_uaSignatures = array(
- 'iphone',
- 'ipod',
- 'ipad',
- 'android',
- 'blackberry',
- 'opera mini',
- 'opera mobi',
- 'palm',
- 'palmos',
- 'elaine',
- 'windows ce',
- ' ppc',
- '_mms',
- 'ahong',
- 'archos',
- 'armv',
- 'astel',
- 'avantgo',
- 'benq',
- 'blazer',
- 'brew',
- 'com2',
- 'compal',
- 'danger',
- 'pocket',
- 'docomo',
- 'epoc',
- 'ericsson',
- 'eudoraweb',
- 'hiptop',
- 'htc-',
- 'htc_',
- 'iemobile',
- 'ipad',
- 'iris',
- 'j-phone',
- 'kddi',
- 'kindle',
- 'lg ',
- 'lg-',
- 'lg/',
- 'lg;lx',
- 'lge vx',
- 'lge',
- 'lge-',
- 'lge-cx',
- 'lge-lx',
- 'lge-mx',
- 'linux armv',
- 'maemo',
- 'midp',
- 'mini 9.5',
- 'minimo',
- 'mob-x',
- 'mobi',
- 'mobile',
- 'mobilephone',
- 'mot 24',
- 'mot-',
- 'motorola',
- 'n410',
- 'netfront',
- 'nintendo wii',
- 'nintendo',
- 'nitro',
- 'nokia',
- 'novarra-vision',
- 'nuvifone',
- 'openweb',
- 'opwv',
- 'palmsource',
- 'pdxgw',
- 'phone',
- 'playstation',
- 'polaris',
- 'portalmmm',
- 'qt embedded',
- 'reqwirelessweb',
- 'sagem',
- 'sam-r',
- 'samsu',
- 'samsung',
- 'sec-',
- 'sec-sgh',
- 'semc-browser',
- 'series60',
- 'series70',
- 'series80',
- 'series90',
- 'sharp',
- 'sie-m',
- 'sie-s',
- 'smartphone',
- 'sony cmd',
- 'sonyericsson',
- 'sprint',
- 'spv',
- 'symbian os',
- 'symbian',
- 'symbianos',
- 'telco',
- 'teleca',
- 'treo',
- 'up.browser',
- 'up.link',
- 'vodafone',
- 'vodaphone',
- 'webos',
- 'webpro',
- 'windows phone os 7',
- 'wireless',
- 'wm5 pie',
- 'wms pie',
- 'xiino',
- 'wap',
- 'up/',
- 'psion',
- 'j2me',
- 'klondike',
- 'kbrowser'
- );
-
- /**
- * @var array
- */
- protected static $_haTerms = array(
- 'midp',
- 'wml',
- 'vnd.rim',
- 'vnd.wap',
- );
-
- /**
- * first 4 letters of mobile User Agent chains
- *
- * @var array
- */
- protected static $_uaBegin = array(
- 'w3c ',
- 'acs-',
- 'alav',
- 'alca',
- 'amoi',
- 'audi',
- 'avan',
- 'benq',
- 'bird',
- 'blac',
- 'blaz',
- 'brew',
- 'cell',
- 'cldc',
- 'cmd-',
- 'dang',
- 'doco',
- 'eric',
- 'hipt',
- 'inno',
- 'ipaq',
- 'java',
- 'jigs',
- 'kddi',
- 'keji',
- 'leno',
- 'lg-c',
- 'lg-d',
- 'lg-g',
- 'lge-',
- 'maui',
- 'maxo',
- 'midp',
- 'mits',
- 'mmef',
- 'mobi',
- 'mot-',
- 'moto',
- 'mwbp',
- 'nec-',
- 'newt',
- 'noki',
- 'oper',
- 'palm',
- 'pana',
- 'pant',
- 'phil',
- 'play',
- 'port',
- 'prox',
- 'qwap',
- 'sage',
- 'sams',
- 'sany',
- 'sch-',
- 'sec-',
- 'send',
- 'seri',
- 'sgh-',
- 'shar',
- 'sie-',
- 'siem',
- 'smal',
- 'smar',
- 'sony',
- 'sph-',
- 'symb',
- 't-mo',
- 'teli',
- 'tim-',
- 'tosh',
- 'tsm-',
- 'upg1',
- 'upsi',
- 'vk-v',
- 'voda',
- 'wap-',
- 'wapa',
- 'wapi',
- 'wapp',
- 'wapr',
- 'webc',
- 'winw',
- 'winw',
- 'xda',
- 'xda-',
- );
-
- /**
- * Comparison of the UserAgent chain and User Agent signatures
- *
- * @param string $userAgent User Agent chain
- * @param array $server $_SERVER like param
- * @return bool
- */
- public static function match($userAgent, $server)
- {
- // To have a quick identification, try light-weight tests first
- if (isset($server['all_http'])) {
- if (strpos(strtolower(str_replace(' ', '', $server['all_http'])), 'operam') !== false) {
- // Opera Mini or Opera Mobi
- return true;
- }
- }
- if (isset($server['http_x_wap_profile']) || isset($server['http_profile'])) {
- return true;
- }
-
- if (self::_matchAgentAgainstSignatures($userAgent, self::$_haTerms)) {
- return true;
- }
-
- if (self::userAgentStart($userAgent)) {
- return true;
- }
-
- if (self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures)) {
- return true;
- }
-
- return false;
- }
-
- /**
- * Retrieve beginning clause of user agent
- *
- * @param string $userAgent
- * @return string
- */
- public static function userAgentStart($userAgent)
- {
-
- $mobile_ua = strtolower(substr($userAgent, 0, 4));
-
- return (in_array($mobile_ua, self::$_uaBegin));
- }
-
- /**
- * Constructor
- *
- * @return void
- */
- public function __construct($userAgent = null, array $server = array(), array $config = array())
- {
- // For mobile detection, an adapter must be defined
- if (empty($config['mobile']['features'])) {
- $config['mobile']['features']['path'] = self::DEFAULT_FEATURES_ADAPTER_PATH;
- $config['mobile']['features']['classname'] = self::DEFAULT_FEATURES_ADAPTER_CLASSNAME;
- }
- parent::__construct($userAgent, $server, $config);
- }
-
- /**
- * Gives the current browser type
- *
- * @return string
- */
- public function getType()
- {
- return 'mobile';
- }
-
- /**
- * Look for features
- *
- * @return string
- */
- protected function _defineFeatures()
- {
- $this->setFeature('is_wireless_device', false, 'product_info');
-
- parent::_defineFeatures();
-
- if (isset($this->_aFeatures["mobile_browser"])) {
- $this->setFeature("browser_name", $this->_aFeatures["mobile_browser"]);
- $this->_browser = $this->_aFeatures["mobile_browser"];
- }
- if (isset($this->_aFeatures["mobile_browser_version"])) {
- $this->setFeature("browser_version", $this->_aFeatures["mobile_browser_version"]);
- $this->_browserVersion = $this->_aFeatures["mobile_browser_version"];
- }
-
- // markup
- if ($this->getFeature('device_os') == 'iPhone OS'
- || $this->getFeature('device_os_token') == 'iPhone OS'
- ) {
- $this->setFeature('markup', 'iphone');
- } else {
- $this->setFeature('markup', $this->getMarkupLanguage($this->getFeature('preferred_markup')));
- }
-
- // image format
- $this->_images = array();
-
- if ($this->getFeature('png')) {
- $this->_images[] = 'png';
- }
- if ($this->getFeature('jpg')) {
- $this->_images[] = 'jpg';
- }
- if ($this->getFeature('gif')) {
- $this->_images[] = 'gif';
- }
- if ($this->getFeature('wbmp')) {
- $this->_images[] = 'wbmp';
- }
-
- return $this->_aFeatures;
- }
-
- /**
- * Determine markup language expected
- *
- * @access public
- * @return __TYPE__
- */
- public function getMarkupLanguage($preferredMarkup = null)
- {
- $return = '';
- switch ($preferredMarkup) {
- case 'wml_1_1':
- case 'wml_1_2':
- case 'wml_1_3':
- $return = 'wml'; //text/vnd.wap.wml encoding="ISO-8859-15"
- case 'html_wi_imode_compact_generic':
- case 'html_wi_imode_html_1':
- case 'html_wi_imode_html_2':
- case 'html_wi_imode_html_3':
- case 'html_wi_imode_html_4':
- case 'html_wi_imode_html_5':
- $return = 'chtml'; //text/html
- case 'html_wi_oma_xhtmlmp_1_0': //application/vnd.wap.xhtml+xml
- case 'html_wi_w3_xhtmlbasic': //application/xhtml+xml DTD XHTML Basic 1.0
- $return = 'xhtml';
- case 'html_web_3_2': //text/html DTD Html 3.2 Final
- case 'html_web_4_0': //text/html DTD Html 4.01 Transitional
- $return = '';
- }
- return $return;
- }
-
- /**
- * Determine image format support
- *
- * @return array
- */
- public function getImageFormatSupport()
- {
- return $this->_images;
- }
-
- /**
- * Determine maximum image height supported
- *
- * @return int
- */
- public function getMaxImageHeight()
- {
- return $this->getFeature('max_image_height');
- }
-
- /**
- * Determine maximum image width supported
- *
- * @return int
- */
- public function getMaxImageWidth()
- {
- return $this->getFeature('max_image_width');
- }
-
- /**
- * Determine physical screen height
- *
- * @return int
- */
- public function getPhysicalScreenHeight()
- {
- return $this->getFeature('physical_screen_height');
- }
-
- /**
- * Determine physical screen width
- *
- * @return int
- */
- public function getPhysicalScreenWidth()
- {
- return $this->getFeature('physical_screen_width');
- }
-
- /**
- * Determine preferred markup
- *
- * @return string
- */
- public function getPreferredMarkup()
- {
- return $this->getFeature("markup");
- }
-
- /**
- * Determine X/HTML support level
- *
- * @return int
- */
- public function getXhtmlSupportLevel()
- {
- return $this->getFeature('xhtml_support_level');
- }
-
- /**
- * Does the device support Flash?
- *
- * @return bool
- */
- public function hasFlashSupport()
- {
- return $this->getFeature('fl_browser');
- }
-
- /**
- * Does the device support PDF?
- *
- * @return bool
- */
- public function hasPdfSupport()
- {
- return $this->getFeature('pdf_support');
- }
-
- /**
- * Does the device have an associated phone number?
- *
- * @return bool
- */
- public function hasPhoneNumber()
- {
- return $this->getFeature('can_assign_phone_number');
- }
-
- /**
- * Does the device support HTTPS?
- *
- * @return bool
- */
- public function httpsSupport()
- {
- return ($this->getFeature('https_support') == 'supported');
- }
-}
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Http
+ * @subpackage UserAgent
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+require_once 'Zend/Http/UserAgent/AbstractDevice.php';
+
+/**
+ * Mobile browser type matcher
+ *
+ * @category Zend
+ * @package Zend_Http
+ * @subpackage UserAgent
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Http_UserAgent_Mobile extends Zend_Http_UserAgent_AbstractDevice
+{
+
+ const DEFAULT_FEATURES_ADAPTER_CLASSNAME = 'Zend_Http_UserAgent_Features_Adapter_Browscap';
+
+ const DEFAULT_FEATURES_ADAPTER_PATH = 'Zend/Http/UserAgent/Features/Adapter/Browscap.php';
+
+ /**
+ * User Agent Signatures
+ *
+ * @var array
+ */
+ protected static $_uaSignatures = array(
+ 'iphone',
+ 'ipod',
+ 'ipad',
+ 'android',
+ 'blackberry',
+ 'opera mini',
+ 'opera mobi',
+ 'palm',
+ 'palmos',
+ 'elaine',
+ 'windows ce',
+ 'icab',
+ '_mms',
+ 'ahong',
+ 'archos',
+ 'armv',
+ 'astel',
+ 'avantgo',
+ 'benq',
+ 'blazer',
+ 'brew',
+ 'com2',
+ 'compal',
+ 'danger',
+ 'pocket',
+ 'docomo',
+ 'epoc',
+ 'ericsson',
+ 'eudoraweb',
+ 'hiptop',
+ 'htc-',
+ 'htc_',
+ 'iemobile',
+ 'iris',
+ 'j-phone',
+ 'kddi',
+ 'kindle',
+ 'lg ',
+ 'lg-',
+ 'lg/',
+ 'lg;lx',
+ 'lge vx',
+ 'lge',
+ 'lge-',
+ 'lge-cx',
+ 'lge-lx',
+ 'lge-mx',
+ 'linux armv',
+ 'maemo',
+ 'midp',
+ 'mini 9.5',
+ 'minimo',
+ 'mob-x',
+ 'mobi',
+ 'mobile',
+ 'mobilephone',
+ 'mot 24',
+ 'mot-',
+ 'motorola',
+ 'n410',
+ 'netfront',
+ 'nintendo wii',
+ 'nintendo',
+ 'nitro',
+ 'nokia',
+ 'novarra-vision',
+ 'nuvifone',
+ 'openweb',
+ 'opwv',
+ 'palmsource',
+ 'pdxgw',
+ 'phone',
+ 'playstation',
+ 'polaris',
+ 'portalmmm',
+ 'qt embedded',
+ 'reqwirelessweb',
+ 'sagem',
+ 'sam-r',
+ 'samsu',
+ 'samsung',
+ 'sec-',
+ 'sec-sgh',
+ 'semc-browser',
+ 'series60',
+ 'series70',
+ 'series80',
+ 'series90',
+ 'sharp',
+ 'sie-m',
+ 'sie-s',
+ 'smartphone',
+ 'sony cmd',
+ 'sonyericsson',
+ 'sprint',
+ 'spv',
+ 'symbian os',
+ 'symbian',
+ 'symbianos',
+ 'telco',
+ 'teleca',
+ 'treo',
+ 'up.browser',
+ 'up.link',
+ 'vodafone',
+ 'vodaphone',
+ 'webos',
+ 'wml',
+ 'windows phone os 7',
+ 'wireless',
+ 'wm5 pie',
+ 'wms pie',
+ 'xiino',
+ 'wap',
+ 'up/',
+ 'psion',
+ 'j2me',
+ 'klondike',
+ 'kbrowser'
+ );
+
+ /**
+ * @var array
+ */
+ protected static $_haTerms = array(
+ 'midp',
+ 'wml',
+ 'vnd.rim',
+ 'vnd.wap',
+ 'j2me',
+ );
+
+ /**
+ * first 4 letters of mobile User Agent chains
+ *
+ * @var array
+ */
+ protected static $_uaBegin = array(
+ 'w3c ',
+ 'acs-',
+ 'alav',
+ 'alca',
+ 'amoi',
+ 'audi',
+ 'avan',
+ 'benq',
+ 'bird',
+ 'blac',
+ 'blaz',
+ 'brew',
+ 'cell',
+ 'cldc',
+ 'cmd-',
+ 'dang',
+ 'doco',
+ 'eric',
+ 'hipt',
+ 'inno',
+ 'ipaq',
+ 'java',
+ 'jigs',
+ 'kddi',
+ 'keji',
+ 'leno',
+ 'lg-c',
+ 'lg-d',
+ 'lg-g',
+ 'lge-',
+ 'maui',
+ 'maxo',
+ 'midp',
+ 'mits',
+ 'mmef',
+ 'mobi',
+ 'mot-',
+ 'moto',
+ 'mwbp',
+ 'nec-',
+ 'newt',
+ 'noki',
+ 'palm',
+ 'pana',
+ 'pant',
+ 'phil',
+ 'play',
+ 'port',
+ 'prox',
+ 'qwap',
+ 'sage',
+ 'sams',
+ 'sany',
+ 'sch-',
+ 'sec-',
+ 'send',
+ 'seri',
+ 'sgh-',
+ 'shar',
+ 'sie-',
+ 'siem',
+ 'smal',
+ 'smar',
+ 'sony',
+ 'sph-',
+ 'symb',
+ 't-mo',
+ 'teli',
+ 'tim-',
+ 'tosh',
+ 'tsm-',
+ 'upg1',
+ 'upsi',
+ 'vk-v',
+ 'voda',
+ 'wap-',
+ 'wapa',
+ 'wapi',
+ 'wapp',
+ 'wapr',
+ 'webc',
+ 'winw',
+ 'winw',
+ 'xda',
+ 'xda-',
+ );
+
+ /**
+ * Comparison of the UserAgent chain and User Agent signatures
+ *
+ * @param string $userAgent User Agent chain
+ * @param array $server $_SERVER like param
+ * @return bool
+ */
+ public static function match($userAgent, $server)
+ {
+ // To have a quick identification, try light-weight tests first
+ if (isset($server['all_http'])) {
+ if (strpos(strtolower(str_replace(' ', '', $server['all_http'])), 'operam') !== false) {
+ // Opera Mini or Opera Mobi
+ return true;
+ }
+ }
+
+ if (isset($server['http_x_wap_profile']) || isset($server['http_profile'])) {
+ return true;
+ }
+
+ if (isset($server['http_accept'])) {
+ if (self::_matchAgentAgainstSignatures($server['http_accept'], self::$_haTerms)) {
+ return true;
+ }
+ }
+
+ if (self::userAgentStart($userAgent)) {
+ return true;
+ }
+
+ if (self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures)) {
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Retrieve beginning clause of user agent
+ *
+ * @param string $userAgent
+ * @return string
+ */
+ public static function userAgentStart($userAgent)
+ {
+
+ $mobile_ua = strtolower(substr($userAgent, 0, 4));
+
+ return (in_array($mobile_ua, self::$_uaBegin));
+ }
+
+ /**
+ * Constructor
+ *
+ * @return void
+ */
+ public function __construct($userAgent = null, array $server = array(), array $config = array())
+ {
+ // For mobile detection, an adapter must be defined
+ if (empty($config['mobile']['features'])) {
+ $config['mobile']['features']['path'] = self::DEFAULT_FEATURES_ADAPTER_PATH;
+ $config['mobile']['features']['classname'] = self::DEFAULT_FEATURES_ADAPTER_CLASSNAME;
+ }
+ parent::__construct($userAgent, $server, $config);
+ }
+
+ /**
+ * Gives the current browser type
+ *
+ * @return string
+ */
+ public function getType()
+ {
+ return 'mobile';
+ }
+
+ /**
+ * Look for features
+ *
+ * @return string
+ */
+ protected function _defineFeatures()
+ {
+ $this->setFeature('is_wireless_device', false, 'product_info');
+
+ parent::_defineFeatures();
+
+ if (isset($this->_aFeatures["mobile_browser"])) {
+ $this->setFeature("browser_name", $this->_aFeatures["mobile_browser"]);
+ $this->_browser = $this->_aFeatures["mobile_browser"];
+ }
+ if (isset($this->_aFeatures["mobile_browser_version"])) {
+ $this->setFeature("browser_version", $this->_aFeatures["mobile_browser_version"]);
+ $this->_browserVersion = $this->_aFeatures["mobile_browser_version"];
+ }
+
+ // markup
+ if ($this->getFeature('device_os') == 'iPhone OS'
+ || $this->getFeature('device_os_token') == 'iPhone OS'
+ ) {
+ $this->setFeature('markup', 'iphone');
+ } else {
+ $this->setFeature('markup', $this->getMarkupLanguage($this->getFeature('preferred_markup')));
+ }
+
+ // image format
+ $this->_images = array();
+
+ if ($this->getFeature('png')) {
+ $this->_images[] = 'png';
+ }
+ if ($this->getFeature('jpg')) {
+ $this->_images[] = 'jpg';
+ }
+ if ($this->getFeature('gif')) {
+ $this->_images[] = 'gif';
+ }
+ if ($this->getFeature('wbmp')) {
+ $this->_images[] = 'wbmp';
+ }
+
+ return $this->_aFeatures;
+ }
+
+ /**
+ * Determine markup language expected
+ *
+ * @access public
+ * @return __TYPE__
+ */
+ public function getMarkupLanguage($preferredMarkup = null)
+ {
+ $return = '';
+ switch ($preferredMarkup) {
+ case 'wml_1_1':
+ case 'wml_1_2':
+ case 'wml_1_3':
+ $return = 'wml'; //text/vnd.wap.wml encoding="ISO-8859-15"
+ case 'html_wi_imode_compact_generic':
+ case 'html_wi_imode_html_1':
+ case 'html_wi_imode_html_2':
+ case 'html_wi_imode_html_3':
+ case 'html_wi_imode_html_4':
+ case 'html_wi_imode_html_5':
+ $return = 'chtml'; //text/html
+ case 'html_wi_oma_xhtmlmp_1_0': //application/vnd.wap.xhtml+xml
+ case 'html_wi_w3_xhtmlbasic': //application/xhtml+xml DTD XHTML Basic 1.0
+ $return = 'xhtml';
+ case 'html_web_3_2': //text/html DTD Html 3.2 Final
+ case 'html_web_4_0': //text/html DTD Html 4.01 Transitional
+ $return = '';
+ }
+ return $return;
+ }
+
+ /**
+ * Determine image format support
+ *
+ * @return array
+ */
+ public function getImageFormatSupport()
+ {
+ return $this->_images;
+ }
+
+ /**
+ * Determine maximum image height supported
+ *
+ * @return int
+ */
+ public function getMaxImageHeight()
+ {
+ return $this->getFeature('max_image_height');
+ }
+
+ /**
+ * Determine maximum image width supported
+ *
+ * @return int
+ */
+ public function getMaxImageWidth()
+ {
+ return $this->getFeature('max_image_width');
+ }
+
+ /**
+ * Determine physical screen height
+ *
+ * @return int
+ */
+ public function getPhysicalScreenHeight()
+ {
+ return $this->getFeature('physical_screen_height');
+ }
+
+ /**
+ * Determine physical screen width
+ *
+ * @return int
+ */
+ public function getPhysicalScreenWidth()
+ {
+ return $this->getFeature('physical_screen_width');
+ }
+
+ /**
+ * Determine preferred markup
+ *
+ * @return string
+ */
+ public function getPreferredMarkup()
+ {
+ return $this->getFeature("markup");
+ }
+
+ /**
+ * Determine X/HTML support level
+ *
+ * @return int
+ */
+ public function getXhtmlSupportLevel()
+ {
+ return $this->getFeature('xhtml_support_level');
+ }
+
+ /**
+ * Does the device support Flash?
+ *
+ * @return bool
+ */
+ public function hasFlashSupport()
+ {
+ return $this->getFeature('fl_browser');
+ }
+
+ /**
+ * Does the device support PDF?
+ *
+ * @return bool
+ */
+ public function hasPdfSupport()
+ {
+ return $this->getFeature('pdf_support');
+ }
+
+ /**
+ * Does the device have an associated phone number?
+ *
+ * @return bool
+ */
+ public function hasPhoneNumber()
+ {
+ return $this->getFeature('can_assign_phone_number');
+ }
+
+ /**
+ * Does the device support HTTPS?
+ *
+ * @return bool
+ */
+ public function httpsSupport()
+ {
+ return ($this->getFeature('https_support') == 'supported');
+ }
+}
--- a/web/lib/Zend/Http/UserAgent/Offline.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Offline.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Offline extends Zend_Http_UserAgent_Desktop
@@ -38,11 +38,11 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'wget',
- 'webzip',
- 'webcopier',
- 'downloader',
- 'superbot',
+ 'wget',
+ 'webzip',
+ 'webcopier',
+ 'downloader',
+ 'superbot',
'offline',
);
--- a/web/lib/Zend/Http/UserAgent/Probe.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Probe.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Probe extends Zend_Http_UserAgent_AbstractDevice
@@ -38,10 +38,10 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'witbe',
+ 'witbe',
'netvigie',
);
-
+
/**
* Comparison of the UserAgent chain and User Agent signatures
*
@@ -54,7 +54,7 @@
return self::_matchAgentAgainstSignatures($userAgent, self::$_uaSignatures);
}
-
+
/**
* Gives the current browser type
*
--- a/web/lib/Zend/Http/UserAgent/Spam.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Spam.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Spam extends Zend_Http_UserAgent_AbstractDevice
--- a/web/lib/Zend/Http/UserAgent/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Http_UserAgent_Storage
--- a/web/lib/Zend/Http/UserAgent/Storage/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Storage/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
/**
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Storage_Exception extends Zend_Http_UserAgent_Exception
--- a/web/lib/Zend/Http/UserAgent/Storage/NonPersistent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Storage/NonPersistent.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: NonPersistent.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -36,10 +36,10 @@
*
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Http_UserAgent_Storage_NonPersistent
+class Zend_Http_UserAgent_Storage_NonPersistent
implements Zend_Http_UserAgent_Storage
{
/**
--- a/web/lib/Zend/Http/UserAgent/Storage/Session.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Storage/Session.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,42 +32,42 @@
/**
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Http_UserAgent_Storage_Session implements Zend_Http_UserAgent_Storage
+class Zend_Http_UserAgent_Storage_Session implements Zend_Http_UserAgent_Storage
{
/**
* Default session namespace
*/
const NAMESPACE_DEFAULT = 'Zend_Http_UserAgent';
-
+
/**
* Default session object member name
*/
const MEMBER_DEFAULT = 'storage';
-
+
/**
* Object to proxy $_SESSION storage
*
* @var Zend_Session_Namespace
*/
protected $_session;
-
+
/**
* Session namespace
*
* @var mixed
*/
protected $_namespace;
-
+
/**
* Session object member
*
* @var mixed
*/
protected $_member;
-
+
/**
* Sets session storage options and initializes session namespace object
*
@@ -79,7 +79,7 @@
* @return void
* @throws Zend_Http_UserAgent_Storage_Exception on invalid $options argument
*/
- public function __construct($options = null)
+ public function __construct($options = null)
{
if (is_object($options) && method_exists($options, 'toArray')) {
$options = $options->toArray();
@@ -95,71 +95,71 @@
}
// add '.' to prevent the message ''Session namespace must not start with a number'
- $this->_namespace = '.'
- . (isset($options['browser_type'])
- ? $options['browser_type']
+ $this->_namespace = '.'
+ . (isset($options['browser_type'])
+ ? $options['browser_type']
: self::NAMESPACE_DEFAULT);
$this->_member = isset($options['member']) ? $options['member'] : self::MEMBER_DEFAULT;
$this->_session = new Zend_Session_Namespace($this->_namespace);
}
-
+
/**
* Returns the session namespace name
*
* @return string
*/
- public function getNamespace()
+ public function getNamespace()
{
return $this->_namespace;
}
-
+
/**
* Returns the name of the session object member
*
* @return string
*/
- public function getMember()
+ public function getMember()
{
return $this->_member;
}
-
+
/**
* Defined by Zend_Http_UserAgent_Storage
*
* @return boolean
*/
- public function isEmpty()
+ public function isEmpty()
{
return empty($this->_session->{$this->_member});
}
-
+
/**
* Defined by Zend_Http_UserAgent_Storage
*
* @return mixed
*/
- public function read()
+ public function read()
{
return $this->_session->{$this->_member};
}
-
+
/**
* Defined by Zend_Http_UserAgent_Storage
*
* @param mixed $contents
* @return void
*/
- public function write($content)
+ public function write($content)
{
$this->_session->{$this->_member} = $content;
}
-
+
/**
* Defined by Zend_Http_UserAgent_Storage
*
* @return void
*/
- public function clear()
+ public function clear()
{
unset($this->_session->{$this->_member});
}
--- a/web/lib/Zend/Http/UserAgent/Text.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Text.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Text extends Zend_Http_UserAgent_AbstractDevice
@@ -38,8 +38,8 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'lynx',
- 'retawq',
+ 'lynx',
+ 'retawq',
'w3m',
);
--- a/web/lib/Zend/Http/UserAgent/Validator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Http/UserAgent/Validator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Http
* @subpackage UserAgent
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Http_UserAgent_Validator extends Zend_Http_UserAgent_Desktop
@@ -38,14 +38,14 @@
* @var array
*/
protected static $_uaSignatures = array(
- 'htmlvalidator',
- 'csscheck',
- 'cynthia',
- 'htmlparser',
- 'validator',
- 'jfouffa',
- 'jigsaw',
- 'w3c_validator',
+ 'htmlvalidator',
+ 'csscheck',
+ 'cynthia',
+ 'htmlparser',
+ 'validator',
+ 'jfouffa',
+ 'jigsaw',
+ 'w3c_validator',
'wdg_validator',
);
--- a/web/lib/Zend/InfoCard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InfoCard.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InfoCard.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,7 +52,7 @@
/**
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard
--- a/web/lib/Zend/InfoCard/Adapter/Default.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Adapter/Default.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Default.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Adapter_Default implements Zend_InfoCard_Adapter_Interface
--- a/web/lib/Zend/InfoCard/Adapter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Adapter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Adapter_Exception extends Zend_InfoCard_Exception
--- a/web/lib/Zend/InfoCard/Adapter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Adapter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Adapter_Interface
--- a/web/lib/Zend/InfoCard/Cipher.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cipher.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cipher.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Cipher
--- a/web/lib/Zend/InfoCard/Cipher/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Cipher_Exception extends Zend_InfoCard_Exception
--- a/web/lib/Zend/InfoCard/Cipher/Pki/Adapter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Pki/Adapter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_InfoCard_Cipher_Pki_Adapter_Abstract implements Zend_InfoCard_Cipher_Pki_Interface
--- a/web/lib/Zend/InfoCard/Cipher/Pki/Adapter/Rsa.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Pki/Adapter/Rsa.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rsa.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rsa.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Cipher_Pki_Adapter_Rsa
--- a/web/lib/Zend/InfoCard/Cipher/Pki/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Pki/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Cipher_Pki_Interface
--- a/web/lib/Zend/InfoCard/Cipher/Pki/Rsa/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Pki/Rsa/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Cipher_Pki_Rsa_Interface
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_InfoCard_Cipher_Symmetric_Adapter_Abstract
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Aes128cbc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Aes128cbc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Aes128cbc.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Aes128cbc.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Cipher_Symmetric_Adapter_Aes128cbc
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Aes256cbc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Adapter/Aes256cbc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Aes256cbc.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Aes256cbc.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Cipher_Symmetric_Adapter_Aes256cbc
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Aes128cbc/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Aes128cbc/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Cipher_Symmetric_Aes128cbc_Interface
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Aes256cbc/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Aes256cbc/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Cipher_Symmetric_Aes256cbc_Interface
--- a/web/lib/Zend/InfoCard/Cipher/Symmetric/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Cipher/Symmetric/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Cipher
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Cipher_Symmetric_Interface
--- a/web/lib/Zend/InfoCard/Claims.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Claims.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Claims.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Claims.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Claims
--- a/web/lib/Zend/InfoCard/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
if (class_exists("Zend_Exception")) {
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Exception extends Zend_InfoCard_Exception_Abstract
--- a/web/lib/Zend/InfoCard/Xml/Assertion.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Assertion.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Assertion.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Assertion.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
final class Zend_InfoCard_Xml_Assertion
--- a/web/lib/Zend/InfoCard/Xml/Assertion/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Assertion/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Xml_Assertion_Interface
--- a/web/lib/Zend/InfoCard/Xml/Assertion/Saml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Assertion/Saml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Saml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Saml.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Assertion_Saml
--- a/web/lib/Zend/InfoCard/Xml/Element.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Element.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Element.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Element.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_InfoCard_Xml_Element
--- a/web/lib/Zend/InfoCard/Xml/Element/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Element/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Xml_Element_Interface
--- a/web/lib/Zend/InfoCard/Xml/EncryptedData.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/EncryptedData.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EncryptedData.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EncryptedData.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
final class Zend_InfoCard_Xml_EncryptedData
--- a/web/lib/Zend/InfoCard/Xml/EncryptedData/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/EncryptedData/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_InfoCard_Xml_EncryptedData_Abstract extends Zend_InfoCard_Xml_Element
--- a/web/lib/Zend/InfoCard/Xml/EncryptedData/XmlEnc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/EncryptedData/XmlEnc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: XmlEnc.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: XmlEnc.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_EncryptedData_XmlEnc extends Zend_InfoCard_Xml_EncryptedData_Abstract
@@ -52,7 +52,7 @@
if(!($cipherdata instanceof Zend_InfoCard_Xml_Element)) {
throw new Zend_InfoCard_Xml_Exception("Unable to find the enc:CipherData block");
}
-
+ $cipherdata->registerXPathNamespace('enc', 'http://www.w3.org/2001/04/xmlenc#');
list(,$ciphervalue) = $cipherdata->xpath("//enc:CipherValue");
if(!($ciphervalue instanceof Zend_InfoCard_Xml_Element)) {
--- a/web/lib/Zend/InfoCard/Xml/EncryptedKey.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/EncryptedKey.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EncryptedKey.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EncryptedKey.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_EncryptedKey
--- a/web/lib/Zend/InfoCard/Xml/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Exception extends Zend_InfoCard_Exception
--- a/web/lib/Zend/InfoCard/Xml/KeyInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/KeyInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: KeyInfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: KeyInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_KeyInfo
--- a/web/lib/Zend/InfoCard/Xml/KeyInfo/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/KeyInfo/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_InfoCard_Xml_KeyInfo_Abstract extends Zend_InfoCard_Xml_Element
--- a/web/lib/Zend/InfoCard/Xml/KeyInfo/Default.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/KeyInfo/Default.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Default.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_KeyInfo_Default extends Zend_InfoCard_Xml_KeyInfo_Abstract
--- a/web/lib/Zend/InfoCard/Xml/KeyInfo/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/KeyInfo/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Xml_KeyInfo_Interface
--- a/web/lib/Zend/InfoCard/Xml/KeyInfo/XmlDSig.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/KeyInfo/XmlDSig.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: XmlDSig.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: XmlDSig.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
*
* @category Zend
* @package Zend_InfoCard
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_KeyInfo_XmlDSig
--- a/web/lib/Zend/InfoCard/Xml/Security.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Security.php 23280 2010-10-31 10:28:58Z ramon $
+ * @version $Id: Security.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security
--- a/web/lib/Zend/InfoCard/Xml/Security/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security_Exception extends Zend_InfoCard_Xml_Exception
--- a/web/lib/Zend/InfoCard/Xml/Security/Transform.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Transform.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Transform.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Transform.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security_Transform
--- a/web/lib/Zend/InfoCard/Xml/Security/Transform/EnvelopedSignature.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Transform/EnvelopedSignature.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EnvelopedSignature.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EnvelopedSignature.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security_Transform_EnvelopedSignature
--- a/web/lib/Zend/InfoCard/Xml/Security/Transform/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Transform/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security_Transform_Exception extends Zend_InfoCard_Xml_Security_Exception
--- a/web/lib/Zend/InfoCard/Xml/Security/Transform/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Transform/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_InfoCard_Xml_Security_Transform_Interface
--- a/web/lib/Zend/InfoCard/Xml/Security/Transform/XmlExcC14N.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/Security/Transform/XmlExcC14N.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: XmlExcC14N.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: XmlExcC14N.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml_Security
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_Security_Transform_XmlExcC14N
--- a/web/lib/Zend/InfoCard/Xml/SecurityTokenReference.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/InfoCard/Xml/SecurityTokenReference.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SecurityTokenReference.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SecurityTokenReference.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_InfoCard
* @subpackage Zend_InfoCard_Xml
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_InfoCard_Xml_SecurityTokenReference extends Zend_InfoCard_Xml_Element
--- a/web/lib/Zend/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Json.php 20615 2010-01-25 19:54:12Z matthew $
+ * @version $Id: Json.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Json
* @uses Zend_Json_Expr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json
@@ -125,8 +125,12 @@
*/
public static function encode($valueToEncode, $cycleCheck = false, $options = array())
{
- if (is_object($valueToEncode) && method_exists($valueToEncode, 'toJson')) {
- return $valueToEncode->toJson();
+ if (is_object($valueToEncode)) {
+ if (method_exists($valueToEncode, 'toJson')) {
+ return $valueToEncode->toJson();
+ } elseif (method_exists($valueToEncode, 'toArray')) {
+ return self::encode($valueToEncode->toArray(), $cycleCheck, $options);
+ }
}
// Pre-encoding look for Zend_Json_Expr objects and replacing by tmp ids
@@ -179,12 +183,15 @@
* NOTE: This method is used internally by the encode method.
*
* @see encode
- * @param mixed $valueToCheck a string - object property to be encoded
+ * @param array|object|Zend_Json_Expr $value a string - object property to be encoded
+ * @param array $javascriptExpressions
+ * @param null $currentKey
+ *
+ * @internal param mixed $valueToCheck
* @return void
*/
- protected static function _recursiveJsonExprFinder(
- &$value, array &$javascriptExpressions, $currentKey = null
- ) {
+ protected static function _recursiveJsonExprFinder(&$value, array &$javascriptExpressions, $currentKey = null)
+ {
if ($value instanceof Zend_Json_Expr) {
// TODO: Optimize with ascii keys, if performance is bad
$magicKey = "____" . $currentKey . "_" . (count($javascriptExpressions));
@@ -208,6 +215,104 @@
}
/**
+ * Return the value of an XML attribute text or the text between
+ * the XML tags
+ *
+ * In order to allow Zend_Json_Expr from xml, we check if the node
+ * matchs the pattern that try to detect if it is a new Zend_Json_Expr
+ * if it matches, we return a new Zend_Json_Expr instead of a text node
+ *
+ * @param SimpleXMLElement $simpleXmlElementObject
+ * @return Zend_Json_Expr|string
+ */
+ protected static function _getXmlValue($simpleXmlElementObject) {
+ $pattern = '/^[\s]*new Zend_Json_Expr[\s]*\([\s]*[\"\']{1}(.*)[\"\']{1}[\s]*\)[\s]*$/';
+ $matchings = array();
+ $match = preg_match ($pattern, $simpleXmlElementObject, $matchings);
+ if ($match) {
+ return new Zend_Json_Expr($matchings[1]);
+ } else {
+ return (trim(strval($simpleXmlElementObject)));
+ }
+ }
+ /**
+ * _processXml - Contains the logic for xml2json
+ *
+ * The logic in this function is a recursive one.
+ *
+ * The main caller of this function (i.e. fromXml) needs to provide
+ * only the first two parameters i.e. the SimpleXMLElement object and
+ * the flag for ignoring or not ignoring XML attributes. The third parameter
+ * will be used internally within this function during the recursive calls.
+ *
+ * This function converts the SimpleXMLElement object into a PHP array by
+ * calling a recursive (protected static) function in this class. Once all
+ * the XML elements are stored in the PHP array, it is returned to the caller.
+ *
+ * Throws a Zend_Json_Exception if the XML tree is deeper than the allowed limit.
+ *
+ * @param SimpleXMLElement $simpleXmlElementObject
+ * @param boolean $ignoreXmlAttributes
+ * @param integer $recursionDepth
+ * @return array
+ */
+ protected static function _processXml($simpleXmlElementObject, $ignoreXmlAttributes, $recursionDepth=0)
+ {
+ // Keep an eye on how deeply we are involved in recursion.
+ if ($recursionDepth > self::$maxRecursionDepthAllowed) {
+ // XML tree is too deep. Exit now by throwing an exception.
+ require_once 'Zend/Json/Exception.php';
+ throw new Zend_Json_Exception(
+ "Function _processXml exceeded the allowed recursion depth of " .
+ self::$maxRecursionDepthAllowed);
+ } // End of if ($recursionDepth > self::$maxRecursionDepthAllowed)
+
+ $children = $simpleXmlElementObject->children();
+ $name = $simpleXmlElementObject->getName();
+ $value = self::_getXmlValue($simpleXmlElementObject);
+ $attributes = (array) $simpleXmlElementObject->attributes();
+
+ if (count($children) == 0) {
+ if (!empty($attributes) && !$ignoreXmlAttributes) {
+ foreach ($attributes['@attributes'] as $k => $v) {
+ $attributes['@attributes'][$k]= self::_getXmlValue($v);
+ }
+ if (!empty($value)) {
+ $attributes['@text'] = $value;
+ }
+ return array($name => $attributes);
+ } else {
+ return array($name => $value);
+ }
+ } else {
+ $childArray= array();
+ foreach ($children as $child) {
+ $childname = $child->getName();
+ $element = self::_processXml($child,$ignoreXmlAttributes,$recursionDepth+1);
+ if (array_key_exists($childname, $childArray)) {
+ if (empty($subChild[$childname])) {
+ $childArray[$childname] = array($childArray[$childname]);
+ $subChild[$childname] = true;
+ }
+ $childArray[$childname][] = $element[$childname];
+ } else {
+ $childArray[$childname] = $element[$childname];
+ }
+ }
+ if (!empty($attributes) && !$ignoreXmlAttributes) {
+ foreach ($attributes['@attributes'] as $k => $v) {
+ $attributes['@attributes'][$k] = self::_getXmlValue($v);
+ }
+ $childArray['@attributes'] = $attributes['@attributes'];
+ }
+ if (!empty($value)) {
+ $childArray['@text'] = $value;
+ }
+ return array($name => $childArray);
+ }
+ }
+
+ /**
* fromXml - Converts XML to JSON
*
* Converts a XML formatted string into a JSON formatted string.
@@ -233,7 +338,8 @@
* @return mixed - JSON formatted string on success
* @throws Zend_Json_Exception
*/
- public static function fromXml ($xmlStringContents, $ignoreXmlAttributes=true) {
+ public static function fromXml($xmlStringContents, $ignoreXmlAttributes=true)
+ {
// Load the XML formatted string into a Simple XML Element object.
$simpleXmlElementObject = simplexml_load_string($xmlStringContents);
@@ -252,120 +358,16 @@
// It is just that simple.
$jsonStringOutput = self::encode($resultArray);
return($jsonStringOutput);
- } // End of function fromXml.
+ }
+
+
/**
- * _processXml - Contains the logic for xml2json
- *
- * The logic in this function is a recursive one.
- *
- * The main caller of this function (i.e. fromXml) needs to provide
- * only the first two parameters i.e. the SimpleXMLElement object and
- * the flag for ignoring or not ignoring XML attributes. The third parameter
- * will be used internally within this function during the recursive calls.
- *
- * This function converts the SimpleXMLElement object into a PHP array by
- * calling a recursive (protected static) function in this class. Once all
- * the XML elements are stored in the PHP array, it is returned to the caller.
- *
- * Throws a Zend_Json_Exception if the XML tree is deeper than the allowed limit.
+ * Pretty-print JSON string
*
- * @static
- * @access protected
- * @param SimpleXMLElement $simpleXmlElementObject XML element to be converted
- * @param boolean $ignoreXmlAttributes Include or exclude XML attributes in
- * the xml2json conversion process.
- * @param int $recursionDepth Current recursion depth of this function
- * @return mixed - On success, a PHP associative array of traversed XML elements
- * @throws Zend_Json_Exception
- */
- protected static function _processXml ($simpleXmlElementObject, $ignoreXmlAttributes, $recursionDepth=0) {
- // Keep an eye on how deeply we are involved in recursion.
- if ($recursionDepth > self::$maxRecursionDepthAllowed) {
- // XML tree is too deep. Exit now by throwing an exception.
- require_once 'Zend/Json/Exception.php';
- throw new Zend_Json_Exception(
- "Function _processXml exceeded the allowed recursion depth of " .
- self::$maxRecursionDepthAllowed);
- } // End of if ($recursionDepth > self::$maxRecursionDepthAllowed)
-
- if ($recursionDepth == 0) {
- // Store the original SimpleXmlElementObject sent by the caller.
- // We will need it at the very end when we return from here for good.
- $callerProvidedSimpleXmlElementObject = $simpleXmlElementObject;
- } // End of if ($recursionDepth == 0)
-
- if ($simpleXmlElementObject instanceof SimpleXMLElement) {
- // Get a copy of the simpleXmlElementObject
- $copyOfSimpleXmlElementObject = $simpleXmlElementObject;
- // Get the object variables in the SimpleXmlElement object for us to iterate.
- $simpleXmlElementObject = get_object_vars($simpleXmlElementObject);
- } // End of if (get_class($simpleXmlElementObject) == "SimpleXMLElement")
-
- // It needs to be an array of object variables.
- if (is_array($simpleXmlElementObject)) {
- // Initialize a result array.
- $resultArray = array();
- // Is the input array size 0? Then, we reached the rare CDATA text if any.
- if (count($simpleXmlElementObject) <= 0) {
- // Let us return the lonely CDATA. It could even be
- // an empty element or just filled with whitespaces.
- return (trim(strval($copyOfSimpleXmlElementObject)));
- } // End of if (count($simpleXmlElementObject) <= 0)
-
- // Let us walk through the child elements now.
- foreach($simpleXmlElementObject as $key=>$value) {
- // Check if we need to ignore the XML attributes.
- // If yes, you can skip processing the XML attributes.
- // Otherwise, add the XML attributes to the result array.
- if(($ignoreXmlAttributes == true) && (is_string($key)) && ($key == "@attributes")) {
- continue;
- } // End of if(($ignoreXmlAttributes == true) && ($key == "@attributes"))
-
- // Let us recursively process the current XML element we just visited.
- // Increase the recursion depth by one.
- $recursionDepth++;
- $resultArray[$key] = self::_processXml ($value, $ignoreXmlAttributes, $recursionDepth);
-
- // Decrease the recursion depth by one.
- $recursionDepth--;
- } // End of foreach($simpleXmlElementObject as $key=>$value) {
-
- if ($recursionDepth == 0) {
- // That is it. We are heading to the exit now.
- // Set the XML root element name as the root [top-level] key of
- // the associative array that we are going to return to the original
- // caller of this recursive function.
- $tempArray = $resultArray;
- $resultArray = array();
- $resultArray[$callerProvidedSimpleXmlElementObject->getName()] = $tempArray;
- } // End of if ($recursionDepth == 0)
-
- return($resultArray);
- } else {
- // We are now looking at either the XML attribute text or
- // the text between the XML tags.
-
- // In order to allow Zend_Json_Expr from xml, we check if the node
- // matchs the pattern that try to detect if it is a new Zend_Json_Expr
- // if it matches, we return a new Zend_Json_Expr instead of a text node
- $pattern = '/^[\s]*new Zend_Json_Expr[\s]*\([\s]*[\"\']{1}(.*)[\"\']{1}[\s]*\)[\s]*$/';
- $matchings = array();
- $match = preg_match ($pattern, $simpleXmlElementObject, $matchings);
- if ($match) {
- return new Zend_Json_Expr($matchings[1]);
- } else {
- return (trim(strval($simpleXmlElementObject)));
- }
-
- } // End of if (is_array($simpleXmlElementObject))
- } // End of function _processXml.
-
- /**
- * Pretty-print JSON string
- *
- * Use 'indent' option to select indentation string - by default it's a tab
- *
+ * Use 'format' option to select output format - currently html and txt supported, txt is default
+ * Use 'indent' option to override the indentation string set in the format - by default for the 'txt' format it's a tab
+ *
* @param string $json Original JSON string
* @param array $options Encoding options
* @return string
@@ -373,32 +375,62 @@
public static function prettyPrint($json, $options = array())
{
$tokens = preg_split('|([\{\}\]\[,])|', $json, -1, PREG_SPLIT_DELIM_CAPTURE);
- $result = "";
+ $result = '';
$indent = 0;
-
+
+ $format= 'txt';
+
$ind = "\t";
- if(isset($options['indent'])) {
+
+ if (isset($options['format'])) {
+ $format = $options['format'];
+ }
+
+ switch ($format) {
+ case 'html':
+ $lineBreak = '<br />';
+ $ind = ' ';
+ break;
+ default:
+ case 'txt':
+ $lineBreak = "\n";
+ $ind = "\t";
+ break;
+ }
+
+ // override the defined indent setting with the supplied option
+ if (isset($options['indent'])) {
$ind = $options['indent'];
}
-
+
+ $inLiteral = false;
foreach($tokens as $token) {
- if($token == "") continue;
-
+ if($token == '') {
+ continue;
+ }
+
$prefix = str_repeat($ind, $indent);
- if($token == "{" || $token == "[") {
+ if (!$inLiteral && ($token == '{' || $token == '[')) {
$indent++;
- if($result != "" && $result[strlen($result)-1] == "\n") {
+ if (($result != '') && ($result[(strlen($result)-1)] == $lineBreak)) {
$result .= $prefix;
}
- $result .= "$token\n";
- } else if($token == "}" || $token == "]") {
+ $result .= $token . $lineBreak;
+ } elseif (!$inLiteral && ($token == '}' || $token == ']')) {
$indent--;
$prefix = str_repeat($ind, $indent);
- $result .= "\n$prefix$token";
- } else if($token == ",") {
- $result .= "$token\n";
+ $result .= $lineBreak . $prefix . $token;
+ } elseif (!$inLiteral && $token == ',') {
+ $result .= $token . $lineBreak;
} else {
- $result .= $prefix.$token;
+ $result .= ( $inLiteral ? '' : $prefix ) . $token;
+
+ // Count # of unescaped double-quotes in token, subtract # of
+ // escaped double-quotes and if the result is odd then we are
+ // inside a string literal
+ if ((substr_count($token, "\"")-substr_count($token, "\\\"")) % 2 != 0) {
+ $inLiteral = !$inLiteral;
+ }
}
}
return $result;
--- a/web/lib/Zend/Json/Decoder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Decoder.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decoder.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Decoder.php 24799 2012-05-12 19:27:07Z adamlundrigan $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Decoder
@@ -236,6 +236,9 @@
// Create new StdClass and populate with $members
$result = new StdClass();
foreach ($members as $key => $value) {
+ if ($key === '') {
+ $key = '_empty_';
+ }
$result->$key = $value;
}
break;
--- a/web/lib/Zend/Json/Encoder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Encoder.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Encoder.php 22452 2010-06-18 18:13:23Z ralph $
+ * @version $Id: Encoder.php 25059 2012-11-02 21:01:06Z rob $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Encoder
@@ -74,7 +74,6 @@
public static function encode($value, $cycleCheck = false, $options = array())
{
$encoder = new self(($cycleCheck) ? true : false, $options);
-
return $encoder->_encodeValue($value);
}
@@ -85,7 +84,7 @@
* - arrays (returns from {@link _encodeArray()})
* - basic datums (e.g. numbers or strings) (returns from {@link _encodeDatum()})
*
- * @param $value mixed The value to be encoded
+ * @param mixed $value The value to be encoded
* @return string Encoded value
*/
protected function _encodeValue(&$value)
@@ -108,7 +107,7 @@
* that contains the name of the class of $value. This is used to decode
* the object on the client into a specific class.
*
- * @param $value object
+ * @param object $value
* @return string
* @throws Zend_Json_Exception If recursive checks are enabled and the object has been serialized previously
*/
@@ -135,23 +134,28 @@
}
$props = '';
-
- if ($value instanceof Iterator) {
- $propCollection = $value;
+ if (method_exists($value, 'toJson')) {
+ $props =',' . preg_replace("/^\{(.*)\}$/","\\1",$value->toJson());
} else {
- $propCollection = get_object_vars($value);
- }
+ if ($value instanceof IteratorAggregate) {
+ $propCollection = $value->getIterator();
+ } elseif ($value instanceof Iterator) {
+ $propCollection = $value;
+ } else {
+ $propCollection = get_object_vars($value);
+ }
- foreach ($propCollection as $name => $propValue) {
- if (isset($propValue)) {
- $props .= ','
- . $this->_encodeString($name)
- . ':'
- . $this->_encodeValue($propValue);
+ foreach ($propCollection as $name => $propValue) {
+ if (isset($propValue)) {
+ $props .= ','
+ . $this->_encodeString($name)
+ . ':'
+ . $this->_encodeValue($propValue);
+ }
}
}
-
- return '{"__className":"' . get_class($value) . '"'
+ $className = get_class($value);
+ return '{"__className":' . $this->_encodeString($className)
. $props . '}';
}
@@ -182,7 +186,7 @@
* the last index is (count($array) -1); any deviation from that is
* considered an associative array, and will be encoded as such.
*
- * @param $array array
+ * @param array& $array
* @return string
*/
protected function _encodeArray(&$array)
@@ -222,7 +226,7 @@
* If value type is not a string, number, boolean, or null, the string
* 'null' is returned.
*
- * @param $value mixed
+ * @param mixed& $value
* @return string
*/
protected function _encodeDatum(&$value)
@@ -245,7 +249,7 @@
/**
* JSON encode a string value by escaping characters as necessary
*
- * @param $value string
+ * @param string& $value
* @return string
*/
protected function _encodeString(&$string)
@@ -270,7 +274,7 @@
* Encode the constants associated with the ReflectionClass
* parameter. The encoding format is based on the class2 format
*
- * @param $cls ReflectionClass
+ * @param ReflectionClass $cls
* @return string Encoded constant block in class2 format
*/
private static function _encodeConstants(ReflectionClass $cls)
@@ -295,7 +299,7 @@
* Encode the public methods of the ReflectionClass in the
* class2 format
*
- * @param $cls ReflectionClass
+ * @param ReflectionClass $cls
* @return string Encoded method fragment
*
*/
@@ -359,7 +363,7 @@
* Encode the public properties of the ReflectionClass in the class2
* format.
*
- * @param $cls ReflectionClass
+ * @param ReflectionClass $cls
* @return string Encode properties list
*
*/
@@ -391,10 +395,10 @@
* NOTE: Currently only public methods and variables are proxied onto
* the client machine
*
- * @param $className string The name of the class, the class must be
- * instantiable using a null constructor
- * @param $package string Optional package name appended to JavaScript
- * proxy class name
+ * @param string $className The name of the class, the class must be
+ * instantiable using a null constructor
+ * @param string $package Optional package name appended to JavaScript
+ * proxy class name
* @return string The class2 (JavaScript) encoding of the class
* @throws Zend_Json_Exception
*/
--- a/web/lib/Zend/Json/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Exception extends Zend_Exception
--- a/web/lib/Zend/Json/Expr.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Expr.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Json
* @subpackage Expr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Expr.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Expr.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -45,7 +45,7 @@
* @category Zend
* @package Zend_Json
* @subpackage Expr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Expr
--- a/web/lib/Zend/Json/Server.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Server.php 22237 2010-05-21 23:58:00Z andyfowler $
+ * @version $Id: Server.php 25085 2012-11-06 21:11:41Z rob $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server extends Zend_Server_Abstract
@@ -534,8 +534,8 @@
$reflection = new ReflectionFunction( $callback->getFunction() );
$refParams = $reflection->getParameters();
} else {
-
- $reflection = new ReflectionMethod(
+
+ $reflection = new ReflectionMethod(
$callback->getClass(),
$callback->getMethod()
);
@@ -547,11 +547,11 @@
if( isset( $params[ $refParam->getName() ] ) ) {
$orderedParams[ $refParam->getName() ] = $params[ $refParam->getName() ];
} elseif( $refParam->isOptional() ) {
- $orderedParams[ $refParam->getName() ] = null;
+ $orderedParams[ $refParam->getName() ] = $refParam->getDefaultValue();
} else {
- throw new Zend_Server_Exception(
- 'Missing required parameter: ' . $refParam->getName()
- );
+ throw new Zend_Server_Exception(
+ 'Missing required parameter: ' . $refParam->getName()
+ );
}
}
$params = $orderedParams;
--- a/web/lib/Zend/Json/Server/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Server_Cache */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Cache extends Zend_Server_Cache
--- a/web/lib/Zend/Json/Server/Error.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Error.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Error.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Error.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Error
--- a/web/lib/Zend/Json/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Json_Exception */
@@ -28,7 +28,7 @@
* @uses Zend_Json_Exception
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Exception extends Zend_Json_Exception
--- a/web/lib/Zend/Json/Server/Request.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Request.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Request.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Request.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Request
--- a/web/lib/Zend/Json/Server/Request/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Request/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Request_Http extends Zend_Json_Server_Request
--- a/web/lib/Zend/Json/Server/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Response.php 24807 2012-05-15 12:10:42Z adamlundrigan $
*/
/**
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Response
@@ -144,13 +144,14 @@
*/
public function setVersion($version)
{
- $version = (string) $version;
- if ('2.0' == $version) {
+ $version = is_array($version)
+ ? implode(' ', $version)
+ : $version;
+ if ((string)$version == '2.0') {
$this->_version = '2.0';
} else {
$this->_version = null;
}
-
return $this;
}
@@ -173,7 +174,6 @@
{
if ($this->isError()) {
$response = array(
- 'result' => null,
'error' => $this->getError()->toArray(),
'id' => $this->getId(),
);
@@ -181,7 +181,6 @@
$response = array(
'result' => $this->getResult(),
'id' => $this->getId(),
- 'error' => null,
);
}
--- a/web/lib/Zend/Json/Server/Response/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Response/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Response_Http extends Zend_Json_Server_Response
--- a/web/lib/Zend/Json/Server/Smd.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Smd.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Smd.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Smd.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Json
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Smd
--- a/web/lib/Zend/Json/Server/Smd/Service.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Json/Server/Smd/Service.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Json
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,8 +28,8 @@
*
* @package Zend_Json
* @subpackage Server
- * @version $Id: Service.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Service.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Json_Server_Smd_Service
--- a/web/lib/Zend/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Layout
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Layout.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Layout.php 25263 2013-02-18 11:48:02Z frosch $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Layout
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Layout
@@ -174,12 +174,12 @@
{
if (null === self::$_mvcInstance) {
self::$_mvcInstance = new self($options, true);
- }
-
- if (is_string($options)) {
- self::$_mvcInstance->setLayoutPath($options);
- } elseif (is_array($options) || $options instanceof Zend_Config) {
- self::$_mvcInstance->setOptions($options);
+ } else {
+ if (is_string($options)) {
+ self::$_mvcInstance->setLayoutPath($options);
+ } elseif (is_array($options) || $options instanceof Zend_Config) {
+ self::$_mvcInstance->setOptions($options);
+ }
}
return self::$_mvcInstance;
--- a/web/lib/Zend/Layout/Controller/Action/Helper/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Layout/Controller/Action/Helper/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Layout.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Layout.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Zend_Controller_Action
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Layout_Controller_Action_Helper_Layout extends Zend_Controller_Action_Helper_Abstract
--- a/web/lib/Zend/Layout/Controller/Plugin/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Layout/Controller/Plugin/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @category Zend
* @package Zend_Controller
* @subpackage Plugins
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Layout.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Layout.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Layout_Controller_Plugin_Layout extends Zend_Controller_Plugin_Abstract
{
--- a/web/lib/Zend/Layout/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Layout/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Layout
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Layout
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Layout_Exception extends Zend_Exception
--- a/web/lib/Zend/Ldap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ldap.php 22996 2010-09-22 17:01:46Z sgehrig $
+ * @version $Id: Ldap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap
@@ -922,8 +922,8 @@
* @param array $attributes
* @param string|null $sort
* @param string|null $collectionClass
- * @param integer $sizelimit
- * @param integer $timelimit
+ * @param integer $sizelimit
+ * @param integer $timelimit
* @return Zend_Ldap_Collection
* @throws Zend_Ldap_Exception
*/
@@ -1008,8 +1008,8 @@
/**
* Extension point for collection creation
*
- * @param Zend_Ldap_Collection_Iterator_Default $iterator
- * @param string|null $collectionClass
+ * @param Zend_Ldap_Collection_Iterator_Default $iterator
+ * @param string|null $collectionClass
* @return Zend_Ldap_Collection
* @throws Zend_Ldap_Exception
*/
@@ -1107,8 +1107,8 @@
* @param array $attributes
* @param string|null $sort
* @param boolean $reverseSort
- * @param integer $sizelimit
- * @param integer $timelimit
+ * @param integer $sizelimit
+ * @param integer $timelimit
* @return array
* @throws Zend_Ldap_Exception
*/
--- a/web/lib/Zend/Ldap/Attribute.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Attribute.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Attribute.php 22996 2010-09-22 17:01:46Z sgehrig $
+ * @version $Id: Attribute.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Attribute
@@ -214,9 +214,9 @@
/**
* Converts a PHP data type into its LDAP representation
*
- * @deprected use Zend_Ldap_Converter instead
- * @param mixed $value
- * @return string|null - null if the PHP data type cannot be converted.
+ * @deprected use Zend_Ldap_Converter instead
+ * @param mixed $value
+ * @return string|null - null if the PHP data type cannot be converted.
*/
public static function convertToLdapValue($value)
{
@@ -226,9 +226,9 @@
/**
* Converts an LDAP value into its PHP data type
*
- * @deprected use Zend_Ldap_Converter instead
- * @param string $value
- * @return mixed
+ * @deprected use Zend_Ldap_Converter instead
+ * @param string $value
+ * @return mixed
*/
public static function convertFromLdapValue($value)
{
@@ -392,9 +392,9 @@
}
}
else {
- $newVal = self::_valueFromLdapDateTime($values);
- if ($newVal !== null) $values = $newVal;
- }
+ $newVal = self::_valueFromLdapDateTime($values);
+ if ($newVal !== null) $values = $newVal;
+ }
return $values;
}
--- a/web/lib/Zend/Ldap/Collection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Collection.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Collection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Collection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Collection implements Iterator, Countable
--- a/web/lib/Zend/Ldap/Collection/Iterator/Default.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Collection/Iterator/Default.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Default.php 24612 2012-01-21 14:42:30Z sgehrig $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Collection_Iterator_Default implements Iterator, Countable
@@ -260,7 +260,7 @@
*/
public function next()
{
- if (is_resource($this->_current)) {
+ if (is_resource($this->_current) && $this->_itemCount > 0) {
$this->_current = @ldap_next_entry($this->_ldap->getResource(), $this->_current);
/** @see Zend_Ldap_Exception */
require_once 'Zend/Ldap/Exception.php';
@@ -273,6 +273,8 @@
throw new Zend_Ldap_Exception($this->_ldap, 'getting next entry (' . $msg . ')');
}
}
+ } else {
+ $this->_current = false;
}
}
--- a/web/lib/Zend/Ldap/Converter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Converter.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Converter.php 22996 2010-09-22 17:01:46Z sgehrig $
+ * @version $Id: Converter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Converter
@@ -73,7 +73,7 @@
return $string;
}
- /**
+ /**
* Convert any value to an LDAP-compatible value.
*
* By setting the <var>$type</var>-parameter the conversion of a certain
@@ -81,10 +81,10 @@
*
* @todo write more tests
*
- * @param mixed $value The value to convert
- * @param int $ytpe The conversion type to use
- * @return string
- * @throws Zend_Ldap_Converter_Exception
+ * @param mixed $value The value to convert
+ * @param int $ytpe The conversion type to use
+ * @return string
+ * @throws Zend_Ldap_Converter_Exception
*/
public static function toLdap($value, $type = self::STANDARD)
{
@@ -132,11 +132,11 @@
* DateTime Object, a string that is parseable by strtotime() or a Zend_Date
* Object.
*
- * @param integer|string|DateTimt|Zend_Date $date The date-entity
- * @param boolean $asUtc Whether to return the LDAP-compatible date-string
- * as UTC or as local value
- * @return string
- * @throws InvalidArgumentException
+ * @param integer|string|DateTimt|Zend_Date $date The date-entity
+ * @param boolean $asUtc Whether to return the LDAP-compatible date-string
+ * as UTC or as local value
+ * @return string
+ * @throws InvalidArgumentException
*/
public static function toLdapDateTime($date, $asUtc = true)
{
@@ -170,8 +170,8 @@
* case-insensitive string 'true' to an LDAP-compatible 'TRUE'. All other
* other values are converted to an LDAP-compatible 'FALSE'.
*
- * @param boolean|integer|string $value The boolean value to encode
- * @return string
+ * @param boolean|integer|string $value The boolean value to encode
+ * @return string
*/
public static function toLdapBoolean($value)
{
@@ -188,8 +188,8 @@
/**
* Serialize any value for storage in LDAP
*
- * @param mixed $value The value to serialize
- * @return string
+ * @param mixed $value The value to serialize
+ * @return string
*/
public static function toLdapSerialize($value)
{
@@ -202,11 +202,11 @@
* By setting the <var>$type</var>-parameter the conversion of a certain
* type can be forced
* .
- * @param string $value The value to convert
- * @param int $ytpe The conversion type to use
- * @param boolean $dateTimeAsUtc Return DateTime values in UTC timezone
- * @return mixed
- * @throws Zend_Ldap_Converter_Exception
+ * @param string $value The value to convert
+ * @param int $ytpe The conversion type to use
+ * @param boolean $dateTimeAsUtc Return DateTime values in UTC timezone
+ * @return mixed
+ * @throws Zend_Ldap_Converter_Exception
*/
public static function fromLdap($value, $type = self::STANDARD, $dateTimeAsUtc = true)
{
@@ -219,7 +219,8 @@
break;
default:
if (is_numeric($value)) {
- return (float)$value;
+ // prevent numeric values to be treated as date/time
+ return $value;
} else if ('TRUE' === $value || 'FALSE' === $value) {
return self::fromLdapBoolean($value);
}
@@ -239,10 +240,10 @@
*
* CAVEAT: The DateTime-Object returned will alwasy be set to UTC-Timezone.
*
- * @param string $date The generalized-Time
- * @param boolean $asUtc Return the DateTime with UTC timezone
- * @return DateTime
- * @throws InvalidArgumentException if a non-parseable-format is given
+ * @param string $date The generalized-Time
+ * @param boolean $asUtc Return the DateTime with UTC timezone
+ * @return DateTime
+ * @throws InvalidArgumentException if a non-parseable-format is given
*/
public static function fromLdapDateTime($date, $asUtc = true)
{
@@ -265,7 +266,7 @@
'second' => 0,
'offdir' => '+',
'offsethours' => 0,
- 'offsetminutes' => 0
+ 'offsetminutes' => 0
);
$length = strlen($date);
@@ -363,9 +364,9 @@
/**
* Convert an LDAP-compatible boolean value into a PHP-compatible one
*
- * @param string $value The value to convert
- * @return boolean
- * @throws InvalidArgumentException
+ * @param string $value The value to convert
+ * @return boolean
+ * @throws InvalidArgumentException
*/
public static function fromLdapBoolean($value)
{
@@ -381,9 +382,9 @@
/**
* Unserialize a serialized value to return the corresponding object
*
- * @param string $value The value to convert
- * @return mixed
- * @throws UnexpectedValueException
+ * @param string $value The value to convert
+ * @return mixed
+ * @throws UnexpectedValueException
*/
public static function fromLdapUnserialize($value)
{
--- a/web/lib/Zend/Ldap/Converter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Converter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Converter_Exception extends Zend_Exception
--- a/web/lib/Zend/Ldap/Dn.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Dn.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dn.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Dn.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Dn implements ArrayAccess
--- a/web/lib/Zend/Ldap/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Ldap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 22996 2010-09-22 17:01:46Z sgehrig $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Ldap
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Exception extends Zend_Exception
--- a/web/lib/Zend/Ldap/Filter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Filter.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Filter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter extends Zend_Ldap_Filter_String
--- a/web/lib/Zend/Ldap/Filter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Ldap_Filter_Abstract
--- a/web/lib/Zend/Ldap/Filter/And.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/And.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: And.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: And.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_And extends Zend_Ldap_Filter_Logical
--- a/web/lib/Zend/Ldap/Filter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_Exception extends Zend_Exception
--- a/web/lib/Zend/Ldap/Filter/Logical.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Logical.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Logical.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Logical.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Ldap_Filter_Logical extends Zend_Ldap_Filter_Abstract
--- a/web/lib/Zend/Ldap/Filter/Mask.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Mask.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mask.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mask.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_Mask extends Zend_Ldap_Filter_String
--- a/web/lib/Zend/Ldap/Filter/Not.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Not.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Not.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Not.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_Not extends Zend_Ldap_Filter_Abstract
--- a/web/lib/Zend/Ldap/Filter/Or.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/Or.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Or.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Or.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_Or extends Zend_Ldap_Filter_Logical
--- a/web/lib/Zend/Ldap/Filter/String.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Filter/String.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: String.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: String.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Filter_String extends Zend_Ldap_Filter_Abstract
--- a/web/lib/Zend/Ldap/Ldif/Encoder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Ldif/Encoder.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Ldif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Encoder.php 21005 2010-02-09 13:16:26Z sgehrig $
+ * @version $Id: Encoder.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Ldif
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Ldif_Encoder
--- a/web/lib/Zend/Ldap/Node.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Node.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Node.php 24610 2012-01-21 13:54:27Z sgehrig $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node extends Zend_Ldap_Node_Abstract implements Iterator, RecursiveIterator
@@ -171,6 +171,7 @@
$this->_ldap = $ldap;
if (is_array($this->_children)) {
foreach ($this->_children as $child) {
+ /* @var Zend_Ldap_Node $child */
$child->attachLdap($ldap);
}
}
@@ -190,6 +191,7 @@
$this->_ldap = null;
if (is_array($this->_children)) {
foreach ($this->_children as $child) {
+ /* @var Zend_Ldap_Node $child */
$child->detachLdap();
}
}
@@ -319,12 +321,17 @@
/**
* Ensures that teh RDN attributes are correctly set.
*
+ * @param boolean $overwrite True to overwrite the RDN attributes
* @return void
*/
- protected function _ensureRdnAttributeValues()
+ protected function _ensureRdnAttributeValues($overwrite = false)
{
foreach ($this->getRdnArray() as $key => $value) {
- Zend_Ldap_Attribute::setAttribute($this->_currentData, $key, $value, false);
+ if (!array_key_exists($key, $this->_currentData) || $overwrite) {
+ Zend_Ldap_Attribute::setAttribute($this->_currentData, $key, $value, false);
+ } else if (!in_array($value, $this->_currentData[$key])) {
+ Zend_Ldap_Attribute::setAttribute($this->_currentData, $key, $value, true);
+ }
}
}
@@ -428,20 +435,25 @@
if ($this->willBeDeleted()) {
if ($ldap->exists($this->_dn)) {
+ $this->_preDelete();
$ldap->delete($this->_dn);
+ $this->_postDelete();
}
return $this;
}
if ($this->isNew()) {
+ $this->_preAdd();
$data = $this->getData();
$ldap->add($this->_getDn(), $data);
$this->_loadData($data, true);
+ $this->_postAdd();
return $this;
}
$changedData = $this->getChangedData();
if ($this->willBeMoved()) {
+ $this->_preRename();
$recursive = $this->hasChildren();
$ldap->rename($this->_dn, $this->_newDn, $recursive, false);
foreach ($this->_newDn->getRdn() as $key => $value) {
@@ -451,9 +463,12 @@
}
$this->_dn = $this->_newDn;
$this->_newDn = null;
+ $this->_postRename();
}
if (count($changedData) > 0) {
+ $this->_preUpdate();
$ldap->update($this->_getDn(), $changedData);
+ $this->_postUpdate();
}
$this->_originalData = $this->_currentData;
return $this;
@@ -501,7 +516,7 @@
} else {
$this->_newDn = Zend_Ldap_Dn::factory($newDn);
}
- $this->_ensureRdnAttributeValues();
+ $this->_ensureRdnAttributeValues(true);
return $this;
}
@@ -1019,6 +1034,7 @@
if ($this->isAttached()) {
$children = $this->searchChildren('(objectClass=*)', null);
foreach ($children as $child) {
+ /* @var Zend_Ldap_Node $child */
$this->_children[$child->getRdnString(Zend_Ldap_Dn::ATTR_CASEFOLD_LOWER)] = $child;
}
}
@@ -1098,4 +1114,72 @@
{
return $this->_iteratorRewind;
}
+
+ ####################################################
+ # Empty method bodies for overriding in subclasses #
+ ####################################################
+
+ /**
+ * Allows pre-delete logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _preDelete() { }
+
+ /**
+ * Allows post-delete logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _postDelete() { }
+
+ /**
+ * Allows pre-add logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _preAdd() { }
+
+ /**
+ * Allows post-add logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _postAdd() { }
+
+ /**
+ * Allows pre-rename logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _preRename() { }
+
+ /**
+ * Allows post-rename logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _postRename() { }
+
+ /**
+ * Allows pre-update logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _preUpdate() { }
+
+ /**
+ * Allows post-update logic to be applied to node.
+ * Subclasses may override this method.
+ *
+ * @return void
+ */
+ protected function _postUpdate() { }
}
\ No newline at end of file
--- a/web/lib/Zend/Ldap/Node/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Ldap_Node_Abstract implements ArrayAccess, Countable
--- a/web/lib/Zend/Ldap/Node/ChildrenIterator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/ChildrenIterator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ChildrenIterator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ChildrenIterator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_ChildrenIterator implements Iterator, Countable, RecursiveIterator, ArrayAccess
--- a/web/lib/Zend/Ldap/Node/Collection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Collection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Collection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Collection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Node
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Collection extends Zend_Ldap_Collection
--- a/web/lib/Zend/Ldap/Node/RootDse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/RootDse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RootDse.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RootDse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_RootDse extends Zend_Ldap_Node_Abstract
--- a/web/lib/Zend/Ldap/Node/RootDse/ActiveDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/RootDse/ActiveDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActiveDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActiveDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_RootDse_ActiveDirectory extends Zend_Ldap_Node_RootDse
--- a/web/lib/Zend/Ldap/Node/RootDse/OpenLdap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/RootDse/OpenLdap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenLdap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenLdap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_RootDse_OpenLdap extends Zend_Ldap_Node_RootDse
--- a/web/lib/Zend/Ldap/Node/RootDse/eDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/RootDse/eDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: eDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: eDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage RootDSE
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_RootDse_eDirectory extends Zend_Ldap_Node_RootDse
--- a/web/lib/Zend/Ldap/Node/Schema.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Schema.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Schema.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema extends Zend_Ldap_Node_Abstract
--- a/web/lib/Zend/Ldap/Node/Schema/ActiveDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/ActiveDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActiveDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActiveDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_ActiveDirectory extends Zend_Ldap_Node_Schema
--- a/web/lib/Zend/Ldap/Node/Schema/AttributeType/ActiveDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/AttributeType/ActiveDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActiveDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActiveDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_AttributeType_ActiveDirectory extends Zend_Ldap_Node_Schema_Item
--- a/web/lib/Zend/Ldap/Node/Schema/AttributeType/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/AttributeType/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Ldap_Node_Schema_AttributeType_Interface
--- a/web/lib/Zend/Ldap/Node/Schema/AttributeType/OpenLdap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/AttributeType/OpenLdap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenLdap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenLdap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_AttributeType_OpenLdap extends Zend_Ldap_Node_Schema_Item
--- a/web/lib/Zend/Ldap/Node/Schema/Item.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/Item.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Item.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Item.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Ldap_Node_Schema_Item implements ArrayAccess, Countable
--- a/web/lib/Zend/Ldap/Node/Schema/ObjectClass/ActiveDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/ObjectClass/ActiveDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActiveDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActiveDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_ObjectClass_ActiveDirectory extends Zend_Ldap_Node_Schema_Item
--- a/web/lib/Zend/Ldap/Node/Schema/ObjectClass/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/ObjectClass/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Ldap_Node_Schema_ObjectClass_Interface
--- a/web/lib/Zend/Ldap/Node/Schema/ObjectClass/OpenLdap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/ObjectClass/OpenLdap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenLdap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenLdap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_ObjectClass_OpenLdap extends Zend_Ldap_Node_Schema_Item
--- a/web/lib/Zend/Ldap/Node/Schema/OpenLdap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Ldap/Node/Schema/OpenLdap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenLdap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenLdap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Ldap
* @subpackage Schema
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Ldap_Node_Schema_OpenLdap extends Zend_Ldap_Node_Schema
--- a/web/lib/Zend/Loader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Loader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Loader.php 22019 2010-04-27 16:33:31Z matthew $
+ * @version $Id: Loader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Loader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader
@@ -60,19 +60,7 @@
throw new Zend_Exception('Directory argument must be a string or an array');
}
- // Autodiscover the path from the class name
- // Implementation is PHP namespace-aware, and based on
- // Framework Interop Group reference implementation:
- // http://groups.google.com/group/php-standards/web/psr-0-final-proposal
- $className = ltrim($class, '\\');
- $file = '';
- $namespace = '';
- if ($lastNsPos = strripos($className, '\\')) {
- $namespace = substr($className, 0, $lastNsPos);
- $className = substr($className, $lastNsPos + 1);
- $file = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
- }
- $file .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
+ $file = self::standardiseFile($class);
if (!empty($dirs)) {
// use the autodiscovered path
@@ -174,7 +162,7 @@
public static function isReadable($filename)
{
if (is_readable($filename)) {
- // Return early if the filename is readable without needing the
+ // Return early if the filename is readable without needing the
// include_path
return true;
}
@@ -182,7 +170,7 @@
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'
&& preg_match('/^[a-z]:/i', $filename)
) {
- // If on windows, and path provided is clearly an absolute path,
+ // If on windows, and path provided is clearly an absolute path,
// return false immediately
return false;
}
@@ -207,8 +195,8 @@
*
* If no path provided, uses current include_path. Works around issues that
* occur when the path includes stream schemas.
- *
- * @param string|null $path
+ *
+ * @param string|null $path
* @return array
*/
public static function explodeIncludePath($path = null)
@@ -218,7 +206,7 @@
}
if (PATH_SEPARATOR == ':') {
- // On *nix systems, include_paths which include paths with a stream
+ // On *nix systems, include_paths which include paths with a stream
// schema cannot be safely explode'd, so we have to be a bit more
// intelligent in the approach.
$paths = preg_split('#:(?!//)#', $path);
@@ -326,4 +314,30 @@
return include $filespec ;
}
}
+
+ /**
+ * Standardise the filename.
+ *
+ * Convert the supplied filename into the namespace-aware standard,
+ * based on the Framework Interop Group reference implementation:
+ * http://groups.google.com/group/php-standards/web/psr-0-final-proposal
+ *
+ * The filename must be formatted as "$file.php".
+ *
+ * @param string $file - The file name to be loaded.
+ * @return string
+ */
+ public static function standardiseFile($file)
+ {
+ $fileName = ltrim($file, '\\');
+ $file = '';
+ $namespace = '';
+ if ($lastNsPos = strripos($fileName, '\\')) {
+ $namespace = substr($fileName, 0, $lastNsPos);
+ $fileName = substr($fileName, $lastNsPos + 1);
+ $file = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
+ }
+ $file .= str_replace('_', DIRECTORY_SEPARATOR, $fileName) . '.php';
+ return $file;
+ }
}
--- a/web/lib/Zend/Loader/Autoloader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/Autoloader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Autoloader.php 23161 2010-10-19 16:08:36Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Autoloader.php 25024 2012-07-30 15:08:15Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @uses Zend_Loader_Autoloader
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader_Autoloader
@@ -335,9 +335,10 @@
continue;
}
if (0 === strpos($class, $ns)) {
- $namespace = $ns;
- $autoloaders = $autoloaders + $this->getNamespaceAutoloaders($ns);
- break;
+ if ((false === $namespace) || (strlen($ns) > strlen($namespace))) {
+ $namespace = $ns;
+ $autoloaders = $this->getNamespaceAutoloaders($ns);
+ }
}
}
@@ -351,7 +352,13 @@
}
// Add non-namespaced autoloaders
- $autoloaders = $autoloaders + $this->getNamespaceAutoloaders('');
+ $autoloadersNonNamespace = $this->getNamespaceAutoloaders('');
+ if (count($autoloadersNonNamespace)) {
+ foreach ($autoloadersNonNamespace as $ns) {
+ $autoloaders[] = $ns;
+ }
+ unset($autoloadersNonNamespace);
+ }
// Add fallback autoloader
if (!$namespace && $this->isFallbackAutoloader()) {
--- a/web/lib/Zend/Loader/Autoloader/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/Autoloader/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Interface.php 22913 2010-08-29 00:28:02Z ramon $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,7 +25,7 @@
*
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Loader_Autoloader_Interface
--- a/web/lib/Zend/Loader/Autoloader/Resource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/Autoloader/Resource.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Resource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @uses Zend_Loader_Autoloader_Interface
* @package Zend_Loader
* @subpackage Autoloader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader_Autoloader_Resource implements Zend_Loader_Autoloader_Interface
@@ -88,6 +88,7 @@
if (!empty($namespace)) {
$namespace .= '_';
}
+ require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance()->unshiftAutoloader($this, $namespace);
}
@@ -144,7 +145,12 @@
$namespace = '';
if (!empty($namespaceTopLevel)) {
- $namespace = array_shift($segments);
+ $namespace = array();
+ $topLevelSegments = count(explode('_', $namespaceTopLevel));
+ for ($i = 0; $i < $topLevelSegments; $i++) {
+ $namespace[] = array_shift($segments);
+ }
+ $namespace = implode('_', $namespace);
if ($namespace != $namespaceTopLevel) {
// wrong prefix? we're done
return false;
@@ -205,6 +211,12 @@
*/
public function setOptions(array $options)
{
+ // Set namespace first, see ZF-10836
+ if (isset($options['namespace'])) {
+ $this->setNamespace($options['namespace']);
+ unset($options['namespace']);
+ }
+
$methods = get_class_methods($this);
foreach ($options as $key => $value) {
$method = 'set' . ucfirst($key);
--- a/web/lib/Zend/Loader/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Loader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Loader
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader_Exception extends Zend_Exception
--- a/web/lib/Zend/Loader/PluginLoader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/PluginLoader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PluginLoader.php 22603 2010-07-17 00:02:10Z ramon $
+ * @version $Id: PluginLoader.php 24877 2012-06-04 14:04:53Z adamlundrigan $
*/
/** Zend_Loader_PluginLoader_Interface */
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
@@ -127,12 +127,8 @@
return $prefix;
}
- $last = strlen($prefix) - 1;
- if ($prefix{$last} == '\\') {
- return $prefix;
- }
-
- return rtrim($prefix, '_') . '_';
+ $nsSeparator = (false !== strpos($prefix, '\\'))?'\\':'_';
+ return rtrim($prefix, $nsSeparator) . $nsSeparator;
}
/**
@@ -372,7 +368,11 @@
$registry = array_reverse($registry, true);
$found = false;
- $classFile = str_replace('_', DIRECTORY_SEPARATOR, $name) . '.php';
+ if (false !== strpos($name, '\\')) {
+ $classFile = str_replace('\\', DIRECTORY_SEPARATOR, $name) . '.php';
+ } else {
+ $classFile = str_replace('_', DIRECTORY_SEPARATOR, $name) . '.php';
+ }
$incFile = self::getIncludeFileCache();
foreach ($registry as $prefix => $paths) {
$className = $prefix . $name;
--- a/web/lib/Zend/Loader/PluginLoader/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/PluginLoader/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Loader_PluginLoader_Exception extends Zend_Loader_Exception
--- a/web/lib/Zend/Loader/PluginLoader/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Loader/PluginLoader/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Loader
* @subpackage PluginLoader
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Loader_PluginLoader_Interface
--- a/web/lib/Zend/Locale.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Locale.php 22712 2010-07-29 08:24:28Z thomas $
+ * @version $Id: Locale.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale
@@ -666,7 +666,7 @@
require_once 'Zend/Locale/Data.php';
$locale = self::findLocale($locale);
$result = Zend_Locale_Data::getContent($locale, $path, $value);
- if (empty($result) === true) {
+ if (empty($result) === true && '0' !== $result) {
return false;
}
--- a/web/lib/Zend/Locale/Data.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Data.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Locale
* @subpackage Data
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Data.php 22712 2010-07-29 08:24:28Z thomas $
+ * @version $Id: Data.php 24766 2012-05-06 02:51:42Z adamlundrigan $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Locale
* @subpackage Data
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Data
@@ -361,7 +361,7 @@
break;
case 'type':
- if (empty($type)) {
+ if (empty($value)) {
$temp = self::_getFile($locale, '/ldml/localeDisplayNames/types/type', 'type');
} else {
if (($value == 'calendar') or
@@ -1139,6 +1139,10 @@
$temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value[0] . '\']/fields/field/relative[@type=\'' . $value[1] . '\']', '', $value[1]);
break;
+ case 'defaultnumberingsystem':
+ $temp = self::_getFile($locale, '/ldml/numbers/defaultNumberingSystem', '', 'default');
+ break;
+
case 'decimalnumber':
$temp = self::_getFile($locale, '/ldml/numbers/decimalFormats/decimalFormatLength/decimalFormat/pattern', '', 'default');
break;
--- a/web/lib/Zend/Locale/Data/Translation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Data/Translation.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Translation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Translation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Data_Translation
--- a/web/lib/Zend/Locale/Data/cy.xml Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Data/cy.xml Thu Mar 21 19:50:53 2013 +0100
@@ -427,7 +427,7 @@
<month type="4">Ebrill</month>
<month type="5">Mai</month>
<month type="6">Mehefin</month>
- <month type="7">Gorffenaf</month>
+ <month type="7">Gorffennaf</month>
<month type="8">Awst</month>
<month type="9">Medi</month>
<month type="10">Hydref</month>
--- a/web/lib/Zend/Locale/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Exception extends Zend_Exception
--- a/web/lib/Zend/Locale/Format.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Format.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Locale
* @subpackage Format
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Format.php 22808 2010-08-08 09:38:42Z thomas $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Format.php 24807 2012-05-15 12:10:42Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Locale
* @subpackage Format
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Format
@@ -99,8 +99,9 @@
$options['number_format'] = Zend_Locale_Data::getContent($locale, 'decimalnumber');
} else if ((gettype($value) !== 'string') and ($value !== NULL)) {
require_once 'Zend/Locale/Exception.php';
+ $stringValue = (string)(is_array($value) ? implode(' ', $value) : $value);
throw new Zend_Locale_Exception("Unknown number format type '" . gettype($value) . "'. "
- . "Format '$value' must be a valid number format string.");
+ . "Format '$stringValue' must be a valid number format string.");
}
break;
@@ -113,8 +114,9 @@
$options['date_format'] = Zend_Locale_Format::getDateFormat($locale);
} else if ((gettype($value) !== 'string') and ($value !== NULL)) {
require_once 'Zend/Locale/Exception.php';
+ $stringValue = (string)(is_array($value) ? implode(' ', $value) : $value);
throw new Zend_Locale_Exception("Unknown dateformat type '" . gettype($value) . "'. "
- . "Format '$value' must be a valid ISO or PHP date format string.");
+ . "Format '$stringValue' must be a valid ISO or PHP date format string.");
} else {
if (((isset($options['format_type']) === true) and ($options['format_type'] == 'php')) or
((isset($options['format_type']) === false) and (self::$_options['format_type'] == 'php'))) {
@@ -300,8 +302,8 @@
// load class within method for speed
require_once 'Zend/Locale/Math.php';
+ $value = Zend_Locale_Math::floatalize($value);
$value = Zend_Locale_Math::normalize($value);
- $value = Zend_Locale_Math::floatalize($value);
$options = self::_checkOptions($options) + self::$_options;
$options['locale'] = (string) $options['locale'];
@@ -1137,7 +1139,7 @@
if (empty($options['date_format'])) {
$options['format_type'] = 'iso';
- $options['date_format'] = self::getDateFormat($options['locale']);
+ $options['date_format'] = self::getDateFormat(isset($options['locale']) ? $options['locale'] : null);
}
$options = self::_checkOptions($options) + self::$_options;
--- a/web/lib/Zend/Locale/Math.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Math.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Math.php 21180 2010-02-23 22:00:29Z matthew $
+ * @version $Id: Math.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Locale/Math/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Math/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Math_Exception extends Zend_Locale_Exception
--- a/web/lib/Zend/Locale/Math/PhpMath.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Locale/Math/PhpMath.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhpMath.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PhpMath.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Locale_Math_PhpMath extends Zend_Locale_Math
--- a/web/lib/Zend/Log.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,17 +14,17 @@
*
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Log.php 22976 2010-09-19 11:57:26Z intiilapa $
+ * @version $Id: Log.php 25131 2012-11-16 15:29:18Z rob $
*/
/**
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Log.php 22976 2010-09-19 11:57:26Z intiilapa $
+ * @version $Id: Log.php 25131 2012-11-16 15:29:18Z rob $
*/
class Zend_Log
{
@@ -72,6 +72,12 @@
/**
*
+ * @var string
+ */
+ protected $_defaultFormatterNamespace = 'Zend_Log_Formatter';
+
+ /**
+ *
* @var callback
*/
protected $_origErrorHandler = null;
@@ -84,7 +90,7 @@
/**
*
- * @var array
+ * @var array|boolean
*/
protected $_errorHandlerMap = false;
@@ -98,6 +104,7 @@
* Class constructor. Create a new logger
*
* @param Zend_Log_Writer_Abstract|null $writer default writer
+ * @return void
*/
public function __construct(Zend_Log_Writer_Abstract $writer = null)
{
@@ -115,6 +122,7 @@
*
* @param array|Zend_Config Array or instance of Zend_Config
* @return Zend_Log
+ * @throws Zend_Log_Exception
*/
static public function factory($config = array())
{
@@ -130,6 +138,13 @@
$log = new self;
+ if (array_key_exists('timestampFormat', $config)) {
+ if (null != $config['timestampFormat'] && '' != $config['timestampFormat']) {
+ $log->setTimestampFormat($config['timestampFormat']);
+ }
+ unset($config['timestampFormat']);
+ }
+
if (!is_array(current($config))) {
$log->addWriter(current($config));
} else {
@@ -147,6 +162,7 @@
*
* @param array $spec config array with writer spec
* @return Zend_Log_Writer_Abstract
+ * @throws Zend_Log_Exception
*/
protected function _constructWriterFromConfig($config)
{
@@ -166,6 +182,11 @@
$writer->addFilter($filter);
}
+ if (isset($config['formatterName'])) {
+ $formatter = $this->_constructFormatterFromConfig($config);
+ $writer->setFormatter($formatter);
+ }
+
return $writer;
}
@@ -174,6 +195,7 @@
*
* @param array|Zend_Config $config Zend_Config or Array
* @return Zend_Log_Filter_Interface
+ * @throws Zend_Log_Exception
*/
protected function _constructFilterFromConfig($config)
{
@@ -191,6 +213,29 @@
return $filter;
}
+ /**
+ * Construct formatter object from configuration array or Zend_Config object
+ *
+ * @param array|Zend_Config $config Zend_Config or Array
+ * @return Zend_Log_Formatter_Interface
+ * @throws Zend_Log_Exception
+ */
+ protected function _constructFormatterFromConfig($config)
+ {
+ $formatter = $this->_constructFromConfig('formatter', $config, $this->_defaultFormatterNamespace);
+
+ if (!$formatter instanceof Zend_Log_Formatter_Interface) {
+ $formatterName = is_object($formatter)
+ ? get_class($formatter)
+ : 'The specified formatter';
+ /** @see Zend_Log_Exception */
+ require_once 'Zend/Log/Exception.php';
+ throw new Zend_Log_Exception($formatterName . ' does not implement Zend_Log_Formatter_Interface');
+ }
+
+ return $formatter;
+ }
+
/**
* Construct a filter or writer from config
*
@@ -198,6 +243,7 @@
* @param mixed $config Zend_Config or Array
* @param string $namespace
* @return object
+ * @throws Zend_Log_Exception
*/
protected function _constructFromConfig($type, $config, $namespace)
{
@@ -223,7 +269,7 @@
if (!$reflection->implementsInterface('Zend_Log_FactoryInterface')) {
require_once 'Zend/Log/Exception.php';
throw new Zend_Log_Exception(
- 'Driver does not implement Zend_Log_FactoryInterface and can not be constructed from config.'
+ $className . ' does not implement Zend_Log_FactoryInterface and can not be constructed from config.'
);
}
@@ -237,22 +283,33 @@
* @param string $type filter|writer
* @param string $defaultNamespace
* @return string full classname
+ * @throws Zend_Log_Exception
*/
protected function getClassName($config, $type, $defaultNamespace)
{
- if (!isset($config[ $type . 'Name' ])) {
+ if (!isset($config[$type . 'Name'])) {
require_once 'Zend/Log/Exception.php';
throw new Zend_Log_Exception("Specify {$type}Name in the configuration array");
}
- $className = $config[ $type . 'Name' ];
+ $className = $config[$type . 'Name'];
$namespace = $defaultNamespace;
- if (isset($config[ $type . 'Namespace' ])) {
- $namespace = $config[ $type . 'Namespace' ];
+
+ if (isset($config[$type . 'Namespace'])) {
+ $namespace = $config[$type . 'Namespace'];
}
- $fullClassName = $namespace . '_' . $className;
- return $fullClassName;
+ // PHP >= 5.3.0 namespace given?
+ if (substr($namespace, -1) == '\\') {
+ return $namespace . $className;
+ }
+
+ // emtpy namespace given?
+ if (strlen($namespace) === 0) {
+ return $className;
+ }
+
+ return $namespace . '_' . $className;
}
/**
@@ -261,7 +318,7 @@
* @param string $message Message to log
* @param integer $priority Priority of message
* @return array Event array
- **/
+ */
protected function _packEvent($message, $priority)
{
return array_merge(array(
@@ -387,7 +444,7 @@
*
* @param string $name Name of priority
* @param integer $priority Numeric priority
- * @throws Zend_Log_InvalidArgumentException
+ * @throws Zend_Log_Exception
*/
public function addPriority($name, $priority)
{
@@ -410,12 +467,13 @@
* Before a message will be received by any of the writers, it
* must be accepted by all filters added with this method.
*
- * @param int|Zend_Log_Filter_Interface $filter
- * @return void
+ * @param int|Zend_Config|array|Zend_Log_Filter_Interface $filter
+ * @return Zend_Log
+ * @throws Zend_Log_Exception
*/
public function addFilter($filter)
{
- if (is_integer($filter)) {
+ if (is_int($filter)) {
/** @see Zend_Log_Filter_Priority */
require_once 'Zend/Log/Filter/Priority.php';
$filter = new Zend_Log_Filter_Priority($filter);
@@ -438,7 +496,7 @@
* message and writing it out to storage.
*
* @param mixed $writer Zend_Log_Writer_Abstract or Config array
- * @return void
+ * @return Zend_Log
*/
public function addWriter($writer)
{
@@ -462,9 +520,9 @@
/**
* Set an extra item to pass to the log writers.
*
- * @param $name Name of the field
- * @param $value Value of the field
- * @return void
+ * @param string $name Name of the field
+ * @param string $value Value of the field
+ * @return Zend_Log
*/
public function setEventItem($name, $value)
{
@@ -491,7 +549,7 @@
{
// Only register once. Avoids loop issues if it gets registered twice.
if ($this->_registeredErrorHandler) {
- return $this;
+ return $this;
}
$this->_origErrorHandler = set_error_handler(array($this, 'errorHandler'));
@@ -537,7 +595,7 @@
{
$errorLevel = error_reporting();
- if ($errorLevel && $errno) {
+ if ($errorLevel & $errno) {
if (isset($this->_errorHandlerMap[$errno])) {
$priority = $this->_errorHandlerMap[$errno];
} else {
--- a/web/lib/Zend/Log/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Exception */
@@ -25,9 +25,9 @@
/**
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Exception extends Zend_Exception
{}
--- a/web/lib/Zend/Log/FactoryInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/FactoryInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,25 +14,25 @@
*
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FactoryInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: FactoryInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Log
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FactoryInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: FactoryInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Log_FactoryInterface
{
/**
* Construct a Zend_Log driver
- *
- * @param array|Zen_Config $config
+ *
+ * @param array|Zend_Config $config
* @return Zend_Log_FactoryInterface
*/
static public function factory($config);
-}
+}
\ No newline at end of file
--- a/web/lib/Zend/Log/Filter/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Filter/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21892 2010-04-16 19:15:20Z juokaz $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Log_Filter_Interface */
@@ -30,16 +30,16 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21892 2010-04-16 19:15:20Z juokaz $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
-abstract class Zend_Log_Filter_Abstract
+abstract class Zend_Log_Filter_Abstract
implements Zend_Log_Filter_Interface, Zend_Log_FactoryInterface
{
/**
* Validate and optionally convert the config to array
- *
+ *
* @param array|Zend_Config $config Zend_Config or Array
* @return array
* @throws Zend_Log_Exception
--- a/web/lib/Zend/Log/Filter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Filter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,18 +15,18 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Log_Filter_Interface
{
--- a/web/lib/Zend/Log/Filter/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Filter/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20981 2010-02-08 15:51:02Z matthew $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Filter_Abstract */
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20981 2010-02-08 15:51:02Z matthew $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Filter_Message extends Zend_Log_Filter_Abstract
{
@@ -42,6 +42,7 @@
* Filter out any log messages not matching $regexp.
*
* @param string $regexp Regular expression to test the log message
+ * @return void
* @throws Zend_Log_Exception
*/
public function __construct($regexp)
@@ -55,12 +56,11 @@
/**
* Create a new instance of Zend_Log_Filter_Message
- *
+ *
* @param array|Zend_Config $config
* @return Zend_Log_Filter_Message
- * @throws Zend_Log_Exception
*/
- static public function factory($config)
+ static public function factory($config)
{
$config = self::_parseConfig($config);
$config = array_merge(array(
--- a/web/lib/Zend/Log/Filter/Priority.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Filter/Priority.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Priority.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Priority.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Filter_Abstract */
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Priority.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Priority.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Filter_Priority extends Zend_Log_Filter_Abstract
{
@@ -49,11 +49,12 @@
*
* @param integer $priority Priority
* @param string $operator Comparison operator
+ * @return void
* @throws Zend_Log_Exception
*/
- public function __construct($priority, $operator = NULL)
+ public function __construct($priority, $operator = null)
{
- if (! is_integer($priority)) {
+ if (! is_int($priority)) {
require_once 'Zend/Log/Exception.php';
throw new Zend_Log_Exception('Priority must be an integer');
}
@@ -64,16 +65,15 @@
/**
* Create a new instance of Zend_Log_Filter_Priority
- *
+ *
* @param array|Zend_Config $config
* @return Zend_Log_Filter_Priority
- * @throws Zend_Log_Exception
*/
- static public function factory($config)
+ static public function factory($config)
{
$config = self::_parseConfig($config);
$config = array_merge(array(
- 'priority' => null,
+ 'priority' => null,
'operator' => null,
), $config);
@@ -83,7 +83,7 @@
}
return new self(
- (int) $config['priority'],
+ (int) $config['priority'],
$config['operator']
);
}
--- a/web/lib/Zend/Log/Filter/Suppress.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Filter/Suppress.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Suppress.php 22977 2010-09-19 12:44:00Z intiilapa $
+ * @version $Id: Suppress.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Filter_Interface */
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Filter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Suppress.php 22977 2010-09-19 12:44:00Z intiilapa $
+ * @version $Id: Suppress.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Filter_Suppress extends Zend_Log_Filter_Abstract
{
--- a/web/lib/Zend/Log/Formatter/Firebug.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Formatter/Firebug.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,24 +15,35 @@
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Firebug.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Firebug.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/** Zend_Log_Formatter_Interface */
-require_once 'Zend/Log/Formatter/Interface.php';
+/** Zend_Log_Formatter_Abstract */
+require_once 'Zend/Log/Formatter/Abstract.php';
/**
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Log_Formatter_Firebug implements Zend_Log_Formatter_Interface
+class Zend_Log_Formatter_Firebug extends Zend_Log_Formatter_Abstract
{
/**
+ * Factory for Zend_Log_Formatter_Firebug classe
+ *
+ * @param array|Zend_Config $options useless
+ * @return Zend_Log_Formatter_Firebug
+ */
+ public static function factory($options)
+ {
+ return new self;
+ }
+
+ /**
* This method formats the event for the firebug writer.
*
* The default is to just send the message parameter, but through
@@ -47,4 +58,4 @@
{
return $event['message'];
}
-}
+}
\ No newline at end of file
--- a/web/lib/Zend/Log/Formatter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Formatter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,18 +15,18 @@
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Log_Formatter_Interface
{
--- a/web/lib/Zend/Log/Formatter/Simple.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Formatter/Simple.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,23 +15,23 @@
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Simple.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/** Zend_Log_Formatter_Interface */
-require_once 'Zend/Log/Formatter/Interface.php';
+/** Zend_Log_Formatter_Abstract */
+require_once 'Zend/Log/Formatter/Abstract.php';
/**
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Simple.php 24593 2012-01-05 20:35:02Z matthew $
*/
-class Zend_Log_Formatter_Simple implements Zend_Log_Formatter_Interface
+class Zend_Log_Formatter_Simple extends Zend_Log_Formatter_Abstract
{
/**
* @var string
@@ -44,6 +44,7 @@
* Class constructor
*
* @param null|string $format Format specifier for log messages
+ * @return void
* @throws Zend_Log_Exception
*/
public function __construct($format = null)
@@ -52,7 +53,7 @@
$format = self::DEFAULT_FORMAT . PHP_EOL;
}
- if (! is_string($format)) {
+ if (!is_string($format)) {
require_once 'Zend/Log/Exception.php';
throw new Zend_Log_Exception('Format must be a string');
}
@@ -61,6 +62,28 @@
}
/**
+ * Factory for Zend_Log_Formatter_Simple classe
+ *
+ * @param array|Zend_Config $options
+ * @return Zend_Log_Formatter_Simple
+ */
+ public static function factory($options)
+ {
+ $format = null;
+ if (null !== $options) {
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ }
+
+ if (array_key_exists('format', $options)) {
+ $format = $options['format'];
+ }
+ }
+
+ return new self($format);
+ }
+
+ /**
* Formats data into a single line to be written by the writer.
*
* @param array $event event data
@@ -69,17 +92,17 @@
public function format($event)
{
$output = $this->_format;
+
foreach ($event as $name => $value) {
-
if ((is_object($value) && !method_exists($value,'__toString'))
- || is_array($value)) {
-
+ || is_array($value)
+ ) {
$value = gettype($value);
}
$output = str_replace("%$name%", $value, $output);
}
+
return $output;
}
-
-}
+}
\ No newline at end of file
--- a/web/lib/Zend/Log/Formatter/Xml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Formatter/Xml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,31 +15,31 @@
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xml.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/** Zend_Log_Formatter_Interface */
-require_once 'Zend/Log/Formatter/Interface.php';
+/** Zend_Log_Formatter_Abstract */
+require_once 'Zend/Log/Formatter/Abstract.php';
/**
* @category Zend
* @package Zend_Log
* @subpackage Formatter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xml.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
*/
-class Zend_Log_Formatter_Xml implements Zend_Log_Formatter_Interface
+class Zend_Log_Formatter_Xml extends Zend_Log_Formatter_Abstract
{
/**
- * @var Relates XML elements to log data field keys.
+ * @var string Name of root element
*/
protected $_rootElement;
/**
- * @var Relates XML elements to log data field keys.
+ * @var array Relates XML elements to log data field keys.
*/
protected $_elementMap;
@@ -50,16 +50,56 @@
/**
* Class constructor
+ * (the default encoding is UTF-8)
*
- * @param string $rootElement Name of root element
- * @param array $elementMap
- * @param string $encoding Encoding to use (defaults to UTF-8)
+ * @param array|Zend_Config $options
+ * @return void
*/
- public function __construct($rootElement = 'logEntry', $elementMap = null, $encoding = 'UTF-8')
+ public function __construct($options = array())
{
- $this->_rootElement = $rootElement;
- $this->_elementMap = $elementMap;
- $this->setEncoding($encoding);
+ if ($options instanceof Zend_Config) {
+ $options = $options->toArray();
+ } elseif (!is_array($options)) {
+ $args = func_get_args();
+
+ $options = array(
+ 'rootElement' => array_shift($args)
+ );
+
+ if (count($args)) {
+ $options['elementMap'] = array_shift($args);
+ }
+
+ if (count($args)) {
+ $options['encoding'] = array_shift($args);
+ }
+ }
+
+ if (!array_key_exists('rootElement', $options)) {
+ $options['rootElement'] = 'logEntry';
+ }
+
+ if (!array_key_exists('encoding', $options)) {
+ $options['encoding'] = 'UTF-8';
+ }
+
+ $this->_rootElement = $options['rootElement'];
+ $this->setEncoding($options['encoding']);
+
+ if (array_key_exists('elementMap', $options)) {
+ $this->_elementMap = $options['elementMap'];
+ }
+ }
+
+ /**
+ * Factory for Zend_Log_Formatter_Xml classe
+ *
+ * @param array|Zend_Config $options
+ * @return Zend_Log_Formatter_Xml
+ */
+ public static function factory($options)
+ {
+ return new self($options);
}
/**
@@ -106,10 +146,15 @@
$elt = $dom->appendChild(new DOMElement($this->_rootElement));
foreach ($dataToInsert as $key => $value) {
- if($key == "message") {
- $value = htmlspecialchars($value, ENT_COMPAT, $enc);
+ if (empty($value)
+ || is_scalar($value)
+ || (is_object($value) && method_exists($value,'__toString'))
+ ) {
+ if($key == "message") {
+ $value = htmlspecialchars($value, ENT_COMPAT, $enc);
+ }
+ $elt->appendChild(new DOMElement($key, (string)$value));
}
- $elt->appendChild(new DOMElement($key, $value));
}
$xml = $dom->saveXML();
@@ -117,5 +162,4 @@
return $xml . PHP_EOL;
}
-
}
--- a/web/lib/Zend/Log/Writer/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22567 2010-07-16 03:32:31Z ramon $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Filter_Priority */
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22567 2010-07-16 03:32:31Z ramon $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Log_Writer_Abstract implements Zend_Log_FactoryInterface
{
@@ -40,6 +40,7 @@
/**
* Formats the log message before writing.
+ *
* @var Zend_Log_Formatter_Interface
*/
protected $_formatter;
@@ -48,11 +49,11 @@
* Add a filter specific to this writer.
*
* @param Zend_Log_Filter_Interface $filter
- * @return void
+ * @return Zend_Log_Writer_Abstract
*/
public function addFilter($filter)
{
- if (is_integer($filter)) {
+ if (is_int($filter)) {
$filter = new Zend_Log_Filter_Priority($filter);
}
@@ -69,7 +70,7 @@
/**
* Log a message to this writer.
*
- * @param array $event log data event
+ * @param array $event log data event
* @return void
*/
public function write($event)
@@ -88,7 +89,7 @@
* Set a new formatter for this writer
*
* @param Zend_Log_Formatter_Interface $formatter
- * @return void
+ * @return Zend_Log_Writer_Abstract
*/
public function setFormatter(Zend_Log_Formatter_Interface $formatter)
{
@@ -128,8 +129,8 @@
if (!is_array($config)) {
require_once 'Zend/Log/Exception.php';
throw new Zend_Log_Exception(
- 'Configuration must be an array or instance of Zend_Config'
- );
+ 'Configuration must be an array or instance of Zend_Config'
+ );
}
return $config;
--- a/web/lib/Zend/Log/Writer/Db.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Db.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db.php 22513 2010-07-01 13:48:39Z ramon $
+ * @version $Id: Db.php 25247 2013-02-01 17:49:40Z frosch $
*/
/** Zend_Log_Writer_Abstract */
@@ -27,30 +27,32 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db.php 22513 2010-07-01 13:48:39Z ramon $
+ * @version $Id: Db.php 25247 2013-02-01 17:49:40Z frosch $
*/
class Zend_Log_Writer_Db extends Zend_Log_Writer_Abstract
{
/**
* Database adapter instance
+ *
* @var Zend_Db_Adapter
*/
- private $_db;
+ protected $_db;
/**
* Name of the log table in the database
+ *
* @var string
*/
- private $_table;
+ protected $_table;
/**
* Relates database columns names to log data field keys.
*
* @var null|array
*/
- private $_columnMap;
+ protected $_columnMap;
/**
* Class constructor
@@ -58,6 +60,7 @@
* @param Zend_Db_Adapter $db Database adapter instance
* @param string $table Log table in database
* @param array $columnMap
+ * @return void
*/
public function __construct($db, $table, $columnMap = null)
{
@@ -71,7 +74,6 @@
*
* @param array|Zend_Config $config
* @return Zend_Log_Writer_Db
- * @throws Zend_Log_Exception
*/
static public function factory($config)
{
@@ -95,6 +97,9 @@
/**
* Formatting is not possible on this writer
+ *
+ * @return void
+ * @throws Zend_Log_Exception
*/
public function setFormatter(Zend_Log_Formatter_Interface $formatter)
{
@@ -117,6 +122,7 @@
*
* @param array $event event data
* @return void
+ * @throws Zend_Log_Exception
*/
protected function _write($event)
{
@@ -130,7 +136,9 @@
} else {
$dataToInsert = array();
foreach ($this->_columnMap as $columnName => $fieldKey) {
- $dataToInsert[$columnName] = $event[$fieldKey];
+ if (isset($event[$fieldKey])) {
+ $dataToInsert[$columnName] = $event[$fieldKey];
+ }
}
}
--- a/web/lib/Zend/Log/Writer/Firebug.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Firebug.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Firebug.php 23066 2010-10-09 23:29:20Z cadorn $
+ * @version $Id: Firebug.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log */
@@ -38,14 +38,14 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Log_Writer_Firebug extends Zend_Log_Writer_Abstract
{
-
/**
* Maps logging priorities to logging display styles
+ *
* @var array
*/
protected $_priorityStyles = array(Zend_Log::EMERG => Zend_Wildfire_Plugin_FirePhp::ERROR,
@@ -59,18 +59,22 @@
/**
* The default logging style for un-mapped priorities
+ *
* @var string
*/
protected $_defaultPriorityStyle = Zend_Wildfire_Plugin_FirePhp::LOG;
/**
* Flag indicating whether the log writer is enabled
+ *
* @var boolean
*/
protected $_enabled = true;
/**
* Class constructor
+ *
+ * @return void
*/
public function __construct()
{
@@ -80,13 +84,12 @@
$this->_formatter = new Zend_Log_Formatter_Firebug();
}
-
+
/**
* Create a new instance of Zend_Log_Writer_Firebug
- *
+ *
* @param array|Zend_Config $config
* @return Zend_Log_Writer_Firebug
- * @throws Zend_Log_Exception
*/
static public function factory($config)
{
--- a/web/lib/Zend/Log/Writer/Mail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Mail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mail.php 22971 2010-09-18 20:32:24Z mikaelkael $
+ * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Writer_Abstract */
@@ -39,9 +39,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mail.php 22971 2010-09-18 20:32:24Z mikaelkael $
+ * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Writer_Mail extends Zend_Log_Writer_Abstract
{
@@ -106,7 +106,7 @@
* @var array
*/
protected static $_methodMapHeaders = array(
- 'from' => 'setFrom',
+ 'from' => 'setFrom',
'to' => 'addTo',
'cc' => 'addCc',
'bcc' => 'addBcc',
@@ -148,7 +148,7 @@
$writer->setLayout($config);
}
if (isset($config['layoutFormatter'])) {
- $layoutFormatter = new $config['layoutFormatter'];
+ $layoutFormatter = new $config['layoutFormatter'];
$writer->setLayoutFormatter($layoutFormatter);
}
if (isset($config['subjectPrependText'])) {
@@ -185,6 +185,7 @@
*
* @param array $config
* @return Zend_Mail
+ * @throws Zend_Log_Exception
*/
protected static function _constructMailFromConfig(array $config)
{
@@ -213,8 +214,8 @@
&& !is_numeric($address['name'])
) {
$params = array(
- $address['email'],
- $address['name']
+ $address['email'],
+ $address['name']
);
} else if (is_array($address) && isset($address['email'])) {
$params = array($address['email']);
@@ -233,6 +234,7 @@
*
* @param array $config
* @return Zend_Layout
+ * @throws Zend_Log_Exception
*/
protected function _constructLayoutFromConfig(array $config)
{
@@ -331,6 +333,7 @@
*
* @param string $subject Subject prepend text.
* @return Zend_Log_Writer_Mail
+ * @throws Zend_Log_Exception
*/
public function setSubjectPrependText($subject)
{
--- a/web/lib/Zend/Log/Writer/Mock.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Mock.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mock.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mock.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Writer_Abstract */
@@ -27,19 +27,23 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mock.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mock.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Writer_Mock extends Zend_Log_Writer_Abstract
{
/**
* array of log events
+ *
+ * @var array
*/
public $events = array();
/**
* shutdown called?
+ *
+ * @var boolean
*/
public $shutdown = false;
@@ -66,12 +70,11 @@
/**
* Create a new instance of Zend_Log_Writer_Mock
- *
+ *
* @param array|Zend_Config $config
* @return Zend_Log_Writer_Mock
- * @throws Zend_Log_Exception
*/
- static public function factory($config)
+ static public function factory($config)
{
return new self();
}
--- a/web/lib/Zend/Log/Writer/Null.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Null.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Writer_Abstract */
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Writer_Null extends Zend_Log_Writer_Abstract
{
@@ -42,13 +42,12 @@
protected function _write($event)
{
}
-
+
/**
* Create a new instance of Zend_Log_Writer_Null
- *
+ *
* @param array|Zend_Config $config
* @return Zend_Log_Writer_Null
- * @throws Zend_Log_Exception
*/
static public function factory($config)
{
--- a/web/lib/Zend/Log/Writer/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Writer_Abstract */
@@ -30,14 +30,15 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Writer_Stream extends Zend_Log_Writer_Abstract
{
/**
* Holds the PHP stream to log to.
+ *
* @var null|stream
*/
protected $_stream = null;
@@ -45,13 +46,15 @@
/**
* Class Constructor
*
- * @param streamOrUrl Stream or URL to open as a stream
- * @param mode Mode, only applicable if a URL is given
+ * @param array|string|resource $streamOrUrl Stream or URL to open as a stream
+ * @param string|null $mode Mode, only applicable if a URL is given
+ * @return void
+ * @throws Zend_Log_Exception
*/
- public function __construct($streamOrUrl, $mode = NULL)
+ public function __construct($streamOrUrl, $mode = null)
{
// Setting the default
- if ($mode === NULL) {
+ if (null === $mode) {
$mode = 'a';
}
@@ -81,30 +84,29 @@
$this->_formatter = new Zend_Log_Formatter_Simple();
}
-
+
/**
- * Create a new instance of Zend_Log_Writer_Mock
- *
+ * Create a new instance of Zend_Log_Writer_Stream
+ *
* @param array|Zend_Config $config
- * @return Zend_Log_Writer_Mock
- * @throws Zend_Log_Exception
+ * @return Zend_Log_Writer_Stream
*/
static public function factory($config)
{
$config = self::_parseConfig($config);
$config = array_merge(array(
- 'stream' => null,
+ 'stream' => null,
'mode' => null,
), $config);
- $streamOrUrl = isset($config['url']) ? $config['url'] : $config['stream'];
-
+ $streamOrUrl = isset($config['url']) ? $config['url'] : $config['stream'];
+
return new self(
- $streamOrUrl,
+ $streamOrUrl,
$config['mode']
);
}
-
+
/**
* Close the stream resource.
*
@@ -122,6 +124,7 @@
*
* @param array $event event data
* @return void
+ * @throws Zend_Log_Exception
*/
protected function _write($event)
{
--- a/web/lib/Zend/Log/Writer/Syslog.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/Syslog.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Syslog.php 22977 2010-09-19 12:44:00Z intiilapa $
+ * @version $Id: Syslog.php 25024 2012-07-30 15:08:15Z rob $
*/
/** Zend_Log */
@@ -32,13 +32,14 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Log_Writer_Syslog extends Zend_Log_Writer_Abstract
{
/**
* Maps Zend_Log priorities to PHP's syslog priorities
+ *
* @var array
*/
protected $_priorities = array(
@@ -54,36 +55,41 @@
/**
* The default log priority - for unmapped custom priorities
+ *
* @var string
*/
protected $_defaultPriority = LOG_NOTICE;
/**
* Last application name set by a syslog-writer instance
+ *
* @var string
*/
protected static $_lastApplication;
/**
* Last facility name set by a syslog-writer instance
+ *
* @var string
*/
protected static $_lastFacility;
/**
* Application name used by this syslog-writer instance
+ *
* @var string
*/
protected $_application = 'Zend_Log';
/**
* Facility used by this syslog-writer instance
+ *
* @var int
*/
protected $_facility = LOG_USER;
/**
- * _validFacilities
+ * Types of program available to logging of message
*
* @var array
*/
@@ -92,7 +98,7 @@
/**
* Class constructor
*
- * @param array $options Array of options; may include "application" and "facility" keys
+ * @param array $params Array of options; may include "application" and "facility" keys
* @return void
*/
public function __construct(array $params = array())
@@ -103,7 +109,7 @@
$runInitializeSyslog = true;
if (isset($params['facility'])) {
- $this->_facility = $this->setFacility($params['facility']);
+ $this->setFacility($params['facility']);
$runInitializeSyslog = false;
}
@@ -117,7 +123,6 @@
*
* @param array|Zend_Config $config
* @return Zend_Log_Writer_Syslog
- * @throws Zend_Log_Exception
*/
static public function factory($config)
{
@@ -176,7 +181,7 @@
* Set syslog facility
*
* @param int $facility Syslog facility
- * @return void
+ * @return Zend_Log_Writer_Syslog
* @throws Zend_Log_Exception for invalid log facility
*/
public function setFacility($facility)
@@ -210,7 +215,7 @@
* Set application name
*
* @param string $application Application name
- * @return void
+ * @return Zend_Log_Writer_Syslog
*/
public function setApplicationName($application)
{
@@ -235,7 +240,7 @@
/**
* Write a message to syslog.
*
- * @param array $event event data
+ * @param array $event event data
* @return void
*/
protected function _write($event)
@@ -252,6 +257,11 @@
$this->_initializeSyslog();
}
- syslog($priority, $event['message']);
+ $message = $event['message'];
+ if ($this->_formatter instanceof Zend_Log_Formatter_Interface) {
+ $message = $this->_formatter->format($event);
+ }
+
+ syslog($priority, $message);
}
}
--- a/web/lib/Zend/Log/Writer/ZendMonitor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Log/Writer/ZendMonitor.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZendMonitor.php 23351 2010-11-16 18:09:45Z matthew $
+ * @version $Id: ZendMonitor.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Log_Writer_Abstract */
@@ -27,26 +27,28 @@
* @category Zend
* @package Zend_Log
* @subpackage Writer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZendMonitor.php 23351 2010-11-16 18:09:45Z matthew $
+ * @version $Id: ZendMonitor.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Log_Writer_ZendMonitor extends Zend_Log_Writer_Abstract
{
/**
* Is Zend Monitor enabled?
- * @var bool
+ *
+ * @var boolean
*/
protected $_isEnabled = true;
/**
* Is this for a Zend Server intance?
- * @var bool
+ *
+ * @var boolean
*/
protected $_isZendServer = false;
/**
- * @throws Zend_Log_Exception if Zend Monitor extension not present
+ * @return void
*/
public function __construct()
{
@@ -62,8 +64,7 @@
* Create a new instance of Zend_Log_Writer_ZendMonitor
*
* @param array|Zend_Config $config
- * @return Zend_Log_Writer_Syslog
- * @throws Zend_Log_Exception
+ * @return Zend_Log_Writer_ZendMonitor
*/
static public function factory($config)
{
@@ -77,7 +78,7 @@
* fail silently. You can query this method to determine if the log
* writer is enabled.
*
- * @return bool
+ * @return boolean
*/
public function isEnabled()
{
@@ -87,7 +88,7 @@
/**
* Log a message to this writer.
*
- * @param array $event log data event
+ * @param array $event log data event
* @return void
*/
public function write($event)
@@ -102,7 +103,7 @@
/**
* Write a message to the log.
*
- * @param array $event log data event
+ * @param array $event log data event
* @return void
*/
protected function _write($event)
@@ -116,10 +117,10 @@
// On Zend Server; third argument should be the event
zend_monitor_custom_event($priority, $message, $event);
} else {
- // On Zend Platform; third argument is severity -- either
+ // On Zend Platform; third argument is severity -- either
// 0 or 1 -- and fourth is optional (event)
// Severity is either 0 (normal) or 1 (severe); classifying
- // notice, info, and debug as "normal", and all others as
+ // notice, info, and debug as "normal", and all others as
// "severe"
monitor_custom_event($priority, $message, ($priority > 4) ? 0 : 1, $event);
}
--- a/web/lib/Zend/Mail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mail.php 23251 2010-10-26 12:47:55Z matthew $
+ * @version $Id: Mail.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -46,7 +46,7 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail extends Zend_Mime_Message
@@ -1264,8 +1264,7 @@
return $email;
} else {
$encodedName = $this->_encodeHeader($name);
- if ($encodedName === $name &&
- ((strpos($name, '@') !== false) || (strpos($name, ',') !== false))) {
+ if ($encodedName === $name && strcspn($name, '()<>[]:;@\\,') != strlen($name)) {
$format = '"%s" <%s>';
} else {
$format = '%s <%s>';
--- a/web/lib/Zend/Mail/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Exception extends Zend_Exception
--- a/web/lib/Zend/Mail/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Message extends Zend_Mail_Part implements Zend_Mail_Message_Interface
@@ -73,7 +73,7 @@
if (!empty($params['flags'])) {
// set key and value to the same value for easy lookup
- $this->_flags = array_combine($params['flags'], $params['flags']);
+ $this->_flags = array_merge($this->_flags, array_combine($params['flags'],$params['flags']));
}
parent::__construct($params);
--- a/web/lib/Zend/Mail/Message/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Message/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Message_File extends Zend_Mail_Part_File implements Zend_Mail_Message_Interface
--- a/web/lib/Zend/Mail/Message/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Message/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Mail/Part.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Part.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Part.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Part.php 24759 2012-05-05 02:58:55Z adamlundrigan $
*/
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Part implements RecursiveIterator, Zend_Mail_Part_Interface
@@ -86,6 +86,12 @@
* @var int
*/
protected $_messageNum = 0;
+
+ /**
+ * Class to use when creating message parts
+ * @var string
+ */
+ protected $_partClass;
/**
* Public constructor
@@ -122,6 +128,10 @@
$this->_mail = $params['handler'];
$this->_messageNum = $params['id'];
}
+
+ if (isset($params['partclass'])) {
+ $this->setPartClass($params['partclass']);
+ }
if (isset($params['raw'])) {
Zend_Mime_Decode::splitMessage($params['raw'], $this->_headers, $this->_content);
@@ -140,6 +150,44 @@
}
}
}
+
+ /**
+ * Set name pf class used to encapsulate message parts
+ * @param string $class
+ * @return Zend_Mail_Part
+ */
+ public function setPartClass($class)
+ {
+ if ( !class_exists($class) ) {
+ /**
+ * @see Zend_Mail_Exception
+ */
+ require_once 'Zend/Mail/Exception.php';
+ throw new Zend_Mail_Exception("Class '{$class}' does not exist");
+ }
+ if ( !is_subclass_of($class, 'Zend_Mail_Part_Interface') ) {
+ /**
+ * @see Zend_Mail_Exception
+ */
+ require_once 'Zend/Mail/Exception.php';
+ throw new Zend_Mail_Exception("Class '{$class}' must implement Zend_Mail_Part_Interface");
+ }
+
+ $this->_partClass = $class;
+ return $this;
+ }
+
+ /**
+ * Retrieve the class name used to encapsulate message parts
+ * @return string
+ */
+ public function getPartClass()
+ {
+ if ( !$this->_partClass ) {
+ $this->_partClass = __CLASS__;
+ }
+ return $this->_partClass;
+ }
/**
* Check if part is a multipart message
@@ -223,9 +271,10 @@
if ($parts === null) {
return;
}
+ $partClass = $this->getPartClass();
$counter = 1;
foreach ($parts as $part) {
- $this->_parts[$counter++] = new self(array('headers' => $part['header'], 'content' => $part['body']));
+ $this->_parts[$counter++] = new $partClass(array('headers' => $part['header'], 'content' => $part['body']));
}
}
--- a/web/lib/Zend/Mail/Part/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Part/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Part_File extends Zend_Mail_Part
--- a/web/lib/Zend/Mail/Part/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Part/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Mail/Protocol/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22602 2010-07-16 22:37:31Z freak $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -42,9 +42,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22602 2010-07-16 22:37:31Z freak $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
* @todo Implement proxy settings
*/
abstract class Zend_Mail_Protocol_Abstract
@@ -161,8 +161,8 @@
}
/**
- * Set the maximum log size
- *
+ * Set the maximum log size
+ *
* @param integer $maximumLog Maximum log size
* @return void
*/
@@ -170,18 +170,18 @@
{
$this->_maximumLog = (int) $maximumLog;
}
-
-
+
+
/**
- * Get the maximum log size
- *
+ * Get the maximum log size
+ *
* @return int the maximum log size
*/
public function getMaximumLog()
{
return $this->_maximumLog;
}
-
+
/**
* Create a connection to the remote host
@@ -277,7 +277,7 @@
throw new Zend_Mail_Protocol_Exception($errorStr);
}
- if (($result = stream_set_timeout($this->_socket, self::TIMEOUT_CONNECTION)) === false) {
+ if (($result = $this->_setStreamTimeout(self::TIMEOUT_CONNECTION)) === false) {
/**
* @see Zend_Mail_Protocol_Exception
*/
@@ -357,7 +357,7 @@
// Adapters may wish to supply per-commend timeouts according to appropriate RFC
if ($timeout !== null) {
- stream_set_timeout($this->_socket, $timeout);
+ $this->_setStreamTimeout($timeout);
}
// Retrieve response
@@ -428,9 +428,20 @@
* @see Zend_Mail_Protocol_Exception
*/
require_once 'Zend/Mail/Protocol/Exception.php';
- throw new Zend_Mail_Protocol_Exception($errMsg);
+ throw new Zend_Mail_Protocol_Exception($errMsg, $cmd);
}
return $msg;
}
+
+ /**
+ * Set stream timeout
+ *
+ * @param integer $timeout
+ * @return boolean
+ */
+ protected function _setStreamTimeout($timeout)
+ {
+ return stream_set_timeout($this->_socket, $timeout);
+ }
}
--- a/web/lib/Zend/Mail/Protocol/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Exception extends Zend_Mail_Exception
--- a/web/lib/Zend/Mail/Protocol/Imap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Imap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Imap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Imap.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Imap
--- a/web/lib/Zend/Mail/Protocol/Pop3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Pop3.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pop3.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pop3.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Pop3
--- a/web/lib/Zend/Mail/Protocol/Smtp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Smtp.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Smtp.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Smtp.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Smtp extends Zend_Mail_Protocol_Abstract
@@ -327,7 +327,7 @@
/**
- * Issues the RSET command end validates answer
+ * Issues the RSET command and validates answer
*
* Can be used to restore a clean smtp communication state when a transaction has been cancelled or commencing a new transaction.
*
@@ -346,7 +346,7 @@
/**
- * Issues the NOOP command end validates answer
+ * Issues the NOOP command and validates answer
*
* Not used by Zend_Mail, could be used to keep a connection alive or check if it is still open.
*
@@ -360,7 +360,7 @@
/**
- * Issues the VRFY command end validates answer
+ * Issues the VRFY command and validates answer
*
* Not used by Zend_Mail.
*
--- a/web/lib/Zend/Mail/Protocol/Smtp/Auth/Crammd5.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Smtp/Auth/Crammd5.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Crammd5.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Crammd5.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Smtp_Auth_Crammd5 extends Zend_Mail_Protocol_Smtp
--- a/web/lib/Zend/Mail/Protocol/Smtp/Auth/Login.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Smtp/Auth/Login.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Login.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Login.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Smtp_Auth_Login extends Zend_Mail_Protocol_Smtp
--- a/web/lib/Zend/Mail/Protocol/Smtp/Auth/Plain.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Protocol/Smtp/Auth/Plain.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Plain.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Plain.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Protocol_Smtp_Auth_Plain extends Zend_Mail_Protocol_Smtp
--- a/web/lib/Zend/Mail/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Storage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Storage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Mail
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage
--- a/web/lib/Zend/Mail/Storage/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Mail_Storage_Abstract implements Countable, ArrayAccess, SeekableIterator
@@ -119,7 +119,7 @@
/**
* Get a message with headers and body
*
- * @param $id int number of message
+ * @param int $id number of message
* @return Zend_Mail_Message
*/
abstract public function getMessage($id);
--- a/web/lib/Zend/Mail/Storage/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Exception extends Zend_Mail_Exception
--- a/web/lib/Zend/Mail/Storage/Folder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Folder.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Folder.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Folder.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Folder implements RecursiveIterator
--- a/web/lib/Zend/Mail/Storage/Folder/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Folder/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Mail_Storage_Folder_Interface
--- a/web/lib/Zend/Mail/Storage/Folder/Maildir.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Folder/Maildir.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Maildir.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Folder_Maildir extends Zend_Mail_Storage_Maildir implements Zend_Mail_Storage_Folder_Interface
@@ -77,7 +77,7 @@
* - delim delim char for folder structur, default is '.'
* - folder intial selected folder, default is 'INBOX'
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
*/
public function __construct($params)
--- a/web/lib/Zend/Mail/Storage/Folder/Mbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Folder/Mbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mbox.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Folder_Mbox extends Zend_Mail_Storage_Mbox implements Zend_Mail_Storage_Folder_Interface
@@ -73,7 +73,7 @@
* - dirname rootdir of mbox structure
* - folder intial selected folder, default is 'INBOX'
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
*/
public function __construct($params)
--- a/web/lib/Zend/Mail/Storage/Imap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Imap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Imap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Imap.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -60,7 +60,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Imap extends Zend_Mail_Storage_Abstract
--- a/web/lib/Zend/Mail/Storage/Maildir.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Maildir.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Maildir.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Maildir extends Zend_Mail_Storage_Abstract
@@ -257,7 +257,7 @@
* Supported parameters are:
* - dirname dirname of mbox file
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
*/
public function __construct($params)
--- a/web/lib/Zend/Mail/Storage/Mbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Mbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mbox.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Mbox extends Zend_Mail_Storage_Abstract
@@ -216,7 +216,7 @@
* Supported parameters are:
* - filename filename of mbox file
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
*/
public function __construct($params)
--- a/web/lib/Zend/Mail/Storage/Pop3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Pop3.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pop3.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pop3.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Pop3 extends Zend_Mail_Storage_Abstract
@@ -154,7 +154,7 @@
* - port port for POP3 server [optional, default = 110]
* - ssl 'SSL' or 'TLS' for secure sockets
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
* @throws Zend_Mail_Protocol_Exception
*/
--- a/web/lib/Zend/Mail/Storage/Writable/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Writable/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Mail/Storage/Writable/Maildir.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Storage/Writable/Maildir.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Maildir.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Storage_Writable_Maildir extends Zend_Mail_Storage_Folder_Maildir
@@ -105,7 +105,7 @@
* Additional parameters are (see parent for more):
* - create if true a new maildir is create if none exists
*
- * @param $params array mail reader specific parameters
+ * @param array $params mail reader specific parameters
* @throws Zend_Mail_Storage_Exception
*/
public function __construct($params) {
--- a/web/lib/Zend/Mail/Transport/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Transport/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Mail_Transport_Abstract
--- a/web/lib/Zend/Mail/Transport/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Transport/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Transport_Exception extends Zend_Mail_Exception
--- a/web/lib/Zend/Mail/Transport/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Transport/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Transport_File extends Zend_Mail_Transport_Abstract
@@ -86,7 +86,7 @@
*/
public function setOptions(array $options)
{
- if (isset($options['path'])&& is_dir($options['path'])) {
+ if (isset($options['path']) && is_dir($options['path'])) {
$this->_path = $options['path'];
}
if (isset($options['callback']) && is_callable($options['callback'])) {
@@ -127,7 +127,7 @@
* @param Zend_Mail_Transport_File File transport instance
* @return string
*/
- public function defaultCallback($transport)
+ public function defaultCallback($transport)
{
return 'ZendMail_' . $_SERVER['REQUEST_TIME'] . '_' . mt_rand() . '.tmp';
}
--- a/web/lib/Zend/Mail/Transport/Sendmail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Transport/Sendmail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sendmail.php 21603 2010-03-22 12:47:11Z yoshida@zend.co.jp $
+ * @version $Id: Sendmail.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Transport_Sendmail extends Zend_Mail_Transport_Abstract
@@ -74,14 +74,14 @@
*/
public function __construct($parameters = null)
{
- if ($parameters instanceof Zend_Config) {
- $parameters = $parameters->toArray();
+ if ($parameters instanceof Zend_Config) {
+ $parameters = $parameters->toArray();
}
- if (is_array($parameters)) {
+ if (is_array($parameters)) {
$parameters = implode(' ', $parameters);
}
-
+
$this->parameters = $parameters;
}
@@ -109,7 +109,7 @@
if(!is_string($this->parameters)) {
/**
* @see Zend_Mail_Transport_Exception
- *
+ *
* Exception is thrown here because
* $parameters is a public property
*/
--- a/web/lib/Zend/Mail/Transport/Smtp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mail/Transport/Smtp.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Smtp.php 23424 2010-11-22 22:42:55Z bittarman $
+ * @version $Id: Smtp.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -45,7 +45,7 @@
* @category Zend
* @package Zend_Mail
* @subpackage Transport
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mail_Transport_Smtp extends Zend_Mail_Transport_Abstract
@@ -111,7 +111,7 @@
* @param string $host OPTIONAL (Default: 127.0.0.1)
* @param array|null $config OPTIONAL (Default: null)
* @return void
- *
+ *
* @todo Someone please make this compatible
* with the SendMail transport class.
*/
--- a/web/lib/Zend/Markup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Markup.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: Markup.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup
--- a/web/lib/Zend/Markup/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,10 +27,10 @@
/**
* Exception class for Zend_Markup
*
- * @category Zend
+ * @category Zend
* @uses Zend_Exception
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Exception extends Zend_Exception
--- a/web/lib/Zend/Markup/Parser/Bbcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Parser/Bbcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Bbcode.php 21127 2010-02-21 15:35:03Z kokx $
+ * @version $Id: Bbcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Parser_Bbcode implements Zend_Markup_Parser_ParserInterface
--- a/web/lib/Zend/Markup/Parser/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Parser/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,11 +28,11 @@
/**
* Exception class for Zend_Markup_Parser
*
- * @category Zend
+ * @category Zend
* @uses Zend_Markup_Exception
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Parser_Exception extends Zend_Markup_Exception
--- a/web/lib/Zend/Markup/Parser/ParserInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Parser/ParserInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ParserInterface.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: ParserInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Markup_Parser_ParserInterface
--- a/web/lib/Zend/Markup/Parser/Textile.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,570 +0,0 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Markup
- * @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Textile.php 20277 2010-01-14 14:17:12Z kokx $
- */
-
-/**
- * @see Zend_Markup_TokenList
- */
-require_once 'Zend/Markup/TokenList.php';
-
-/**
- * @see Zend_Markup_Parser_ParserInterface
- */
-require_once 'Zend/Markup/Parser/ParserInterface.php';
-
-/**
- * @category Zend
- * @package Zend_Markup
- * @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Markup_Parser_Textile implements Zend_Markup_Parser_ParserInterface
-{
-
- const STATE_SCAN = 0;
- const STATE_NEW_PARAGRAPH = 1;
- const STATE_NEWLINE = 2;
-
- const MATCH_ATTR_CLASSID = '\((?<attr_class>[a-zA-Z0-9_]+)?(?:\#(?<attr_id>[a-zA-Z0-9_]+))?\)';
- const MATCH_ATTR_STYLE = "\{(?<attr_style>[^\}\n]+)\}";
- const MATCH_ATTR_LANG = '\[(?<attr_lang>[a-zA-Z_]+)\]';
- const MATCH_ATTR_ALIGN = '(?<attr_align>\<\>?|\>|=)';
-
-
-
- /**
- * Token tree
- *
- * @var Zend_Markup_TokenList
- */
- protected $_tree;
-
- /**
- * Current token
- *
- * @var Zend_Markup_Token
- */
- protected $_current;
-
- /**
- * Source to tokenize
- *
- * @var string
- */
- protected $_value = '';
-
- /**
- * Length of the value
- *
- * @var int
- */
- protected $_valueLen = 0;
-
- /**
- * Current pointer
- *
- * @var int
- */
- protected $_pointer = 0;
-
- /**
- * The buffer
- *
- * @var string
- */
- protected $_buffer = '';
-
- /**
- * Simple tag translation
- *
- * @var array
- */
- protected $_simpleTags = array(
- '*' => 'strong',
- '**' => 'bold',
- '_' => 'emphasized',
- '__' => 'italic',
- '??' => 'citation',
- '-' => 'deleted',
- '+' => 'insert',
- '^' => 'superscript',
- '~' => 'subscript',
- '%' => 'span',
- // these are a little more complicated
- '@' => 'code',
- '!' => 'img',
- );
-
- /**
- * Token array
- *
- * @var array
- */
- protected $_tokens = array();
-
-
- /**
- * Prepare the parsing of a Textile string, the real parsing is done in {@link _parse()}
- *
- * @param string $value
- *
- * @return array
- */
- public function parse($value)
- {
- if (!is_string($value)) {
- /**
- * @see Zend_Markup_Parser_Exception
- */
- require_once 'Zend/Markup/Parser/Exception.php';
- throw new Zend_Markup_Parser_Exception('Value to parse should be a string.');
- }
- if (empty($value)) {
- /**
- * @see Zend_Markup_Parser_Exception
- */
- require_once 'Zend/Markup/Parser/Exception.php';
- throw new Zend_Markup_Parser_Exception('Value to parse cannot be left empty.');
- }
-
- // first make we only have LF newlines, also trim the value
- $this->_value = str_replace(array("\r\n", "\r"), "\n", $value);
- $this->_value = trim($this->_value);
-
- // initialize variables and tokenize
- $this->_valueLen = iconv_strlen($this->_value, 'UTF-8');
- $this->_pointer = 0;
- $this->_buffer = '';
- $this->_temp = array();
- $this->_tokens = array();
-
- $this->_tokenize();
-
- // create the tree
- $this->_tree = new Zend_Markup_TokenList();
-
- $this->_current = new Zend_Markup_Token('', Zend_Markup_Token::TYPE_NONE, 'Zend_Markup_Root');
- $this->_tree->addChild($this->_current);
-
- $this->_createTree();
-
- return $this->_tree;
- }
-
- /**
- * Tokenize a textile string
- *
- * @return array
- */
- protected function _tokenize()
- {
- $state = self::STATE_NEW_PARAGRAPH;
-
- $attrsMatch = implode('|', array(
- self::MATCH_ATTR_CLASSID,
- self::MATCH_ATTR_STYLE,
- self::MATCH_ATTR_LANG,
- self::MATCH_ATTR_ALIGN
- ));
-
- $paragraph = '';
-
- while ($this->_pointer < $this->_valueLen) {
- switch ($state) {
- case self::STATE_SCAN:
- $matches = array(); //[^\n*_?+~%@!-]
- $acronym = '(?<acronym>[A-Z]{2,})\((?<title>[^\)]+)\)';
- $regex = '#\G(?<text>.*?)(?:'
- . "(?:(?<nl_paragraph>\n{2,})|(?<nl_break>\n))|"
- . '(?<tag>'
- . "(?<name>\*{1,2}|_{1,2}|\?{2}|\-|\+|\~|\^|%|@|!|$|{$acronym}"
- . '|":(?<url>[^\s]+)|")'
- . "(?:{$attrsMatch})*)"
- . ')#si';
- preg_match($regex, $this->_value, $matches, null, $this->_pointer);
-
- $this->_pointer += strlen($matches[0]);
-
- if (!empty($matches['text'])) {
- $this->_buffer .= $matches['text'];
- }
-
- // first add the buffer
- if (!empty($this->_buffer)) {
- $this->_tokens[] = array(
- 'tag' => $this->_buffer,
- 'type' => Zend_Markup_Token::TYPE_NONE
- );
- $this->_buffer = '';
- }
-
- if (!empty($matches['nl_paragraph'])) {
- $this->_temp = array(
- 'tag' => $matches['nl_paragraph'],
- 'name' => 'p',
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'attributes' => array()
- );
-
- $state = self::STATE_NEW_PARAGRAPH;
- } elseif (!empty($matches['nl_break'])) {
- $this->_tokens[] = array(
- 'tag' => $matches['nl_break'],
- 'name' => 'break',
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'attributes' => array()
- );
-
- $state = self::STATE_NEWLINE;
- } elseif (!empty($matches['tag'])) {
- if (isset($this->_simpleTags[$matches['name']])) {
- // now add the new token
- $this->_tokens[] = array(
- 'tag' => $matches['tag'],
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'name' => $this->_simpleTags[$matches['name']],
- 'attributes' => $this->_extractAttributes($matches)
- );
- } else {
- $attributes = $this->_extractAttributes($matches);
- if ($matches['tag'][0] == '"') {
- $name = 'url';
- if (isset($matches['url'])) {
- $attributes['url'] = $matches['url'];
- }
- $this->_tokens[] = array(
- 'tag' => $matches['tag'],
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'name' => $name,
- 'attributes' => $attributes
- );
- } else {
- $name = 'acronym';
- $this->_tokens[] = array(
- 'tag' => '',
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'name' => 'acronym',
- 'attributes' => array(
- 'title' => $matches['title']
- )
- );
- $this->_tokens[] = array(
- 'tag' => $matches['acronym'],
- 'type' => Zend_Markup_Token::TYPE_NONE
- );
- $this->_tokens[] = array(
- 'tag' => '(' . $matches['title'] . ')',
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'name' => 'acronym',
- 'attributes' => array()
- );
- }
- }
- $state = self::STATE_SCAN;
- }
-
- break;
- case self::STATE_NEW_PARAGRAPH:
- if (empty($this->_temp)) {
- $this->_temp = array(
- 'tag' => '',
- 'name' => 'p',
- 'type' => Zend_Markup_token::TYPE_TAG,
- 'attributes' => array()
- );
- } else {
- $this->_tokens[] = array(
- 'tag' => "\n",
- 'name' => 'p',
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'attributes' => array()
- );
- $this->_temp['tag'] = substr($this->_temp['tag'], 1);
- }
-
- $matches = array(); //[^\n*_?+~%@!-] (\()? [^()]+ (?(1)\))
- $regex = "#\G(?<name>(h[1-6]|p)|(?:\#|\*))(?:{$attrsMatch})*(?(2)\.\s|\s)#i";
- if (!preg_match($regex, $this->_value, $matches, null, $this->_pointer)) {
- $this->_tokens[] = $this->_temp;
- $state = self::STATE_SCAN;
- break;
- }
-
- $this->_pointer += strlen($matches[0]);
-
- if ($matches['name'] == 'p') {
- $this->_temp['tag'] .= $matches[0];
- $this->_temp['attributes'] = $this->_extractAttributes($matches);
-
- $this->_tokens[] = $this->_temp;
- $this->_temp = array();
- } else {
- $this->_tokens[] = $this->_temp;
- $this->_temp = array();
-
- $name = $matches['name'];
- $attributes = $this->_extractAttributes($matches);
-
- if ($name == '#') {
- $name = 'list';
- $attributes['list'] = 'decimal';
- } elseif ($name == '*') {
- $name = 'list';
- }
-
- $this->_tokens[] = array(
- 'tag' => $matches[0],
- 'name' => $name,
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'attributes' => $attributes
- );
- }
-
- $state = self::STATE_SCAN;
- break;
- case self::STATE_NEWLINE:
- $matches = array(); //[^\n*_?+~%@!-]
- $regex = "#\G(?<name>(h[1-6])|(?:\#|\*))(?:{$attrsMatch})*(?(2)\.\s|\s)#si";
- if (!preg_match($regex, $this->_value, $matches, null, $this->_pointer)) {
- $state = self::STATE_SCAN;
- break;
- }
-
- $this->_pointer += strlen($matches[0]);
-
- $name = $matches['name'];
- $attributes = $this->_extractAttributes($matches);
-
- if ($name == '#') {
- $name = 'list';
- $attributes['list'] = 'decimal';
- } elseif ($name == '*') {
- $name = 'list';
- }
-
- $this->_tokens[] = array(
- 'tag' => $matches[0],
- 'name' => $name,
- 'type' => Zend_Markup_Token::TYPE_TAG,
- 'attributes' => $attributes
- );
- break;
- }
- }
- }
-
- /**
- * Create a tree from the tokenized text
- *
- * @return void
- */
- protected function _createTree()
- {
- $inside = true;
-
- foreach ($this->_tokens as $key => $token) {
- // first check if the token is a stopper
- if ($this->_isStopper($token, $this->_current)) {
- if ($this->_current->getName() == 'li') {
- // list items are handled differently
- if (isset($this->_tokens[$key + 1])
- && ($this->_tokens[$key + 1]['type'] == Zend_Markup_Token::TYPE_TAG)
- && ($this->_tokens[$key + 1]['name'] == 'list')
- ) {
- // the next item is a correct tag
- $this->_current->setStopper($token['tag']);
-
- $this->_current = $this->_current->getParent();
- } else {
- // close the list
- $this->_current->setStopper($token['tag']);
-
- $this->_current = $this->_current->getParent()->getParent();
-
- // go up in the tree until we found the end
- while ($this->_isStopper($token, $this->_current)) {
- $this->_current->setStopper($token['tag']);
-
- $this->_current = $this->_current->getParent();
- }
- }
- } else {
- // go up in the tree until we found the end of stoppers
- while ($this->_isStopper($token, $this->_current)) {
- $this->_current->setStopper($token['tag']);
-
- if (!empty($token['attributes'])) {
- foreach ($token['attributes'] as $name => $value) {
- $this->_current->addAttribute($name, $value);
- }
- }
-
- $this->_current = $this->_current->getParent();
- }
- }
- $inside = true;
- } elseif (($token['type'] == Zend_Markup_Token::TYPE_TAG) && $inside) {
- if ($token['name'] == 'break') {
- // add the newline and continue parsing
- $this->_current->addChild(new Zend_Markup_Token(
- $token['tag'],
- Zend_Markup_Token::TYPE_NONE,
- '',
- array(),
- $this->_current
- ));
- } else {
- // handle a list item
- if ($token['name'] == 'list') {
- $attributes = array();
- if (isset($token['attributes']['list'])) {
- $attributes['list'] = $token['attributes']['list'];
- unset($token['attributes']['list']);
- }
-
- if ($this->_current->getName() != 'list') {
- // the list isn't started yet, create it
- $child = new Zend_Markup_Token(
- '',
- Zend_Markup_Token::TYPE_TAG,
- 'list',
- $attributes,
- $this->_current
- );
-
- $this->_current->addChild($child);
-
- $this->_current = $child;
- }
- $token['name'] = 'li';
- } elseif (($token['name'] == 'img') || ($token['name'] == 'url')) {
- $inside = false;
- }
-
- // add the token
- $child = new Zend_Markup_Token(
- $token['tag'],
- Zend_Markup_Token::TYPE_TAG,
- $token['name'],
- $token['attributes'],
- $this->_current
- );
-
- $this->_current->addChild($child);
-
- $this->_current = $child;
- }
- } else {
- // simply add the token as text
- $this->_current->addChild(new Zend_Markup_Token(
- $token['tag'],
- Zend_Markup_Token::TYPE_NONE,
- '',
- array(),
- $this->_current
- ));
- }
- }
- }
-
- /**
- * Check if a tag is a stopper
- *
- * @param array $token
- * @param Zend_Markup_Token $current
- *
- * @return bool
- */
- protected function _isStopper(array $token, Zend_Markup_Token $current)
- {
- switch ($current->getName()) {
- case 'h1':
- case 'h2':
- case 'h3':
- case 'h4':
- case 'h5':
- case 'h6':
- case 'list':
- case 'li':
- if (($token['type'] == Zend_Markup_Token::TYPE_TAG)
- && (($token['name'] == 'break') || ($token['name'] == 'p'))
- ) {
- return true;
- }
- break;
- case 'break':
- return false;
- break;
- default:
- if (($token['type'] == Zend_Markup_Token::TYPE_TAG) && ($token['name'] == $current->getName())) {
- return true;
- }
- break;
- }
- return false;
- }
-
- /**
- * Extract the attributes
- *
- * @param array $matches
- *
- * @return array
- */
- protected function _extractAttributes(array $matches)
- {
- $attributes = array();
-
- if (!empty($matches['attr_class'])) {
- $attributes['class'] = $matches['attr_class'];
- }
- if (!empty($matches['attr_id'])) {
- $attributes['id'] = $matches['attr_id'];
- }
- if (!empty($matches['attr_style'])) {
- $attributes['style'] = $matches['attr_style'];
- }
- if (!empty($matches['attr_lang'])) {
- $attributes['lang'] = $matches['attr_lang'];
- }
- if (!empty($matches['attr_align'])) {
- switch ($matches['attr_align']) {
- case '=':
- $attributes['align'] = 'center';
- break;
- case '>':
- $attributes['align'] = 'right';
- break;
- case '<>':
- $attributes['align'] = 'justify';
- break;
- default:
- case '<':
- $attributes['align'] = 'left';
- break;
- }
- }
-
- return $attributes;
- }
-
-}
\ No newline at end of file
--- a/web/lib/Zend/Markup/Renderer/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @uses Zend_Markup_Exception
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Exception extends Zend_Markup_Exception
--- a/web/lib/Zend/Markup/Renderer/Html.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Html.php 22286 2010-05-25 14:26:45Z matthew $
+ * @version $Id: Html.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Html extends Zend_Markup_Renderer_RendererAbstract
--- a/web/lib/Zend/Markup/Renderer/Html/Code.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html/Code.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code.php 20270 2010-01-13 22:37:41Z kokx $
+ * @version $Id: Code.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Html_Code extends Zend_Markup_Renderer_Html_HtmlAbstract
--- a/web/lib/Zend/Markup/Renderer/Html/HtmlAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html/HtmlAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlAbstract.php 20271 2010-01-13 23:27:34Z kokx $
+ * @version $Id: HtmlAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Markup_Renderer_Html_HtmlAbstract implements Zend_Markup_Renderer_TokenConverterInterface
--- a/web/lib/Zend/Markup/Renderer/Html/Img.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html/Img.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Img.php 20663 2010-01-26 18:45:18Z kokx $
+ * @version $Id: Img.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Html_Img extends Zend_Markup_Renderer_Html_HtmlAbstract
--- a/web/lib/Zend/Markup/Renderer/Html/List.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html/List.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: List.php 20270 2010-01-13 22:37:41Z kokx $
+ * @version $Id: List.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Html_List extends Zend_Markup_Renderer_Html_HtmlAbstract
--- a/web/lib/Zend/Markup/Renderer/Html/Url.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/Html/Url.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Url.php 20663 2010-01-26 18:45:18Z kokx $
+ * @version $Id: Url.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer_Html
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Renderer_Html_Url extends Zend_Markup_Renderer_Html_HtmlAbstract
--- a/web/lib/Zend/Markup/Renderer/RendererAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/RendererAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RendererAbstract.php 22197 2010-05-19 13:32:25Z kokx $
+ * @version $Id: RendererAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Markup_Renderer_RendererAbstract
--- a/web/lib/Zend/Markup/Renderer/TokenConverterInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Renderer/TokenConverterInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TokenConverterInterface.php 20271 2010-01-13 23:27:34Z kokx $
+ * @version $Id: TokenConverterInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Markup
* @subpackage Renderer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Markup_Renderer_TokenConverterInterface
--- a/web/lib/Zend/Markup/Token.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/Token.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Markup
* @subpackage Parser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Token.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: Token.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_Token
@@ -260,7 +260,7 @@
return $this->_children;
}
- /**
+ /**
* Does this token have any children
*
* @return bool
--- a/web/lib/Zend/Markup/TokenList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Markup/TokenList.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TokenList.php 20277 2010-01-14 14:17:12Z kokx $
+ * @version $Id: TokenList.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Markup
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Markup_TokenList implements RecursiveIterator
--- a/web/lib/Zend/Measure/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 21329 2010-03-04 22:06:08Z thomas $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Abstract
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Measure_Abstract
@@ -74,9 +74,9 @@
/**
* Zend_Measure_Abstract is an abstract class for the different measurement types
*
- * @param $value mixed - Value as string, integer, real or float
- * @param $type type - OPTIONAL a measure type f.e. Zend_Measure_Length::METER
- * @param $locale locale - OPTIONAL a Zend_Locale Type
+ * @param mixed $value Value as string, integer, real or float
+ * @param int $type OPTIONAL a measure type f.e. Zend_Measure_Length::METER
+ * @param Zend_Locale $locale OPTIONAL a Zend_Locale Type
* @throws Zend_Measure_Exception
*/
public function __construct($value, $type = null, $locale = null)
--- a/web/lib/Zend/Measure/Acceleration.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Acceleration.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Acceleration.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Acceleration.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Acceleration
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Acceleration extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Angle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Angle.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Angle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Angle.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Angle
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Angle extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Area.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Area.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Area.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Area.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Area
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Area extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Binary.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Binary.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Binary.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Binary.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Binary
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Binary extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Capacitance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Capacitance.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Capacitance.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Capacitance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Capacitance
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Capacitance extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Cooking/Volume.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Cooking/Volume.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Volume.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Volume.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Cooking_Volume
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Cooking_Volume extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Cooking/Weight.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Cooking/Weight.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Weight.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Weight.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Cooking_Weight
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Cooking_Weight extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Current.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Current.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Current.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Current.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Current
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Current extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Density.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Density.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Density.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Density.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Density
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Density extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Energy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Energy.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Energy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Energy.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Energy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Energy extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Exception extends Zend_Exception
--- a/web/lib/Zend/Measure/Flow/Mass.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Flow/Mass.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mass.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mass.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Flow_Mass
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Flow_Mass extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Flow/Mole.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Flow/Mole.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mole.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mole.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Flow_Mole
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Flow_Mole extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Flow/Volume.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Flow/Volume.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Volume.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Volume.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Flow_Volume
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Flow_Volume extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Force.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Force.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Force.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Force.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Force
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Force extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Frequency.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Frequency.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Frequency.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Frequency.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Frequency
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Frequency extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Illumination.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Illumination.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Illumination.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Illumination.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Illumination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Illumination extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Length.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Length.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Length.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Length.php 25199 2013-01-09 11:56:38Z frosch $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Length
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Length extends Zend_Measure_Abstract
@@ -361,7 +361,7 @@
'ALEN_DANISH' => array('0.6277', 'alen'),
'ALEN' => array('0.6', 'alen'),
'ALEN_SWEDISH' => array('0.5938', 'alen'),
- 'ANGSTROM' => array('1.0e-10', 'Å'),
+ 'ANGSTROM' => array('1.0e-10', 'Å'),
'ARMS' => array('0.7', 'arms'),
'ARPENT_CANADIAN' => array('58.47', 'arpent'),
'ARPENT' => array('58.471308', 'arpent'),
@@ -373,11 +373,11 @@
'BAMBOO' => array('3.2', 'bamboo'),
'BARLEYCORN' => array('0.0085', 'barleycorn'),
'BEE_SPACE' => array('0.0065', 'bee space'),
- 'BICRON' => array('1.0e-12', '��'),
+ 'BICRON' => array('1.0e-12', 'µµ'),
'BLOCK_US_EAST' => array('80.4672', 'block'),
'BLOCK_US_WEST' => array('100.584', 'block'),
'BLOCK_US_SOUTH' => array('160.9344', 'block'),
- 'BOHR' => array('52.918e-12', 'a�'),
+ 'BOHR' => array('52.918e-12', 'a₀'),
'BRACCIO' => array('0.7', 'braccio'),
'BRAZA_ARGENTINA' => array('1.733', 'braza'),
'BRAZA' => array('1.67', 'braza'),
@@ -415,8 +415,8 @@
'DIGIT' => array('0.019', 'digit'),
'DIRAA' => array('0.58', ''),
'DONG' => array(array('' => '7','/' => '300'), 'dong'),
- 'DOUZIEME_WATCH' => array('0.000188', 'douzi�me'),
- 'DOUZIEME' => array('0.00017638888889', 'douzi�me'),
+ 'DOUZIEME_WATCH' => array('0.000188', 'douzième'),
+ 'DOUZIEME' => array('0.00017638888889', 'douzième'),
'DRA_IRAQ' => array('0.745', 'dra'),
'DRA' => array('0.7112', 'dra'),
'EL' => array('0.69', 'el'),
@@ -533,10 +533,10 @@
'METRE' => array('1', 'm'),
'METRIC_MILE' => array('1500', 'metric mile'),
'METRIC_MILE_US' => array('1600', 'metric mile'),
- 'MICROINCH' => array('2.54e-08', '�in'),
- 'MICROMETER' => array('0.000001', '�m'),
- 'MICROMICRON' => array('1.0e-12', '��'),
- 'MICRON' => array('0.000001', '�'),
+ 'MICROINCH' => array('2.54e-08', 'µin'),
+ 'MICROMETER' => array('0.000001', 'µm'),
+ 'MICROMICRON' => array('1.0e-12', 'µµ'),
+ 'MICRON' => array('0.000001', 'µm'),
'MIGLIO' => array('1488.6', 'miglio'),
'MIIL' => array('7500', 'miil'),
'MIIL_DENMARK' => array('7532.5', 'miil'),
@@ -560,7 +560,7 @@
'MILLE' => array('1949', 'mille'),
'MILLIARE' => array('0.001478', 'milliare'),
'MILLIMETER' => array('0.001', 'mm'),
- 'MILLIMICRON' => array('1.0e-9', 'm�'),
+ 'MILLIMICRON' => array('1.0e-9', 'mµ'),
'MKONO' => array('0.4572', 'mkono'),
'MOOT' => array('0.0762', 'moot'),
'MYRIAMETER' => array('10000', 'mym'),
@@ -578,7 +578,7 @@
'PARASANG' => array('6000', 'parasang'),
'PARIS_FOOT' => array('0.3248406', 'paris foot'),
'PARSEC' => array('3.0856776e+16', 'pc'),
- 'PE' => array('0.33324', 'p�'),
+ 'PE' => array('0.33324', 'pé'),
'PEARL' => array('0.001757299', 'pearl'),
'PERCH' => array('5.0292', 'perch'),
'PERCH_IRELAND' => array('6.4008', 'perch'),
--- a/web/lib/Zend/Measure/Lightness.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Lightness.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Lightness.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Lightness.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Lightness
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Lightness extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Number.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Number.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Number.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Number.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Number
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Number extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Power.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Power.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Power.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Power.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Power
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Power extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Pressure.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Pressure.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pressure.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pressure.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Pressure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Pressure extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Speed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Speed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Speed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Speed.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Speed
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Speed extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Temperature.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Temperature.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Temperature.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Temperature.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Temperature
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Temperature extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Time.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Time.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Time.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Time.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Time
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Time extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Torque.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Torque.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Torque.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Torque.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Torque
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Torque extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Viscosity/Dynamic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Viscosity/Dynamic.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dynamic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dynamic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Viscosity_Dynamic
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Viscosity_Dynamic extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Viscosity/Kinematic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Viscosity/Kinematic.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Kinematic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Kinematic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Viscosity_Kinematic
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Viscosity_Kinematic extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Volume.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Volume.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Volume.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Volume.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Volume
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Volume extends Zend_Measure_Abstract
--- a/web/lib/Zend/Measure/Weight.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Measure/Weight.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Measure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Weight.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Weight.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Measure
* @subpackage Zend_Measure_Weigth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Measure_Weight extends Zend_Measure_Abstract
--- a/web/lib/Zend/Memory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Memory.php 20804 2010-02-01 15:49:16Z alexander $
+ * @version $Id: Memory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Memory_Exception */
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory
@@ -56,7 +56,7 @@
// Look through available backendsand
// (that allows to specify it in any case)
$backendIsFound = false;
- foreach (Zend_Cache::$availableBackends as $zendCacheBackend) {
+ foreach (Zend_Cache::$standardBackends as $zendCacheBackend) {
if (strcasecmp($backend, $zendCacheBackend) == 0) {
$backend = $zendCacheBackend;
$backendIsFound = true;
--- a/web/lib/Zend/Memory/AccessController.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/AccessController.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccessController.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AccessController.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory_AccessController implements Zend_Memory_Container_Interface
--- a/web/lib/Zend/Memory/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Container.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Memory_Container_Interface */
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Memory_Container implements Zend_Memory_Container_Interface
--- a/web/lib/Zend/Memory/Container/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Container/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Memory_Container_Interface
--- a/web/lib/Zend/Memory/Container/Locked.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Container/Locked.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Locked.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Locked.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Memory_Container */
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory_Container_Locked extends Zend_Memory_Container
--- a/web/lib/Zend/Memory/Container/Movable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Container/Movable.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Movable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Movable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Memory_Container */
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory_Container_Movable extends Zend_Memory_Container {
--- a/web/lib/Zend/Memory/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory_Exception extends Zend_Exception
--- a/web/lib/Zend/Memory/Manager.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Manager.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manager.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Manager.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Memory_Container_Movable */
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Memory_Manager
--- a/web/lib/Zend/Memory/Value.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Memory/Value.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Value.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Value.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Memory
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @todo also implement Countable for PHP 5.1 but not yet to stay 5.0 compatible
*/
--- a/web/lib/Zend/Mime.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mime.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mime.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mime.php 24953 2012-06-13 19:09:58Z rob $
*/
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mime
@@ -130,7 +130,7 @@
$str = self::_encodeQuotedPrintable($str);
// Split encoded text into separate lines
- while ($str) {
+ while(strlen($str) > 0) {
$ptr = strlen($str);
if ($ptr > $lineLength) {
$ptr = $lineLength;
@@ -194,7 +194,7 @@
$str = self::_encodeQuotedPrintable($str);
// Mail-Header required chars have to be encoded also:
- $str = str_replace(array('?', ' ', '_'), array('=3F', '=20', '=5F'), $str);
+ $str = str_replace(array('?', ' ', '_', ','), array('=3F', '=20', '=5F', '=2C'), $str);
// initialize first line, we need it anyways
$lines = array(0 => "");
--- a/web/lib/Zend/Mime/Decode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mime/Decode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decode.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Decode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mime_Decode
@@ -239,6 +239,6 @@
*/
public static function decodeQuotedPrintable($string)
{
- return iconv_mime_decode($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
+ return quoted_printable_decode($string);
}
}
--- a/web/lib/Zend/Mime/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mime/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mime_Exception extends Zend_Exception
--- a/web/lib/Zend/Mime/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mime/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mime_Message
--- a/web/lib/Zend/Mime/Part.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Mime/Part.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Part.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Part.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Mime
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Mime_Part {
@@ -146,6 +146,19 @@
return Zend_Mime::encode($this->_content, $this->encoding, $EOL);
}
}
+
+ /**
+ * Get the RAW unencoded content from this part
+ * @return string
+ */
+ public function getRawContent()
+ {
+ if ($this->_isStream) {
+ return stream_get_contents($this->_content);
+ } else {
+ return $this->_content;
+ }
+ }
/**
* Create and return the array of headers for this MIME part
--- a/web/lib/Zend/Navigation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Navigation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Navigation.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Navigation extends Zend_Navigation_Container
--- a/web/lib/Zend/Navigation/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Container.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Container.php 25237 2013-01-22 08:32:38Z frosch $
*/
/**
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Navigation_Container implements RecursiveIterator, Countable
@@ -143,9 +143,12 @@
/**
* Adds several pages at once
*
- * @param array|Zend_Config $pages pages to add
- * @return Zend_Navigation_Container fluent interface, returns self
- * @throws Zend_Navigation_Exception if $pages is not array or Zend_Config
+ * @param array|Zend_Config|Zend_Navigation_Container $pages pages to add
+ * @return Zend_Navigation_Container fluent interface,
+ * returns self
+ * @throws Zend_Navigation_Exception if $pages is not
+ * array, Zend_Config or
+ * Zend_Navigation_Container
*/
public function addPages($pages)
{
@@ -153,11 +156,16 @@
$pages = $pages->toArray();
}
+ if ($pages instanceof Zend_Navigation_Container) {
+ $pages = iterator_to_array($pages);
+ }
+
if (!is_array($pages)) {
require_once 'Zend/Navigation/Exception.php';
throw new Zend_Navigation_Exception(
- 'Invalid argument: $pages must be an array or an ' .
- 'instance of Zend_Config');
+ 'Invalid argument: $pages must be an array, an ' .
+ 'instance of Zend_Config or an instance of ' .
+ 'Zend_Navigation_Container');
}
foreach ($pages as $page) {
@@ -266,45 +274,138 @@
}
/**
- * Returns a child page matching $property == $value, or null if not found
+ * Returns a child page matching $property == $value or
+ * preg_match($value, $property), or null if not found
*
- * @param string $property name of property to match against
- * @param mixed $value value to match property against
+ * @param string $property name of property to match against
+ * @param mixed $value value to match property against
+ * @param bool $useRegex [optional] if true PHP's preg_match
+ * is used. Default is false.
* @return Zend_Navigation_Page|null matching page or null
*/
- public function findOneBy($property, $value)
- {
- $iterator = new RecursiveIteratorIterator($this,
- RecursiveIteratorIterator::SELF_FIRST);
+ public function findOneBy($property, $value, $useRegex = false)
+ {
+ $iterator = new RecursiveIteratorIterator(
+ $this,
+ RecursiveIteratorIterator::SELF_FIRST
+ );
foreach ($iterator as $page) {
- if ($page->get($property) == $value) {
- return $page;
+ $pageProperty = $page->get($property);
+
+ // Rel and rev
+ if (is_array($pageProperty)) {
+ foreach ($pageProperty as $item) {
+ if (is_array($item)) {
+ // Use regex?
+ if (true === $useRegex) {
+ foreach ($item as $item2) {
+ if (0 !== preg_match($value, $item2)) {
+ return $page;
+ }
+ }
+ } else {
+ if (in_array($value, $item)) {
+ return $page;
+ }
+ }
+ } else {
+ // Use regex?
+ if (true === $useRegex) {
+ if (0 !== preg_match($value, $item)) {
+ return $page;
+ }
+ } else {
+ if ($item == $value) {
+ return $page;
+ }
+ }
+ }
+ }
+
+ continue;
+ }
+
+ // Use regex?
+ if (true === $useRegex) {
+ if (preg_match($value, $pageProperty)) {
+ return $page;
+ }
+ } else {
+ if ($pageProperty == $value) {
+ return $page;
+ }
}
}
-
+
return null;
}
/**
- * Returns all child pages matching $property == $value, or an empty array
- * if no pages are found
+ * Returns all child pages matching $property == $value or
+ * preg_match($value, $property), or an empty array if no pages are found
*
* @param string $property name of property to match against
* @param mixed $value value to match property against
+ * @param bool $useRegex [optional] if true PHP's preg_match is used.
+ * Default is false.
* @return array array containing only Zend_Navigation_Page
* instances
*/
- public function findAllBy($property, $value)
- {
+ public function findAllBy($property, $value, $useRegex = false)
+ {
$found = array();
- $iterator = new RecursiveIteratorIterator($this,
- RecursiveIteratorIterator::SELF_FIRST);
-
+ $iterator = new RecursiveIteratorIterator(
+ $this,
+ RecursiveIteratorIterator::SELF_FIRST
+ );
+
foreach ($iterator as $page) {
- if ($page->get($property) == $value) {
- $found[] = $page;
+ $pageProperty = $page->get($property);
+
+ // Rel and rev
+ if (is_array($pageProperty)) {
+ foreach ($pageProperty as $item) {
+ if (is_array($item)) {
+ // Use regex?
+ if (true === $useRegex) {
+ foreach ($item as $item2) {
+ if (0 !== preg_match($value, $item2)) {
+ $found[] = $page;
+ }
+ }
+ } else {
+ if (in_array($value, $item)) {
+ $found[] = $page;
+ }
+ }
+ } else {
+ // Use regex?
+ if (true === $useRegex) {
+ if (0 !== preg_match($value, $item)) {
+ $found[] = $page;
+ }
+ } else {
+ if ($item == $value) {
+ $found[] = $page;
+ }
+ }
+ }
+ }
+
+ continue;
+ }
+
+ // Use regex?
+ if (true === $useRegex) {
+ if (0 !== preg_match($value, $pageProperty)) {
+ $found[] = $page;
+ }
+ } else {
+ if ($pageProperty == $value) {
+ $found[] = $page;
+ }
}
}
@@ -312,7 +413,8 @@
}
/**
- * Returns page(s) matching $property == $value
+ * Returns page(s) matching $property == $value or
+ * preg_match($value, $property)
*
* @param string $property name of property to match against
* @param mixed $value value to match property against
@@ -322,14 +424,16 @@
* matching pages are found. If false, null will
* be returned if no matching page is found.
* Default is false.
+ * @param bool $useRegex [optional] if true PHP's preg_match is used.
+ * Default is false.
* @return Zend_Navigation_Page|null matching page or null
*/
- public function findBy($property, $value, $all = false)
+ public function findBy($property, $value, $all = false, $useRegex = false)
{
if ($all) {
- return $this->findAllBy($property, $value);
+ return $this->findAllBy($property, $value, $useRegex);
} else {
- return $this->findOneBy($property, $value);
+ return $this->findOneBy($property, $value, $useRegex);
}
}
@@ -338,27 +442,33 @@
*
* Examples of finder calls:
* <code>
- * // METHOD // SAME AS
- * $nav->findByLabel('foo'); // $nav->findOneBy('label', 'foo');
- * $nav->findOneByLabel('foo'); // $nav->findOneBy('label', 'foo');
- * $nav->findAllByClass('foo'); // $nav->findAllBy('class', 'foo');
+ * // METHOD // SAME AS
+ * $nav->findByLabel('foo'); // $nav->findOneBy('label', 'foo');
+ * $nav->findByLabel('/foo/', true); // $nav->findBy('label', '/foo/', true);
+ * $nav->findOneByLabel('foo'); // $nav->findOneBy('label', 'foo');
+ * $nav->findAllByClass('foo'); // $nav->findAllBy('class', 'foo');
* </code>
*
- * @param string $method method name
- * @param array $arguments method arguments
- * @throws Zend_Navigation_Exception if method does not exist
+ * @param string $method method name
+ * @param array $arguments method arguments
+ * @return mixed Zend_Navigation|array|null matching page, array of pages
+ * or null
+ * @throws Zend_Navigation_Exception if method does not exist
*/
public function __call($method, $arguments)
{
if (@preg_match('/(find(?:One|All)?By)(.+)/', $method, $match)) {
- return $this->{$match[1]}($match[2], $arguments[0]);
+ return $this->{$match[1]}($match[2], $arguments[0], !empty($arguments[1]));
}
require_once 'Zend/Navigation/Exception.php';
- throw new Zend_Navigation_Exception(sprintf(
+ throw new Zend_Navigation_Exception(
+ sprintf(
'Bad method call: Unknown method %s::%s',
get_class($this),
- $method));
+ $method
+ )
+ );
}
/**
@@ -369,7 +479,7 @@
public function toArray()
{
$pages = array();
-
+
$this->_dirtyIndex = true;
$this->_sort();
$indexes = array_keys($this->_index);
--- a/web/lib/Zend/Navigation/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Navigation_Exception extends Zend_Exception
--- a/web/lib/Zend/Navigation/Page.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation/Page.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Page.php 22882 2010-08-22 14:00:16Z freak $
+ * @version $Id: Page.php 25125 2012-11-16 15:12:06Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Navigation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Navigation_Page extends Zend_Navigation_Container
@@ -42,6 +42,20 @@
protected $_label;
/**
+ * Fragment identifier (anchor identifier)
+ *
+ * The fragment identifier (anchor identifier) pointing to an anchor within
+ * a resource that is subordinate to another, primary resource.
+ * The fragment identifier introduced by a hash mark "#".
+ * Example: http://www.example.org/foo.html#bar ("bar" is the fragment identifier)
+ *
+ * @link http://www.w3.org/TR/html401/intro/intro.html#fragment-uri
+ *
+ * @var string|null
+ */
+ protected $_fragment;
+
+ /**
* Page id
*
* @var string|null
@@ -70,6 +84,18 @@
protected $_target;
/**
+ * Accessibility key character
+ *
+ * This attribute assigns an access key to an element. An access key is a
+ * single character from the document character set.
+ *
+ * @link http://www.w3.org/TR/html401/interact/forms.html#access-keys
+ *
+ * @var string|null
+ */
+ protected $_accesskey;
+
+ /**
* Forward links to other pages
*
* @link http://www.w3.org/TR/html4/struct/links.html#h-12.3.1
@@ -137,12 +163,19 @@
protected $_properties = array();
/**
+ * Custom HTML attributes
+ *
+ * @var array
+ */
+ protected $_customHtmlAttribs = array();
+
+ /**
* The type of page to use when it wasn't set
- *
+ *
* @var string
*/
protected static $_defaultPageType;
-
+
// Initialization:
/**
@@ -191,7 +224,7 @@
} elseif(self::getDefaultPageType()!= null) {
$type = self::getDefaultPageType();
}
-
+
if(isset($type)) {
if (is_string($type) && !empty($type)) {
switch (strtolower($type)) {
@@ -222,7 +255,8 @@
$hasUri = isset($options['uri']);
$hasMvc = isset($options['action']) || isset($options['controller']) ||
- isset($options['module']) || isset($options['route']);
+ isset($options['module']) || isset($options['route']) ||
+ isset($options['params']);
if ($hasMvc) {
require_once 'Zend/Navigation/Page/Mvc.php';
@@ -232,9 +266,14 @@
return new Zend_Navigation_Page_Uri($options);
} else {
require_once 'Zend/Navigation/Exception.php';
- throw new Zend_Navigation_Exception(
- 'Invalid argument: Unable to determine class to instantiate');
+
+ $message = 'Invalid argument: Unable to determine class to instantiate';
+ if (isset($options['label'])) {
+ $message .= ' (Page label: ' . $options['label'] . ')';
}
+
+ throw new Zend_Navigation_Exception($message);
+ }
}
/**
@@ -330,6 +369,35 @@
}
/**
+ * Sets a fragment identifier
+ *
+ * @param string $fragment new fragment identifier
+ * @return Zend_Navigation_Page fluent interface, returns self
+ * @throws Zend_Navigation_Exception if empty/no string is given
+ */
+ public function setFragment($fragment)
+ {
+ if (null !== $fragment && !is_string($fragment)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $fragment must be a string or null');
+ }
+
+ $this->_fragment = $fragment;
+ return $this;
+ }
+
+ /**
+ * Returns fragment identifier
+ *
+ * @return string|null fragment identifier
+ */
+ public function getFragment()
+ {
+ return $this->_fragment;
+ }
+
+ /**
* Sets page id
*
* @param string|null $id [optional] id to set. Default is null,
@@ -451,6 +519,40 @@
}
/**
+ * Sets access key for this page
+ *
+ * @param string|null $character [optional] access key to set. Default
+ * is null, which sets no access key.
+ * @return Zend_Navigation_Page fluent interface, returns self
+ * @throws Zend_Navigation_Exception if access key is not string or null or
+ * if the string length not equal to one
+ */
+ public function setAccesskey($character = null)
+ {
+ if (null !== $character
+ && (!is_string($character) || 1 != strlen($character)))
+ {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $character must be a single character or null'
+ );
+ }
+
+ $this->_accesskey = $character;
+ return $this;
+ }
+
+ /**
+ * Returns page access key
+ *
+ * @return string|null page access key or null
+ */
+ public function getAccesskey()
+ {
+ return $this->_accesskey;
+ }
+
+ /**
* Sets the page's forward links to other pages
*
* This method expects an associative array of forward links to other pages,
@@ -577,6 +679,119 @@
}
/**
+ * Sets a single custom HTML attribute
+ *
+ * @param string $name name of the HTML attribute
+ * @param string|null $value value for the HTML attribute
+ * @return Zend_Navigation_Page fluent interface, returns self
+ * @throws Zend_Navigation_Exception if name is not string or value is
+ * not null or a string
+ */
+ public function setCustomHtmlAttrib($name, $value)
+ {
+ if (!is_string($name)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $name must be a string'
+ );
+ }
+
+ if (null !== $value && !is_string($value)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $value must be a string or null'
+ );
+ }
+
+ if (null === $value && isset($this->_customHtmlAttribs[$name])) {
+ unset($this->_customHtmlAttribs[$name]);
+ } else {
+ $this->_customHtmlAttribs[$name] = $value;
+ }
+
+ return $this;
+ }
+
+ /**
+ * Returns a single custom HTML attributes by name
+ *
+ * @param string $name name of the HTML attribute
+ * @return string|null value for the HTML attribute or null
+ * @throws Zend_Navigation_Exception if name is not string
+ */
+ public function getCustomHtmlAttrib($name)
+ {
+ if (!is_string($name)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $name must be a string'
+ );
+ }
+
+ if (isset($this->_customHtmlAttribs[$name])) {
+ return $this->_customHtmlAttribs[$name];
+ }
+
+ return null;
+ }
+
+ /**
+ * Sets multiple custom HTML attributes at once
+ *
+ * @param array $attribs an associative array of html attributes
+ * @return Zend_Navigation_Page fluent interface, returns self
+ */
+ public function setCustomHtmlAttribs(array $attribs)
+ {
+ foreach ($attribs as $key => $value) {
+ $this->setCustomHtmlAttrib($key, $value);
+ }
+ return $this;
+ }
+
+ /**
+ * Returns all custom HTML attributes as an array
+ *
+ * @return array an array containing custom HTML attributes
+ */
+ public function getCustomHtmlAttribs()
+ {
+ return $this->_customHtmlAttribs;
+ }
+
+ /**
+ * Removes a custom HTML attribute from the page
+ *
+ * @param string $name name of the custom HTML attribute
+ * @return Zend_Navigation_Page fluent interface, returns self
+ */
+ public function removeCustomHtmlAttrib($name)
+ {
+ if (!is_string($name)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $name must be a string'
+ );
+ }
+
+ if (isset($this->_customHtmlAttribs[$name])) {
+ unset($this->_customHtmlAttribs[$name]);
+ }
+ }
+
+ /**
+ * Clear all custom HTML attributes
+ *
+ * @return Zend_Navigation_Page fluent interface, returns self
+ */
+ public function clearCustomHtmlAttribs()
+ {
+ $this->_customHtmlAttribs = array();
+
+ return $this;
+ }
+
+ /**
* Sets page order to use in parent container
*
* @param int $order [optional] page order in container.
@@ -740,6 +955,9 @@
*/
public function setVisible($visible = true)
{
+ if (is_string($visible) && 'false' == strtolower($visible)) {
+ $visible = false;
+ }
$this->_visible = (bool) $visible;
return $this;
}
@@ -1090,21 +1308,25 @@
return array_merge(
$this->getCustomProperties(),
array(
- 'label' => $this->getlabel(),
- 'id' => $this->getId(),
- 'class' => $this->getClass(),
- 'title' => $this->getTitle(),
- 'target' => $this->getTarget(),
- 'rel' => $this->getRel(),
- 'rev' => $this->getRev(),
- 'order' => $this->getOrder(),
- 'resource' => $this->getResource(),
- 'privilege' => $this->getPrivilege(),
- 'active' => $this->isActive(),
- 'visible' => $this->isVisible(),
- 'type' => get_class($this),
- 'pages' => parent::toArray()
- ));
+ 'label' => $this->getlabel(),
+ 'fragment' => $this->getFragment(),
+ 'id' => $this->getId(),
+ 'class' => $this->getClass(),
+ 'title' => $this->getTitle(),
+ 'target' => $this->getTarget(),
+ 'accesskey' => $this->getAccesskey(),
+ 'rel' => $this->getRel(),
+ 'rev' => $this->getRev(),
+ 'customHtmlAttribs' => $this->getCustomHtmlAttribs(),
+ 'order' => $this->getOrder(),
+ 'resource' => $this->getResource(),
+ 'privilege' => $this->getPrivilege(),
+ 'active' => $this->isActive(),
+ 'visible' => $this->isVisible(),
+ 'type' => get_class($this),
+ 'pages' => parent::toArray()
+ )
+ );
}
// Internal methods:
@@ -1119,17 +1341,17 @@
{
return str_replace(' ', '', ucwords(str_replace('_', ' ', $property)));
}
-
+
public static function setDefaultPageType($type = null) {
if($type !== null && !is_string($type)) {
throw new Zend_Navigation_Exception(
'Cannot set default page type: type is no string but should be'
);
}
-
+
self::$_defaultPageType = $type;
}
-
+
public static function getDefaultPageType() {
return self::$_defaultPageType;
}
--- a/web/lib/Zend/Navigation/Page/Mvc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation/Page/Mvc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Navigation
* @subpackage Page
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Mvc.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Mvc.php 25213 2013-01-11 08:19:09Z frosch $
*/
/**
@@ -44,7 +44,7 @@
* @category Zend
* @package Zend_Navigation
* @subpackage Page
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Navigation_Page_Mvc extends Zend_Navigation_Page
@@ -95,6 +95,29 @@
protected $_resetParams = true;
/**
+ * Whether href should be encoded when assembling URL
+ *
+ * @see getHref()
+ * @var bool
+ */
+ protected $_encodeUrl = true;
+
+ /**
+ * Whether this page should be considered active
+ *
+ * @var bool
+ */
+ protected $_active = null;
+
+ /**
+ * Scheme to use when assembling URL
+ *
+ * @see getHref()
+ * @var string
+ */
+ protected $_scheme;
+
+ /**
* Cached href
*
* The use of this variable minimizes execution time when getHref() is
@@ -113,6 +136,14 @@
*/
protected static $_urlHelper = null;
+ /**
+ * View helper for assembling URLs with schemes
+ *
+ * @see getHref()
+ * @var Zend_View_Helper_ServerUrl
+ */
+ protected static $_schemeHelper = null;
+
// Accessors:
/**
@@ -128,39 +159,57 @@
*/
public function isActive($recursive = false)
{
- if (!$this->_active) {
- $front = Zend_Controller_Front::getInstance();
- $reqParams = $front->getRequest()->getParams();
-
- if (!array_key_exists('module', $reqParams)) {
- $reqParams['module'] = $front->getDefaultModule();
+ if (null === $this->_active) {
+ $front = Zend_Controller_Front::getInstance();
+ $request = $front->getRequest();
+ $reqParams = array();
+ if ($request) {
+ $reqParams = $request->getParams();
+ if (!array_key_exists('module', $reqParams)) {
+ $reqParams['module'] = $front->getDefaultModule();
+ }
}
$myParams = $this->_params;
+ if ($this->_route) {
+ $route = $front->getRouter()->getRoute($this->_route);
+ if(method_exists($route, 'getDefaults')) {
+ $myParams = array_merge($route->getDefaults(), $myParams);
+ }
+ }
+
if (null !== $this->_module) {
$myParams['module'] = $this->_module;
- } else {
+ } elseif(!array_key_exists('module', $myParams)) {
$myParams['module'] = $front->getDefaultModule();
}
if (null !== $this->_controller) {
$myParams['controller'] = $this->_controller;
- } else {
+ } elseif(!array_key_exists('controller', $myParams)) {
$myParams['controller'] = $front->getDefaultControllerName();
}
if (null !== $this->_action) {
$myParams['action'] = $this->_action;
- } else {
+ } elseif(!array_key_exists('action', $myParams)) {
$myParams['action'] = $front->getDefaultAction();
}
+ foreach($myParams as $key => $value) {
+ if(null === $value) {
+ unset($myParams[$key]);
+ }
+ }
+
if (count(array_intersect_assoc($reqParams, $myParams)) ==
count($myParams)) {
$this->_active = true;
return true;
}
+
+ $this->_active = false;
}
return parent::isActive($recursive);
@@ -201,8 +250,26 @@
$url = self::$_urlHelper->url($params,
$this->getRoute(),
- $this->getResetParams());
+ $this->getResetParams(),
+ $this->getEncodeUrl());
+ // Use scheme?
+ $scheme = $this->getScheme();
+ if (null !== $scheme) {
+ if (null === self::$_schemeHelper) {
+ require_once 'Zend/View/Helper/ServerUrl.php';
+ self::$_schemeHelper = new Zend_View_Helper_ServerUrl();
+ }
+
+ $url = self::$_schemeHelper->setScheme($scheme)->serverUrl($url);
+ }
+
+ // Add the fragment identifier if it is set
+ $fragment = $this->getFragment();
+ if (null !== $fragment) {
+ $url .= '#' . $fragment;
+ }
+
return $this->_hrefCache = $url;
}
@@ -309,33 +376,109 @@
}
/**
- * Sets params to use when assembling URL
+ * Set multiple parameters (to use when assembling URL) at once
+ *
+ * URL options passed to the url action helper for assembling URLs.
+ * Overwrites any previously set parameters!
+ *
+ * @see getHref()
+ *
+ * @param array|null $params [optional] paramters as array
+ * ('name' => 'value'). Default is null
+ * which clears all params.
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ */
+ public function setParams(array $params = null)
+ {
+ $this->clearParams();
+
+ if (is_array($params)) {
+ $this->addParams($params);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Set parameter (to use when assembling URL)
+ *
+ * URL option passed to the url action helper for assembling URLs.
*
* @see getHref()
*
- * @param array|null $params [optional] page params. Default is null
- * which sets no params.
- * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ * @param string $name parameter name
+ * @param mixed $value parameter value
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
*/
- public function setParams(array $params = null)
+ public function setParam($name, $value)
{
- if (null === $params) {
- $this->_params = array();
- } else {
- // TODO: do this more intelligently?
- $this->_params = $params;
- }
+ $name = (string) $name;
+ $this->_params[$name] = $value;
$this->_hrefCache = null;
return $this;
}
/**
- * Returns params to use when assembling URL
+ * Add multiple parameters (to use when assembling URL) at once
+ *
+ * URL options passed to the url action helper for assembling URLs.
+ *
+ * @see getHref()
*
+ * @param array $params paramters as array ('name' => 'value')
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ */
+ public function addParams(array $params)
+ {
+ foreach ($params as $name => $value) {
+ $this->setParam($name, $value);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Remove parameter (to use when assembling URL)
+ *
* @see getHref()
*
- * @return array page params
+ * @param string $name
+ * @return bool
+ */
+ public function removeParam($name)
+ {
+ if (array_key_exists($name, $this->_params)) {
+ unset($this->_params[$name]);
+
+ $this->_hrefCache = null;
+ return true;
+ }
+
+ return false;
+ }
+
+ /**
+ * Clear all parameters (to use when assembling URL)
+ *
+ * @see getHref()
+ *
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ */
+ public function clearParams()
+ {
+ $this->_params = array();
+
+ $this->_hrefCache = null;
+ return $this;
+ }
+
+ /**
+ * Retrieve all parameters (to use when assembling URL)
+ *
+ * @see getHref()
+ *
+ * @return array parameters as array ('name' => 'value')
*/
public function getParams()
{
@@ -343,6 +486,25 @@
}
/**
+ * Retrieve a single parameter (to use when assembling URL)
+ *
+ * @see getHref()
+ *
+ * @param string $name parameter name
+ * @return mixed
+ */
+ public function getParam($name)
+ {
+ $name = (string) $name;
+
+ if (!array_key_exists($name, $this->_params)) {
+ return null;
+ }
+
+ return $this->_params[$name];
+ }
+
+ /**
* Sets route name to use when assembling URL
*
* @see getHref()
@@ -405,6 +567,68 @@
}
/**
+ * Sets whether href should be encoded when assembling URL
+ *
+ * @see getHref()
+ *
+ * @param bool $resetParams whether href should be encoded when
+ * assembling URL
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ */
+ public function setEncodeUrl($encodeUrl)
+ {
+ $this->_encodeUrl = (bool) $encodeUrl;
+ $this->_hrefCache = null;
+
+ return $this;
+ }
+
+ /**
+ * Returns whether herf should be encoded when assembling URL
+ *
+ * @see getHref()
+ *
+ * @return bool whether herf should be encoded when assembling URL
+ */
+ public function getEncodeUrl()
+ {
+ return $this->_encodeUrl;
+ }
+
+ /**
+ * Sets scheme to use when assembling URL
+ *
+ * @see getHref()
+ *
+ * @param string|null $scheme scheme
+ * @return Zend_Navigation_Page_Mvc fluent interface, returns self
+ */
+ public function setScheme($scheme)
+ {
+ if (null !== $scheme && !is_string($scheme)) {
+ require_once 'Zend/Navigation/Exception.php';
+ throw new Zend_Navigation_Exception(
+ 'Invalid argument: $scheme must be a string or null'
+ );
+ }
+
+ $this->_scheme = $scheme;
+ return $this;
+ }
+
+ /**
+ * Returns scheme to use when assembling URL
+ *
+ * @see getHref()
+ *
+ * @return string|null scheme or null
+ */
+ public function getScheme()
+ {
+ return $this->_scheme;
+ }
+
+ /**
* Sets action helper for assembling URLs
*
* @see getHref()
@@ -417,6 +641,19 @@
self::$_urlHelper = $uh;
}
+ /**
+ * Sets view helper for assembling URLs with schemes
+ *
+ * @see getHref()
+ *
+ * @param Zend_View_Helper_ServerUrl $sh scheme helper
+ * @return void
+ */
+ public static function setSchemeHelper(Zend_View_Helper_ServerUrl $sh)
+ {
+ self::$_schemeHelper = $sh;
+ }
+
// Public methods:
/**
@@ -434,7 +671,10 @@
'module' => $this->getModule(),
'params' => $this->getParams(),
'route' => $this->getRoute(),
- 'reset_params' => $this->getResetParams()
- ));
+ 'reset_params' => $this->getResetParams(),
+ 'encodeUrl' => $this->getEncodeUrl(),
+ 'scheme' => $this->getScheme(),
+ )
+ );
}
}
--- a/web/lib/Zend/Navigation/Page/Uri.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Navigation/Page/Uri.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Navigation
* @subpackage Page
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Uri.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Uri.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Navigation
* @subpackage Page
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Navigation_Page_Uri extends Zend_Navigation_Page
@@ -79,7 +79,18 @@
*/
public function getHref()
{
- return $this->getUri();
+ $uri = $this->getUri();
+
+ $fragment = $this->getFragment();
+ if (null !== $fragment) {
+ if ('#' == substr($uri, -1)) {
+ return $uri . $fragment;
+ } else {
+ return $uri . '#' . $fragment;
+ }
+ }
+
+ return $uri;
}
// Public methods:
--- a/web/lib/Zend/Oauth.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Oauth.php 21070 2010-02-16 14:34:25Z padraic $
+ * @version $Id: Oauth.php 25167 2012-12-19 16:28:01Z matthew $
*/
/** Zend_Http_Client */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth
@@ -38,6 +38,7 @@
const PUT = 'PUT';
const DELETE = 'DELETE';
const HEAD = 'HEAD';
+ const OPTIONS = 'OPTIONS';
/**
* Singleton instance if required of the HTTP client
--- a/web/lib/Zend/Oauth/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 23076 2010-10-10 21:37:20Z padraic $
+ * @version $Id: Client.php 25167 2012-12-19 16:28:01Z matthew $
*/
/** Zend_Oauth */
@@ -34,7 +34,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Client extends Zend_Http_Client
@@ -69,14 +69,18 @@
* assist in automating OAuth parameter generation, addition and
* cryptographioc signing of requests.
*
- * @param array $oauthOptions
- * @param string $uri
+ * @param array|Zend_Config $oauthOptions
+ * @param string $uri
* @param array|Zend_Config $config
* @return void
*/
public function __construct($oauthOptions, $uri = null, $config = null)
{
- if (!isset($config['rfc3986_strict'])) {
+ if ($config instanceof Zend_Config && !isset($config->rfc3986_strict)) {
+ $config = $config->toArray();
+ $config['rfc3986_strict'] = true;
+ } else if (null === $config ||
+ (is_array($config) && !isset($config['rfc3986_strict']))) {
$config['rfc3986_strict'] = true;
}
parent::__construct($uri, $config);
@@ -89,16 +93,6 @@
}
}
- /**
- * Return the current connection adapter
- *
- * @return Zend_Http_Client_Adapter_Interface|string $adapter
- */
- public function getAdapter()
- {
- return $this->adapter;
- }
-
/**
* Load the connection adapter
*
@@ -202,10 +196,12 @@
$this->setRequestMethod(self::POST);
} elseif($method == self::PUT) {
$this->setRequestMethod(self::PUT);
- } elseif($method == self::DELETE) {
+ } elseif($method == self::DELETE) {
$this->setRequestMethod(self::DELETE);
- } elseif($method == self::HEAD) {
+ } elseif($method == self::HEAD) {
$this->setRequestMethod(self::HEAD);
+ } elseif($method == self::OPTIONS) {
+ $this->setRequestMethod(self::OPTIONS);
}
return parent::setMethod($method);
}
@@ -246,7 +242,8 @@
$oauthHeaderValue = $this->getToken()->toHeader(
$this->getUri(true),
$this->_config,
- $this->_getSignableParametersAsQueryString()
+ $this->_getSignableParametersAsQueryString(),
+ $this->getRealm()
);
$this->setHeaders('Authorization', $oauthHeaderValue);
} elseif ($requestScheme == Zend_Oauth::REQUEST_SCHEME_POSTBODY) {
@@ -266,14 +263,14 @@
$this->setRawData($raw, 'application/x-www-form-urlencoded');
$this->paramsPost = array();
} elseif ($requestScheme == Zend_Oauth::REQUEST_SCHEME_QUERYSTRING) {
- $params = array();
+ $params = $this->paramsGet;
$query = $this->getUri()->getQuery();
if ($query) {
$queryParts = explode('&', $this->getUri()->getQuery());
foreach ($queryParts as $queryPart) {
$kvTuple = explode('=', $queryPart);
$params[urldecode($kvTuple[0])] =
- (array_key_exists(1, $kvTuple) ? urldecode($kvTuple[1]) : NULL);
+ (array_key_exists(1, $kvTuple) ? urldecode($kvTuple[1]) : null);
}
}
if (!empty($this->paramsPost)) {
--- a/web/lib/Zend/Oauth/Config.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Config.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Config.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Config.php 25167 2012-12-19 16:28:01Z matthew $
*/
/** Zend_Oauth */
@@ -31,7 +31,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Config implements Zend_Oauth_Config_ConfigInterface
@@ -146,6 +146,13 @@
* @var Zend_Oauth_Token
*/
protected $_token = null;
+
+ /**
+ * Define the OAuth realm
+ *
+ * @var string
+ */
+ protected $_realm = null;
/**
* Constructor; create a new object with an optional array|Zend_Config
@@ -214,6 +221,9 @@
case 'rsaPublicKey':
$this->setRsaPublicKey($value);
break;
+ case 'realm':
+ $this->setRealm($value);
+ break;
}
}
if (isset($options['requestScheme'])) {
@@ -260,7 +270,7 @@
/**
* Get consumer secret
*
- * Returns RSA private key if set; otherwise, returns any previously set
+ * Returns RSA private key if set; otherwise, returns any previously set
* consumer secret.
*
* @return string
@@ -380,7 +390,7 @@
*/
public function setCallbackUrl($url)
{
- if (!Zend_Uri::check($url)) {
+ if (!Zend_Uri::check($url) && $url !== 'oob') {
require_once 'Zend/Oauth/Exception.php';
throw new Zend_Oauth_Exception(
'\'' . $url . '\' is not a valid URI'
@@ -451,7 +461,7 @@
/**
* Get request token URL
*
- * If no request token URL has been set, but a site URL has, returns the
+ * If no request token URL has been set, but a site URL has, returns the
* site URL with the string "/request_token" appended.
*
* @return string
@@ -486,7 +496,7 @@
/**
* Get access token URL
*
- * If no access token URL has been set, but a site URL has, returns the
+ * If no access token URL has been set, but a site URL has, returns the
* site URL with the string "/access_token" appended.
*
* @return string
@@ -543,7 +553,7 @@
/**
* Get authorization URL
*
- * If no authorization URL has been set, but a site URL has, returns the
+ * If no authorization URL has been set, but a site URL has, returns the
* site URL with the string "/authorize" appended.
*
* @return string
@@ -567,10 +577,11 @@
{
$method = strtoupper($method);
if (!in_array($method, array(
- Zend_Oauth::GET,
- Zend_Oauth::POST,
- Zend_Oauth::PUT,
+ Zend_Oauth::GET,
+ Zend_Oauth::POST,
+ Zend_Oauth::PUT,
Zend_Oauth::DELETE,
+ Zend_Oauth::OPTIONS,
))
) {
require_once 'Zend/Oauth/Exception.php';
@@ -655,4 +666,26 @@
{
return $this->_token;
}
+
+ /**
+ * Set OAuth realm
+ *
+ * @param string $realm
+ * @return Zend_Oauth_Config
+ */
+ public function setRealm($realm)
+ {
+ $this->_realm = $realm;
+ return $this;
+ }
+
+ /**
+ * Get OAuth realm
+ *
+ * @return string
+ */
+ public function getRealm()
+ {
+ return $this->_realm;
+ }
}
--- a/web/lib/Zend/Oauth/Config/ConfigInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Config/ConfigInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConfigInterface.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: ConfigInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Oauth_Config_ConfigInterface
@@ -72,4 +72,8 @@
public function setToken(Zend_Oauth_Token $token);
public function getToken();
+
+ public function setRealm($realm);
+
+ public function getRealm();
}
--- a/web/lib/Zend/Oauth/Consumer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Consumer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Consumer.php 23170 2010-10-19 18:29:24Z mabe $
+ * @version $Id: Consumer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth */
@@ -43,7 +43,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Consumer extends Zend_Oauth
@@ -182,9 +182,9 @@
* @throws Zend_Oauth_Exception on invalid authorization token, non-matching response authorization token, or unprovided authorization token
*/
public function getAccessToken(
- $queryData,
+ $queryData,
Zend_Oauth_Token_Request $token,
- $httpMethod = null,
+ $httpMethod = null,
Zend_Oauth_Http_AccessToken $request = null
) {
$authorizedToken = new Zend_Oauth_Token_AuthorizedRequest($queryData);
--- a/web/lib/Zend/Oauth/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Exception extends Zend_Exception {}
\ No newline at end of file
--- a/web/lib/Zend/Oauth/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http_Utility */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Http
@@ -80,7 +80,7 @@
* @return void
*/
public function __construct(
- Zend_Oauth_Consumer $consumer,
+ Zend_Oauth_Consumer $consumer,
array $parameters = null,
Zend_Oauth_Http_Utility $utility = null
) {
@@ -233,7 +233,7 @@
require_once 'Zend/Oauth/Exception.php';
throw new Zend_Oauth_Exception(
'Could not retrieve a valid Token response from Token URL:'
- . ($response !== null
+ . ($response !== null
? PHP_EOL . $response->getBody()
: ' No body - check for headers')
);
--- a/web/lib/Zend/Oauth/Http/AccessToken.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Http/AccessToken.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccessToken.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: AccessToken.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Http_AccessToken extends Zend_Oauth_Http
--- a/web/lib/Zend/Oauth/Http/RequestToken.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Http/RequestToken.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RequestToken.php 23076 2010-10-10 21:37:20Z padraic $
+ * @version $Id: RequestToken.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Http_RequestToken extends Zend_Oauth_Http
--- a/web/lib/Zend/Oauth/Http/UserAuthorization.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Http/UserAuthorization.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UserAuthorization.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: UserAuthorization.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Http_UserAuthorization extends Zend_Oauth_Http
--- a/web/lib/Zend/Oauth/Http/Utility.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Http/Utility.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Utility.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Utility.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Http_Utility
@@ -43,7 +43,7 @@
* @return array
*/
public function assembleParams(
- $url,
+ $url,
Zend_Oauth_Config_ConfigInterface $config,
array $serviceProviderParams = null
) {
@@ -54,7 +54,7 @@
'oauth_timestamp' => $this->generateTimestamp(),
'oauth_version' => $config->getVersion(),
);
-
+
if ($config->getToken()->getToken() != null) {
$params['oauth_token'] = $config->getToken()->getToken();
}
@@ -96,8 +96,8 @@
}
$encodedParams = array();
foreach ($params as $key => $value) {
- $encodedParams[] = self::urlEncode($key)
- . '='
+ $encodedParams[] = self::urlEncode($key)
+ . '='
. self::urlEncode($value);
}
return implode('&', $encodedParams);
@@ -105,10 +105,10 @@
/**
* Cast to authorization header
- *
- * @param array $params
- * @param null|string $realm
- * @param bool $excludeCustomParams
+ *
+ * @param array $params
+ * @param null|string $realm
+ * @param bool $excludeCustomParams
* @return void
*/
public function toAuthorizationHeader(array $params, $realm = null, $excludeCustomParams = true)
@@ -123,7 +123,7 @@
continue;
}
}
- $headerValue[] = self::urlEncode($key)
+ $headerValue[] = self::urlEncode($key)
. '="'
. self::urlEncode($value) . '"';
}
@@ -132,13 +132,13 @@
/**
* Sign request
- *
- * @param array $params
- * @param string $signatureMethod
- * @param string $consumerSecret
- * @param null|string $tokenSecret
- * @param null|string $method
- * @param null|string $url
+ *
+ * @param array $params
+ * @param string $signatureMethod
+ * @param string $consumerSecret
+ * @param null|string $tokenSecret
+ * @param null|string $method
+ * @param null|string $url
* @return string
*/
public function sign(
@@ -161,8 +161,8 @@
/**
* Parse query string
- *
- * @param mixed $query
+ *
+ * @param mixed $query
* @return array
*/
public function parseQueryString($query)
@@ -184,7 +184,7 @@
/**
* Generate nonce
- *
+ *
* @return string
*/
public function generateNonce()
@@ -194,7 +194,7 @@
/**
* Generate timestamp
- *
+ *
* @return int
*/
public function generateTimestamp()
@@ -204,8 +204,8 @@
/**
* urlencode a value
- *
- * @param string $value
+ *
+ * @param string $value
* @return string
*/
public static function urlEncode($value)
--- a/web/lib/Zend/Oauth/Signature/Hmac.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Signature/Hmac.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hmac.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: Hmac.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Signature_SignatureAbstract */
@@ -28,17 +28,17 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Signature_Hmac extends Zend_Oauth_Signature_SignatureAbstract
{
/**
* Sign a request
- *
- * @param array $params
- * @param mixed $method
- * @param mixed $url
+ *
+ * @param array $params
+ * @param mixed $method
+ * @param mixed $url
* @return string
*/
public function sign(array $params, $method = null, $url = null)
--- a/web/lib/Zend/Oauth/Signature/Plaintext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Signature/Plaintext.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Plaintext.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Plaintext.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Signature_SignatureAbstract */
@@ -25,17 +25,17 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Signature_Plaintext extends Zend_Oauth_Signature_SignatureAbstract
{
/**
* Sign a request
- *
- * @param array $params
- * @param null|string $method
- * @param null|string $url
+ *
+ * @param array $params
+ * @param null|string $method
+ * @param null|string $url
* @return string
*/
public function sign(array $params, $method = null, $url = null)
--- a/web/lib/Zend/Oauth/Signature/Rsa.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Signature/Rsa.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rsa.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: Rsa.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Signature_SignatureAbstract */
@@ -28,20 +28,20 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Signature_Rsa extends Zend_Oauth_Signature_SignatureAbstract
{
/**
* Sign a request
- *
- * @param array $params
- * @param null|string $method
- * @param null|string $url
+ *
+ * @param array $params
+ * @param null|string $method
+ * @param null|string $url
* @return string
*/
- public function sign(array $params, $method = null, $url = null)
+ public function sign(array $params, $method = null, $url = null)
{
$rsa = new Zend_Crypt_Rsa;
$rsa->setHashAlgorithm($this->_hashAlgorithm);
@@ -55,7 +55,7 @@
/**
* Assemble encryption key
- *
+ *
* @return string
*/
protected function _assembleKey()
--- a/web/lib/Zend/Oauth/Signature/SignatureAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Signature/SignatureAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SignatureAbstract.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: SignatureAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http_Utility */
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Oauth_Signature_SignatureAbstract
@@ -59,10 +59,10 @@
/**
* Constructor
- *
- * @param string $consumerSecret
- * @param null|string $tokenSecret
- * @param null|string $hashAlgo
+ *
+ * @param string $consumerSecret
+ * @param null|string $tokenSecret
+ * @param null|string $hashAlgo
* @return void
*/
public function __construct($consumerSecret, $tokenSecret = null, $hashAlgo = null)
@@ -79,18 +79,18 @@
/**
* Sign a request
- *
- * @param array $params
- * @param null|string $method
- * @param null|string $url
+ *
+ * @param array $params
+ * @param null|string $method
+ * @param null|string $url
* @return string
*/
public abstract function sign(array $params, $method = null, $url = null);
/**
* Normalize the base signature URL
- *
- * @param string $url
+ *
+ * @param string $url
* @return string
*/
public function normaliseBaseSignatureUrl($url)
@@ -109,7 +109,7 @@
/**
* Assemble key from consumer and token secrets
- *
+ *
* @return string
*/
protected function _assembleKey()
@@ -126,17 +126,17 @@
/**
* Get base signature string
- *
- * @param array $params
- * @param null|string $method
- * @param null|string $url
+ *
+ * @param array $params
+ * @param null|string $method
+ * @param null|string $url
* @return string
*/
protected function _getBaseSignatureString(array $params, $method = null, $url = null)
{
$encodedParams = array();
foreach ($params as $key => $value) {
- $encodedParams[Zend_Oauth_Http_Utility::urlEncode($key)] =
+ $encodedParams[Zend_Oauth_Http_Utility::urlEncode($key)] =
Zend_Oauth_Http_Utility::urlEncode($value);
}
$baseStrings = array();
@@ -160,8 +160,8 @@
/**
* Transform an array to a byte value ordered query string
- *
- * @param array $params
+ *
+ * @param array $params
* @return string
*/
protected function _toByteValueOrderedQueryString(array $params)
--- a/web/lib/Zend/Oauth/Token.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Token.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Token.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Token.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Http_Utility */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Oauth_Token
@@ -40,14 +40,14 @@
/**
* Token parameters
- *
+ *
* @var array
*/
protected $_params = array();
/**
* OAuth response object
- *
+ *
* @var Zend_Http_Response
*/
protected $_response = null;
@@ -264,11 +264,11 @@
}
return $params;
}
-
+
/**
* Limit serialisation stored data to the parameters
*/
- public function __sleep()
+ public function __sleep()
{
return array('_params');
}
@@ -276,7 +276,7 @@
/**
* After serialisation, re-instantiate a HTTP utility class for use
*/
- public function __wakeup()
+ public function __wakeup()
{
if ($this->_httpUtility === null) {
$this->_httpUtility = new Zend_Oauth_Http_Utility;
--- a/web/lib/Zend/Oauth/Token/Access.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Token/Access.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Access.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: Access.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Token */
@@ -34,18 +34,18 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Token_Access extends Zend_Oauth_Token
{
/**
* Cast to HTTP header
- *
- * @param string $url
- * @param Zend_Oauth_Config_ConfigInterface $config
- * @param null|array $customParams
- * @param null|string $realm
+ *
+ * @param string $url
+ * @param Zend_Oauth_Config_ConfigInterface $config
+ * @param null|array $customParams
+ * @param null|string $realm
* @return string
*/
public function toHeader(
@@ -63,10 +63,10 @@
/**
* Cast to HTTP query string
- *
- * @param mixed $url
- * @param Zend_Oauth_Config_ConfigInterface $config
- * @param null|array $params
+ *
+ * @param mixed $url
+ * @param Zend_Oauth_Config_ConfigInterface $config
+ * @param null|array $params
* @return string
*/
public function toQueryString($url, Zend_Oauth_Config_ConfigInterface $config, array $params = null)
@@ -83,11 +83,11 @@
/**
* Get OAuth client
- *
- * @param array $oauthOptions
- * @param null|string $uri
- * @param null|array|Zend_Config $config
- * @param bool $excludeCustomParamsFromHeader
+ *
+ * @param array $oauthOptions
+ * @param null|string $uri
+ * @param null|array|Zend_Config $config
+ * @param bool $excludeCustomParamsFromHeader
* @return Zend_Oauth_Client
*/
public function getHttpClient(array $oauthOptions, $uri = null, $config = null, $excludeCustomParamsFromHeader = true)
--- a/web/lib/Zend/Oauth/Token/AuthorizedRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Token/AuthorizedRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AuthorizedRequest.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: AuthorizedRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Token */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Token_AuthorizedRequest extends Zend_Oauth_Token
@@ -60,7 +60,7 @@
/**
* Retrieve token data
- *
+ *
* @return array
*/
public function getData()
@@ -70,7 +70,7 @@
/**
* Indicate if token is valid
- *
+ *
* @return bool
*/
public function isValid()
@@ -85,7 +85,7 @@
/**
* Parse string data into array
- *
+ *
* @return array
*/
protected function _parseData()
--- a/web/lib/Zend/Oauth/Token/Request.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Oauth/Token/Request.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Request.php 20217 2010-01-12 16:01:57Z matthew $
+ * @version $Id: Request.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Oauth_Token */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Oauth
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Oauth_Token_Request extends Zend_Oauth_Token
--- a/web/lib/Zend/OpenId.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenId.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: OpenId.php 24842 2012-05-31 18:31:28Z rob $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId
@@ -124,7 +124,11 @@
}
$url .= $port;
- if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
+ if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) {
+ // IIS with Microsoft Rewrite Module
+ $url .= $_SERVER['HTTP_X_ORIGINAL_URL'];
+ } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
+ // IIS with ISAPI_Rewrite
$url .= $_SERVER['HTTP_X_REWRITE_URL'];
} elseif (isset($_SERVER['REQUEST_URI'])) {
$query = strpos($_SERVER['REQUEST_URI'], '?');
@@ -285,7 +289,7 @@
$port = $reg[4];
$path = $reg[5];
$query = $reg[6];
- $fragment = $reg[7]; /* strip it */
+ $fragment = $reg[7]; /* strip it */ /* ZF-4358 Fragment retained under OpenID 2.0 */
if (empty($scheme) || empty($host)) {
return false;
@@ -350,7 +354,8 @@
. $host
. (empty($port) ? '' : (':' . $port))
. $path
- . $query;
+ . $query
+ . $fragment;
return true;
}
--- a/web/lib/Zend/OpenId/Consumer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Consumer.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Consumer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Consumer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Consumer
--- a/web/lib/Zend/OpenId/Consumer/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Consumer/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Storage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Storage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_OpenId_Consumer_Storage
--- a/web/lib/Zend/OpenId/Consumer/Storage/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Consumer/Storage/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 23161 2010-10-19 16:08:36Z matthew $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Consumer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Consumer_Storage_File extends Zend_OpenId_Consumer_Storage
--- a/web/lib/Zend/OpenId/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Exception extends Zend_Exception
--- a/web/lib/Zend/OpenId/Extension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Extension.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extension.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Extension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_OpenId_Extension
--- a/web/lib/Zend/OpenId/Extension/Sreg.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Extension/Sreg.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sreg.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sreg.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_OpenId
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Extension_Sreg extends Zend_OpenId_Extension
--- a/web/lib/Zend/OpenId/Provider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Provider.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Provider.php 23088 2010-10-11 19:53:24Z padraic $
+ * @version $Id: Provider.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Provider
@@ -778,7 +778,7 @@
}
return $ret;
}
-
+
/**
* Securely compare two strings for equality while avoided C level memcmp()
* optimisations capable of leaking timing information useful to an attacker
--- a/web/lib/Zend/OpenId/Provider/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Provider/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Storage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Storage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_OpenId_Provider_Storage
--- a/web/lib/Zend/OpenId/Provider/Storage/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Provider/Storage/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Provider_Storage_File extends Zend_OpenId_Provider_Storage
@@ -257,7 +257,7 @@
fclose($lock);
return false;
}
- try {
+ try {
$f = @fopen($name, 'r');
if ($f === false) {
fclose($lock);
--- a/web/lib/Zend/OpenId/Provider/User.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Provider/User.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: User.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: User.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_OpenId_Provider_User
--- a/web/lib/Zend/OpenId/Provider/User/Session.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/OpenId/Provider/User/Session.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Session.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Session.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_OpenId
* @subpackage Zend_OpenId_Provider
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_OpenId_Provider_User_Session extends Zend_OpenId_Provider_User
--- a/web/lib/Zend/Paginator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Paginator.php 22865 2010-08-21 12:28:09Z ramon $
+ * @version $Id: Paginator.php 24754 2012-05-05 02:30:56Z adamlundrigan $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator implements Countable, IteratorAggregate
@@ -524,13 +524,26 @@
}
/**
- * Returns the total number of items available.
+ * Returns the total number of items available. Uses cache if caching is enabled.
*
* @return integer
*/
public function getTotalItemCount()
{
- return count($this->getAdapter());
+ if (!$this->_cacheEnabled()) {
+ return count($this->getAdapter());
+ } else {
+ $cacheId = md5($this->_getCacheInternalId(). '_itemCount');
+ $itemCount = self::$_cache->load($cacheId);
+
+ if ($itemCount === false) {
+ $itemCount = count($this->getAdapter());
+
+ self::$_cache->save($itemCount, $cacheId, array($this->_getCacheInternalId()));
+ }
+
+ return $itemCount;
+ }
}
/**
@@ -1044,10 +1057,18 @@
*/
protected function _getCacheInternalId()
{
- return md5(serialize(array(
- $this->getAdapter(),
- $this->getItemCountPerPage()
- )));
+ $adapter = $this->getAdapter();
+
+ if (method_exists($adapter, 'getCacheIdentifier')) {
+ return md5(serialize(array(
+ $adapter->getCacheIdentifier(), $this->getItemCountPerPage()
+ )));
+ } else {
+ return md5(serialize(array(
+ $adapter,
+ $this->getItemCountPerPage()
+ )));
+ }
}
/**
@@ -1057,7 +1078,7 @@
*/
protected function _calculatePageCount()
{
- return (integer) ceil($this->getAdapter()->count() / $this->getItemCountPerPage());
+ return (integer) ceil($this->getTotalItemCount() / $this->getItemCountPerPage());
}
/**
--- a/web/lib/Zend/Paginator/Adapter/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Adapter_Array implements Zend_Paginator_Adapter_Interface
--- a/web/lib/Zend/Paginator/Adapter/DbSelect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/DbSelect.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbSelect.php 24754 2012-05-05 02:30:56Z adamlundrigan $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Adapter_DbSelect implements Zend_Paginator_Adapter_Interface
@@ -71,6 +71,14 @@
protected $_rowCount = null;
/**
+ * Identifies this adapter for caching purposes. This value will remain constant for
+ * the entire life of this adapter regardless of how many different pages are queried.
+ *
+ * @var string
+ */
+ protected $_cacheIdentifier = null;
+
+ /**
* Constructor.
*
* @param Zend_Db_Select $select The select query
@@ -78,9 +86,20 @@
public function __construct(Zend_Db_Select $select)
{
$this->_select = $select;
+ $this->_cacheIdentifier = md5($select->assemble());
}
/**
+ * Returns the cache identifier.
+ *
+ * @return string
+ */
+ public function getCacheIdentifier()
+ {
+ return $this->_cacheIdentifier;
+ }
+
+ /**
* Sets the total row count, either directly or through a supplied
* query. Without setting this, {@link getPages()} selects the count
* as a subquery (SELECT COUNT ... FROM (SELECT ...)). While this
@@ -100,7 +119,9 @@
if ($rowCount instanceof Zend_Db_Select) {
$columns = $rowCount->getPart(Zend_Db_Select::COLUMNS);
- $countColumnPart = $columns[0][1];
+ $countColumnPart = empty($columns[0][2])
+ ? $columns[0][1]
+ : $columns[0][2];
if ($countColumnPart instanceof Zend_Db_Expr) {
$countColumnPart = $countColumnPart->__toString();
@@ -201,7 +222,10 @@
if (!empty($unionParts)) {
$expression = new Zend_Db_Expr($countPart . $countColumn);
- $rowCount = $db->select()->from($rowCount, $expression);
+ $rowCount = $db
+ ->select()
+ ->bind($rowCount->getBind())
+ ->from($rowCount, $expression);
} else {
$columnParts = $rowCount->getPart(Zend_Db_Select::COLUMNS);
$groupParts = $rowCount->getPart(Zend_Db_Select::GROUP);
@@ -213,8 +237,13 @@
* than one group, or if the query has a HAVING clause, then take
* the original query and use it as a subquery os the COUNT query.
*/
- if (($isDistinct && count($columnParts) > 1) || count($groupParts) > 1 || !empty($havingParts)) {
- $rowCount = $db->select()->from($this->_select);
+ if (($isDistinct && ((count($columnParts) == 1 && $columnParts[0][1] == Zend_Db_Select::SQL_WILDCARD)
+ || count($columnParts) > 1)) || count($groupParts) > 1 || !empty($havingParts)) {
+ $rowCount->reset(Zend_Db_Select::ORDER);
+ $rowCount = $db
+ ->select()
+ ->bind($rowCount->getBind())
+ ->from($rowCount);
} else if ($isDistinct) {
$part = $columnParts[0];
@@ -227,8 +256,7 @@
$groupPart = $column;
}
- } else if (!empty($groupParts) && $groupParts[0] !== Zend_Db_Select::SQL_WILDCARD &&
- !($groupParts[0] instanceof Zend_Db_Expr)) {
+ } else if (!empty($groupParts)) {
$groupPart = $db->quoteIdentifier($groupParts[0], true);
}
--- a/web/lib/Zend/Paginator/Adapter/DbTableSelect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/DbTableSelect.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTableSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbTableSelect.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Adapter_DbTableSelect extends Zend_Paginator_Adapter_DbSelect
--- a/web/lib/Zend/Paginator/Adapter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 23314 2010-11-08 19:48:10Z matthew $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Paginator_Adapter_Interface extends Countable
--- a/web/lib/Zend/Paginator/Adapter/Iterator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/Iterator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Iterator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Iterator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Adapter_Iterator implements Zend_Paginator_Adapter_Interface
--- a/web/lib/Zend/Paginator/Adapter/Null.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Adapter/Null.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 21150 2010-02-23 16:27:36Z matthew $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Adapter_Null implements Zend_Paginator_Adapter_Interface
--- a/web/lib/Zend/Paginator/AdapterAggregate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/AdapterAggregate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Paginator
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterAggregate.php 22542 2010-07-09 19:41:46Z ramon $
+ * @version $Id: AdapterAggregate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Paginator
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Paginator_AdapterAggregate
--- a/web/lib/Zend/Paginator/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_Exception extends Zend_Exception
--- a/web/lib/Zend/Paginator/ScrollingStyle/All.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/ScrollingStyle/All.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: All.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: All.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_ScrollingStyle_All implements Zend_Paginator_ScrollingStyle_Interface
--- a/web/lib/Zend/Paginator/ScrollingStyle/Elastic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/ScrollingStyle/Elastic.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Elastic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Elastic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @link http://www.google.com/search?q=Zend+Framework
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_ScrollingStyle_Elastic extends Zend_Paginator_ScrollingStyle_Sliding
--- a/web/lib/Zend/Paginator/ScrollingStyle/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/ScrollingStyle/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Paginator_ScrollingStyle_Interface
--- a/web/lib/Zend/Paginator/ScrollingStyle/Jumping.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/ScrollingStyle/Jumping.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Jumping.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Jumping.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_ScrollingStyle_Jumping implements Zend_Paginator_ScrollingStyle_Interface
--- a/web/lib/Zend/Paginator/ScrollingStyle/Sliding.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/ScrollingStyle/Sliding.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sliding.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sliding.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @link http://search.yahoo.com/search?p=Zend+Framework
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_ScrollingStyle_Sliding implements Zend_Paginator_ScrollingStyle_Interface
--- a/web/lib/Zend/Paginator/SerializableLimitIterator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Paginator/SerializableLimitIterator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SerializableLimitIterator.php 23189 2010-10-20 18:55:32Z mabe $
+ * @version $Id: SerializableLimitIterator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Paginator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Paginator_SerializableLimitIterator extends LimitIterator implements Serializable, ArrayAccess
--- a/web/lib/Zend/Pdf.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pdf.php 22908 2010-08-25 20:52:47Z alexander $
+ * @version $Id: Pdf.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -78,7 +78,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf
@@ -210,6 +210,14 @@
protected static $_inheritableAttributes = array('Resources', 'MediaBox', 'CropBox', 'Rotate');
/**
+ * True if the object is a newly created PDF document (affects save() method behavior)
+ * False otherwise
+ *
+ * @var boolean
+ */
+ protected $_isNewDocument = true;
+
+ /**
* Request used memory manager
*
* @return Zend_Memory_Manager
@@ -262,7 +270,8 @@
/**
* Render PDF document and save it.
*
- * If $updateOnly is true, then it only appends new section to the end of file.
+ * If $updateOnly is true and it's not a new document, then it only
+ * appends new section to the end of file.
*
* @param string $filename
* @param boolean $updateOnly
@@ -348,6 +357,8 @@
$this->_originalProperties = $this->properties;
}
+
+ $this->_isNewDocument = false;
} else {
$this->_pdfHeaderVersion = Zend_Pdf::PDF_VERSION;
@@ -1174,7 +1185,8 @@
/**
* Render the completed PDF to a string.
- * If $newSegmentOnly is true, then only appended part of PDF is returned.
+ * If $newSegmentOnly is true and it's not a new document,
+ * then only appended part of PDF is returned.
*
* @param boolean $newSegmentOnly
* @param resource $outputStream
@@ -1183,6 +1195,12 @@
*/
public function render($newSegmentOnly = false, $outputStream = null)
{
+ if ($this->_isNewDocument) {
+ // Drop full document first time even $newSegmentOnly is set to true
+ $newSegmentOnly = false;
+ $this->_isNewDocument = false;
+ }
+
// Save document properties if necessary
if ($this->properties != $this->_originalProperties) {
$docInfo = $this->_objFactory->newObject(new Zend_Pdf_Element_Dictionary());
--- a/web/lib/Zend/Pdf/Action.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Action.php 22437 2010-06-15 16:13:46Z alexander $
+ * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Action extends Zend_Pdf_Target implements RecursiveIterator, Countable
--- a/web/lib/Zend/Pdf/Action/GoTo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/GoTo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GoTo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GoTo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -35,7 +35,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_GoTo extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/GoTo3DView.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/GoTo3DView.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GoTo3DView.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GoTo3DView.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_GoTo3DView extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/GoToE.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/GoToE.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GoToE.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GoToE.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_GoToE extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/GoToR.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/GoToR.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GoToR.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GoToR.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_GoToR extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Hide.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Hide.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hide.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Hide.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Hide extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/ImportData.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/ImportData.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImportData.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ImportData.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_ImportData extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/JavaScript.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/JavaScript.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: JavaScript.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: JavaScript.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_JavaScript extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Launch.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Launch.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Launch.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Launch.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Launch extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Movie.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Movie.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Movie.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Movie.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Movie extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Named.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Named.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Named.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Named.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Named extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Rendition.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Rendition.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rendition.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rendition.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Rendition extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/ResetForm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/ResetForm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResetForm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResetForm.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_ResetForm extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/SetOCGState.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/SetOCGState.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SetOCGState.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SetOCGState.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_SetOCGState extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Sound.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Sound.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sound.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sound.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Sound extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/SubmitForm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/SubmitForm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SubmitForm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SubmitForm.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_SubmitForm extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Thread.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Thread.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Thread.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Thread.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Thread extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Trans.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Trans.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Trans.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Trans.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Trans extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/URI.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/URI.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: URI.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: URI.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -38,7 +38,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_URI extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Action/Unknown.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Action/Unknown.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Unknown.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Unknown.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Action */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Action_Unknown extends Zend_Pdf_Action
--- a/web/lib/Zend/Pdf/Annotation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Annotation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Annotation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Annotation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -32,7 +32,7 @@
*
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Annotation
@@ -220,7 +220,7 @@
* Load Annotation object from a specified resource
*
* @internal
- * @param $destinationArray
+ * @param Zend_Pdf_Element $resource
* @return Zend_Pdf_Annotation
*/
public static function load(Zend_Pdf_Element $resource)
--- a/web/lib/Zend/Pdf/Annotation/FileAttachment.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Annotation/FileAttachment.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FileAttachment.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FileAttachment.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -38,7 +38,7 @@
*
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Annotation_FileAttachment extends Zend_Pdf_Annotation
--- a/web/lib/Zend/Pdf/Annotation/Link.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Annotation/Link.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Link.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Link.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -40,7 +40,7 @@
*
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Annotation_Link extends Zend_Pdf_Annotation
--- a/web/lib/Zend/Pdf/Annotation/Markup.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Annotation/Markup.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Markup.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Markup.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -37,7 +37,7 @@
*
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Annotation_Markup extends Zend_Pdf_Annotation
--- a/web/lib/Zend/Pdf/Annotation/Text.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Annotation/Text.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Text.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Text.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -37,7 +37,7 @@
*
* @package Zend_Pdf
* @subpackage Annotation
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Annotation_Text extends Zend_Pdf_Annotation
--- a/web/lib/Zend/Pdf/Canvas.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Canvas.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Style.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -26,7 +26,7 @@
* page object at specified place.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Canvas extends Zend_Pdf_Canvas_Abstract
--- a/web/lib/Zend/Pdf/Canvas/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Canvas/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Style.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -31,6 +31,9 @@
require_once 'Zend/Pdf/Element/Null.php';
require_once 'Zend/Pdf/Element/Numeric.php';
require_once 'Zend/Pdf/Element/String.php';
+require_once 'Zend/Pdf/Resource/GraphicsState.php';
+require_once 'Zend/Pdf/Resource/Font.php';
+require_once 'Zend/Pdf/Resource/Image.php';
/**
@@ -38,7 +41,7 @@
* page object at specified place.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Canvas_Abstract implements Zend_Pdf_Canvas_Interface
--- a/web/lib/Zend/Pdf/Canvas/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Canvas/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Style.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -25,7 +25,7 @@
* page object at specified place.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Pdf_Canvas_Interface
--- a/web/lib/Zend/Pdf/Cmap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Cmap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cmap.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cmap.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -47,7 +47,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Cmap
--- a/web/lib/Zend/Pdf/Cmap/ByteEncoding.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Cmap/ByteEncoding.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ByteEncoding.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ByteEncoding.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Cmap */
@@ -36,7 +36,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Cmap_ByteEncoding extends Zend_Pdf_Cmap
--- a/web/lib/Zend/Pdf/Cmap/ByteEncoding/Static.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Cmap/ByteEncoding/Static.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Static.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Static.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Cmap_ByteEncoding */
@@ -32,7 +32,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Cmap_ByteEncoding_Static extends Zend_Pdf_Cmap_ByteEncoding
--- a/web/lib/Zend/Pdf/Cmap/SegmentToDelta.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Cmap/SegmentToDelta.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SegmentToDelta.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SegmentToDelta.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Cmap */
@@ -33,7 +33,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Cmap_SegmentToDelta extends Zend_Pdf_Cmap
--- a/web/lib/Zend/Pdf/Cmap/TrimmedTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Cmap/TrimmedTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TrimmedTable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TrimmedTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Cmap */
@@ -33,7 +33,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Cmap_TrimmedTable extends Zend_Pdf_Cmap
--- a/web/lib/Zend/Pdf/Color.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Color.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Color.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Color.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* others don't do it. That is defined in a subclasses.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Color
--- a/web/lib/Zend/Pdf/Color/Cmyk.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Color/Cmyk.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cmyk.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cmyk.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Color_Cmyk extends Zend_Pdf_Color
--- a/web/lib/Zend/Pdf/Color/GrayScale.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Color/GrayScale.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GrayScale.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GrayScale.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Color_GrayScale extends Zend_Pdf_Color
--- a/web/lib/Zend/Pdf/Color/Html.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Color/Html.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Html.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Html.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Color */
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Color_Html extends Zend_Pdf_Color
--- a/web/lib/Zend/Pdf/Color/Rgb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Color/Rgb.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Rgb.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Rgb.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Color_Rgb extends Zend_Pdf_Color
--- a/web/lib/Zend/Pdf/Destination.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Destination.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Destination.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Destination extends Zend_Pdf_Target
@@ -43,7 +43,7 @@
* Load Destination object from a specified resource
*
* @internal
- * @param $destinationArray
+ * @param Zend_Pdf_Element $resource
* @return Zend_Pdf_Destination
*/
public static function load(Zend_Pdf_Element $resource)
--- a/web/lib/Zend/Pdf/Destination/Explicit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/Explicit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Explicit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Explicit.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Destination_Explicit extends Zend_Pdf_Destination
--- a/web/lib/Zend/Pdf/Destination/Fit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/Fit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Fit.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_Fit extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitBoundingBox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitBoundingBox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitBoundingBox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitBoundingBox.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitBoundingBox extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitBoundingBoxHorizontally.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitBoundingBoxHorizontally.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitBoundingBoxHorizontally.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitBoundingBoxHorizontally.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -42,7 +42,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitBoundingBoxHorizontally extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitBoundingBoxVertically.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitBoundingBoxVertically.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitBoundingBoxVertically.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitBoundingBoxVertically.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -41,7 +41,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitBoundingBoxVertically extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitHorizontally.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitHorizontally.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitHorizontally.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitHorizontally.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitHorizontally extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitRectangle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitRectangle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitRectangle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitRectangle.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitRectangle extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/FitVertically.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/FitVertically.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FitVertically.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FitVertically.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -41,7 +41,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_FitVertically extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/Named.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/Named.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Named.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Named.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -39,7 +39,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_Named extends Zend_Pdf_Destination
@@ -54,7 +54,7 @@
/**
* Named destination object constructor
*
- * @param $resource
+ * @param Zend_Pdf_Element $resource
* @throws Zend_Pdf_Exception
*/
public function __construct(Zend_Pdf_Element $resource)
--- a/web/lib/Zend/Pdf/Destination/Unknown.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/Unknown.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Unknown.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Unknown.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Destination_Explicit */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_Unknown extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Destination/Zoom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Destination/Zoom.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Zoom.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Zoom.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Destination
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Destination_Zoom extends Zend_Pdf_Destination_Explicit
--- a/web/lib/Zend/Pdf/Element.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Element.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Element.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -24,7 +24,7 @@
* PDF file element implementation
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Array.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Array extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Boolean.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Boolean.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Boolean.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Boolean.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Boolean extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Dictionary.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Dictionary.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dictionary.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Dictionary.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Dictionary extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Name.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Name.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Name.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Name.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Name extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Null.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Null.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Null extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Numeric.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Numeric.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Numeric.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Numeric.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Numeric extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Object.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Object.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Object.php 22844 2010-08-16 15:38:53Z alexander $
+ * @version $Id: Object.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Object extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Object/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Object/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 22909 2010-08-27 19:57:48Z alexander $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Object_Stream extends Zend_Pdf_Element_Object
--- a/web/lib/Zend/Pdf/Element/Reference.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Reference.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reference.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Reference.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Reference extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/Reference/Context.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Reference/Context.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Context.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Context.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Reference_Context
--- a/web/lib/Zend/Pdf/Element/Reference/Table.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Reference/Table.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Table.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Table.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Reference_Table
--- a/web/lib/Zend/Pdf/Element/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_Stream extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/String.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/String.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: String.php 21542 2010-03-18 08:56:40Z bate $
+ * @version $Id: String.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_String extends Zend_Pdf_Element
--- a/web/lib/Zend/Pdf/Element/String/Binary.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Element/String/Binary.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Binary.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Binary.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Element_String_Binary extends Zend_Pdf_Element_String
--- a/web/lib/Zend/Pdf/ElementFactory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/ElementFactory.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ElementFactory.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: ElementFactory.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* Responsibility is to log PDF changes
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_ElementFactory implements Zend_Pdf_ElementFactory_Interface
--- a/web/lib/Zend/Pdf/ElementFactory/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/ElementFactory/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
* Responsibility is to log PDF changes
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Pdf_ElementFactory_Interface
--- a/web/lib/Zend/Pdf/ElementFactory/Proxy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/ElementFactory/Proxy.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Proxy.php 22797 2010-08-06 15:02:12Z alexander $
+ * @version $Id: Proxy.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_ElementFactory_Interface */
@@ -27,7 +27,7 @@
* Responsibility is to log PDF changes
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_ElementFactory_Proxy implements Zend_Pdf_ElementFactory_Interface
--- a/web/lib/Zend/Pdf/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Core
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Exception */
@@ -45,7 +45,7 @@
*
* @package Zend_Pdf
* @subpackage Core
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Exception extends Zend_Exception
--- a/web/lib/Zend/Pdf/FileParser.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FileParser.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FileParser.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_FileParser
--- a/web/lib/Zend/Pdf/FileParser/Font.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser/Font.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Font.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Font.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -36,7 +36,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_FileParser_Font extends Zend_Pdf_FileParser
--- a/web/lib/Zend/Pdf/FileParser/Font/OpenType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser/Font/OpenType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenType.php 25197 2013-01-09 11:32:22Z frosch $
*/
/** Zend_Pdf_FileParser_Font */
@@ -45,7 +45,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_FileParser_Font_OpenType extends Zend_Pdf_FileParser_Font
@@ -582,12 +582,24 @@
* outlines from fonts yet, so this means no embed.
*/
$this->isEmbeddable = false;
- } else if ($this->isBitSet(1, $embeddingFlags)) {
- /* Restricted license embedding. We currently don't have any way to
- * enforce this, so interpret this as no embed. This may be revised
- * in the future...
- */
- $this->isEmbeddable = false;
+ } elseif ($this->isBitSet(2, $embeddingFlags)
+ || $this->isBitSet(3, $embeddingFlags)
+ || $this->isBitSet(4, $embeddingFlags)
+ ) {
+ /* One of:
+ * Restricted License embedding (0x0002)
+ * Preview & Print embedding (0x0004)
+ * Editable embedding (0x0008)
+ * is set.
+ */
+ $this->isEmbeddable = true;
+ } elseif ($this->isBitSet(1, $embeddingFlags)) {
+ /* Restricted license embedding & no other embedding is set.
+ * We currently don't have any way to
+ * enforce this, so interpret this as no embed. This may be revised
+ * in the future...
+ */
+ $this->isEmbeddable = false;
} else {
/* The remainder of the bit settings grant us permission to embed
* the font. There may be additional usage rights granted or denied
--- a/web/lib/Zend/Pdf/FileParser/Font/OpenType/TrueType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser/Font/OpenType/TrueType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TrueType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TrueType.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_FileParser_Font_OpenType_TrueType extends Zend_Pdf_FileParser_Font_OpenType
--- a/web/lib/Zend/Pdf/FileParser/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_FileParser_Image extends Zend_Pdf_FileParser
--- a/web/lib/Zend/Pdf/FileParser/Image/Png.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParser/Image/Png.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Png.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Png.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Pdf_FileParser_Image */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_FileParser_Image_Png extends Zend_Pdf_FileParser_Image
--- a/web/lib/Zend/Pdf/FileParserDataSource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParserDataSource.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FileParserDataSource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FileParserDataSource.php 24806 2012-05-15 11:32:11Z adamlundrigan $
*/
/**
@@ -35,7 +35,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_FileParserDataSource
@@ -63,21 +63,6 @@
/* Abstract Methods */
/**
- * Object constructor. Opens the data source for parsing.
- *
- * Must set $this->_size to the total size in bytes of the data source.
- *
- * Upon return the data source can be interrogated using the primitive
- * methods described here.
- *
- * If the data source cannot be opened for any reason (such as insufficient
- * permissions, missing file, etc.), will throw an appropriate exception.
- *
- * @throws Zend_Pdf_Exception
- */
- abstract public function __construct();
-
- /**
* Object destructor. Closes the data source.
*
* May also perform cleanup tasks such as deleting temporary files.
--- a/web/lib/Zend/Pdf/FileParserDataSource/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParserDataSource/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_FileParserDataSource */
@@ -34,7 +34,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_FileParserDataSource_File extends Zend_Pdf_FileParserDataSource
--- a/web/lib/Zend/Pdf/FileParserDataSource/String.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/FileParserDataSource/String.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: String.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: String.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_FileParserDataSource */
@@ -29,7 +29,7 @@
*
* @package Zend_Pdf
* @subpackage FileParser
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_FileParserDataSource_String extends Zend_Pdf_FileParserDataSource
--- a/web/lib/Zend/Pdf/Filter/Ascii85.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/Ascii85.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ascii85.php 22653 2010-07-22 18:41:39Z mabe $
+ * @version $Id: Ascii85.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* ASCII85 stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Filter_Ascii85 implements Zend_Pdf_Filter_Interface
--- a/web/lib/Zend/Pdf/Filter/AsciiHex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/AsciiHex.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AsciiHex.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AsciiHex.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* AsciiHex stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Filter_AsciiHex implements Zend_Pdf_Filter_Interface
--- a/web/lib/Zend/Pdf/Filter/Compression.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/Compression.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Compression.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Compression.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* ASCII85 stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Filter_Compression implements Zend_Pdf_Filter_Interface
--- a/web/lib/Zend/Pdf/Filter/Compression/Flate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/Compression/Flate.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Flate.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Flate.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* Flate stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Filter_Compression_Flate extends Zend_Pdf_Filter_Compression
--- a/web/lib/Zend/Pdf/Filter/Compression/Lzw.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/Compression/Lzw.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Lzw.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Lzw.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* LZW stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Filter_Compression_Lzw extends Zend_Pdf_Filter_Compression
--- a/web/lib/Zend/Pdf/Filter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* PDF stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Pdf_Filter_Interface
--- a/web/lib/Zend/Pdf/Filter/RunLength.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Filter/RunLength.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RunLength.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: RunLength.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* RunLength stream filter
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Filter_RunLength implements Zend_Pdf_Filter_Interface
--- a/web/lib/Zend/Pdf/Font.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Font.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Font.php 20211 2010-01-12 02:14:29Z yoshida@zend.co.jp $
+ * @version $Id: Font.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Font
--- a/web/lib/Zend/Pdf/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Images
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
*
* @package Zend_Pdf
* @subpackage Images
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Image
--- a/web/lib/Zend/Pdf/NameTree.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/NameTree.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NameTree.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NameTree.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -30,7 +30,7 @@
* @todo implement lazy resource loading so resources will be really loaded at access time
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_NameTree implements ArrayAccess, Iterator, Countable
@@ -46,7 +46,7 @@
/**
* Object constructor
*
- * @param $rootDictionary root of name dictionary
+ * @param Zend_Pdf_Element $rootDictionary root of name dictionary
*/
public function __construct(Zend_Pdf_Element $rootDictionary)
{
--- a/web/lib/Zend/Pdf/Outline.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Outline.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Outline.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Outline.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Pdf
* @subpackage Outlines
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Outline implements RecursiveIterator, Countable
--- a/web/lib/Zend/Pdf/Outline/Created.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Outline/Created.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Created.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Created.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
*
* @package Zend_Pdf
* @subpackage Outlines
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Outline_Created extends Zend_Pdf_Outline
--- a/web/lib/Zend/Pdf/Outline/Loaded.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Outline/Loaded.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Loaded.php 23195 2010-10-21 10:12:12Z alexander $
+ * @version $Id: Loaded.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
*
* @package Zend_Pdf
* @subpackage Outlines
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Outline_Loaded extends Zend_Pdf_Outline
--- a/web/lib/Zend/Pdf/Page.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Page.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Page.php 22909 2010-08-27 19:57:48Z alexander $
+ * @version $Id: Page.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -38,7 +38,7 @@
* PDF Page
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Page extends Zend_Pdf_Canvas_Abstract
--- a/web/lib/Zend/Pdf/Parser.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Parser.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parser.php 23395 2010-11-19 15:30:47Z alexander $
+ * @version $Id: Parser.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -32,7 +32,7 @@
* PDF file parser
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Parser
--- a/web/lib/Zend/Pdf/RecursivelyIteratableObjectsContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/RecursivelyIteratableObjectsContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RecursivelyIteratableObjectsContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RecursivelyIteratableObjectsContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* Iteratable objects container
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_RecursivelyIteratableObjectsContainer implements RecursiveIterator, Countable
--- a/web/lib/Zend/Pdf/Resource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Resource.php 22909 2010-08-27 19:57:48Z alexander $
+ * @version $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -24,7 +24,7 @@
* PDF file Resource abstraction
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/Resource/ContentStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/ContentStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -35,7 +35,7 @@
* Content stream (drawing instructions container)
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_ContentStream extends Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/Resource/Extractor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Extractor.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:
*/
@@ -44,7 +44,7 @@
* must not be shared between target documents.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Extractor
--- a/web/lib/Zend/Pdf/Resource/Font.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Font.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Font.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Pdf_Resource */
@@ -44,7 +44,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Font extends Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/Resource/Font/CidFont.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/CidFont.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CidFont.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CidFont.php 24664 2012-02-26 16:36:51Z adamlundrigan $
*/
/** Internally used classes */
@@ -51,7 +51,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Font_CidFont extends Zend_Pdf_Resource_Font
@@ -129,7 +129,9 @@
$charGlyphs = $this->_cmap->getCoveredCharactersGlyphs();
$charWidths = array();
foreach ($charGlyphs as $charCode => $glyph) {
- $charWidths[$charCode] = $glyphWidths[$glyph];
+ if(isset($glyphWidths[$glyph]) && !is_null($glyphWidths[$glyph])) {
+ $charWidths[$charCode] = $glyphWidths[$glyph];
+ }
}
$this->_charWidths = $charWidths;
$this->_missingCharWidth = $glyphWidths[0];
--- a/web/lib/Zend/Pdf/Resource/Font/CidFont/TrueType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/CidFont/TrueType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TrueType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TrueType.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -44,7 +44,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_CidFont_TrueType extends Zend_Pdf_Resource_Font_CidFont
--- a/web/lib/Zend/Pdf/Resource/Font/Extracted.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Extracted.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extracted.php 20866 2010-02-03 05:30:07Z yoshida@zend.co.jp $
+ * @version $Id: Extracted.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Extracted extends Zend_Pdf_Resource_Font
--- a/web/lib/Zend/Pdf/Resource/Font/FontDescriptor.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/FontDescriptor.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FontDescriptor.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FontDescriptor.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -42,7 +42,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_FontDescriptor
--- a/web/lib/Zend/Pdf/Resource/Font/Simple.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Simple.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Simple.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -56,7 +56,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Font_Simple extends Zend_Pdf_Resource_Font
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Parsed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Parsed.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parsed.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Parsed.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -37,7 +37,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Font_Simple_Parsed extends Zend_Pdf_Resource_Font_Simple
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Parsed/TrueType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Parsed/TrueType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TrueType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TrueType.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Parsed_TrueType extends Zend_Pdf_Resource_Font_Simple_Parsed
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Standard.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Standard.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -59,7 +59,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Font_Simple_Standard extends Zend_Pdf_Resource_Font_Simple
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Courier.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Courier.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Courier.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Courier.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_Courier extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierBold.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierBold.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CourierBold.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CourierBold.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_CourierBold extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierBoldOblique.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierBoldOblique.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CourierBoldOblique.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CourierBoldOblique.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_CourierBoldOblique extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierOblique.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/CourierOblique.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CourierOblique.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CourierOblique.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_CourierOblique extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Helvetica.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Helvetica.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Helvetica.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Helvetica.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_Helvetica extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaBold.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaBold.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelveticaBold.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelveticaBold.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -42,7 +42,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_HelveticaBold extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaBoldOblique.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaBoldOblique.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelveticaBoldOblique.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelveticaBoldOblique.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_HelveticaBoldOblique extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaOblique.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/HelveticaOblique.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelveticaOblique.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelveticaOblique.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_HelveticaOblique extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Symbol.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/Symbol.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Symbol.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Symbol.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_Symbol extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesBold.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesBold.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimesBold.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimesBold.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_TimesBold extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesBoldItalic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesBoldItalic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimesBoldItalic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimesBoldItalic.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_TimesBoldItalic extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesItalic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesItalic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimesItalic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimesItalic.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_TimesItalic extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesRoman.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/TimesRoman.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TimesRoman.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TimesRoman.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_TimesRoman extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/ZapfDingbats.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Simple/Standard/ZapfDingbats.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZapfDingbats.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ZapfDingbats.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Simple_Standard_ZapfDingbats extends Zend_Pdf_Resource_Font_Simple_Standard
--- a/web/lib/Zend/Pdf/Resource/Font/Type0.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Font/Type0.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Type0.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Type0.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -57,7 +57,7 @@
*
* @package Zend_Pdf
* @subpackage Fonts
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Font_Type0 extends Zend_Pdf_Resource_Font
--- a/web/lib/Zend/Pdf/Resource/GraphicsState.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/GraphicsState.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -39,7 +39,7 @@
* graphics state operator gs (PDF 1.2).
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_GraphicsState extends Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/Resource/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 22908 2010-08-25 20:52:47Z alexander $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* Image abstraction.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Resource_Image extends Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/Resource/Image/Jpeg.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Image/Jpeg.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Jpeg.php 23395 2010-11-19 15:30:47Z alexander $
+ * @version $Id: Jpeg.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* JPEG image
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Image_Jpeg extends Zend_Pdf_Resource_Image
--- a/web/lib/Zend/Pdf/Resource/Image/Png.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Image/Png.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Png.php 23395 2010-11-19 15:30:47Z alexander $
+ * @version $Id: Png.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* PNG image
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Image_Png extends Zend_Pdf_Resource_Image
--- a/web/lib/Zend/Pdf/Resource/Image/Tiff.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Image/Tiff.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tiff.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tiff.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Internally used classes */
@@ -32,7 +32,7 @@
* TIFF image
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Image_Tiff extends Zend_Pdf_Resource_Image
--- a/web/lib/Zend/Pdf/Resource/ImageFactory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/ImageFactory.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImageFactory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ImageFactory.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* Helps manage the diverse set of supported image file types.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @todo Use Zend_Mime not file extension for type determination.
*/
--- a/web/lib/Zend/Pdf/Resource/Unified.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Resource/Unified.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -29,7 +29,7 @@
* Class is used to represent any resource when resource type not actually important.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Resource_Unified extends Zend_Pdf_Resource
--- a/web/lib/Zend/Pdf/StringParser.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/StringParser.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StringParser.php 22311 2010-05-27 12:57:37Z padraic $
+ * @version $Id: StringParser.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* PDF string parser
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_StringParser
@@ -272,7 +272,7 @@
}
$this->offset += strcspn($this->data, $compare, $this->offset);
-
+
return substr($this->data, $start, $this->offset - $start);
}
}
--- a/web/lib/Zend/Pdf/Style.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Style.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Style.php 22908 2010-08-25 20:52:47Z alexander $
+ * @version $Id: Style.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* It's used by Zend_Pdf_Page class in draw operations.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Style
--- a/web/lib/Zend/Pdf/Target.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Target.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Target.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Target.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
*
* @package Zend_Pdf
* @subpackage Actions
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Target
--- a/web/lib/Zend/Pdf/Trailer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Trailer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Trailer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Trailer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -24,7 +24,7 @@
* PDF file trailer
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Pdf_Trailer
--- a/web/lib/Zend/Pdf/Trailer/Generator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Trailer/Generator.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Generator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Generator.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* PDF file trailer generator (used for just created PDF)
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Trailer_Generator extends Zend_Pdf_Trailer
--- a/web/lib/Zend/Pdf/Trailer/Keeper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/Trailer/Keeper.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Keeper.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Keeper.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* Stores and provides access to the trailer parced from a PDF file
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_Trailer_Keeper extends Zend_Pdf_Trailer
--- a/web/lib/Zend/Pdf/UpdateInfoContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Pdf/UpdateInfoContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateInfoContainer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UpdateInfoContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -24,7 +24,7 @@
* Container which collects updated object info.
*
* @package Zend_Pdf
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Pdf_UpdateInfoContainer
--- a/web/lib/Zend/ProgressBar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar.php Thu Mar 21 19:50:53 2013 +0100
@@ -12,9 +12,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProgressBar.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProgressBar.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -22,7 +22,7 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar
--- a/web/lib/Zend/ProgressBar/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Adapter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Adapter.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_ProgressBar_Adapter
--- a/web/lib/Zend/ProgressBar/Adapter/Console.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Adapter/Console.php Thu Mar 21 19:50:53 2013 +0100
@@ -12,9 +12,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Console.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Console.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_ProgressBar
* @uses Zend_ProgressBar_Adapter_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar_Adapter_Console extends Zend_ProgressBar_Adapter
--- a/web/lib/Zend/ProgressBar/Adapter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Adapter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_ProgressBar
* @uses Zend_ProgressBar_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar_Adapter_Exception extends Zend_ProgressBar_Exception
--- a/web/lib/Zend/ProgressBar/Adapter/JsPull.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Adapter/JsPull.php Thu Mar 21 19:50:53 2013 +0100
@@ -12,9 +12,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: JsPull.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: JsPull.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_ProgressBar
* @uses Zend_ProgressBar_Adapter_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar_Adapter_JsPull extends Zend_ProgressBar_Adapter
--- a/web/lib/Zend/ProgressBar/Adapter/JsPush.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Adapter/JsPush.php Thu Mar 21 19:50:53 2013 +0100
@@ -12,9 +12,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: JsPush.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: JsPush.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_ProgressBar
* @uses Zend_ProgressBar_Adapter_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar_Adapter_JsPush extends Zend_ProgressBar_Adapter
--- a/web/lib/Zend/ProgressBar/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/ProgressBar/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_ProgressBar
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_ProgressBar
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_ProgressBar_Exception extends Zend_Exception
--- a/web/lib/Zend/Queue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Queue
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Queue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Queue.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Queue
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue implements Countable
--- a/web/lib/Zend/Queue/Adapter/Activemq.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Activemq.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Activemq.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Activemq.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Activemq extends Zend_Queue_Adapter_AdapterAbstract
@@ -56,6 +56,11 @@
private $_client = null;
/**
+ * @var array
+ */
+ private $_subscribed = array();
+
+ /**
* Constructor
*
* @param array|Zend_Config $config An array having configuration data
@@ -177,6 +182,33 @@
}
/**
+ * Checks if the client is subscribed to the queue
+ *
+ * @param Zend_Queue $queue
+ * @return boolean
+ */
+ protected function _isSubscribed(Zend_Queue $queue)
+ {
+ return isset($this->_subscribed[$queue->getName()]);
+ }
+
+ /**
+ * Subscribes the client to the queue.
+ *
+ * @param Zend_Queue $queue
+ * @return void
+ */
+ protected function _subscribe(Zend_Queue $queue)
+ {
+ $frame = $this->_client->createFrame();
+ $frame->setCommand('SUBSCRIBE');
+ $frame->setHeader('destination', $queue->getName());
+ $frame->setHeader('ack', 'client');
+ $this->_client->send($frame);
+ $this->_subscribed[$queue->getName()] = true;
+ }
+
+ /**
* Return the first element in the queue
*
* @param integer $maxMessages
@@ -200,11 +232,9 @@
$data = array();
// signal that we are reading
- $frame = $this->_client->createFrame();
- $frame->setCommand('SUBSCRIBE');
- $frame->setHeader('destination', $queue->getName());
- $frame->setHeader('ack','client');
- $this->_client->send($frame);
+ if (!$this->_isSubscribed($queue)){
+ $this->_subscribe($queue);
+ }
if ($maxMessages > 0) {
if ($this->_client->canRead()) {
--- a/web/lib/Zend/Queue/Adapter/AdapterAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/AdapterAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AdapterAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Queue_Adapter_AdapterAbstract
--- a/web/lib/Zend/Queue/Adapter/AdapterInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/AdapterInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AdapterInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Queue_Adapter_AdapterInterface
--- a/web/lib/Zend/Queue/Adapter/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Array extends Zend_Queue_Adapter_AdapterAbstract
@@ -344,7 +344,7 @@
* sets the underlying _data array
* $queue->getAdapter()->setData($data);
*
- * @param $data array
+ * @param array $data
* @return $this;
*/
public function setData($data)
--- a/web/lib/Zend/Queue/Adapter/Db.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Db.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Db.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Db.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -51,7 +51,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Db extends Zend_Queue_Adapter_AdapterAbstract
--- a/web/lib/Zend/Queue/Adapter/Db/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Db/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Db_Message extends Zend_Db_Table_Abstract
--- a/web/lib/Zend/Queue/Adapter/Db/Queue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Db/Queue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Queue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Queue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Db_Queue extends Zend_Db_Table_Abstract
--- a/web/lib/Zend/Queue/Adapter/Db/postgresql.sql Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Db/postgresql.sql Thu Mar 21 19:50:53 2013 +0100
@@ -38,7 +38,7 @@
handle character(32),
body character varying(8192) NOT NULL,
md5 character(32) NOT NULL,
- timeout real,
+ timeout double precision,
created integer,
CONSTRAINT message_pk PRIMARY KEY (message_id),
CONSTRAINT message_ibfk_1 FOREIGN KEY (queue_id)
@@ -46,4 +46,4 @@
ON UPDATE CASCADE ON DELETE CASCADE
)
WITH (OIDS=FALSE);
-ALTER TABLE message OWNER TO queue;
\ No newline at end of file
+ALTER TABLE message OWNER TO queue;
--- a/web/lib/Zend/Queue/Adapter/Memcacheq.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Memcacheq.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Memcacheq.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Memcacheq.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Memcacheq extends Zend_Queue_Adapter_AdapterAbstract
--- a/web/lib/Zend/Queue/Adapter/Null.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/Null.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Null.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Null.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_Null extends Zend_Queue_Adapter_AdapterAbstract
--- a/web/lib/Zend/Queue/Adapter/PlatformJobQueue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Adapter/PlatformJobQueue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlatformJobQueue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlatformJobQueue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Adapter_PlatformJobQueue extends Zend_Queue_Adapter_AdapterAbstract
--- a/web/lib/Zend/Queue/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Queue
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Queue
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Exception extends Zend_Exception
--- a/web/lib/Zend/Queue/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Message
--- a/web/lib/Zend/Queue/Message/Iterator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Message/Iterator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Iterator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Iterator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Message_Iterator implements Iterator, Countable
--- a/web/lib/Zend/Queue/Message/PlatformJob.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Message/PlatformJob.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PlatformJob.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PlatformJob.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Message
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Message_PlatformJob extends Zend_Queue_Message
--- a/web/lib/Zend/Queue/Stomp/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Stomp/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Stomp_Client
--- a/web/lib/Zend/Queue/Stomp/Client/Connection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Stomp/Client/Connection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Connection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Connection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Stomp_Client_Connection
--- a/web/lib/Zend/Queue/Stomp/Client/ConnectionInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Stomp/Client/ConnectionInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConnectionInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ConnectionInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Queue_Stomp_Client_ConnectionInterface
--- a/web/lib/Zend/Queue/Stomp/Frame.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Stomp/Frame.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Frame.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Frame.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Queue_Stomp_Frame
--- a/web/lib/Zend/Queue/Stomp/FrameInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Queue/Stomp/FrameInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FrameInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FrameInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Queue
* @subpackage Stomp
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Queue_Stomp_FrameInterface
--- a/web/lib/Zend/Reflection/Class.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Class.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Class.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Class extends ReflectionClass
--- a/web/lib/Zend/Reflection/Docblock.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Docblock.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Docblock.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Docblock.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Docblock implements Reflector
--- a/web/lib/Zend/Reflection/Docblock/Tag.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Docblock/Tag.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tag.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tag.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Loader */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Docblock_Tag implements Reflector
--- a/web/lib/Zend/Reflection/Docblock/Tag/Param.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Docblock/Tag/Param.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Param.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Param.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Reflection_Docblock_Tag */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Docblock_Tag_Param extends Zend_Reflection_Docblock_Tag
@@ -49,7 +49,7 @@
{
$matches = array();
- if (!preg_match('#^@(\w+)\s+([\w|\\\]+)(?:\s+(\$\S+))?(?:\s+(.*))?#s', $tagDocblockLine, $matches)) {
+ if (!preg_match('#^@(\w+)\s+([^\s]+)(?:\s+(\$\S+))?(?:\s+(.*))?#s', $tagDocblockLine, $matches)) {
require_once 'Zend/Reflection/Exception.php';
throw new Zend_Reflection_Exception('Provided docblock line is does not contain a valid tag');
}
--- a/web/lib/Zend/Reflection/Docblock/Tag/Return.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Docblock/Tag/Return.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Return.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Return.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Reflection_Docblock_Tag */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Docblock_Tag_Return extends Zend_Reflection_Docblock_Tag
@@ -39,11 +39,11 @@
* Constructor
*
* @param string $tagDocblockLine
- * @return void
+ * @return \Zend_Reflection_Docblock_Tag_Return
*/
public function __construct($tagDocblockLine)
{
- if (!preg_match('#^@(\w+)\s+([\w|\\\]+)(?:\s+(.*))?#', $tagDocblockLine, $matches)) {
+ if (!preg_match('#^@(\w+)\s+([^\s]+)(?:\s+(.*))?#', $tagDocblockLine, $matches)) {
require_once 'Zend/Reflection/Exception.php';
throw new Zend_Reflection_Exception('Provided docblock line is does not contain a valid tag');
}
--- a/web/lib/Zend/Reflection/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Exception extends Zend_Exception
--- a/web/lib/Zend/Reflection/Extension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Extension.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extension.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Extension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Extension extends ReflectionExtension
--- a/web/lib/Zend/Reflection/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20904 2010-02-04 16:18:18Z matthew $
+ * @version $Id: File.php 24803 2012-05-14 12:23:46Z adamlundrigan $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_File implements Reflector
@@ -86,8 +86,17 @@
public function __construct($file)
{
$fileName = $file;
-
- if (($fileRealpath = realpath($fileName)) === false) {
+
+ $fileRealpath = realpath($fileName);
+ if ($fileRealpath) {
+ // realpath() doesn't return false if Suhosin is included
+ // see http://uk3.php.net/manual/en/function.realpath.php#82770
+ if (!file_exists($fileRealpath)) {
+ $fileRealpath = false;
+ }
+ }
+
+ if ($fileRealpath === false) {
$fileRealpath = self::findRealpathInIncludePath($file);
}
@@ -300,10 +309,11 @@
$contents = $this->_contents;
$tokens = token_get_all($contents);
- $functionTrapped = false;
- $classTrapped = false;
- $requireTrapped = false;
- $openBraces = 0;
+ $functionTrapped = false;
+ $classTrapped = false;
+ $requireTrapped = false;
+ $embeddedVariableTrapped = false;
+ $openBraces = 0;
$this->_checkFileDocBlock($tokens);
@@ -330,13 +340,23 @@
if ($token == '{') {
$openBraces++;
} else if ($token == '}') {
- $openBraces--;
+ if ( $embeddedVariableTrapped ) {
+ $embeddedVariableTrapped = false;
+ } else {
+ $openBraces--;
+ }
}
continue;
}
switch ($type) {
+ case T_STRING_VARNAME:
+ case T_DOLLAR_OPEN_CURLY_BRACES:
+ case T_CURLY_OPEN:
+ $embeddedVariableTrapped = true;
+ continue;
+
// Name of something
case T_STRING:
if ($functionTrapped) {
--- a/web/lib/Zend/Reflection/Function.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Function.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Function.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Function.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Function extends ReflectionFunction
--- a/web/lib/Zend/Reflection/Method.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Method.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Method.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Method.php 24870 2012-06-02 02:15:12Z adamlundrigan $
*/
/**
@@ -37,7 +37,7 @@
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Method extends ReflectionMethod
@@ -145,24 +145,43 @@
{
$lines = array_slice(
file($this->getDeclaringClass()->getFileName(), FILE_IGNORE_NEW_LINES),
- $this->getStartLine(),
- ($this->getEndLine() - $this->getStartLine()),
+ $this->getStartLine()-1,
+ ($this->getEndLine() - $this->getStartLine()) + 1,
true
);
- $firstLine = array_shift($lines);
+ // Strip off lines until we come to a closing bracket
+ do {
+ if (count($lines) == 0) break;
+ $firstLine = array_shift($lines);
+ } while (strpos($firstLine, ')') === false);
- if (trim($firstLine) !== '{') {
- array_unshift($lines, $firstLine);
+ // If the opening brace isn't on the same line as method
+ // signature, then we should pop off more lines until we find it
+ if (strpos($firstLine,'{') === false) {
+ do {
+ if (count($lines) == 0) break;
+ $firstLine = array_shift($lines);
+ } while (strpos($firstLine, '{') === false);
+ }
+
+ // If there are more characters on the line after the opening brace,
+ // push them back onto the lines stack as they are part of the body
+ $restOfFirstLine = trim(substr($firstLine, strpos($firstLine, '{')+1));
+ if (!empty($restOfFirstLine)) {
+ array_unshift($lines, $restOfFirstLine);
}
$lastLine = array_pop($lines);
- if (trim($lastLine) !== '}') {
- array_push($lines, $lastLine);
+ // If there are more characters on the line before the closing brace,
+ // push them back onto the lines stack as they are part of the body
+ $restOfLastLine = trim(substr($lastLine, 0, strrpos($lastLine, '}')-1));
+ if (!empty($restOfLastLine)) {
+ array_push($lines, $restOfLastLine);
}
// just in case we had code on the bracket lines
- return rtrim(ltrim(implode("\n", $lines), '{'), '}');
+ return implode("\n", $lines);
}
}
--- a/web/lib/Zend/Reflection/Parameter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Parameter.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parameter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Parameter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Parameter extends ReflectionParameter
--- a/web/lib/Zend/Reflection/Property.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Reflection/Property.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,16 +14,16 @@
*
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Property.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Property.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @todo implement line numbers
* @category Zend
* @package Zend_Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Reflection_Property extends ReflectionProperty
--- a/web/lib/Zend/Registry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Registry.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Registry
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Registry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Registry
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Registry extends ArrayObject
--- a/web/lib/Zend/Rest/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Client extends Zend_Service_Abstract
@@ -50,6 +50,13 @@
* @var Zend_Uri_Http
*/
protected $_uri = null;
+
+ /**
+ * Flag indicating the Zend_Http_Client is fresh and needs no reset.
+ * Must be set explicitly if you want to keep preset parameters.
+ * @var bool true if you do not want a reset. Default false.
+ */
+ protected $_noReset = false;
/**
* Constructor
@@ -98,7 +105,7 @@
* @throws Zend_Rest_Client_Exception
* @return void
*/
- final private function _prepareRest($path)
+ private function _prepareRest($path)
{
// Get the URI object and configure it
if (!$this->_uri instanceof Zend_Uri_Http) {
@@ -118,7 +125,29 @@
* Get the HTTP client and configure it for the endpoint URI. Do this each time
* because the Zend_Http_Client instance is shared among all Zend_Service_Abstract subclasses.
*/
- self::getHttpClient()->resetParameters()->setUri($this->_uri);
+ if ($this->_noReset) {
+ // if $_noReset we do not want to reset on this request,
+ // but we do on any subsequent request
+ $this->_noReset = false;
+ } else {
+ self::getHttpClient()->resetParameters();
+ }
+
+ self::getHttpClient()->setUri($this->_uri);
+ }
+
+ /**
+ * Tells Zend_Rest_Client not to reset all parameters on it's
+ * Zend_Http_Client. If you want no reset, this must be called explicitly
+ * before every request for which you do not want to reset the parameters.
+ * Parameters will accumulate between requests, but as soon as you do not
+ * call this function prior to any request, all preset parameters will be reset
+ * as by default.
+ * @param boolean $bool
+ */
+ public function setNoReset($bool = true)
+ {
+ $this->_noReset = $bool;
}
/**
@@ -129,7 +158,7 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- final public function restGet($path, array $query = null)
+ public function restGet($path, array $query = null)
{
$this->_prepareRest($path);
$client = self::getHttpClient();
@@ -167,7 +196,7 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- final public function restPost($path, $data = null)
+ public function restPost($path, $data = null)
{
$this->_prepareRest($path);
return $this->_performPost('POST', $data);
@@ -181,7 +210,7 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- final public function restPut($path, $data = null)
+ public function restPut($path, $data = null)
{
$this->_prepareRest($path);
return $this->_performPost('PUT', $data);
@@ -194,10 +223,10 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- final public function restDelete($path)
+ public function restDelete($path, $data = null)
{
$this->_prepareRest($path);
- return self::getHttpClient()->request('DELETE');
+ return $this->_performPost('DELETE', $data);
}
/**
--- a/web/lib/Zend/Rest/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
*
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Client_Exception extends Zend_Rest_Exception
--- a/web/lib/Zend/Rest/Client/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Client/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Client_Result implements IteratorAggregate {
@@ -180,7 +180,8 @@
public function getStatus()
{
$status = $this->_sxml->xpath('//status/text()');
-
+ if ( !isset($status[0]) ) return false;
+
$status = strtolower($status[0]);
if (ctype_alpha($status) && $status == 'success') {
--- a/web/lib/Zend/Rest/Client/Result/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Client/Result/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @package Zend_Rest
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Client_Result_Exception extends Zend_Rest_Client_Exception{}
--- a/web/lib/Zend/Rest/Controller.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Controller.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Rest
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Controller.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Controller.php 25024 2012-07-30 15:08:15Z rob $
*/
/** Zend_Controller_Action */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Rest
* @see Zend_Rest_Route
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Rest_Controller extends Zend_Controller_Action
@@ -48,6 +48,13 @@
abstract public function getAction();
/**
+ * The head action handles HEAD requests and receives an 'id' parameter; it
+ * should respond with the server resource state of the resource identified
+ * by the 'id' value.
+ */
+ abstract public function headAction();
+
+ /**
* The post action handles POST requests; it should accept and digest a
* POSTed resource representation and persist the resource state.
*/
@@ -67,4 +74,4 @@
*/
abstract public function deleteAction();
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/Rest/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Rest
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Rest
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Exception extends Zend_Exception
--- a/web/lib/Zend/Rest/Route.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Route.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Rest
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Route.php 23421 2010-11-21 10:03:53Z wilmoore $
+ * @version $Id: Route.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -46,7 +46,7 @@
*
* @category Zend
* @package Zend_Rest
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Route extends Zend_Controller_Router_Route_Module
@@ -98,13 +98,13 @@
$defaultsArray = array();
$restfulConfigArray = array();
foreach ($config as $key => $values) {
- if ($key == 'type') {
- // do nothing
- } elseif ($key == 'defaults') {
- $defaultsArray = $values->toArray();
- } else {
- $restfulConfigArray[$key] = explode(',', $values);
- }
+ if ($key == 'type') {
+ // do nothing
+ } elseif ($key == 'defaults') {
+ $defaultsArray = $values->toArray();
+ } else {
+ $restfulConfigArray[$key] = explode(',', $values);
+ }
}
$instance = new self($frontController, $defaultsArray, $restfulConfigArray);
return $instance;
@@ -161,10 +161,10 @@
return false;
}
} elseif ($this->_checkRestfulController($moduleName, $controllerName)) {
- $values[$this->_controllerKey] = $controllerName;
- $values[$this->_actionKey] = 'get';
+ $values[$this->_controllerKey] = $controllerName;
+ $values[$this->_actionKey] = 'get';
} else {
- return false;
+ return false;
}
//Store path count for method mapping
@@ -176,7 +176,7 @@
$specialGetTarget = array_shift($path);
} elseif ($pathElementCount && $path[$pathElementCount-1] == 'edit') {
$specialGetTarget = 'edit';
- $params['id'] = $path[$pathElementCount-2];
+ $params['id'] = urldecode($path[$pathElementCount-2]);
} elseif ($pathElementCount == 1) {
$params['id'] = urldecode(array_shift($path));
} elseif ($pathElementCount == 0 && !isset($params['id'])) {
@@ -187,8 +187,8 @@
if ($numSegs = count($path)) {
for ($i = 0; $i < $numSegs; $i = $i + 2) {
$key = urldecode($path[$i]);
- $val = isset($path[$i + 1]) ? urldecode($path[$i + 1]) : null;
- $params[$key] = $val;
+ $val = isset($path[$i + 1]) ? $path[$i + 1] : null;
+ $params[$key] = urldecode($val);
}
}
--- a/web/lib/Zend/Rest/Server.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Server.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Rest
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Server.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Server.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Rest
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Server implements Zend_Server_Interface
--- a/web/lib/Zend/Rest/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Rest/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Rest
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @package Zend_Rest
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Rest_Server_Exception extends Zend_Rest_Exception
--- a/web/lib/Zend/Search/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Exception extends Zend_Exception
--- a/web/lib/Zend/Search/Lucene.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Lucene.php 22987 2010-09-21 10:39:53Z alexander $
+ * @version $Id: Lucene.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -89,7 +89,7 @@
/**
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene implements Zend_Search_Lucene_Interface
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Analyzer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Analyzer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -63,7 +63,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,17 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Common.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Common.php 24847 2012-05-31 19:19:28Z rob $
*/
/** Define constant used to provide correct file processing order */
/** @todo Section should be removed with ZF 2.0 release as obsolete */
-define('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED', true);
+if (!defined('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED')) {
+ define('ZEND_SEARCH_LUCENE_COMMON_ANALYZER_PROCESSED', true);
+}
/** Zend_Search_Lucene_Analysis_Analyzer */
@@ -46,7 +48,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Analysis_Analyzer_Common extends Zend_Search_Lucene_Analysis_Analyzer
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Text.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Text.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text/CaseInsensitive.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Text/CaseInsensitive.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CaseInsensitive.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CaseInsensitive.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TextNum.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TextNum.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/TextNum/CaseInsensitive.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CaseInsensitive.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CaseInsensitive.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Utf8.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Utf8.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8/CaseInsensitive.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8/CaseInsensitive.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CaseInsensitive.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CaseInsensitive.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Utf8Num.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Utf8Num.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num/CaseInsensitive.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num/CaseInsensitive.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CaseInsensitive.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CaseInsensitive.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/Token.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/Token.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Token.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Token.php 24832 2012-05-30 13:14:44Z adamlundrigan $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Analysis_Token
@@ -123,6 +123,18 @@
{
return $this->_termText;
}
+
+ /**
+ * Sets the Token's term text.
+ *
+ * @param string $text
+ * @return this
+ */
+ public function setTermText($text)
+ {
+ $this->_termText = $text;
+ return $this;
+ }
/**
* Returns this Token's starting offset, the position of the first character
--- a/web/lib/Zend/Search/Lucene/Analysis/TokenFilter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/TokenFilter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TokenFilter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TokenFilter.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Analysis_TokenFilter
--- a/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/LowerCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/LowerCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LowerCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LowerCase.php 24832 2012-05-30 13:14:44Z adamlundrigan $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -45,14 +45,8 @@
*/
public function normalize(Zend_Search_Lucene_Analysis_Token $srcToken)
{
- $newToken = new Zend_Search_Lucene_Analysis_Token(
- strtolower( $srcToken->getTermText() ),
- $srcToken->getStartOffset(),
- $srcToken->getEndOffset());
-
- $newToken->setPositionIncrement($srcToken->getPositionIncrement());
-
- return $newToken;
+ $srcToken->setTermText(strtolower($srcToken->getTermText()));
+ return $srcToken;
}
}
--- a/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/LowerCaseUtf8.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/LowerCaseUtf8.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LowerCaseUtf8.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LowerCaseUtf8.php 24832 2012-05-30 13:14:44Z adamlundrigan $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -57,14 +57,8 @@
*/
public function normalize(Zend_Search_Lucene_Analysis_Token $srcToken)
{
- $newToken = new Zend_Search_Lucene_Analysis_Token(
- mb_strtolower($srcToken->getTermText(), 'UTF-8'),
- $srcToken->getStartOffset(),
- $srcToken->getEndOffset());
-
- $newToken->setPositionIncrement($srcToken->getPositionIncrement());
-
- return $newToken;
+ $srcToken->setTermText(mb_strtolower($srcToken->getTermText(), 'UTF-8'));
+ return $srcToken;
}
}
--- a/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/ShortWords.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/ShortWords.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ShortWords.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ShortWords.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Analysis/TokenFilter/StopWords.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StopWords.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StopWords.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Analysis_TokenFilter */
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Analysis
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Search/Lucene/Document.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Document.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Document.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document
@@ -57,7 +57,7 @@
* Proxy method for getFieldValue(), provides more convenient access to
* the string value of a field.
*
- * @param $offset
+ * @param string $offset
* @return string
*/
public function __get($offset)
--- a/web/lib/Zend/Search/Lucene/Document/Docx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/Docx.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Docx.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Docx.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Document_OpenXml */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Docx extends Zend_Search_Lucene_Document_OpenXml {
--- a/web/lib/Zend/Search/Lucene/Document/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Exception extends Zend_Search_Lucene_Exception
--- a/web/lib/Zend/Search/Lucene/Document/Html.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/Html.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Html.php 23392 2010-11-19 09:53:16Z ramon $
+ * @version $Id: Html.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Html extends Zend_Search_Lucene_Document
@@ -438,7 +438,7 @@
if (!is_callable($callback)) {
require_once 'Zend/Search/Lucene/Exception.php';
- throw new Zend_Search_Lucene_Exception('$viewHelper parameter mast be a View Helper name, View Helper object or callback.');
+ throw new Zend_Search_Lucene_Exception('$viewHelper parameter must be a View Helper name, View Helper object or callback.');
}
$xpath = new DOMXPath($this->_doc);
--- a/web/lib/Zend/Search/Lucene/Document/OpenXml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/OpenXml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OpenXml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OpenXml.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Document_OpenXml extends Zend_Search_Lucene_Document
--- a/web/lib/Zend/Search/Lucene/Document/Pptx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/Pptx.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pptx.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pptx.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Pptx extends Zend_Search_Lucene_Document_OpenXml
--- a/web/lib/Zend/Search/Lucene/Document/Xlsx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Document/Xlsx.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xlsx.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Xlsx.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Document_Xlsx extends Zend_Search_Lucene_Document_OpenXml
--- a/web/lib/Zend/Search/Lucene/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Exception extends Zend_Search_Exception
--- a/web/lib/Zend/Search/Lucene/FSM.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/FSM.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FSM.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FSM.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_FSMAction */
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_FSM
--- a/web/lib/Zend/Search/Lucene/FSMAction.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/FSMAction.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FSMAction.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FSMAction.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_FSMAction
--- a/web/lib/Zend/Search/Lucene/Field.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Field.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Field.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Field.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Document
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Field
--- a/web/lib/Zend/Search/Lucene/Index/DictionaryLoader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/DictionaryLoader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DictionaryLoader.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DictionaryLoader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_DictionaryLoader
--- a/web/lib/Zend/Search/Lucene/Index/DocsFilter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/DocsFilter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocsFilter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocsFilter.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_DocsFilter
--- a/web/lib/Zend/Search/Lucene/Index/FieldInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/FieldInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FieldInfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FieldInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_FieldInfo
--- a/web/lib/Zend/Search/Lucene/Index/SegmentInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/SegmentInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SegmentInfo.php 22987 2010-09-21 10:39:53Z alexander $
+ * @version $Id: SegmentInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Index_TermsStream_Interface */
@@ -40,7 +40,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_SegmentInfo implements Zend_Search_Lucene_Index_TermsStream_Interface
--- a/web/lib/Zend/Search/Lucene/Index/SegmentMerger.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/SegmentMerger.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SegmentMerger.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SegmentMerger.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Index_SegmentInfo */
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_SegmentMerger
--- a/web/lib/Zend/Search/Lucene/Index/SegmentWriter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/SegmentWriter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SegmentWriter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SegmentWriter.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Index_SegmentWriter
--- a/web/lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/SegmentWriter/DocumentWriter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocumentWriter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocumentWriter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Index_SegmentWriter */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_SegmentWriter_DocumentWriter extends Zend_Search_Lucene_Index_SegmentWriter
--- a/web/lib/Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/SegmentWriter/StreamWriter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StreamWriter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StreamWriter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Index_SegmentWriter */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_SegmentWriter_StreamWriter extends Zend_Search_Lucene_Index_SegmentWriter
--- a/web/lib/Zend/Search/Lucene/Index/Term.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/Term.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Term.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Term.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_Term
--- a/web/lib/Zend/Search/Lucene/Index/TermInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/TermInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TermInfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TermInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_TermInfo
--- a/web/lib/Zend/Search/Lucene/Index/TermsPriorityQueue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/TermsPriorityQueue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TermsPriorityQueue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TermsPriorityQueue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_PriorityQueue */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_TermsPriorityQueue extends Zend_Search_Lucene_PriorityQueue
--- a/web/lib/Zend/Search/Lucene/Index/TermsStream/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/TermsStream/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 22987 2010-09-21 10:39:53Z alexander $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Search_Lucene_Index_TermsStream_Interface
--- a/web/lib/Zend/Search/Lucene/Index/Writer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Index/Writer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Writer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Writer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Index_Writer
--- a/web/lib/Zend/Search/Lucene/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
/**
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Search_Lucene_Interface extends Zend_Search_Lucene_Index_TermsStream_Interface
--- a/web/lib/Zend/Search/Lucene/LockManager.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/LockManager.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LockManager.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LockManager.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Storage_Directory */
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_LockManager
--- a/web/lib/Zend/Search/Lucene/MultiSearcher.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/MultiSearcher.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MultiSearcher.php 22967 2010-09-18 18:53:58Z ramon $
+ * @version $Id: MultiSearcher.php 24862 2012-06-02 00:04:53Z adamlundrigan $
*/
@@ -24,14 +24,20 @@
require_once 'Zend/Search/Lucene/Interface.php';
/**
+ * Import Zend_Search_Lucene_Interface_MultiSearcher for BC (see ZF-12067)
+ * @see Zend_Search_Lucene_Interface_MultiSearcher
+ */
+require_once 'Zend/Search/Lucene/Interface/MultiSearcher.php';
+
+/**
* Multisearcher allows to search through several independent indexes.
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Search_Lucene_Interface_MultiSearcher implements Zend_Search_Lucene_Interface
+class Zend_Search_Lucene_MultiSearcher implements Zend_Search_Lucene_Interface
{
/**
* List of indices for searching.
@@ -971,3 +977,16 @@
// Do nothing, since it's never referenced by indices
}
}
+
+/**
+ * This class is provided for backwards-compatibility (See ZF-12067)
+ *
+ * @category Zend
+ * @package Zend_Search_Lucene
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Search_Lucene_Interface_MultiSearcher
+ extends Zend_Search_Lucene_MultiSearcher
+{
+}
--- a/web/lib/Zend/Search/Lucene/PriorityQueue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/PriorityQueue.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PriorityQueue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PriorityQueue.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_PriorityQueue
--- a/web/lib/Zend/Search/Lucene/Proxy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Proxy.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Proxy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Proxy.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Interface */
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_Search_Lucene
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Proxy implements Zend_Search_Lucene_Interface
--- a/web/lib/Zend/Search/Lucene/Search/BooleanExpressionRecognizer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/BooleanExpressionRecognizer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BooleanExpressionRecognizer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BooleanExpressionRecognizer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_BooleanExpressionRecognizer extends Zend_Search_Lucene_FSM
--- a/web/lib/Zend/Search/Lucene/Search/Highlighter/Default.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Highlighter/Default.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Default.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Search_Lucene_Search_Highlighter_Interface */
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Highlighter_Default implements Zend_Search_Lucene_Search_Highlighter_Interface
--- a/web/lib/Zend/Search/Lucene/Search/Highlighter/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Highlighter/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Search_Lucene_Search_Highlighter_Interface
--- a/web/lib/Zend/Search/Lucene/Search/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Boolean.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Boolean.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Boolean.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Boolean.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Boolean extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Empty.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Empty.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Empty.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Empty.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Empty extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Fuzzy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Fuzzy.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fuzzy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Fuzzy.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Fuzzy extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Insignificant.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Insignificant.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Insignificant.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Insignificant.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Insignificant extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/MultiTerm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/MultiTerm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MultiTerm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MultiTerm.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_MultiTerm extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Phrase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Phrase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phrase.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Phrase extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Preprocessing.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Preprocessing.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @package Zend_Search_Lucene
* @subpackage Search
* @internal
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Search_Query_Preprocessing extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Fuzzy.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fuzzy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Fuzzy.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @package Zend_Search_Lucene
* @subpackage Search
* @internal
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Preprocessing_Fuzzy extends Zend_Search_Lucene_Search_Query_Preprocessing
--- a/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Phrase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Phrase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phrase.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @package Zend_Search_Lucene
* @subpackage Search
* @internal
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Preprocessing_Phrase extends Zend_Search_Lucene_Search_Query_Preprocessing
--- a/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Term.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Preprocessing/Term.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Term.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Term.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @package Zend_Search_Lucene
* @subpackage Search
* @internal
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Preprocessing_Term extends Zend_Search_Lucene_Search_Query_Preprocessing
--- a/web/lib/Zend/Search/Lucene/Search/Query/Range.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Range.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Range.php 22987 2010-09-21 10:39:53Z alexander $
+ * @version $Id: Range.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Range extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Term.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Term.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Term.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Term.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Term extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/Query/Wildcard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Query/Wildcard.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Wildcard.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Wildcard.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Query_Wildcard extends Zend_Search_Lucene_Search_Query
--- a/web/lib/Zend/Search/Lucene/Search/QueryEntry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryEntry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryEntry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryEntry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Search_QueryEntry
--- a/web/lib/Zend/Search/Lucene/Search/QueryEntry/Phrase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryEntry/Phrase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phrase.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Search_QueryEntry */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryEntry_Phrase extends Zend_Search_Lucene_Search_QueryEntry
--- a/web/lib/Zend/Search/Lucene/Search/QueryEntry/Subquery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryEntry/Subquery.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Subquery.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Subquery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Search_QueryEntry */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryEntry_Subquery extends Zend_Search_Lucene_Search_QueryEntry
--- a/web/lib/Zend/Search/Lucene/Search/QueryEntry/Term.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryEntry/Term.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Term.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Term.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Search_QueryEntry */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryEntry_Term extends Zend_Search_Lucene_Search_QueryEntry
--- a/web/lib/Zend/Search/Lucene/Search/QueryHit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryHit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryHit.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryHit.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryHit
--- a/web/lib/Zend/Search/Lucene/Search/QueryLexer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryLexer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryLexer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryLexer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_FSM */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryLexer extends Zend_Search_Lucene_FSM
--- a/web/lib/Zend/Search/Lucene/Search/QueryParser.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryParser.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryParser.php 21637 2010-03-24 17:52:04Z alexander $
+ * @version $Id: QueryParser.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryParser extends Zend_Search_Lucene_FSM
--- a/web/lib/Zend/Search/Lucene/Search/QueryParserContext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryParserContext.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryParserContext.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryParserContext.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Search_QueryToken */
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryParserContext
--- a/web/lib/Zend/Search/Lucene/Search/QueryParserException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryParserException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryParserException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryParserException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* Special exception type, which may be used to intercept wrong user input
--- a/web/lib/Zend/Search/Lucene/Search/QueryToken.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/QueryToken.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryToken.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryToken.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_QueryToken
--- a/web/lib/Zend/Search/Lucene/Search/Similarity.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Similarity.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Similarity.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Similarity.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Search_Similarity
--- a/web/lib/Zend/Search/Lucene/Search/Similarity/Default.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Similarity/Default.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Default.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Similarity_Default extends Zend_Search_Lucene_Search_Similarity
--- a/web/lib/Zend/Search/Lucene/Search/Weight.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Weight.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Weight.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Search_Weight
@@ -78,7 +78,7 @@
/**
* Assigns the query normalization factor to this.
*
- * @param $norm
+ * @param float $norm
*/
abstract public function normalize($norm);
}
--- a/web/lib/Zend/Search/Lucene/Search/Weight/Boolean.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight/Boolean.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Boolean.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Boolean.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Weight_Boolean extends Zend_Search_Lucene_Search_Weight
--- a/web/lib/Zend/Search/Lucene/Search/Weight/Empty.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight/Empty.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Empty.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Empty.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Weight_Empty extends Zend_Search_Lucene_Search_Weight
--- a/web/lib/Zend/Search/Lucene/Search/Weight/MultiTerm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight/MultiTerm.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MultiTerm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MultiTerm.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Weight_MultiTerm extends Zend_Search_Lucene_Search_Weight
--- a/web/lib/Zend/Search/Lucene/Search/Weight/Phrase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight/Phrase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phrase.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Weight_Phrase extends Zend_Search_Lucene_Search_Weight
--- a/web/lib/Zend/Search/Lucene/Search/Weight/Term.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Search/Weight/Term.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Term.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Term.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Search
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Search_Weight_Term extends Zend_Search_Lucene_Search_Weight
--- a/web/lib/Zend/Search/Lucene/Storage/Directory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Storage/Directory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Directory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Directory.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Storage_Directory
--- a/web/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Storage/Directory/Filesystem.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Storage_Directory_Filesystem extends Zend_Search_Lucene_Storage_Directory
@@ -206,7 +206,8 @@
unset($this->_fileHandlers[$filename]);
global $php_errormsg;
- $trackErrors = ini_get('track_errors'); ini_set('track_errors', '1');
+ $trackErrors = ini_get('track_errors');
+ ini_set('track_errors', '1');
if (!@unlink($this->_dirPath . '/' . $filename)) {
ini_set('track_errors', $trackErrors);
require_once 'Zend/Search/Lucene/Exception.php';
--- a/web/lib/Zend/Search/Lucene/Storage/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Storage/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Search_Lucene_Storage_File
--- a/web/lib/Zend/Search/Lucene/Storage/File/Filesystem.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Storage/File/Filesystem.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Filesystem.php 23395 2010-11-19 15:30:47Z alexander $
+ * @version $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Storage_File */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Storage_File_Filesystem extends Zend_Search_Lucene_Storage_File
--- a/web/lib/Zend/Search/Lucene/Storage/File/Memory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/Storage/File/Memory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Memory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Memory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Storage_File */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_Storage_File_Memory extends Zend_Search_Lucene_Storage_File
--- a/web/lib/Zend/Search/Lucene/TermStreamsPriorityQueue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Search/Lucene/TermStreamsPriorityQueue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TermStreamsPriorityQueue.php 22987 2010-09-21 10:39:53Z alexander $
+ * @version $Id: TermStreamsPriorityQueue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Search_Lucene_Index_TermsStream_Interface */
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Search_Lucene
* @subpackage Index
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Search_Lucene_TermStreamsPriorityQueue implements Zend_Search_Lucene_Index_TermsStream_Interface
--- a/web/lib/Zend/Serializer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Serializer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Serializer.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Serializer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Loader_PluginLoader */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Serializer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer
@@ -51,7 +51,7 @@
* @param array |Zend_Config $opts Serializer options
* @return Zend_Serializer_Adapter_AdapterInterface
*/
- public static function factory($adapterName, $opts = array())
+ public static function factory($adapterName, $opts = array())
{
if ($adapterName instanceof Zend_Serializer_Adapter_AdapterInterface) {
return $adapterName; // $adapterName is already an adapter object
@@ -80,7 +80,7 @@
*
* @return Zend_Loader_PluginLoader
*/
- public static function getAdapterLoader()
+ public static function getAdapterLoader()
{
if (self::$_adapterLoader === null) {
self::$_adapterLoader = self::_getDefaultAdapterLoader();
@@ -94,11 +94,11 @@
* @param Zend_Loader_PluginLoader $pluginLoader
* @return void
*/
- public static function setAdapterLoader(Zend_Loader_PluginLoader $pluginLoader)
+ public static function setAdapterLoader(Zend_Loader_PluginLoader $pluginLoader)
{
self::$_adapterLoader = $pluginLoader;
}
-
+
/**
* Resets the internal adapter plugin loader
*
@@ -109,7 +109,7 @@
self::$_adapterLoader = self::_getDefaultAdapterLoader();
return self::$_adapterLoader;
}
-
+
/**
* Returns a default adapter plugin loader
*
@@ -128,7 +128,7 @@
* @param string|Zend_Serializer_Adapter_AdapterInterface $adapter
* @param array|Zend_Config $options
*/
- public static function setDefaultAdapter($adapter, $options = array())
+ public static function setDefaultAdapter($adapter, $options = array())
{
self::$_defaultAdapter = self::factory($adapter, $options);
}
@@ -138,7 +138,7 @@
*
* @return Zend_Serializer_Adapter_AdapterInterface
*/
- public static function getDefaultAdapter()
+ public static function getDefaultAdapter()
{
if (!self::$_defaultAdapter instanceof Zend_Serializer_Adapter_AdapterInterface) {
self::setDefaultAdapter(self::$_defaultAdapter);
@@ -154,7 +154,7 @@
* @return string
* @throws Zend_Serializer_Exception
*/
- public static function serialize($value, array $options = array())
+ public static function serialize($value, array $options = array())
{
if (isset($options['adapter'])) {
$adapter = self::factory($options['adapter']);
@@ -174,7 +174,7 @@
* @return mixed
* @throws Zend_Serializer_Exception
*/
- public static function unserialize($serialized, array $options = array())
+ public static function unserialize($serialized, array $options = array())
{
if (isset($options['adapter'])) {
$adapter = self::factory($options['adapter']);
--- a/web/lib/Zend/Serializer/Adapter/AdapterAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/AdapterAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterAbstract.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: AdapterAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterInterface */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Serializer_Adapter_AdapterAbstract implements Zend_Serializer_Adapter_AdapterInterface
@@ -44,7 +44,7 @@
*
* @param array|Zend_Config $opts Serializer options
*/
- public function __construct($opts = array())
+ public function __construct($opts = array())
{
$this->setOptions($opts);
}
@@ -55,7 +55,7 @@
* @param array|Zend_Config $opts Serializer options
* @return Zend_Serializer_Adapter_AdapterAbstract
*/
- public function setOptions($opts)
+ public function setOptions($opts)
{
if ($opts instanceof Zend_Config) {
$opts = $opts->toArray();
@@ -76,7 +76,7 @@
* @param mixed $value Option value
* @return Zend_Serializer_Adapter_AdapterAbstract
*/
- public function setOption($name, $value)
+ public function setOption($name, $value)
{
$this->_options[(string) $name] = $value;
return $this;
@@ -87,7 +87,7 @@
*
* @return array
*/
- public function getOptions()
+ public function getOptions()
{
return $this->_options;
}
@@ -99,7 +99,7 @@
* @return mixed
* @throws Zend_Serializer_Exception
*/
- public function getOption($name)
+ public function getOption($name)
{
$name = (string) $name;
if (!array_key_exists($name, $this->_options)) {
--- a/web/lib/Zend/Serializer/Adapter/AdapterInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/AdapterInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,19 +15,19 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterInterface.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: AdapterInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-interface Zend_Serializer_Adapter_AdapterInterface
+interface Zend_Serializer_Adapter_AdapterInterface
{
/**
* Constructor
--- a/web/lib/Zend/Serializer/Adapter/Amf0.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/Amf0.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Amf0.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Amf0.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -39,16 +39,16 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_Amf0 extends Zend_Serializer_Adapter_AdapterAbstract
{
/**
* Serialize a PHP value to AMF0 format
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception
*/
@@ -67,9 +67,9 @@
/**
* Unserialize an AMF0 value to PHP
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return void
* @throws Zend_Serializer_Exception
*/
--- a/web/lib/Zend/Serializer/Adapter/Amf3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/Amf3.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Amf3.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Amf3.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -39,16 +39,16 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_Amf3 extends Zend_Serializer_Adapter_AdapterAbstract
{
/**
* Serialize a PHP value to AMF3 format
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception
*/
@@ -67,9 +67,9 @@
/**
* Deserialize an AMF3 value to PHP
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception
*/
--- a/web/lib/Zend/Serializer/Adapter/Igbinary.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/Igbinary.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Igbinary.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Igbinary.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_Igbinary extends Zend_Serializer_Adapter_AdapterAbstract
@@ -39,12 +39,12 @@
/**
* Constructor
- *
- * @param array|Zend_Config $opts
+ *
+ * @param array|Zend_Config $opts
* @return void
* @throws Zend_Serializer_Exception If igbinary extension is not present
*/
- public function __construct($opts = array())
+ public function __construct($opts = array())
{
if (!extension_loaded('igbinary')) {
require_once 'Zend/Serializer/Exception.php';
@@ -60,9 +60,9 @@
/**
* Serialize PHP value to igbinary
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception on igbinary error
*/
@@ -79,9 +79,9 @@
/**
* Deserialize igbinary string to PHP value
- *
- * @param string|binary $serialized
- * @param array $opts
+ *
+ * @param string|binary $serialized
+ * @param array $opts
* @return mixed
* @throws Zend_Serializer_Exception on igbinary error
*/
--- a/web/lib/Zend/Serializer/Adapter/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Json.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Json.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_Json extends Zend_Serializer_Adapter_AdapterAbstract
@@ -46,9 +46,9 @@
/**
* Serialize PHP value to JSON
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception on JSON encoding exception
*/
@@ -66,9 +66,9 @@
/**
* Deserialize JSON to PHP value
- *
- * @param string $json
- * @param array $opts
+ *
+ * @param string $json
+ * @param array $opts
* @return mixed
*/
public function unserialize($json, array $opts = array())
--- a/web/lib/Zend/Serializer/Adapter/PhpCode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/PhpCode.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhpCode.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: PhpCode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -27,16 +27,16 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_PhpCode extends Zend_Serializer_Adapter_AdapterAbstract
{
/**
* Serialize PHP using var_export
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
*/
public function serialize($value, array $opts = array())
@@ -48,9 +48,9 @@
* Deserialize PHP string
*
* Warning: this uses eval(), and should likely be avoided.
- *
- * @param string $code
- * @param array $opts
+ *
+ * @param string $code
+ * @param array $opts
* @return mixed
* @throws Zend_Serializer_Exception on eval error
*/
--- a/web/lib/Zend/Serializer/Adapter/PhpSerialize.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/PhpSerialize.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PhpSerialize.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: PhpSerialize.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_PhpSerialize extends Zend_Serializer_Adapter_AdapterAbstract
@@ -39,11 +39,11 @@
/**
* Constructor
- *
- * @param array|Zend_Config $opts
+ *
+ * @param array|Zend_Config $opts
* @return void
*/
- public function __construct($opts = array())
+ public function __construct($opts = array())
{
parent::__construct($opts);
@@ -54,9 +54,9 @@
/**
* Serialize using serialize()
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception On serialize error
*/
@@ -73,10 +73,10 @@
/**
* Unserialize
- *
+ *
* @todo Allow integration with unserialize_callback_func
- * @param string $serialized
- * @param array $opts
+ * @param string $serialized
+ * @param array $opts
* @return mixed
* @throws Zend_Serializer_Exception on unserialize error
*/
--- a/web/lib/Zend/Serializer/Adapter/PythonPickle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/PythonPickle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PythonPickle.php 21187 2010-02-24 01:22:01Z stas $
+ * @version $Id: PythonPickle.php 24815 2012-05-24 08:50:24Z mabe $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_PythonPickle extends Zend_Serializer_Adapter_AdapterAbstract
@@ -296,11 +296,11 @@
$this->_pickle .= self::OP_BINGET . chr($id);
} else {
// LONG_BINGET + pack("<i", i)
- $idBin = pack('l', $id);
+ $bin = pack('l', $id);
if (self::$_isLittleEndian === false) {
- $idBin = strrev($bin);
+ $bin = strrev($bin);
}
- $this->_pickle .= self::OP_LONG_BINGET . $idBin;
+ $this->_pickle .= self::OP_LONG_BINGET . $bin;
}
} else {
$this->_pickle .= self::OP_GET . $id . "\r\n";
@@ -321,11 +321,11 @@
$this->_pickle .= self::OP_BINPUT . chr($id);
} else {
// LONG_BINPUT + pack("<i", i)
- $idBin = pack('l', $id);
+ $bin = pack('l', $id);
if (self::$_isLittleEndian === false) {
- $idBin = strrev($bin);
+ $bin = strrev($bin);
}
- $this->_pickle .= self::OP_LONG_BINPUT . $idBin;
+ $this->_pickle .= self::OP_LONG_BINPUT . $bin;
}
} else {
$this->_pickle .= self::OP_PUT . $id . "\r\n";
--- a/web/lib/Zend/Serializer/Adapter/Wddx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Adapter/Wddx.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Wddx.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Wddx.php 25033 2012-08-17 19:50:08Z matthew $
*/
/** @see Zend_Serializer_Adapter_AdapterAbstract */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Serializer
* @subpackage Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Adapter_Wddx extends Zend_Serializer_Adapter_AdapterAbstract
@@ -43,8 +43,8 @@
/**
* Constructor
- *
- * @param array $opts
+ *
+ * @param array $opts
* @return void
* @throws Zend_Serializer_Exception if wddx extension not found
*/
@@ -60,9 +60,9 @@
/**
* Serialize PHP to WDDX
- *
- * @param mixed $value
- * @param array $opts
+ *
+ * @param mixed $value
+ * @param array $opts
* @return string
* @throws Zend_Serializer_Exception on wddx error
*/
@@ -86,9 +86,9 @@
/**
* Unserialize from WDDX to PHP
- *
- * @param string $wddx
- * @param array $opts
+ *
+ * @param string $wddx
+ * @param array $opts
* @return mixed
* @throws Zend_Serializer_Exception on wddx error
*/
@@ -100,7 +100,19 @@
// check if the returned NULL is valid
// or based on an invalid wddx string
try {
- $simpleXml = new SimpleXMLElement($wddx);
+ $oldLibxmlDisableEntityLoader = libxml_disable_entity_loader(true);
+ $dom = new DOMDocument;
+ $dom->loadXML($wddx);
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Serializer/Exception.php';
+ throw new Zend_Serializer_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ $simpleXml = simplexml_import_dom($dom);
+ libxml_disable_entity_loader($oldLibxmlDisableEntityLoader);
if (isset($simpleXml->data[0]->null[0])) {
return null; // valid null
}
--- a/web/lib/Zend/Serializer/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Serializer/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Serializer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20574 2010-01-24 17:39:14Z mabe $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Exception */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Serializer
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Serializer_Exception extends Zend_Exception
--- a/web/lib/Zend/Server/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -51,9 +51,9 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Server_Abstract implements Zend_Server_Interface
{
--- a/web/lib/Zend/Server/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Cache
--- a/web/lib/Zend/Server/Definition.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Definition.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Definition.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Definition.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
* @todo Implement iterator
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Definition implements Countable, Iterator
--- a/web/lib/Zend/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_Server
* @subpackage Reflection
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Exception extends Zend_Exception
{
--- a/web/lib/Zend/Server/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,9 +23,9 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
interface Zend_Server_Interface
{
--- a/web/lib/Zend/Server/Method/Callback.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Method/Callback.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Callback.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Callback.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Method_Callback
--- a/web/lib/Zend/Server/Method/Definition.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Method/Definition.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Definition.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Definition.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Method_Definition
--- a/web/lib/Zend/Server/Method/Parameter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Method/Parameter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parameter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Parameter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Method_Parameter
--- a/web/lib/Zend/Server/Method/Prototype.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Method/Prototype.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Prototype.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Prototype.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Server
* @subpackage Method
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Method_Prototype
--- a/web/lib/Zend/Server/Reflection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,9 +34,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reflection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Reflection.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection
{
--- a/web/lib/Zend/Server/Reflection/Class.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Class.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Class.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Class
{
--- a/web/lib/Zend/Server/Reflection/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Exception extends Zend_Server_Exception
{
--- a/web/lib/Zend/Server/Reflection/Function.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Function.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Function.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Function.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Function extends Zend_Server_Reflection_Function_Abstract
{
--- a/web/lib/Zend/Server/Reflection/Function/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Function/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -46,9 +46,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23320 2010-11-12 21:57:29Z alexander $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
abstract class Zend_Server_Reflection_Function_Abstract
{
--- a/web/lib/Zend/Server/Reflection/Method.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Method.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,9 +30,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Method.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Method.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Method extends Zend_Server_Reflection_Function_Abstract
{
--- a/web/lib/Zend/Server/Reflection/Node.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Node.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -24,8 +24,8 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @version $Id: Node.php 20096 2010-01-06 02:05:09Z bkarwin $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Node.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Server_Reflection_Node
--- a/web/lib/Zend/Server/Reflection/Parameter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Parameter.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Parameter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Parameter.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Parameter
{
--- a/web/lib/Zend/Server/Reflection/Prototype.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/Prototype.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -36,9 +36,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Prototype.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Prototype.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_Prototype
{
--- a/web/lib/Zend/Server/Reflection/ReturnValue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Server/Reflection/ReturnValue.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
* @category Zend
* @package Zend_Server
* @subpackage Reflection
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ReturnValue.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ReturnValue.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Server_Reflection_ReturnValue
{
--- a/web/lib/Zend/Service/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Abstract
--- a/web/lib/Zend/Service/Akismet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Akismet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Akismet
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Akismet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Akismet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Akismet
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Akismet extends Zend_Service_Abstract
--- a/web/lib/Zend/Service/Amazon.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Amazon.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Amazon.php 24782 2012-05-09 12:04:50Z adamlundrigan $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon
@@ -104,7 +104,7 @@
* @param array $options Options to use for the Search Query
* @throws Zend_Service_Exception
* @return Zend_Service_Amazon_ResultSet
- * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
+ * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemSearchOperation
*/
public function itemSearch(array $options)
{
@@ -142,7 +142,7 @@
*
* @param string $asin Amazon ASIN ID
* @param array $options Query Options
- * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation
+ * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemLookupOperation
* @throws Zend_Service_Exception
* @return Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet
*/
@@ -171,7 +171,7 @@
$dom->loadXML($response->getBody());
self::_checkErrors($dom);
$xpath = new DOMXPath($dom);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$items = $xpath->query('//az:Items/az:Item');
if ($items->length == 1) {
@@ -229,7 +229,7 @@
$options['AWSAccessKeyId'] = $this->appId;
$options['Service'] = 'AWSECommerceService';
$options['Operation'] = (string) $query;
- $options['Version'] = '2005-10-05';
+ $options['Version'] = '2011-08-01';
// de-canonicalize out sort key
if (isset($options['ResponseGroup'])) {
@@ -302,7 +302,7 @@
protected static function _checkErrors(DOMDocument $dom)
{
$xpath = new DOMXPath($dom);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
if ($xpath->query('//az:Error')->length >= 1) {
$code = $xpath->query('//az:Error/az:Code/text()')->item(0)->data;
--- a/web/lib/Zend/Service/Amazon/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Amazon_Abstract extends Zend_Service_Abstract
--- a/web/lib/Zend/Service/Amazon/Accessories.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Accessories.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Accessories.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Accessories.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Accessories
@@ -50,7 +50,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('ASIN', 'Title') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
}
--- a/web/lib/Zend/Service/Amazon/Authentication.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Authentication.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -23,7 +23,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Amazon_Authentication
@@ -31,13 +31,13 @@
protected $_accessKey;
protected $_secretKey;
protected $_apiVersion;
-
+
/**
* Constructor
- *
- * @param string $accessKey
- * @param string $secretKey
- * @param string $apiVersion
+ *
+ * @param string $accessKey
+ * @param string $secretKey
+ * @param string $apiVersion
* @return void
*/
public function __construct($accessKey, $secretKey, $apiVersion)
@@ -46,36 +46,36 @@
$this->setSecretKey($secretKey);
$this->setApiVersion($apiVersion);
}
-
+
/**
* Set access key
- *
- * @param string $accessKey
+ *
+ * @param string $accessKey
* @return void
*/
- public function setAccessKey($accessKey)
+ public function setAccessKey($accessKey)
{
$this->_accessKey = $accessKey;
}
-
+
/**
* Set secret key
- *
- * @param string $secretKey
+ *
+ * @param string $secretKey
* @return void
*/
- public function setSecretKey($secretKey)
+ public function setSecretKey($secretKey)
{
$this->_secretKey = $secretKey;
}
-
+
/**
* Set API version
- *
- * @param string $apiVersion
+ *
+ * @param string $apiVersion
* @return void
*/
- public function setApiVersion($apiVersion)
+ public function setApiVersion($apiVersion)
{
$this->_apiVersion = $apiVersion;
}
--- a/web/lib/Zend/Service/Amazon/Authentication/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Authentication/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Authentication_Exception extends Zend_Service_Amazon_Exception
--- a/web/lib/Zend/Service/Amazon/Authentication/S3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Authentication/S3.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Authentication_S3 extends Zend_Service_Amazon_Authentication
@@ -52,9 +52,9 @@
if (! is_array($headers)) {
$headers = array($headers);
}
-
+
$type = $md5 = $date = '';
-
+
// Search for the Content-type, Content-MD5 and Date headers
foreach ($headers as $key => $val) {
if (strcasecmp($key, 'content-type') == 0) {
@@ -65,12 +65,12 @@
$date = $val;
}
}
-
+
// If we have an x-amz-date header, use that instead of the normal Date
if (isset($headers['x-amz-date']) && isset($date)) {
$date = '';
}
-
+
$sig_str = "$method\n$md5\n$type\n$date\n";
// For x-amz- headers, combine like keys, lowercase them, sort them
@@ -92,18 +92,18 @@
$sig_str .= $key . ':' . implode(',', $val) . "\n";
}
}
-
+
$sig_str .= '/'.parse_url($path, PHP_URL_PATH);
if (strpos($path, '?location') !== false) {
$sig_str .= '?location';
- } else
+ } else
if (strpos($path, '?acl') !== false) {
$sig_str .= '?acl';
- } else
+ } else
if (strpos($path, '?torrent') !== false) {
$sig_str .= '?torrent';
}
-
+
$signature = base64_encode(Zend_Crypt_Hmac::compute($this->_secretKey, 'sha1', utf8_encode($sig_str), Zend_Crypt_Hmac::BINARY));
$headers['Authorization'] = 'AWS ' . $this->_accessKey . ':' . $signature;
--- a/web/lib/Zend/Service/Amazon/Authentication/V1.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Authentication/V1.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Authentication_V1 extends Zend_Service_Amazon_Authentication
@@ -47,7 +47,7 @@
* Signature Encoding Method
*/
protected $_signatureMethod = 'HmacSHA256';
-
+
/**
* Generate the required attributes for the signature
* @param string $url
@@ -64,7 +64,7 @@
}
$data = $this->_signParameters($url, $parameters);
-
+
return $data;
}
@@ -102,7 +102,7 @@
$hmac = Zend_Crypt_Hmac::compute($this->_secretKey, 'SHA1', $data, Zend_Crypt_Hmac::BINARY);
$paramaters['Signature'] = base64_encode($hmac);
-
+
return $data;
}
}
--- a/web/lib/Zend/Service/Amazon/Authentication/V2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Authentication/V2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Authentication
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Authentication_V2 extends Zend_Service_Amazon_Authentication
@@ -47,7 +47,7 @@
* Signature Encoding Method
*/
protected $_signatureMethod = 'HmacSHA256';
-
+
/**
* Type of http request
* @var string
@@ -71,18 +71,18 @@
}
$data = $this->_signParameters($url, $parameters);
-
+
return $data;
}
-
+
/**
* Set http request type to POST or GET
- * @param $method string
+ * @param string $method
*/
public function setHttpMethod($method = "POST") {
$this->_httpMethod = strtoupper($method);
}
-
+
/**
* Get the current http request type
* @return string
--- a/web/lib/Zend/Service/Amazon/CustomerReview.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/CustomerReview.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CustomerReview.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CustomerReview.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_CustomerReview
@@ -75,7 +75,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('Rating', 'HelpfulVotes', 'CustomerId', 'TotalVotes', 'Date', 'Summary', 'Content') as $el) {
$result = $xpath->query("./az:$el/text()", $dom);
if ($result->length == 1) {
--- a/web/lib/Zend/Service/Amazon/Ec2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ec2.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ec2.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2
--- a/web/lib/Zend/Service/Amazon/Ec2/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Amazon_Ec2_Abstract extends Zend_Service_Amazon_Abstract
@@ -142,7 +142,7 @@
/**
* Sends a HTTP request to the queue service using Zend_Http_Client
*
- * @param array $params List of parameters to send with the request
+ * @param array $params List of parameters to send with the request
* @return Zend_Service_Amazon_Ec2_Response
* @throws Zend_Service_Amazon_Ec2_Exception
*/
@@ -166,7 +166,7 @@
$request->setParameterPost($params);
$httpResponse = $request->request();
-
+
} catch (Zend_Http_Client_Exception $zhce) {
$message = 'Error in request to AWS service: ' . $zhce->getMessage();
--- a/web/lib/Zend/Service/Amazon/Ec2/Availabilityzones.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Availabilityzones.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Availabilityzones.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Availabilityzones.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Availabilityzones extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/CloudWatch.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/CloudWatch.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CloudWatch.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CloudWatch.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_CloudWatch extends Zend_Service_Amazon_Ec2_Abstract
@@ -281,7 +281,7 @@
$options['Dimensions.member.' . $x . '.Value'] = $dimVal;
$x++;
}
-
+
unset($options['Dimensions']);
}
--- a/web/lib/Zend/Service/Amazon/Ec2/Ebs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Ebs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ebs.php 22047 2010-04-28 22:14:51Z shahar $
+ * @version $Id: Ebs.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Ebs extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Elasticip.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Elasticip.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Elasticip.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Elasticip.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Elasticip extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Exception extends Zend_Service_Amazon_Exception
--- a/web/lib/Zend/Service/Amazon/Ec2/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Image extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Instance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Instance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Instance.php 22046 2010-04-28 22:12:32Z shahar $
+ * @version $Id: Instance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,12 +32,16 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Instance extends Zend_Service_Amazon_Ec2_Abstract
{
/**
+ * Constant for Micro Instance Type
+ */
+ const MICRO = 't1.micro';
+ /**
* Constant for Small Instance TYpe
*/
const SMALL = 'm1.small';
@@ -168,7 +172,6 @@
if(isset($options['monitor']) && $options['monitor'] === true) {
$params['Monitoring.Enabled'] = true;
}
-
$response = $this->sendRequest($params);
$xpath = $response->getXPath();
--- a/web/lib/Zend/Service/Amazon/Ec2/Instance/Reserved.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Instance/Reserved.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Reserved.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Reserved.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Instance_Reserved extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Instance/Windows.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Instance/Windows.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Windows.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Windows.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -42,7 +42,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Instance_Windows extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Keypair.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Keypair.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Keypair.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Keypair.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Keypair extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Region.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Region.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Region.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Region.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Region extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/Ec2/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Response {
@@ -118,7 +118,7 @@
} catch (Zend_Http_Exception $e) {
$body = false;
}
-
+
if ($this->_document === null) {
if ($body !== false) {
// turn off libxml error handling
--- a/web/lib/Zend/Service/Amazon/Ec2/Securitygroups.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Ec2/Securitygroups.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Securitygroups.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Securitygroups.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage Ec2
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Ec2_Securitygroups extends Zend_Service_Amazon_Ec2_Abstract
--- a/web/lib/Zend/Service/Amazon/EditorialReview.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/EditorialReview.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EditorialReview.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EditorialReview.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_EditorialReview
@@ -50,7 +50,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('Source', 'Content') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
}
--- a/web/lib/Zend/Service/Amazon/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/Amazon/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Image
@@ -61,7 +61,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$this->Url = Zend_Uri::factory($xpath->query('./az:URL/text()', $dom)->item(0)->data);
$this->Height = (int) $xpath->query('./az:Height/text()', $dom)->item(0)->data;
$this->Width = (int) $xpath->query('./az:Width/text()', $dom)->item(0)->data;
--- a/web/lib/Zend/Service/Amazon/Item.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Item.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Item.php 21883 2010-04-16 14:57:07Z dragonbe $
+ * @version $Id: Item.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Item
@@ -114,22 +114,22 @@
*
* @param null|DOMElement $dom
* @return void
- * @throws Zend_Service_Amazon_Exception
- *
+ * @throws Zend_Service_Amazon_Exception
+ *
* @group ZF-9547
*/
public function __construct($dom)
{
- if (null === $dom) {
- require_once 'Zend/Service/Amazon/Exception.php';
- throw new Zend_Service_Amazon_Exception('Item element is empty');
- }
- if (!$dom instanceof DOMElement) {
- require_once 'Zend/Service/Amazon/Exception.php';
- throw new Zend_Service_Amazon_Exception('Item is not a valid DOM element');
- }
+ if (null === $dom) {
+ require_once 'Zend/Service/Amazon/Exception.php';
+ throw new Zend_Service_Amazon_Exception('Item element is empty');
+ }
+ if (!$dom instanceof DOMElement) {
+ require_once 'Zend/Service/Amazon/Exception.php';
+ throw new Zend_Service_Amazon_Exception('Item is not a valid DOM element');
+ }
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$this->ASIN = $xpath->query('./az:ASIN/text()', $dom)->item(0)->data;
$result = $xpath->query('./az:DetailPageURL/text()', $dom);
--- a/web/lib/Zend/Service/Amazon/ListmaniaList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/ListmaniaList.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ListmaniaList.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ListmaniaList.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_ListmaniaList
@@ -50,7 +50,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('ListId', 'ListName') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
}
--- a/web/lib/Zend/Service/Amazon/Offer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Offer.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Offer.php 21154 2010-02-23 17:10:34Z matthew $
+ * @version $Id: Offer.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Offer
@@ -85,7 +85,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$this->MerchantId = (string) $xpath->query('./az:Merchant/az:MerchantId/text()', $dom)->item(0)->data;
$name = $xpath->query('./az:Merchant/az:Name/text()', $dom);
if ($name->length == 1) {
--- a/web/lib/Zend/Service/Amazon/OfferSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/OfferSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OfferSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OfferSet.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_OfferSet
@@ -85,7 +85,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$offer = $xpath->query('./az:OfferSummary', $dom);
if ($offer->length == 1) {
--- a/web/lib/Zend/Service/Amazon/Query.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Query.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Query.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Query extends Zend_Service_Amazon
--- a/web/lib/Zend/Service/Amazon/ResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/ResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResultSet.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_ResultSet implements SeekableIterator
@@ -75,7 +75,7 @@
{
$this->_dom = $dom;
$this->_xpath = new DOMXPath($dom);
- $this->_xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $this->_xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
$this->_results = $this->_xpath->query('//az:Item');
}
--- a/web/lib/Zend/Service/Amazon/S3.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/S3.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_S3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: S3.php 23224 2010-10-22 13:45:57Z matthew $
+ * @version $Id: S3.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_S3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
*/
@@ -157,14 +157,15 @@
public function createBucket($bucket, $location = null)
{
$this->_validBucketName($bucket);
-
+ $headers=array();
if($location) {
$data = '<CreateBucketConfiguration><LocationConstraint>'.$location.'</LocationConstraint></CreateBucketConfiguration>';
- }
- else {
+ $headers[self::S3_CONTENT_TYPE_HEADER]= 'text/plain';
+ $headers['Content-size']= strlen($data);
+ } else {
$data = null;
}
- $response = $this->_makeRequest('PUT', $bucket, null, array(), $data);
+ $response = $this->_makeRequest('PUT', $bucket, null, $headers, $data);
return ($response->getStatus() == 200);
}
@@ -273,9 +274,16 @@
return false;
}
- foreach ($objects as $object) {
- $this->removeObject("$bucket/$object");
+ while (!empty($objects)) {
+ foreach ($objects as $object) {
+ $this->removeObject("$bucket/$object");
+ }
+ $params= array (
+ 'marker' => $objects[count($objects)-1]
+ );
+ $objects = $this->getObjectsByBucket($bucket,$params);
}
+
return true;
}
@@ -313,7 +321,52 @@
return $objects;
}
+ /**
+ * List the objects and common prefixes in a bucket.
+ *
+ * Provides the list of object keys and common prefixes that are contained in the bucket. Valid params include the following.
+ * prefix - Limits the response to keys which begin with the indicated prefix. You can use prefixes to separate a bucket into different sets of keys in a way similar to how a file system uses folders.
+ * marker - Indicates where in the bucket to begin listing. The list will only include keys that occur lexicographically after marker. This is convenient for pagination: To get the next page of results use the last key of the current page as the marker.
+ * max-keys - The maximum number of keys you'd like to see in the response body. The server might return fewer than this many keys, but will not return more.
+ * delimiter - Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response.
+ *
+ * @see ZF-11401
+ * @param string $bucket
+ * @param array $params S3 GET Bucket Paramater
+ * @return array|false
+ */
+ public function getObjectsAndPrefixesByBucket($bucket, $params = array())
+ {
+ $response = $this->_makeRequest('GET', $bucket, $params);
+ if ($response->getStatus() != 200) {
+ return false;
+ }
+
+ $xml = new SimpleXMLElement($response->getBody());
+
+ $objects = array();
+ if (isset($xml->Contents)) {
+ foreach ($xml->Contents as $contents) {
+ foreach ($contents->Key as $object) {
+ $objects[] = (string)$object;
+ }
+ }
+ }
+ $prefixes = array();
+ if (isset($xml->CommonPrefixes)) {
+ foreach ($xml->CommonPrefixes as $prefix) {
+ foreach ($prefix->Prefix as $object) {
+ $prefixes[] = (string)$object;
+ }
+ }
+ }
+
+ return array(
+ 'objects' => $objects,
+ 'prefixes' => $prefixes
+ );
+ }
/**
* Make sure the object name is valid
*
@@ -482,7 +535,7 @@
}
if(!isset($meta['Content-MD5'])) {
- $headers['Content-MD5'] = base64_encode(md5_file($path, true));
+ $meta['Content-MD5'] = base64_encode(md5_file($path, true));
}
return $this->putObject($object, $data, $meta);
@@ -557,11 +610,11 @@
/**
* Make a request to Amazon S3
*
- * @param string $method Request method
- * @param string $path Path to requested object
- * @param array $params Request parameters
- * @param array $headers HTTP headers
- * @param string|resource $data Request data
+ * @param string $method Request method
+ * @param string $path Path to requested object
+ * @param array $params Request parameters
+ * @param array $headers HTTP headers
+ * @param string|resource $data Request data
* @return Zend_Http_Response
*/
public function _makeRequest($method, $path='', $params=null, $headers=array(), $data=null)
@@ -590,7 +643,11 @@
$endpoint->setHost($parts[0].'.'.$endpoint->getHost());
}
if (!empty($parts[1])) {
- $endpoint->setPath('/'.$parts[1]);
+ // ZF-10218, ZF-10122
+ $pathparts = explode('?',$parts[1]);
+ $endpath = $pathparts[0];
+ $endpoint->setPath('/'.$endpath);
+
}
else {
$endpoint->setPath('/');
@@ -598,16 +655,16 @@
$path = $parts[0].'/';
}
}
-
self::addSignature($method, $path, $headers);
$client = self::getHttpClient();
- $client->resetParameters();
+ $client->resetParameters(true);
$client->setUri($endpoint);
$client->setAuth(false);
// Work around buglet in HTTP client - it doesn't clean headers
// Remove when ZHC is fixed
+ /*
$client->setHeaders(array('Content-MD5' => null,
'Content-Encoding' => null,
'Expect' => null,
@@ -615,7 +672,7 @@
'x-amz-acl' => null,
'x-amz-copy-source' => null,
'x-amz-metadata-directive' => null));
-
+ */
$client->setHeaders($headers);
if (is_array($params)) {
@@ -629,7 +686,7 @@
$headers['Content-type'] = self::getMimeType($path);
}
$client->setRawData($data, $headers['Content-type']);
- }
+ }
do {
$retry = false;
@@ -720,6 +777,9 @@
else if (strpos($path, '?torrent') !== false) {
$sig_str .= '?torrent';
}
+ else if (strpos($path, '?versions') !== false) {
+ $sig_str .= '?versions';
+ }
$signature = base64_encode(Zend_Crypt_Hmac::compute($this->_getSecretKey(), 'sha1', utf8_encode($sig_str), Zend_Crypt_Hmac::BINARY));
$headers['Authorization'] = 'AWS '.$this->_getAccessKey().':'.$signature;
--- a/web/lib/Zend/Service/Amazon/S3/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/S3/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_S3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_S3_Exception extends Zend_Service_Amazon_Exception
--- a/web/lib/Zend/Service/Amazon/S3/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/S3/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_S3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 22621 2010-07-18 00:35:48Z torio $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_S3
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_S3_Stream
@@ -140,8 +140,7 @@
$this->_writeBuffer = true;
$this->_getS3Client($path);
return true;
- }
- else {
+ } else {
// Otherwise, just see if the file exists or not
$info = $this->_getS3Client($path)->getInfo($name);
if ($info) {
@@ -175,9 +174,9 @@
/**
* Read from the stream
*
- * http://bugs.php.net/21641 - stream_read() is always passed PHP's
- * internal read buffer size (8192) no matter what is passed as $count
- * parameter to fread().
+ * http://bugs.php.net/21641 - stream_read() is always passed PHP's
+ * internal read buffer size (8192) no matter what is passed as $count
+ * parameter to fread().
*
* @param integer $count
* @return string
@@ -194,14 +193,12 @@
}
$range_start = $this->_position;
- $range_end = $this->_position+$count;
+ $range_end = $this->_position + $count - 1;
// Only fetch more data from S3 if we haven't fetched any data yet (postion=0)
- // OR, the range end position is greater than the size of the current object
- // buffer AND if the range end position is less than or equal to the object's
- // size returned by S3
- if (($this->_position == 0) || (($range_end > strlen($this->_objectBuffer)) && ($range_end <= $this->_objectSize))) {
-
+ // OR, the range end position plus 1 is greater than the size of the current
+ // object buffer
+ if ($this->_objectBuffer === null || $range_end >= strlen($this->_objectBuffer)) {
$headers = array(
'Range' => "bytes=$range_start-$range_end"
);
--- a/web/lib/Zend/Service/Amazon/SimilarProduct.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimilarProduct.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimilarProduct.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimilarProduct.php 24780 2012-05-08 19:34:59Z adamlundrigan $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_SimilarProduct
@@ -50,7 +50,7 @@
public function __construct(DOMElement $dom)
{
$xpath = new DOMXPath($dom->ownerDocument);
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('ASIN', 'Title') as $el) {
$text = $xpath->query("./az:$el/text()", $dom)->item(0);
if($text instanceof DOMText) {
--- a/web/lib/Zend/Service/Amazon/SimpleDb.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimpleDb.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -53,7 +53,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_SimpleDb extends Zend_Service_Amazon_Abstract
@@ -100,7 +100,7 @@
$this->setEndpoint("https://" . $this->_sdbEndpoint);
}
- /**
+ /**
* Set SimpleDB endpoint to use
*
* @param string|Zend_Uri_Http $endpoint
@@ -108,15 +108,15 @@
*/
public function setEndpoint($endpoint)
{
- if(!($endpoint instanceof Zend_Uri_Http)) {
- $endpoint = Zend_Uri::factory($endpoint);
- }
- if(!$endpoint->valid()) {
- require_once 'Zend/Service/Amazon/SimpleDb/Exception.php';
- throw new Zend_Service_Amazon_SimpleDb_Exception("Invalid endpoint supplied");
- }
- $this->_endpoint = $endpoint;
- return $this;
+ if(!($endpoint instanceof Zend_Uri_Http)) {
+ $endpoint = Zend_Uri::factory($endpoint);
+ }
+ if(!$endpoint->valid()) {
+ require_once 'Zend/Service/Amazon/SimpleDb/Exception.php';
+ throw new Zend_Service_Amazon_SimpleDb_Exception("Invalid endpoint supplied");
+ }
+ $this->_endpoint = $endpoint;
+ return $this;
}
/**
@@ -124,30 +124,30 @@
*
* @return Zend_Uri_Http
*/
- public function getEndpoint()
+ public function getEndpoint()
{
- return $this->_endpoint;
+ return $this->_endpoint;
}
/**
* Get attributes API method
*
* @param string $domainName Domain name within database
- * @param string
+ * @param string
*/
public function getAttributes(
$domainName, $itemName, $attributeName = null
) {
$params = array();
- $params['Action'] = 'GetAttributes';
- $params['DomainName'] = $domainName;
- $params['ItemName'] = $itemName;
+ $params['Action'] = 'GetAttributes';
+ $params['DomainName'] = $domainName;
+ $params['ItemName'] = $itemName;
- if (isset($attributeName)) {
- $params['AttributeName'] = $attributeName;
- }
+ if (isset($attributeName)) {
+ $params['AttributeName'] = $attributeName;
+ }
- $response = $this->_sendRequest($params);
+ $response = $this->_sendRequest($params);
$document = $response->getSimpleXMLDocument();
$attributeNodes = $document->GetAttributesResult->Attribute;
@@ -167,7 +167,7 @@
$data = (string)$valueNodes;
}
if (isset($attributes[$name])) {
- $attributes[$name]->addValue($data);
+ $attributes[$name]->addValue($data);
} else {
$attributes[$name] = new Zend_Service_Amazon_SimpleDb_Attribute($itemName, $name, $data);
}
@@ -188,38 +188,38 @@
$domainName, $itemName, $attributes, $replace = array()
) {
$params = array();
- $params['Action'] = 'PutAttributes';
- $params['DomainName'] = $domainName;
- $params['ItemName'] = $itemName;
+ $params['Action'] = 'PutAttributes';
+ $params['DomainName'] = $domainName;
+ $params['ItemName'] = $itemName;
- $index = 0;
- foreach ($attributes as $attribute) {
- $attributeName = $attribute->getName();
+ $index = 0;
+ foreach ($attributes as $attribute) {
+ $attributeName = $attribute->getName();
foreach ($attribute->getValues() as $value) {
- $params['Attribute.' . $index . '.Name'] = $attributeName;
+ $params['Attribute.' . $index . '.Name'] = $attributeName;
$params['Attribute.' . $index . '.Value'] = $value;
- // Check if it should be replaced
+ // Check if it should be replaced
if(array_key_exists($attributeName, $replace) && $replace[$attributeName]) {
$params['Attribute.' . $index . '.Replace'] = 'true';
}
$index++;
}
- }
+ }
- // Exception should get thrown if there's an error
+ // Exception should get thrown if there's an error
$response = $this->_sendRequest($params);
}
/**
* Add many attributes at once
- *
- * @param array $items
- * @param string $domainName
- * @param array $replace
+ *
+ * @param array $items
+ * @param string $domainName
+ * @param array $replace
* @return void
*/
- public function batchPutAttributes($items, $domainName, array $replace = array())
+ public function batchPutAttributes($items, $domainName, array $replace = array())
{
$params = array();
@@ -236,8 +236,8 @@
foreach($attribute->getValues() as $value) {
$params['Item.' . $itemIndex . '.Attribute.' . $attributeIndex . '.Name'] = $attribute->getName();
$params['Item.' . $itemIndex . '.Attribute.' . $attributeIndex . '.Value'] = $value;
- if (isset($replace[$name])
- && isset($replace[$name][$attribute->getName()])
+ if (isset($replace[$name])
+ && isset($replace[$name][$attribute->getName()])
&& $replace[$name][$attribute->getName()]
) {
$params['Item.' . $itemIndex . '.Attribute.' . $attributeIndex . '.Replace'] = 'true';
@@ -253,27 +253,27 @@
/**
* Delete attributes
- *
- * @param string $domainName
- * @param string $itemName
- * @param array $attributes
+ *
+ * @param string $domainName
+ * @param string $itemName
+ * @param array $attributes
* @return void
*/
- public function deleteAttributes($domainName, $itemName, array $attributes = array())
+ public function deleteAttributes($domainName, $itemName, array $attributes = array())
{
$params = array();
- $params['Action'] = 'DeleteAttributes';
- $params['DomainName'] = $domainName;
- $params['ItemName'] = $itemName;
+ $params['Action'] = 'DeleteAttributes';
+ $params['DomainName'] = $domainName;
+ $params['ItemName'] = $itemName;
- $attributeIndex = 0;
- foreach ($attributes as $attribute) {
- foreach ($attribute->getValues() as $value) {
- $params['Attribute.' . $attributeIndex . '.Name'] = $attribute->getName();
- $params['Attribute.' . $attributeIndex . '.Value'] = $value;
+ $attributeIndex = 0;
+ foreach ($attributes as $attribute) {
+ foreach ($attribute->getValues() as $value) {
+ $params['Attribute.' . $attributeIndex . '.Name'] = $attribute->getName();
+ $params['Attribute.' . $attributeIndex . '.Value'] = $value;
$attributeIndex++;
- }
- }
+ }
+ }
$response = $this->_sendRequest($params);
@@ -283,19 +283,19 @@
/**
* List domains
*
- * @param $maxNumberOfDomains int
- * @param $nextToken int
+ * @param int $maxNumberOfDomains
+ * @param int $nextToken
* @return array 0 or more domain names
*/
- public function listDomains($maxNumberOfDomains = 100, $nextToken = null)
+ public function listDomains($maxNumberOfDomains = 100, $nextToken = null)
{
$params = array();
- $params['Action'] = 'ListDomains';
- $params['MaxNumberOfDomains'] = $maxNumberOfDomains;
+ $params['Action'] = 'ListDomains';
+ $params['MaxNumberOfDomains'] = $maxNumberOfDomains;
- if (null !== $nextToken) {
- $params['NextToken'] = $nextToken;
- }
+ if (null !== $nextToken) {
+ $params['NextToken'] = $nextToken;
+ }
$response = $this->_sendRequest($params);
$domainNodes = $response->getSimpleXMLDocument()->ListDomainsResult->DomainName;
@@ -315,14 +315,14 @@
/**
* Retrieve domain metadata
*
- * @param $domainName string Name of the domain for which metadata will be requested
+ * @param string $domainName Name of the domain for which metadata will be requested
* @return array Key/value array of metadatum names and values.
*/
- public function domainMetadata($domainName)
+ public function domainMetadata($domainName)
{
$params = array();
- $params['Action'] = 'DomainMetadata';
- $params['DomainName'] = $domainName;
+ $params['Action'] = 'DomainMetadata';
+ $params['DomainName'] = $domainName;
$response = $this->_sendRequest($params);
$document = $response->getSimpleXMLDocument();
@@ -340,14 +340,14 @@
/**
* Create a new domain
*
- * @param $domainName string Valid domain name of the domain to create
- * @return boolean True if successful, false if not
+ * @param string $domainName Valid domain name of the domain to create
+ * @return boolean True if successful, false if not
*/
- public function createDomain($domainName)
- {
+ public function createDomain($domainName)
+ {
$params = array();
- $params['Action'] = 'CreateDomain';
- $params['DomainName'] = $domainName;
+ $params['Action'] = 'CreateDomain';
+ $params['DomainName'] = $domainName;
$response = $this->_sendRequest($params);
return $response->getHttpResponse()->isSuccessful();
}
@@ -355,14 +355,14 @@
/**
* Delete a domain
*
- * @param $domainName string Valid domain name of the domain to delete
- * @return boolean True if successful, false if not
+ * @param string $domainName Valid domain name of the domain to delete
+ * @return boolean True if successful, false if not
*/
- public function deleteDomain($domainName)
- {
- $params = array();
- $params['Action'] = 'DeleteDomain';
- $params['DomainName'] = $domainName;
+ public function deleteDomain($domainName)
+ {
+ $params = array();
+ $params['Action'] = 'DeleteDomain';
+ $params['DomainName'] = $domainName;
$response = $this->_sendRequest($params);
return $response->getHttpResponse()->isSuccessful();
}
@@ -374,15 +374,15 @@
* @param null|string $nextToken
* @return Zend_Service_Amazon_SimpleDb_Page
*/
- public function select($selectExpression, $nextToken = null)
- {
+ public function select($selectExpression, $nextToken = null)
+ {
$params = array();
- $params['Action'] = 'Select';
- $params['SelectExpression'] = $selectExpression;
+ $params['Action'] = 'Select';
+ $params['SelectExpression'] = $selectExpression;
- if (null !== $nextToken) {
- $params['NextToken'] = $nextToken;
- }
+ if (null !== $nextToken) {
+ $params['NextToken'] = $nextToken;
+ }
$response = $this->_sendRequest($params);
$xml = $response->getSimpleXMLDocument();
@@ -406,36 +406,36 @@
return new Zend_Service_Amazon_SimpleDb_Page($attributes, $nextToken);
}
-
- /**
- * Quote SDB value
- *
- * Wraps it in ''
- *
- * @param string $value
- * @return string
- */
+
+ /**
+ * Quote SDB value
+ *
+ * Wraps it in ''
+ *
+ * @param string $value
+ * @return string
+ */
public function quote($value)
{
- // wrap in single quotes and convert each ' inside to ''
- return "'" . str_replace("'", "''", $value) . "'";
+ // wrap in single quotes and convert each ' inside to ''
+ return "'" . str_replace("'", "''", $value) . "'";
}
-
- /**
- * Quote SDB column or table name
- *
- * Wraps it in ``
- * @param string $name
- * @return string
- */
+
+ /**
+ * Quote SDB column or table name
+ *
+ * Wraps it in ``
+ * @param string $name
+ * @return string
+ */
public function quoteName($name)
{
- if (preg_match('/^[a-z_$][a-z0-9_$-]*$/i', $name) == false) {
- throw new Zend_Service_Amazon_SimpleDb_Exception("Invalid name: can contain only alphanumeric characters, \$ and _");
- }
- return "`$name`";
+ if (preg_match('/^[a-z_$][a-z0-9_$-]*$/i', $name) == false) {
+ throw new Zend_Service_Amazon_SimpleDb_Exception("Invalid name: can contain only alphanumeric characters, \$ and _");
+ }
+ return "`$name`";
}
-
+
/**
* Sends a HTTP request to the SimpleDB service using Zend_Http_Client
*
--- a/web/lib/Zend/Service/Amazon/SimpleDb/Attribute.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimpleDb/Attribute.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Response.php 17539 2009-08-10 22:51:26Z mikaelkael $
*/
@@ -24,7 +24,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_SimpleDb_Attribute
@@ -35,13 +35,13 @@
/**
* Constructor
- *
- * @param string $itemName
- * @param string $name
- * @param array $values
+ *
+ * @param string $itemName
+ * @param string $name
+ * @param array $values
* @return void
*/
- function __construct($itemName, $name, $values)
+ function __construct($itemName, $name, $values)
{
$this->_itemName = $itemName;
$this->_name = $name;
@@ -53,7 +53,7 @@
}
}
- /**
+ /**
* Return the item name to which the attribute belongs
*
* @return string
@@ -63,7 +63,7 @@
return $this->_itemName;
}
- /**
+ /**
* Retrieve attribute values
*
* @return array
@@ -73,7 +73,7 @@
return $this->_values;
}
- /**
+ /**
* Retrieve the attribute name
*
* @return string
@@ -82,17 +82,17 @@
{
return $this->_name;
}
-
+
/**
* Add value
- *
- * @param mixed $value
+ *
+ * @param mixed $value
* @return void
*/
public function addValue($value)
{
if (is_array($value)) {
- $this->_values += $value;
+ $this->_values += $value;
} else {
$this->_values[] = $value;
}
--- a/web/lib/Zend/Service/Amazon/SimpleDb/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimpleDb/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_SimpleDb_Exception extends Zend_Service_Amazon_Exception
@@ -42,10 +42,10 @@
/**
* Constructor
- *
- * @param string $message
- * @param int $code
- * @param string $awsErrorCode
+ *
+ * @param string $message
+ * @param int $code
+ * @param string $awsErrorCode
* @return void
*/
public function __construct($message, $code = 0, $awsErrorCode = '')
@@ -56,7 +56,7 @@
/**
* Get AWS error code
- *
+ *
* @return string
*/
public function getErrorCode()
--- a/web/lib/Zend/Service/Amazon/SimpleDb/Page.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimpleDb/Page.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,97 +1,97 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service_Amazon
- * @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-/**
- * @see Zend_Service_Amazon_Exception
- */
-require_once 'Zend/Service/Amazon/Exception.php';
-
-/**
- * The Custom Exception class that allows you to have access to the AWS Error Code.
- *
- * @category Zend
- * @package Zend_Service_Amazon
- * @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Amazon_SimpleDb_Page
-{
- /** @var string Page data */
- protected $_data;
-
- /** @var string|null Token identifying page */
- protected $_token;
-
- /**
- * Constructor
- *
- * @param string $data
- * @param string|null $token
- * @return void
- */
- public function __construct($data, $token = null)
- {
- $this->_data = $data;
- $this->_token = $token;
- }
-
- /**
- * Retrieve page data
- *
- * @return string
- */
- public function getData()
- {
- return $this->_data;
- }
-
- /**
- * Retrieve token
- *
- * @return string|null
- */
- public function getToken()
- {
- return $this->_token;
- }
-
- /**
- * Determine whether this is the last page of data
- *
- * @return void
- */
- public function isLast()
- {
- return (null === $this->_token);
- }
-
- /**
- * Cast to string
- *
- * @return string
- */
- public function __toString()
- {
- return "Page with token: " . $this->_token
- . "\n and data: " . $this->_data;
- }
-}
+<?php
+/**
+ * Zend Framework
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.txt.
+ * It is also available through the world-wide-web at this URL:
+ * http://framework.zend.com/license/new-bsd
+ * If you did not receive a copy of the license and are unable to
+ * obtain it through the world-wide-web, please send an email
+ * to license@zend.com so we can send you a copy immediately.
+ *
+ * @category Zend
+ * @package Zend_Service_Amazon
+ * @subpackage SimpleDb
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+
+/**
+ * @see Zend_Service_Amazon_Exception
+ */
+require_once 'Zend/Service/Amazon/Exception.php';
+
+/**
+ * The Custom Exception class that allows you to have access to the AWS Error Code.
+ *
+ * @category Zend
+ * @package Zend_Service_Amazon
+ * @subpackage SimpleDb
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @license http://framework.zend.com/license/new-bsd New BSD License
+ */
+class Zend_Service_Amazon_SimpleDb_Page
+{
+ /** @var string Page data */
+ protected $_data;
+
+ /** @var string|null Token identifying page */
+ protected $_token;
+
+ /**
+ * Constructor
+ *
+ * @param string $data
+ * @param string|null $token
+ * @return void
+ */
+ public function __construct($data, $token = null)
+ {
+ $this->_data = $data;
+ $this->_token = $token;
+ }
+
+ /**
+ * Retrieve page data
+ *
+ * @return string
+ */
+ public function getData()
+ {
+ return $this->_data;
+ }
+
+ /**
+ * Retrieve token
+ *
+ * @return string|null
+ */
+ public function getToken()
+ {
+ return $this->_token;
+ }
+
+ /**
+ * Determine whether this is the last page of data
+ *
+ * @return void
+ */
+ public function isLast()
+ {
+ return (null === $this->_token);
+ }
+
+ /**
+ * Cast to string
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return "Page with token: " . $this->_token
+ . "\n and data: " . $this->_data;
+ }
+}
--- a/web/lib/Zend/Service/Amazon/SimpleDb/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/SimpleDb/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,10 +28,10 @@
* @category Zend
* @package Zend_Service_Amazon
* @subpackage SimpleDb
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Service_Amazon_SimpleDb_Response
+class Zend_Service_Amazon_SimpleDb_Response
{
/**
* XML namespace used for SimpleDB responses.
@@ -120,20 +120,20 @@
$body = false;
}
-
+
return simplexml_load_string($body);
}
-
+
/**
* Get HTTP response object
- *
+ *
* @return Zend_Http_Response
*/
- public function getHttpResponse()
+ public function getHttpResponse()
{
return $this->_httpResponse;
}
-
+
/**
* Gets the document object for this response
*
@@ -156,7 +156,7 @@
if (!$this->_document->loadXML($body)) {
$this->_document = false;
}
-
+
// reset libxml error handling
libxml_clear_errors();
libxml_use_internal_errors($errors);
--- a/web/lib/Zend/Service/Amazon/Sqs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Sqs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_Sqs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sqs.php 22984 2010-09-21 02:52:48Z matthew $
+ * @version $Id: Sqs.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_Sqs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://aws.amazon.com/sqs/ Amazon Simple Queue Service
*/
@@ -67,9 +67,17 @@
*/
protected $_sqsSignatureMethod = 'HmacSHA256';
+ protected $_sqsEndpoints = array('us-east-1' => 'sqs.us-east-1.amazonaws.com',
+ 'us-west-1' => 'sqs.us-west-1.amazonaws.com',
+ 'eu-west-1' => 'sqs.eu-west-1.amazonaws.com',
+ 'ap-southeast-1' => 'sqs.ap-southeast-1.amazonaws.com',
+ 'ap-northeast-1' => 'sqs.ap-northeast-1.amazonaws.com');
/**
* Constructor
*
+ * The default region is us-east-1. Use the region to set it to one of the regions that is build-in into ZF.
+ * To add a new AWS region use the setEndpoint() method.
+ *
* @param string $accessKey
* @param string $secretKey
* @param string $region
@@ -77,9 +85,78 @@
public function __construct($accessKey = null, $secretKey = null, $region = null)
{
parent::__construct($accessKey, $secretKey, $region);
+
+ if (null !== $region) {
+ $this->_setEndpoint($region);
+ }
}
/**
+ * Set SQS endpoint
+ *
+ * Checks and sets endpoint if region exists in $_sqsEndpoints. If a new SQS region is added by amazon,
+ * please use the setEndpoint function to set it.
+ *
+ * @param string $region region
+ * @throws Zend_Service_Amazon_Sqs_Exception
+ */
+ protected function _setEndpoint($region)
+ {
+ if (array_key_exists($region, $this->_sqsEndpoints)) {
+ $this->_sqsEndpoint = $this->_sqsEndpoints[$region];
+ } else {
+ throw new Zend_Service_Amazon_Sqs_Exception('Invalid SQS region specified.');
+ }
+ }
+
+ /**
+ * Set SQS endpoint
+ *
+ * You can set SQS to on of the build-in regions. If the region does not exsist it will be added.
+ *
+ * @param string $region region
+ * @throws Zend_Service_Amazon_Sqs_Exception
+ */
+ public function setEndpoint($region)
+ {
+ if (!empty($region)) {
+ if (array_key_exists($region, $this->_sqsEndpoints)) {
+ $this->_sqsEndpoint = $this->_sqsEndpoints[$region];
+ } else {
+ $this->_sqsEndpoints[$region] = "sqs.$region.amazonaws.com";
+ $this->_sqsEndpoint = $this->_sqsEndpoints[$region];
+ }
+ } else {
+ throw new Zend_Service_Amazon_Sqs_Exception('Empty region specified.');
+ }
+ }
+
+ /**
+ * Get the SQS endpoint
+ *
+ * @return string
+ */
+ public function getEndpoint()
+ {
+ return $this->_sqsEndpoint;
+ }
+
+ /**
+ * Get possible SQS endpoints
+ *
+ * Since there is not an SQS webserive to get all possible endpoints, a hardcoded list is available.
+ * For the actual region list please check:
+ * http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/APIReference/index.html?QueueServiceWsdlArticle.html
+ *
+ * @param string $region region
+ * @return array
+ */
+ public function getEndpoints()
+ {
+ return $this->_sqsEndpoints;
+ }
+
+ /**
* Create a new queue
*
* Visibility timeout is how long a message is left in the queue "invisible"
@@ -288,7 +365,7 @@
$result = $this->_makeRequest($queue_url, 'DeleteMessage', $params);
- if (isset($result->Error->Code)
+ if (isset($result->Error->Code)
&& !empty($result->Error->Code)
) {
return false;
@@ -319,7 +396,7 @@
require_once 'Zend/Service/Amazon/Sqs/Exception.php';
throw new Zend_Service_Amazon_Sqs_Exception($result->Error->Code);
}
-
+
if(count($result->GetQueueAttributesResult->Attribute) > 1) {
$attr_result = array();
foreach($result->GetQueueAttributesResult->Attribute as $attribute) {
--- a/web/lib/Zend/Service/Amazon/Sqs/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Amazon/Sqs/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_Sqs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Amazon_Sqs
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Amazon_Sqs_Exception extends Zend_Service_Amazon_Exception
--- a/web/lib/Zend/Service/Audioscrobbler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Audioscrobbler.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Audioscrobbler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Audioscrobbler.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Audioscrobbler.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Audioscrobbler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Audioscrobbler
--- a/web/lib/Zend/Service/Delicious.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Delicious.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Delicious.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Delicious.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -54,7 +54,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Delicious
--- a/web/lib/Zend/Service/Delicious/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Delicious/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Delicious_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/Delicious/Post.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Delicious/Post.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Post.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Post.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Delicious_Post extends Zend_Service_Delicious_SimplePost
--- a/web/lib/Zend/Service/Delicious/PostList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Delicious/PostList.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PostList.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PostList.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Delicious_PostList implements Countable, Iterator, ArrayAccess
--- a/web/lib/Zend/Service/Delicious/SimplePost.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Delicious/SimplePost.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimplePost.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimplePost.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Delicious
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Delicious_SimplePost
--- a/web/lib/Zend/Service/DeveloperGarden/BaseUserService.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/BaseUserService.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BaseUserService.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: BaseUserService.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -64,7 +64,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/BaseUserService/AccountBalance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/BaseUserService/AccountBalance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AccountBalance.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: AccountBalance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Client/ClientAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Client/ClientAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ClientAbstract.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: ClientAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -39,7 +39,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Client/Soap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Client/Soap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Soap.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Soap.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConferenceCall.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ConferenceCall.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -319,7 +319,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceAccount.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceAccount.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConferenceAccount.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ConferenceAccount.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceDetail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceDetail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConferenceDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ConferenceDetail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -90,7 +90,7 @@
/**
* set the description of this conference
*
- * @param $description the $description to set
+ * @param string $description the $description to set
* @return Zend_Service_DeveloperGarden_ConferenceCall_ConferenceDetail
*/
public function setDescription($description)
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceSchedule.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ConferenceSchedule.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConferenceSchedule.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ConferenceSchedule.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/Participant.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/Participant.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Participant.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Participant.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ParticipantDetail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ParticipantDetail.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ParticipantDetail.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ParticipantDetail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @see Zend_Validate_EmailAddress
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ParticipantStatus.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/ConferenceCall/ParticipantStatus.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ParticipantStatus.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ParticipantStatus.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Credential.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Credential.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Credential.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Credential.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -134,7 +134,7 @@
* if $withRealm == true we combine username and realm like
* username@realm
*
- * @param $boolean withRealm
+ * @param bool $withRealm
* @return string|null
*/
public function getUsername($withRealm = false)
--- a/web/lib/Zend/Service/DeveloperGarden/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/IpLocation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/IpLocation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IpLocation.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: IpLocation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -64,11 +64,11 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Service_DeveloperGarden_IpLocation
+class Zend_Service_DeveloperGarden_IpLocation
extends Zend_Service_DeveloperGarden_Client_ClientAbstract
{
/**
--- a/web/lib/Zend/Service/DeveloperGarden/IpLocation/IpAddress.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/IpLocation/IpAddress.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IpAddress.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: IpAddress.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/LocalSearch.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/LocalSearch.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalSearch.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocalSearch.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/LocalSearch/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/LocalSearch/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/LocalSearch/SearchParameters.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/LocalSearch/SearchParameters.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SearchParameters.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: SearchParameters.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -294,10 +294,10 @@
* rx = longitude right bottom
* ry = latitude right bottom
*
- * @param $lx
- * @param $ly
- * @param $rx
- * @param $ry
+ * @param float $lx
+ * @param float $ly
+ * @param float $rx
+ * @param float $ry
* @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
*/
public function setRectangle($lx, $ly, $rx, $ry)
@@ -416,8 +416,8 @@
* sets a category filter
*
* @see http://www.suchen.de/kategorie-katalog
- * @param $category
- * @return unknown_type
+ * @param string $category
+ * @return Zend_Service_DeveloperGarden_LocalSearch_SearchParameters
*/
public function setCategory($category = null)
{
--- a/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/ChangeQuotaPool.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/ChangeQuotaPool.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ChangeQuotaPool.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ChangeQuotaPool.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/GetAccountBalance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/GetAccountBalance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetAccountBalance.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetAccountBalance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/GetQuotaInformation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/BaseUserService/GetQuotaInformation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetQuotaInformation.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetQuotaInformation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/AddConferenceTemplateParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/AddConferenceTemplateParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AddConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: AddConferenceTemplateParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CommitConferenceRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CommitConferenceRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommitConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CommitConferenceRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -125,7 +125,7 @@
/**
* sets $account
*
- * @param $account
+ * @param int $account
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
*/
public function setAccount($account = null)
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceTemplateRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/CreateConferenceTemplateRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceTemplateRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceListRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceListRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceListRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceListRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -93,7 +93,7 @@
/**
* sets $ownerId
*
- * @param $ownerId
+ * @param int $ownerId
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceListRequest
*/
public function setOwnerId($ownerId)
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceStatusRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceStatusRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceStatusRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceStatusRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateListRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateListRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateListRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateListRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -58,7 +58,7 @@
/**
* sets $ownerId
*
- * @param $ownerId
+ * @param int $ownerId
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_GetConferenceTemplateListRequest
*/
public function setOwnerId($ownerId)
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetConferenceTemplateRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetParticipantStatusRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetParticipantStatusRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetParticipantStatusRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetParticipantStatusRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetRunningConferenceRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/GetRunningConferenceRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetRunningConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetRunningConferenceRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/NewParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/NewParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceTemplateParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveConferenceTemplateRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceTemplateRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/RemoveParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -147,7 +147,7 @@
/**
* sets $account
*
- * @param $account
+ * @param int $account
* @return Zend_Service_DeveloperGarden_Request_ConferenceCall_CreateConferenceRequest
*/
public function setAccount($account = null)
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceTemplateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceTemplateParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateConferenceTemplateRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceTemplateRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceTemplateRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateParticipantRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/ConferenceCall/UpdateParticipantRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateParticipantRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateParticipantRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/IpLocation/LocateIPRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/IpLocation/LocateIPRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocateIPRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocateIPRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/LocalSearch/LocalSearchRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/LocalSearch/LocalSearchRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalSearchRequest.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocalSearchRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -65,8 +65,8 @@
* @param integer $account
* @return Zend_Service_DeveloperGarden_Request_RequestAbstract
*/
- public function __construct($environment,
- Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters,
+ public function __construct($environment,
+ Zend_Service_DeveloperGarden_LocalSearch_SearchParameters $searchParameters,
$account = null
) {
parent::__construct($environment);
--- a/web/lib/Zend/Service/DeveloperGarden/Request/RequestAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/RequestAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RequestAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RequestAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendFlashSMS.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendFlashSMS.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendFlashSMS.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendFlashSMS.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendSMS.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendSMS.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendSMS.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendSMS.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SendSms/SendSmsAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendSmsAbstract.php 20418 2010-01-19 11:43:30Z bate $
+ * @version $Id: SendSmsAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -72,14 +72,14 @@
* @var array
*/
private $_specialChars = array(
- '|',
- '^',
- '{',
- '}',
- '[',
- ']',
- '~',
- '\\',
+ '|',
+ '^',
+ '{',
+ '}',
+ '[',
+ ']',
+ '~',
+ '\\',
"\n",
// '€', removed because its counted in utf8 correctly
);
@@ -207,7 +207,7 @@
/**
* sets a new accounts
*
- * @param $account the $account to set
+ * @param int $account the $account to set
* @return Zend_Service_DeveloperGarden_Request_SendSms_SendSmsAbstract
*/
public function setAccount($account)
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/GetValidatedNumbers.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/GetValidatedNumbers.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetValidatedNumbers.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetValidatedNumbers.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/Invalidate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/Invalidate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Invalidate.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Invalidate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/SendValidationKeyword.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/SendValidationKeyword.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendValidationKeyword.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendValidationKeyword.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/Validate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/SmsValidation/Validate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Validate.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Validate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/CallStatus.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/CallStatus.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CallStatus.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CallStatus.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/NewCall.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/NewCall.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewCall.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewCall.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/NewCallSequenced.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/NewCallSequenced.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewCallSequenced.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewCallSequenced.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/TearDownCall.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/TearDownCall.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TearDownCall.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: TearDownCall.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Request/VoiceButler/VoiceButlerAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VoiceButlerAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: VoiceButlerAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/BaseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/BaseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BaseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: BaseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/ChangeQuotaPoolResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/ChangeQuotaPoolResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ChangeQuotaPoolResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ChangeQuotaPoolResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/GetAccountBalanceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetAccountBalanceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetAccountBalanceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/BaseUserService/GetQuotaInformationResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetQuotaInformationResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetQuotaInformationResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AddConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: AddConferenceTemplateParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/AddConferenceTemplateParticipantResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AddConferenceTemplateParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: AddConferenceTemplateParticipantResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CCSResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CCSResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CCSResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CCSResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CommitConferenceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CommitConferenceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CommitConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CommitConferenceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/ConferenceCallAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConferenceCallAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ConferenceCallAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceTemplateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/CreateConferenceTemplateResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreateConferenceTemplateResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CreateConferenceTemplateResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceListResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceListResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceListResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceListResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceListResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceStatusResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceStatusResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceStatusResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceStatusResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceStatusResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateListResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateListResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateListResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateListResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateListResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateParticipantResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateParticipantResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetConferenceTemplateResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetConferenceTemplateResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetConferenceTemplateResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetParticipantStatusResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetParticipantStatusResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetParticipantStatusResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetParticipantStatusResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetParticipantStatusResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetRunningConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetRunningConferenceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/GetRunningConferenceResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetRunningConferenceResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetRunningConferenceResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/NewParticipantResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewParticipantResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewParticipantResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceTemplateParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveConferenceTemplateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveConferenceTemplateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/RemoveParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RemoveParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RemoveParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceTemplateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceTemplateParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateConferenceTemplateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateConferenceTemplateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateConferenceTemplateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateParticipantResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ConferenceCall/UpdateParticipantResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UpdateParticipantResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: UpdateParticipantResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/CityType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CityType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CityType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/GeoCoordinatesType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GeoCoordinatesType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GeoCoordinatesType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/IPAddressLocationType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/IPAddressLocationType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IPAddressLocationType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: IPAddressLocationType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocateIPResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocateIPResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/LocateIPResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocateIPResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocateIPResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/IpLocation/RegionType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RegionType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: RegionType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalSearchResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocalSearchResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponseType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/LocalSearch/LocalSearchResponseType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalSearchResponseType.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: LocalSearchResponseType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/ResponseAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/ResponseAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResponseAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ResponseAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/GetTokensResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/GetTokensResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetTokensResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetTokensResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,16 +16,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/SecurityTokenResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SecurityTokenServer/SecurityTokenResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SecurityTokenResponse.php 21189 2010-02-24 01:50:33Z stas $
+ * @version $Id: SecurityTokenResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendFlashSMSResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendFlashSMSResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendFlashSMSResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendFlashSMSResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendSMSResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendSMSResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendSMSResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendSMSResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendSmsAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SendSms/SendSmsAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendSmsAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendSmsAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/GetValidatedNumbersResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/GetValidatedNumbersResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetValidatedNumbersResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: GetValidatedNumbersResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/InvalidateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/InvalidateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InvalidateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: InvalidateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/SendValidationKeywordResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/SendValidationKeywordResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendValidationKeywordResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendValidationKeywordResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/ValidateResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/ValidateResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ValidateResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ValidateResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/ValidatedNumber.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/SmsValidation/ValidatedNumber.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ValidatedNumber.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: ValidatedNumber.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatus2Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatus2Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CallStatus2Response.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CallStatus2Response.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatusResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/CallStatusResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CallStatusResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: CallStatusResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/NewCallResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/NewCallResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewCallResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewCallResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/NewCallSequencedResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/NewCallSequencedResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewCallSequencedResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: NewCallSequencedResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/TearDownCallResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/TearDownCallResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TearDownCallResponse.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: TearDownCallResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/VoiceButlerAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/Response/VoiceButler/VoiceButlerAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VoiceButlerAbstract.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: VoiceButlerAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/SecurityTokenServer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/SecurityTokenServer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SecurityTokenServer.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SecurityTokenServer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -44,7 +44,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/SecurityTokenServer/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/SecurityTokenServer/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/SendSms.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/SendSms.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SendSms.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SendSms.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/SmsValidation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/SmsValidation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SmsValidation.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: SmsValidation.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -74,7 +74,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/DeveloperGarden/VoiceCall.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/DeveloperGarden/VoiceCall.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VoiceCall.php 20166 2010-01-09 19:00:17Z bkarwin $
+ * @version $Id: VoiceCall.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -74,7 +74,7 @@
* @category Zend
* @package Zend_Service
* @subpackage DeveloperGarden
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @author Marco Kaiser
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
--- a/web/lib/Zend/Service/Ebay/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -24,7 +24,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Ebay_Abstract
--- a/web/lib/Zend/Service/Ebay/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Exception
*/
--- a/web/lib/Zend/Service/Ebay/Finding.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Finding.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Abstract.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Ebay_Finding_Abstract
--- a/web/lib/Zend/Service/Ebay/Finding/Aspect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Aspect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Aspect.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Container.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Value.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Value.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Value.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Value/Set.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Aspect/Histogram/Value/Set.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Set.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Set_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Aspect/Set.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Aspect/Set.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Set.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Set_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Category.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Category.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Category.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Category/Histogram.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Category/Histogram.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Histogram.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Category
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Category/Histogram/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Category/Histogram/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Container.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Category/Histogram/Set.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Category/Histogram/Set.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Set.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Set_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Error/Data.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Error/Data.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Data.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Error/Data/Set.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Error/Data/Set.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Set.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Set_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Error/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Error/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Message.php 22802 2010-08-07 19:27:37Z ramon $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Exception.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Exception
*/
--- a/web/lib/Zend/Service/Ebay/Finding/ListingInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/ListingInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ListingInfo.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/PaginationOutput.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/PaginationOutput.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: PaginationOutput.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Response/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Response/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Abstract.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Response/Histograms.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Response/Histograms.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Histograms.php 22804 2010-08-08 05:08:05Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Response_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Response/Items.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Response/Items.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Items.php 22804 2010-08-08 05:08:05Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Response_Histograms
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Response/Keywords.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Response/Keywords.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Keywords.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Response_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Search/Item.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Search/Item.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http:framework.zend.com/license/new-bsd New BSD License
* @version $Id: Item.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http:framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Search/Item/Set.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Search/Item/Set.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Set.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Set_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Search/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Search/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Result.php 22804 2010-08-08 05:08:05Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/SellerInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/SellerInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SellerInfo.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/SellingStatus.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/SellingStatus.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SellingStatus.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Set/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Set/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Abstract.php 20166 2010-01-09 19:00:17Z bkarwin $
*/
@@ -24,7 +24,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_Ebay_Finding_Set_Abstract implements SeekableIterator, Countable
--- a/web/lib/Zend/Service/Ebay/Finding/ShippingInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/ShippingInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: ShippingInfo.php 22791 2010-08-04 16:11:47Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Ebay/Finding/Storefront.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Ebay/Finding/Storefront.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Storefront.php 22824 2010-08-09 18:59:54Z renanbr $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Ebay
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @uses Zend_Service_Ebay_Finding_Abstract
*/
--- a/web/lib/Zend/Service/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Service
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Exception extends Zend_Exception
--- a/web/lib/Zend/Service/Flickr.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Flickr.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Flickr.php 22598 2010-07-16 21:24:14Z mikaelkael $
+ * @version $Id: Flickr.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Flickr
--- a/web/lib/Zend/Service/Flickr/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Flickr/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Flickr_Image
--- a/web/lib/Zend/Service/Flickr/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Flickr/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Flickr_Result
--- a/web/lib/Zend/Service/Flickr/ResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Flickr/ResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Flickr
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Flickr_ResultSet implements SeekableIterator
--- a/web/lib/Zend/Service/LiveDocx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/LiveDocx.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LiveDocx.php 23022 2010-10-05 15:30:55Z jonathan_maron $
+ * @version $Id: LiveDocx.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @since LiveDocx 1.0
*/
@@ -42,37 +42,37 @@
* @since LiveDocx 1.0
*/
protected $_soapClient;
-
+
/**
* WSDL of LiveDocx web service
* @var string
* @since LiveDocx 1.0
*/
protected $_wsdl;
-
+
/**
* Array of credentials (username and password) to log into backend server
* @var array
* @since LiveDocx 1.2
*/
protected $_credentials;
-
+
/**
* Set to true, when session is logged into backend server
* @var boolean
* @since LiveDocx 1.2
*/
protected $_loggedIn;
-
+
/**
* Constructor
*
* Optionally, pass an array of options (or Zend_Config object).
- *
- * If an option with the key 'soapClient' is provided, that value will be
+ *
+ * If an option with the key 'soapClient' is provided, that value will be
* used to set the internal SOAP client used to connect to the LiveDocx
* service.
- *
+ *
* Use 'soapClient' in the case that you have a dedicated or (locally
* installed) licensed LiveDocx server. For example:
*
@@ -85,7 +85,7 @@
* )
* );
* {code}
- *
+ *
* Replace the URI of the WSDL in the constructor of Zend_Soap_Client with
* that of your dedicated or licensed LiveDocx server.
*
@@ -100,54 +100,54 @@
* )
* );
* {code}
- *
+ *
* If you prefer to not pass the username and password through the
* constructor, you can also call the following methods:
- *
+ *
* {code}
* $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
- *
+ *
* $phpLiveDocx->setUsername('myUsername')
* ->setPassword('myPassword');
* {/code}
- *
+ *
* Or, if you want to specify your own SoapClient:
- *
+ *
* {code}
* $phpLiveDocx = new Zend_Service_LiveDocx_MailMerge();
- *
+ *
* $phpLiveDocx->setUsername('myUsername')
* ->setPassword('myPassword');
- *
+ *
* $phpLiveDocx->setSoapClient(
* new Zend_Soap_Client('https://api.example.com/path/mailmerge.asmx?WSDL')
* );
- * {/code}
+ * {/code}
*
* @param array|Zend_Config $options
* @return void
* @throws Zend_Service_LiveDocx_Exception
* @since LiveDocx 1.0
- */
+ */
public function __construct($options = null)
{
$this->_credentials = array();
$this->_loggedIn = false;
-
+
if ($options instanceof Zend_Config) {
$options = $options->toArray();
}
-
+
if (is_array($options)) {
$this->setOptions($options);
}
}
-
+
/**
* Set options
* One or more of username, password, soapClient
- *
- * @param $options
+ *
+ * @param array $options
* @return Zend_Service_LiveDocx
* @since LiveDocx 1.2
*/
@@ -159,10 +159,10 @@
$this->$method($value);
}
}
-
+
return $this;
}
-
+
/**
* Clean up and log out of LiveDocx service
*
@@ -173,7 +173,7 @@
{
return $this->logOut();
}
-
+
/**
* Init Soap client - connect to SOAP service
*
@@ -187,13 +187,13 @@
try {
require_once 'Zend/Soap/Client.php';
$this->_soapClient = new Zend_Soap_Client();
- $this->_soapClient->setWsdl($endpoint);
+ $this->_soapClient->setWsdl($endpoint);
} catch (Zend_Soap_Client_Exception $e) {
require_once 'Zend/Service/LiveDocx/Exception.php';
throw new Zend_Service_LiveDocx_Exception('Cannot connect to LiveDocx service at ' . $endpoint, 0, $e);
- }
+ }
}
-
+
/**
* Get SOAP client
*
@@ -204,7 +204,7 @@
{
return $this->_soapClient;
}
-
+
/**
* Set SOAP client
*
@@ -237,18 +237,18 @@
'Username has not been set. To set username specify the options array in the constructor or call setUsername($username) after instantiation'
);
}
-
+
if (null === $this->getPassword()) {
require_once 'Zend/Service/LiveDocx/Exception.php';
throw new Zend_Service_LiveDocx_Exception(
'Password has not been set. To set password specify the options array in the constructor or call setPassword($password) after instantiation'
);
}
-
+
if (null === $this->getSoapClient()) {
$this->_initSoapClient($this->_wsdl);
- }
-
+ }
+
try {
$this->getSoapClient()->LogIn(array(
'username' => $this->getUsername(),
@@ -260,9 +260,9 @@
throw new Zend_Service_LiveDocx_Exception(
'Cannot login into LiveDocx service - username and/or password are invalid', 0, $e
);
- }
+ }
}
-
+
return $this->_loggedIn;
}
@@ -284,15 +284,15 @@
throw new Zend_Service_LiveDocx_Exception(
'Cannot log out of LiveDocx service', 0, $e
);
- }
+ }
}
-
+
return $this->_loggedIn;
}
-
+
/**
* Return true, if session is currently logged into the backend server
- *
+ *
* @return boolean
* @since LiveDocx 1.2
*/
@@ -300,10 +300,10 @@
{
return $this->_loggedIn;
}
-
+
/**
* Set username
- *
+ *
* @return Zend_Service_LiveDocx
* @since LiveDocx 1.0
*/
@@ -312,13 +312,13 @@
$this->_credentials['username'] = $username;
return $this;
}
-
+
/**
* Set password
- *
+ *
* @return Zend_Service_LiveDocx
* @since LiveDocx 1.0
- */
+ */
public function setPassword($password)
{
$this->_credentials['password'] = $password;
@@ -327,19 +327,19 @@
/**
* Set WSDL of LiveDocx web service
- *
+ *
* @return Zend_Service_LiveDocx
* @since LiveDocx 1.0
- */
- public function setWsdl($wsdl)
+ */
+ public function setWsdl($wsdl)
{
$this->_wsdl = $wsdl;
return $this;
}
-
+
/**
* Return current username
- *
+ *
* @return string|null
* @since LiveDocx 1.0
*/
@@ -348,35 +348,35 @@
if (isset($this->_credentials['username'])) {
return $this->_credentials['username'];
}
-
+
return null;
}
-
+
/**
* Return current password
- *
+ *
* @return string|null
* @since LiveDocx 1.0
- */
+ */
public function getPassword()
{
if (isset($this->_credentials['password'])) {
return $this->_credentials['password'];
}
-
- return null;
+
+ return null;
}
-
+
/**
* Return WSDL of LiveDocx web service
- *
+ *
* @return Zend_Service_LiveDocx
* @since LiveDocx 1.0
- */
- public function getWsdl()
+ */
+ public function getWsdl()
{
return $this->_wsdl;
- }
+ }
/**
* Return the document format (extension) of a filename
@@ -389,7 +389,7 @@
{
return strtolower(substr(strrchr($filename, '.'), 1));
}
-
+
/**
* Return the current API version
*
@@ -400,7 +400,7 @@
{
return self::VERSION;
}
-
+
/**
* Compare the current API version with another version
*
@@ -412,4 +412,4 @@
{
return version_compare($version, $this->getVersion());
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/Service/LiveDocx/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/LiveDocx/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @since LiveDocx 1.0
*/
--- a/web/lib/Zend/Service/LiveDocx/MailMerge.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/LiveDocx/MailMerge.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MailMerge.php 23022 2010-10-05 15:30:55Z jonathan_maron $
+ * @version $Id: MailMerge.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Date **/
@@ -30,15 +30,15 @@
* @category Zend
* @package Zend_Service
* @subpackage LiveDocx
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @since LiveDocx 1.0
+ * @since LiveDocx 1.0
*/
class Zend_Service_LiveDocx_MailMerge extends Zend_Service_LiveDocx
{
/**
* URI of LiveDocx.MailMerge WSDL
- * @since LiveDocx 1.0
+ * @since LiveDocx 1.0
*/
//const WSDL = 'https://api.livedocx.com/1.2/mailmerge.asmx?WSDL';
const WSDL = 'https://api.livedocx.com/2.0/mailmerge.asmx?WSDL';
@@ -71,7 +71,7 @@
$this->_wsdl = self::WSDL;
$this->_fieldValues = array();
$this->_blockFieldValues = array();
-
+
parent::__construct($options);
}
@@ -93,7 +93,7 @@
}
$this->logIn();
-
+
try {
$this->getSoapClient()->SetLocalTemplate(array(
'template' => base64_encode(file_get_contents($filename)),
@@ -121,7 +121,7 @@
public function setRemoteTemplate($filename)
{
$this->logIn();
-
+
try {
$this->getSoapClient()->SetRemoteTemplate(array(
'filename' => $filename,
@@ -147,7 +147,7 @@
public function setFieldValues($values)
{
$this->logIn();
-
+
foreach ($values as $value) {
if (is_array($value)) {
$method = 'multiAssocArrayToArrayOfArrayOfString';
@@ -156,7 +156,7 @@
}
break;
}
-
+
try {
$this->getSoapClient()->SetFieldValues(array(
'fieldValues' => self::$method($values),
@@ -184,7 +184,7 @@
public function setFieldValue($field, $value)
{
$this->_fieldValues[$field] = $value;
-
+
return $this;
}
@@ -201,7 +201,7 @@
public function setBlockFieldValues($blockName, $blockFieldValues)
{
$this->logIn();
-
+
try {
$this->getSoapClient()->SetBlockFieldValues(array(
'blockName' => $blockName,
@@ -250,9 +250,9 @@
/**
* Set a password to open to document
- *
+ *
* This method can only be used for PDF documents
- *
+ *
* @param string $password
* @return Zend_Service_LiveDocx_MailMerge
* @throws Zend_Service_LiveDocx_Exception
@@ -261,7 +261,7 @@
public function setDocumentPassword($password)
{
$this->logIn();
-
+
try {
$this->getSoapClient()->SetDocumentPassword(array(
'password' => $password
@@ -272,18 +272,18 @@
'Cannot set document password. This method can be used on PDF files only.', 0, $e
);
}
-
- return $this;
+
+ return $this;
}
-
+
/**
* Set a master password for document and determine which security features
* are accessible without using the master password.
- *
+ *
* As default, nothing is allowed. To allow a security setting,
* explicatively set it using one of he DOCUMENT_ACCESS_PERMISSION_* class
- * constants.
- *
+ * constants.
+ *
* {code}
* $phpLiveDocx->setDocumentAccessPermissions(
* array (
@@ -293,10 +293,10 @@
* 'myDocumentAccessPassword'
* );
* {code}
- *
+ *
* This method can only be used for PDF documents
- *
- * @param array $permissions
+ *
+ * @param array $permissions
* @param string $password
* @return Zend_Service_LiveDocx_MailMerge
* @throws Zend_Service_LiveDocx_Exception
@@ -305,7 +305,7 @@
public function setDocumentAccessPermissions($permissions, $password)
{
$this->logIn();
-
+
try {
$this->getSoapClient()->SetDocumentAccessPermissions(array(
'permissions' => $permissions,
@@ -317,10 +317,10 @@
'Cannot set document access permissions', 0, $e
);
}
-
- return $this;
- }
-
+
+ return $this;
+ }
+
/**
* Merge assigned data with template to generate document
*
@@ -331,7 +331,7 @@
public function createDocument()
{
$this->logIn();
-
+
if (count($this->_fieldValues) > 0) {
$this->setFieldValues($this->_fieldValues);
}
@@ -361,9 +361,9 @@
public function retrieveDocument($format)
{
$this->logIn();
-
+
$format = strtolower($format);
-
+
try {
$result = $this->getSoapClient()->RetrieveDocument(array(
'format' => $format,
@@ -390,7 +390,7 @@
public function getMetafiles($fromPage, $toPage)
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetMetafiles(array(
'fromPage' => (integer) $fromPage,
@@ -422,7 +422,7 @@
public function getAllMetafiles()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetAllMetafiles();
@@ -439,8 +439,8 @@
}
return $ret;
- }
-
+ }
+
/**
* Return graphical bitmap data for specified page range of created document
* Return array contains bitmap data (binary) - array key is page number
@@ -451,13 +451,13 @@
* @param string $format
* @return array
* @since LiveDocx 1.2
- */
+ */
public function getBitmaps($fromPage, $toPage, $zoomFactor, $format)
{
$this->logIn();
-
+
$ret = array();
-
+
$result = $this->getSoapClient()->GetBitmaps(array(
'fromPage' => (integer) $fromPage,
'toPage' => (integer) $toPage,
@@ -477,9 +477,9 @@
}
}
- return $ret;
+ return $ret;
}
-
+
/**
* Return graphical bitmap data for all pages of created document
* Return array contains bitmap data (binary) - array key is page number
@@ -488,11 +488,11 @@
* @param string $format
* @return array
* @since LiveDocx 1.2
- */
+ */
public function getAllBitmaps($zoomFactor, $format)
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetAllBitmaps(array(
'zoomFactor' => (integer) $zoomFactor,
@@ -511,8 +511,8 @@
}
}
- return $ret;
- }
+ return $ret;
+ }
/**
* Return all the fields in the template
@@ -523,7 +523,7 @@
public function getFieldNames()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetFieldNames();
@@ -548,7 +548,7 @@
public function getBlockFieldNames($blockName)
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetBlockFieldNames(array(
'blockName' => $blockName
@@ -574,7 +574,7 @@
public function getBlockNames()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetBlockNames();
@@ -600,7 +600,7 @@
public function uploadTemplate($filename)
{
$this->logIn();
-
+
try {
$this->getSoapClient()->UploadTemplate(array(
'template' => base64_encode(file_get_contents($filename)),
@@ -625,7 +625,7 @@
public function downloadTemplate($filename)
{
$this->logIn();
-
+
try {
$result = $this->getSoapClient()->DownloadTemplate(array(
'filename' => basename($filename),
@@ -651,7 +651,7 @@
public function deleteTemplate($filename)
{
$this->logIn();
-
+
$this->getSoapClient()->DeleteTemplate(array(
'filename' => basename($filename),
));
@@ -661,12 +661,12 @@
* List all templates stored on LiveDocx service
*
* @return array
- * @since LiveDocx 1.0
+ * @since LiveDocx 1.0
*/
public function listTemplates()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->ListTemplates();
@@ -687,7 +687,7 @@
public function templateExists($filename)
{
$this->logIn();
-
+
$result = $this->getSoapClient()->TemplateExists(array(
'filename' => basename($filename),
));
@@ -704,7 +704,7 @@
public function shareDocument()
{
$this->logIn();
-
+
$ret = null;
$result = $this->getSoapClient()->ShareDocument();
@@ -724,7 +724,7 @@
public function listSharedDocuments()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->ListSharedDocuments();
@@ -747,7 +747,7 @@
public function deleteSharedDocument($filename)
{
$this->logIn();
-
+
$this->getSoapClient()->DeleteSharedDocument(array(
'filename' => basename($filename),
));
@@ -764,7 +764,7 @@
public function downloadSharedDocument($filename)
{
$this->logIn();
-
+
try {
$result = $this->getSoapClient()->DownloadSharedDocument(array(
'filename' => basename($filename),
@@ -789,11 +789,11 @@
public function sharedDocumentExists($filename)
{
$this->logIn();
-
+
$ret = false;
$sharedDocuments = $this->listSharedDocuments();
foreach ($sharedDocuments as $shareDocument) {
- if (isset($shareDocument['filename'])
+ if (isset($shareDocument['filename'])
&& (basename($filename) === $shareDocument['filename'])
) {
$ret = true;
@@ -813,7 +813,7 @@
public function getTemplateFormats()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetTemplateFormats();
@@ -834,7 +834,7 @@
public function getDocumentFormats()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetDocumentFormats();
@@ -845,7 +845,7 @@
return $ret;
}
-
+
/**
* Return the names of all fonts that are installed on backend server
*
@@ -855,7 +855,7 @@
public function getFontNames()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetFontNames();
@@ -864,8 +864,8 @@
}
return $ret;
- }
-
+ }
+
/**
* Return supported document access options
*
@@ -875,7 +875,7 @@
public function getDocumentAccessOptions()
{
$this->logIn();
-
+
$ret = array();
$result = $this->getSoapClient()->GetDocumentAccessOptions();
@@ -947,7 +947,7 @@
trigger_error($errorMessage, E_USER_NOTICE);
*/
-
+
return $this->$replacement();
}
@@ -1062,12 +1062,12 @@
*
* @param array $list
* @return array
- * @since LiveDocx 1.0
+ * @since LiveDocx 1.0
*/
protected function _backendListArrayToMultiAssocArray($list)
{
$this->logIn();
-
+
$ret = array();
if (isset($list->ArrayOfString)) {
foreach ($list->ArrayOfString as $a) {
@@ -1108,7 +1108,7 @@
{
$arrayKeys = array_keys($assoc);
$arrayValues = array_values($assoc);
-
+
return array($arrayKeys, $arrayValues);
}
--- a/web/lib/Zend/Service/Nirvanix.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Nirvanix.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Nirvanix.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Nirvanix.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Nirvanix
--- a/web/lib/Zend/Service/Nirvanix/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Nirvanix/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Nirvanix_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/Nirvanix/Namespace/Base.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Nirvanix/Namespace/Base.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Nirvanix_Namespace_Base
@@ -76,7 +76,7 @@
/**
* Class constructor.
*
- * @param $options array Options and dependency injection
+ * @param array $options Options and dependency injection
*/
public function __construct($options = array())
{
--- a/web/lib/Zend/Service/Nirvanix/Namespace/Imfs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Nirvanix/Namespace/Imfs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Imfs.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Imfs.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Nirvanix_Namespace_Imfs extends Zend_Service_Nirvanix_Namespace_Base
--- a/web/lib/Zend/Service/Nirvanix/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Nirvanix/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Nirvanix
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Nirvanix_Response
--- a/web/lib/Zend/Service/ReCaptcha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ReCaptcha.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,9 +34,9 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ReCaptcha.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ReCaptcha.php 25153 2012-11-28 11:56:23Z cogo $
*/
class Zend_Service_ReCaptcha extends Zend_Service_Abstract
{
@@ -45,21 +45,21 @@
*
* @var string
*/
- const API_SERVER = 'http://api.recaptcha.net';
+ const API_SERVER = 'http://www.google.com/recaptcha/api';
/**
* URI to the secure API
*
* @var string
*/
- const API_SECURE_SERVER = 'https://api-secure.recaptcha.net';
+ const API_SECURE_SERVER = 'https://www.google.com/recaptcha/api';
/**
* URI to the verify server
*
* @var string
*/
- const VERIFY_SERVER = 'http://api-verify.recaptcha.net/verify';
+ const VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify';
/**
* Public key used when displaying the captcha
@@ -373,10 +373,11 @@
*
* This method uses the public key to fetch a recaptcha form.
*
+ * @param null|string $name Base name for recaptcha form elements
* @return string
* @throws Zend_Service_ReCaptcha_Exception
*/
- public function getHtml()
+ public function getHtml($name = null)
{
if ($this->_publicKey === null) {
/** @see Zend_Service_ReCaptcha_Exception */
@@ -415,6 +416,12 @@
</script>
SCRIPT;
}
+ $challengeField = 'recaptcha_challenge_field';
+ $responseField = 'recaptcha_response_field';
+ if (!empty($name)) {
+ $challengeField = $name . '[' . $challengeField . ']';
+ $responseField = $name . '[' . $responseField . ']';
+ }
$return = $reCaptchaOptions;
$return .= <<<HTML
@@ -426,9 +433,9 @@
<noscript>
<iframe src="{$host}/noscript?k={$this->_publicKey}{$errorPart}"
height="300" width="500" frameborder="0"></iframe>{$htmlBreak}
- <textarea name="recaptcha_challenge_field" rows="3" cols="40">
+ <textarea name="{$challengeField}" rows="3" cols="40">
</textarea>
- <input type="hidden" name="recaptcha_response_field"
+ <input type="hidden" name="{$responseField}"
value="manual_challenge"{$htmlInputClosing}
</noscript>
HTML;
@@ -460,21 +467,9 @@
throw new Zend_Service_ReCaptcha_Exception('Missing ip address');
}
- if (empty($challengeField)) {
- /** @see Zend_Service_ReCaptcha_Exception */
- require_once 'Zend/Service/ReCaptcha/Exception.php';
- throw new Zend_Service_ReCaptcha_Exception('Missing challenge field');
- }
-
- if (empty($responseField)) {
- /** @see Zend_Service_ReCaptcha_Exception */
- require_once 'Zend/Service/ReCaptcha/Exception.php';
-
- throw new Zend_Service_ReCaptcha_Exception('Missing response field');
- }
-
/* Fetch an instance of the http client */
$httpClient = self::getHttpClient();
+ $httpClient->resetParameters(true);
$postParams = array('privatekey' => $this->_privateKey,
'remoteip' => $this->_ip,
--- a/web/lib/Zend/Service/ReCaptcha/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ReCaptcha/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Service_ReCaptcha_Exception extends Zend_Service_Exception
{}
\ No newline at end of file
--- a/web/lib/Zend/Service/ReCaptcha/MailHide.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ReCaptcha/MailHide.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MailHide.php 20108 2010-01-06 22:05:31Z matthew $
+ * @version $Id: MailHide.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Service_ReCaptcha_MailHide extends Zend_Service_ReCaptcha
{
@@ -312,18 +312,18 @@
$enc = $this->getOption('encoding');
/* Genrate the HTML used to represent the email address */
- $html = htmlentities($this->getEmailLocalPart(), ENT_COMPAT, $enc)
- . '<a href="'
- . htmlentities($url, ENT_COMPAT, $enc)
- . '" onclick="window.open(\''
- . htmlentities($url, ENT_COMPAT, $enc)
+ $html = htmlentities($this->getEmailLocalPart(), ENT_COMPAT, $enc)
+ . '<a href="'
+ . htmlentities($url, ENT_COMPAT, $enc)
+ . '" onclick="window.open(\''
+ . htmlentities($url, ENT_COMPAT, $enc)
. '\', \'\', \'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='
- . $this->_options['popupWidth']
- . ',height='
- . $this->_options['popupHeight']
- . '\'); return false;" title="'
- . $this->_options['linkTitle']
- . '">' . $this->_options['linkHiddenText'] . '</a>@'
+ . $this->_options['popupWidth']
+ . ',height='
+ . $this->_options['popupHeight']
+ . '\'); return false;" title="'
+ . $this->_options['linkTitle']
+ . '">' . $this->_options['linkHiddenText'] . '</a>@'
. htmlentities($this->getEmailDomainPart(), ENT_COMPAT, $enc);
return $html;
--- a/web/lib/Zend/Service/ReCaptcha/MailHide/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ReCaptcha/MailHide/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Service_ReCaptcha_MailHide_Exception extends Zend_Service_ReCaptcha_Exception
{}
\ No newline at end of file
--- a/web/lib/Zend/Service/ReCaptcha/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ReCaptcha/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,9 +25,9 @@
* @category Zend
* @package Zend_Service
* @subpackage ReCaptcha
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Response.php 25152 2012-11-28 11:55:44Z cogo $
*/
class Zend_Service_ReCaptcha_Response
{
@@ -142,13 +142,18 @@
{
$body = $response->getBody();
- $parts = explode("\n", $body, 2);
+ // Default status and error code
+ $status = 'false';
+ $errorCode = '';
+
+ $parts = explode("\n", $body);
- if (count($parts) !== 2) {
- $status = 'false';
- $errorCode = '';
- } else {
- list($status, $errorCode) = $parts;
+ if ($parts[0] === 'true') {
+ $status = 'true';
+ }
+
+ if (!empty($parts[1])) {
+ $errorCode = $parts[1];
}
$this->setStatus($status);
@@ -156,4 +161,4 @@
return $this;
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/Service/ShortUrl/AbstractShortener.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/AbstractShortener.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -32,11 +32,11 @@
/**
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_ShortUrl_AbstractShortener
- extends Zend_Service_Abstract
+ extends Zend_Service_Abstract
implements Zend_Service_ShortUrl_Shortener
{
/**
@@ -46,7 +46,7 @@
*/
protected $_baseUri = null;
-
+
/**
* Checks whether URL to be shortened is valid
*
@@ -63,7 +63,7 @@
));
}
}
-
+
/**
* Verifies that the URL has been shortened by this service
*
--- a/web/lib/Zend/Service/ShortUrl/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -24,7 +24,7 @@
/**
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_ShortUrl_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/ShortUrl/IsGd.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/IsGd.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_ShortUrl_IsGd extends Zend_Service_ShortUrl_AbstractShortener
@@ -40,7 +40,7 @@
* @var string
*/
protected $_baseUri = 'http://is.gd';
-
+
/**
* This function shortens long url
*
@@ -51,15 +51,15 @@
public function shorten($url)
{
$this->_validateUri($url);
-
+
$serviceUri = 'http://is.gd/api.php';
-
+
$this->getHttpClient()->resetParameters(true);
$this->getHttpClient()->setUri($serviceUri);
$this->getHttpClient()->setParameterGet('longurl', $url);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
@@ -75,21 +75,21 @@
$this->_validateUri($shortenedUrl);
$this->_verifyBaseUri($shortenedUrl);
-
+
$this->getHttpClient()->resetParameters(true);
$this->getHttpClient()->setUri($shortenedUrl);
$this->getHttpClient()->setConfig(array('maxredirects' => 0));
-
+
$response = $this->getHttpClient()->request();
if ($response->isError()) {
require_once 'Zend/Service/ShortUrl/Exception.php';
throw new Zend_Service_ShortUrl_Exception($response->getMessage());
}
-
+
if ($response->isRedirect()) {
return $response->getHeader('Location');
}
-
+
require_once 'Zend/Service/ShortUrl/Exception.php';
throw new Zend_Service_ShortUrl_Exception('Url unshortening was not successful');
}
--- a/web/lib/Zend/Service/ShortUrl/JdemCz.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/JdemCz.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_ShortUrl_JdemCz extends Zend_Service_ShortUrl_AbstractShortener
@@ -40,7 +40,7 @@
* @var string
*/
protected $_baseUri = 'http://jdem.cz';
-
+
/**
* This function shortens long url
*
@@ -51,14 +51,14 @@
public function shorten($url)
{
$this->_validateUri($url);
-
+
$serviceUri = 'http://www.jdem.cz/get';
-
+
$this->getHttpClient()->setUri($serviceUri);
$this->getHttpClient()->setParameterGet('url', $url);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
@@ -74,11 +74,11 @@
$this->_validateUri($shortenedUrl);
$this->_verifyBaseUri($shortenedUrl);
-
+
$this->getHttpClient()->setUri($shortenedUrl)->setParameterGet('kam', 1);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
}
--- a/web/lib/Zend/Service/ShortUrl/MetamarkNet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/MetamarkNet.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_ShortUrl_MetamarkNet extends Zend_Service_ShortUrl_AbstractShortener
@@ -40,9 +40,9 @@
* @var string
*/
protected $_baseUri = 'http://xrl.us/';
-
+
protected $_apiUri = 'http://metamark.net/api/rest/simple';
-
+
/**
* This function shortens long url
*
@@ -53,12 +53,12 @@
public function shorten($url)
{
$this->_validateUri($url);
-
+
$this->getHttpClient()->setUri($this->_apiUri);
$this->getHttpClient()->setParameterGet('long_url', $url);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
@@ -74,12 +74,12 @@
$this->_validateUri($shortenedUrl);
$this->_verifyBaseUri($shortenedUrl);
-
+
$this->getHttpClient()->setUri($this->_apiUri);
$this->getHttpClient()->setParameterGet('short_url', $shortenedUrl);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
}
--- a/web/lib/Zend/Service/ShortUrl/Shortener.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/Shortener.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -22,19 +22,19 @@
/**
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Service_ShortUrl_Shortener
{
/**
* This function shortens long url
- *
+ *
* @param string $url URL to Shorten
* @return string Shortened Url
*/
- public function shorten($shortenedUrl);
-
+ public function shorten($url);
+
/**
* Reveals target for short URL
*
--- a/web/lib/Zend/Service/ShortUrl/TinyUrlCom.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/ShortUrl/TinyUrlCom.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: $
*/
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Service_ShortUrl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_ShortUrl_TinyUrlCom extends Zend_Service_ShortUrl_AbstractShortener
@@ -40,7 +40,7 @@
* @var string
*/
protected $_baseUri = 'http://tinyurl.com';
-
+
/**
* This function shortens long url
*
@@ -53,12 +53,12 @@
$this->_validateUri($url);
$serviceUri = 'http://tinyurl.com/api-create.php';
-
+
$this->getHttpClient()->setUri($serviceUri);
$this->getHttpClient()->setParameterGet('url', $url);
-
+
$response = $this->getHttpClient()->request();
-
+
return $response->getBody();
}
@@ -72,29 +72,29 @@
public function unshorten($shortenedUrl)
{
$this->_validateUri($shortenedUrl);
-
+
$this->_verifyBaseUri($shortenedUrl);
-
+
//TinyUrl.com does not have an API for that, but we can use preview feature
//we need new Zend_Http_Client
$this->setHttpClient(new Zend_Http_Client());
-
+
$this->getHttpClient()
->setCookie('preview', 1)
->setUri($shortenedUrl);
//get response
$response = $this->getHttpClient()->request();
-
+
require_once 'Zend/Dom/Query.php';
$dom = new Zend_Dom_Query($response->getBody());
-
+
//find the redirect url link
$results = $dom->query('a#redirecturl');
-
+
//get href
$originalUrl = $results->current()->getAttribute('href');
-
+
return $originalUrl;
}
}
--- a/web/lib/Zend/Service/Simpy.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,433 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Simpy.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @link http://www.simpy.com/doc/api/rest/
- */
-class Zend_Service_Simpy
-{
- /**
- * Base URI to which API methods and parameters will be appended
- *
- * @var string
- */
- protected $_baseUri = 'http://simpy.com/simpy/api/rest/';
-
- /**
- * HTTP client for use in making web service calls
- *
- * @var Zend_Http_Client
- */
- protected $_http;
-
- /**
- * Constructs a new Simpy (free) REST API Client
- *
- * @param string $username Username for the Simpy user account
- * @param string $password Password for the Simpy user account
- * @return void
- */
- public function __construct($username, $password)
- {
- $this->_http = new Zend_Http_Client;
- $this->_http->setAuth($username, $password);
- }
-
- /**
- * Returns the HTTP client currently in use by this class for REST API
- * calls, intended mainly for testing.
- *
- * @return Zend_Http_Client
- */
- public function getHttpClient()
- {
- return $this->_http;
- }
-
- /**
- * Sends a request to the REST API service and does initial processing
- * on the response.
- *
- * @param string $op Name of the operation for the request
- * @param array $query Query data for the request (optional)
- * @throws Zend_Service_Exception
- * @return DOMDocument Parsed XML response
- */
- protected function _makeRequest($op, $query = null)
- {
- if ($query != null) {
- $query = array_diff($query, array_filter($query, 'is_null'));
- $query = '?' . http_build_query($query);
- }
-
- $this->_http->setUri($this->_baseUri . $op . '.do' . $query);
- $response = $this->_http->request('GET');
-
- if ($response->isSuccessful()) {
- $doc = new DOMDocument();
- $doc->loadXML($response->getBody());
- $xpath = new DOMXPath($doc);
- $list = $xpath->query('/status/code');
-
- if ($list->length > 0) {
- $code = $list->item(0)->nodeValue;
-
- if ($code != 0) {
- $list = $xpath->query('/status/message');
- $message = $list->item(0)->nodeValue;
- /**
- * @see Zend_Service_Exception
- */
- require_once 'Zend/Service/Exception.php';
- throw new Zend_Service_Exception($message, $code);
- }
- }
-
- return $doc;
- }
-
- /**
- * @see Zend_Service_Exception
- */
- require_once 'Zend/Service/Exception.php';
- throw new Zend_Service_Exception($response->getMessage(), $response->getStatus());
- }
-
- /**
- * Returns a list of all tags and their counts, ordered by count in
- * decreasing order
- *
- * @param int $limit Limits the number of tags returned (optional)
- * @link http://www.simpy.com/doc/api/rest/GetTags
- * @throws Zend_Service_Exception
- * @return Zend_Service_Simpy_TagSet
- */
- public function getTags($limit = null)
- {
- $query = array(
- 'limit' => $limit
- );
-
- $doc = $this->_makeRequest('GetTags', $query);
-
- /**
- * @see Zend_Service_Simpy_TagSet
- */
- require_once 'Zend/Service/Simpy/TagSet.php';
- return new Zend_Service_Simpy_TagSet($doc);
- }
-
- /**
- * Removes a tag.
- *
- * @param string $tag Tag to be removed
- * @link http://www.simpy.com/doc/api/rest/RemoveTag
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function removeTag($tag)
- {
- $query = array(
- 'tag' => $tag
- );
-
- $this->_makeRequest('RemoveTag', $query);
-
- return $this;
- }
-
- /**
- * Renames a tag.
- *
- * @param string $fromTag Tag to be renamed
- * @param string $toTag New tag name
- * @link http://www.simpy.com/doc/api/rest/RenameTag
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function renameTag($fromTag, $toTag)
- {
- $query = array(
- 'fromTag' => $fromTag,
- 'toTag' => $toTag
- );
-
- $this->_makeRequest('RenameTag', $query);
-
- return $this;
- }
-
- /**
- * Merges two tags into a new tag.
- *
- * @param string $fromTag1 First tag to merge.
- * @param string $fromTag2 Second tag to merge.
- * @param string $toTag Tag to merge the two tags into.
- * @link http://www.simpy.com/doc/api/rest/MergeTags
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function mergeTags($fromTag1, $fromTag2, $toTag)
- {
- $query = array(
- 'fromTag1' => $fromTag1,
- 'fromTag2' => $fromTag2,
- 'toTag' => $toTag
- );
-
- $this->_makeRequest('MergeTags', $query);
-
- return $this;
- }
-
- /**
- * Splits a single tag into two separate tags.
- *
- * @param string $tag Tag to split
- * @param string $toTag1 First tag to split into
- * @param string $toTag2 Second tag to split into
- * @link http://www.simpy.com/doc/api/rest/SplitTag
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function splitTag($tag, $toTag1, $toTag2)
- {
- $query = array(
- 'tag' => $tag,
- 'toTag1' => $toTag1,
- 'toTag2' => $toTag2
- );
-
- $this->_makeRequest('SplitTag', $query);
-
- return $this;
- }
-
- /**
- * Performs a query on existing links and returns the results or returns all
- * links if no particular query is specified (which should be used sparingly
- * to prevent overloading Simpy servers)
- *
- * @param Zend_Service_Simpy_LinkQuery $q Query object to use (optional)
- * @return Zend_Service_Simpy_LinkSet
- */
- public function getLinks(Zend_Service_Simpy_LinkQuery $q = null)
- {
- if ($q != null) {
- $query = array(
- 'q' => $q->getQueryString(),
- 'limit' => $q->getLimit(),
- 'date' => $q->getDate(),
- 'afterDate' => $q->getAfterDate(),
- 'beforeDate' => $q->getBeforeDate()
- );
-
- $doc = $this->_makeRequest('GetLinks', $query);
- } else {
- $doc = $this->_makeRequest('GetLinks');
- }
-
- /**
- * @see Zend_Service_Simpy_LinkSet
- */
- require_once 'Zend/Service/Simpy/LinkSet.php';
- return new Zend_Service_Simpy_LinkSet($doc);
- }
-
- /**
- * Saves a given link.
- *
- * @param string $title Title of the page to save
- * @param string $href URL of the page to save
- * @param int $accessType ACCESSTYPE_PUBLIC or ACCESSTYPE_PRIVATE
- * @param mixed $tags String containing a comma-separated list of
- * tags or array of strings containing tags
- * (optional)
- * @param string $urlNickname Alternative custom title (optional)
- * @param string $note Free text note (optional)
- * @link Zend_Service_Simpy::ACCESSTYPE_PUBLIC
- * @link Zend_Service_Simpy::ACCESSTYPE_PRIVATE
- * @link http://www.simpy.com/doc/api/rest/SaveLink
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function saveLink($title, $href, $accessType, $tags = null, $urlNickname = null, $note = null)
- {
- if (is_array($tags)) {
- $tags = implode(',', $tags);
- }
-
- $query = array(
- 'title' => $title,
- 'href' => $href,
- 'accessType' => $accessType,
- 'tags' => $tags,
- 'urlNickname' => $urlNickname,
- 'note' => $note
- );
-
- $this->_makeRequest('SaveLink', $query);
-
- return $this;
- }
-
- /**
- * Deletes a given link.
- *
- * @param string $href URL of the bookmark to delete
- * @link http://www.simpy.com/doc/api/rest/DeleteLink
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function deleteLink($href)
- {
- $query = array(
- 'href' => $href
- );
-
- $this->_makeRequest('DeleteLink', $query);
-
- return $this;
- }
-
- /**
- * Return a list of watchlists and their meta-data, including the number
- * of new links added to each watchlist since last login.
- *
- * @link http://www.simpy.com/doc/api/rest/GetWatchlists
- * @return Zend_Service_Simpy_WatchlistSet
- */
- public function getWatchlists()
- {
- $doc = $this->_makeRequest('GetWatchlists');
-
- /**
- * @see Zend_Service_Simpy_WatchlistSet
- */
- require_once 'Zend/Service/Simpy/WatchlistSet.php';
- return new Zend_Service_Simpy_WatchlistSet($doc);
- }
-
- /**
- * Returns the meta-data for a given watchlist.
- *
- * @param int $watchlistId ID of the watchlist to retrieve
- * @link http://www.simpy.com/doc/api/rest/GetWatchlist
- * @return Zend_Service_Simpy_Watchlist
- */
- public function getWatchlist($watchlistId)
- {
- $query = array(
- 'watchlistId' => $watchlistId
- );
-
- $doc = $this->_makeRequest('GetWatchlist', $query);
-
- /**
- * @see Zend_Service_Simpy_Watchlist
- */
- require_once 'Zend/Service/Simpy/Watchlist.php';
- return new Zend_Service_Simpy_Watchlist($doc->documentElement);
- }
-
- /**
- * Returns all notes in reverse chronological order by add date or by
- * rank.
- *
- * @param string $q Query string formatted using Simpy search syntax
- * and search fields (optional)
- * @param int $limit Limits the number notes returned (optional)
- * @link http://www.simpy.com/doc/api/rest/GetNotes
- * @link http://www.simpy.com/simpy/FAQ.do#searchSyntax
- * @link http://www.simpy.com/simpy/FAQ.do#searchFieldsLinks
- * @return Zend_Service_Simpy_NoteSet
- */
- public function getNotes($q = null, $limit = null)
- {
- $query = array(
- 'q' => $q,
- 'limit' => $limit
- );
-
- $doc = $this->_makeRequest('GetNotes', $query);
-
- /**
- * @see Zend_Service_Simpy_NoteSet
- */
- require_once 'Zend/Service/Simpy/NoteSet.php';
- return new Zend_Service_Simpy_NoteSet($doc);
- }
-
- /**
- * Saves a note.
- *
- * @param string $title Title of the note
- * @param mixed $tags String containing a comma-separated list of
- * tags or array of strings containing tags
- * (optional)
- * @param string $description Free-text note (optional)
- * @param int $noteId Unique identifier for an existing note to
- * update (optional)
- * @link http://www.simpy.com/doc/api/rest/SaveNote
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function saveNote($title, $tags = null, $description = null, $noteId = null)
- {
- if (is_array($tags)) {
- $tags = implode(',', $tags);
- }
-
- $query = array(
- 'title' => $title,
- 'tags' => $tags,
- 'description' => $description,
- 'noteId' => $noteId
- );
-
- $this->_makeRequest('SaveNote', $query);
-
- return $this;
- }
-
- /**
- * Deletes a given note.
- *
- * @param int $noteId ID of the note to delete
- * @link http://www.simpy.com/doc/api/rest/DeleteNote
- * @return Zend_Service_Simpy Provides a fluent interface
- */
- public function deleteNote($noteId)
- {
- $query = array(
- 'noteId' => $noteId
- );
-
- $this->_makeRequest('DeleteNote', $query);
-
- return $this;
- }
-}
--- a/web/lib/Zend/Service/Simpy/Link.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,215 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Link.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_Link
-{
- /**
- * Private access type
- *
- * @var string
- */
- const ACCESSTYPE_PRIVATE = '0';
-
- /**
- * Public access type
- *
- * @var string
- */
- const ACCESSTYPE_PUBLIC = '1';
-
- /**
- * Access type assigned to the link
- *
- * @var string
- */
- protected $_accessType;
-
- /**
- * URL of the link
- *
- * @var string
- */
- protected $_url;
-
- /**
- * Date of the last modification made to the link
- *
- * @var string
- */
- protected $_modDate;
-
- /**
- * Date the link was added
- *
- * @var string
- */
- protected $_addDate;
-
- /**
- * Title assigned to the link
- *
- * @var string
- */
- protected $_title;
-
- /**
- * Nickname assigned to the link
- *
- * @var string
- */
- protected $_nickname;
-
- /**
- * Tags assigned to the link
- *
- * @var array
- */
- protected $_tags;
-
- /**
- * Note assigned to the link
- *
- * @var string
- */
- protected $_note;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMNode $node Individual <link> node from a parsed response from
- * a GetLinks operation
- * @return void
- */
- public function __construct($node)
- {
- $this->_accessType = $node->attributes->getNamedItem('accessType')->nodeValue;
-
- $doc = new DOMDocument();
- $doc->appendChild($doc->importNode($node, true));
- $xpath = new DOMXPath($doc);
-
- $this->_url = $xpath->evaluate('/link/url')->item(0)->nodeValue;
- $this->_modDate = $xpath->evaluate('/link/modDate')->item(0)->nodeValue;
- $this->_addDate = $xpath->evaluate('/link/addDate')->item(0)->nodeValue;
- $this->_title = $xpath->evaluate('/link/title')->item(0)->nodeValue;
- $this->_nickname = $xpath->evaluate('/link/nickname')->item(0)->nodeValue;
- $this->_note = $xpath->evaluate('/link/note')->item(0)->nodeValue;
-
- $list = $xpath->query('/link/tags/tag');
- $this->_tags = array();
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_tags[$x] = $list->item($x)->nodeValue;
- }
- }
-
- /**
- * Returns the access type assigned to the link
- *
- * @see ACCESSTYPE_PRIVATE
- * @see ACCESSTYPE_PUBLIC
- * @return string
- */
- public function getAccessType()
- {
- return $this->_accessType;
- }
-
- /**
- * Returns the URL of the link
- *
- * @return string
- */
- public function getUrl()
- {
- return $this->_url;
- }
-
- /**
- * Returns the date of the last modification made to the link
- *
- * @return string
- */
- public function getModDate()
- {
- return $this->_modDate;
- }
-
- /**
- * Returns the date the link was added
- *
- * @return string
- */
- public function getAddDate()
- {
- return $this->_addDate;
- }
-
- /**
- * Returns the title assigned to the link
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->_title;
- }
-
- /**
- * Returns the nickname assigned to the link
- *
- * @return string
- */
- public function getNickname()
- {
- return $this->_nickname;
- }
-
- /**
- * Returns the tags assigned to the link
- *
- * @return array
- */
- public function getTags()
- {
- return $this->_tags;
- }
-
- /**
- * Returns the note assigned to the link
- *
- * @return string
- */
- public function getNote()
- {
- return $this->_note;
- }
-}
--- a/web/lib/Zend/Service/Simpy/LinkQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,200 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LinkQuery.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_LinkQuery
-{
- /**
- * Query string for the query
- *
- * @var string
- */
- protected $_query = null;
-
- /**
- * Maximum number of search results to return
- *
- * @var int
- */
- protected $_limit = null;
-
- /**
- * Date on which search results must have been added
- *
- * @var string
- */
- protected $_date = null;
-
- /**
- * Date after which search results must have been added
- *
- * @var string
- */
- protected $_afterDate = null;
-
- /**
- * Date before which search results must have been added
- *
- * @var string
- */
- protected $_beforeDate = null;
-
- /**
- * Sets the query string for the query
- *
- * @param string $query Query string in valid Simpy syntax
- * @see http://www.simpy.com/faq#searchSyntax
- * @see http://www.simpy.com/faq#searchFieldsLinks
- * @return Zend_Service_Simpy_LinkQuery Provides a fluent interface
- */
- public function setQueryString($query)
- {
- $this->_query = $query;
-
- return $this;
- }
-
- /**
- * Returns the query string set for this query
- *
- * @return string
- */
- public function getQueryString()
- {
- return $this->_query;
- }
-
- /**
- * Sets the maximum number of search results to return
- *
- * @param int $limit
- * @return Zend_Service_Simpy_LinkQuery Provides a fluent interface
- */
- public function setLimit($limit)
- {
- $this->_limit = intval($limit);
-
- if ($this->_limit == 0) {
- $this->_limit = null;
- }
-
- return $this;
- }
-
- /**
- * Returns the maximum number of search results to return
- *
- * @return int
- */
- public function getLimit()
- {
- return $this->_limit;
- }
-
- /**
- * Sets the date on which search results must have been added, which will
- * override any existing values set using setAfterDate() and setBeforeDate()
- *
- * @param string $date
- * @see setAfterDate()
- * @see setBeforeDate()
- * @return Zend_Service_Simpy_LinkQuery Provides a fluent interface
- */
- public function setDate($date)
- {
- $this->_date = $date;
- $this->_afterDate = null;
- $this->_beforeDate = null;
-
- return $this;
- }
-
- /**
- * Returns the date on which search results must have been added
- *
- * @return string
- */
- public function getDate()
- {
- return $this->_date;
- }
-
- /**
- * Sets the date after which search results must have been added, which will
- * override any existing values set using setDate()
- *
- * @param string $date
- * @see setDate()
- * @return Zend_Service_Simpy_LinkQuery Provides a fluent interface
- */
- public function setAfterDate($date)
- {
- $this->_afterDate = $date;
- $this->_date = null;
-
- return $this;
- }
-
- /**
- * Returns the date after which search results must have been added
- *
- * @return string
- */
- public function getAfterDate()
- {
- return $this->_afterDate;
- }
-
- /**
- * Sets the date before which search results must have been added, which
- * will override any existing values set using setDate()
- *
- * @param string $date
- * @see setDate()
- * @return Zend_Service_Simpy_LinkQuery Provides a fluent interface
- */
- public function setBeforeDate($date)
- {
- $this->_beforeDate = $date;
- $this->_date = null;
-
- return $this;
- }
-
- /**
- * Returns the date before which search results must have been added
- *
- * @return string
- */
- public function getBeforeDate()
- {
- return $this->_beforeDate;
- }
-}
--- a/web/lib/Zend/Service/Simpy/LinkSet.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LinkSet.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_Link
- */
-require_once 'Zend/Service/Simpy/Link.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_LinkSet implements IteratorAggregate
-{
- /**
- * List of links
- *
- * @var array of Zend_Service_Simpy_Link objects
- */
- protected $_links;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMDocument $doc Parsed response from a GetLinks operation
- * @return void
- */
- public function __construct(DOMDocument $doc)
- {
- $xpath = new DOMXPath($doc);
- $list = $xpath->query('//links/link');
- $this->_links = array();
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_links[$x] = new Zend_Service_Simpy_Link($list->item($x));
- }
- }
-
- /**
- * Returns an iterator for the link set
- *
- * @return ArrayIterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_links);
- }
-
- /**
- * Returns the number of links in the set
- *
- * @return int
- */
- public function getLength()
- {
- return count($this->_links);
- }
-}
--- a/web/lib/Zend/Service/Simpy/Note.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,215 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Note.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_Note
-{
- /**
- * Private access type
- *
- * @var string
- */
- const ACCESSTYPE_PRIVATE = 'private';
-
- /**
- * Public access type
- *
- * @var string
- */
- const ACCESSTYPE_PUBLIC = 'public';
-
- /**
- * Access type assigned to the note
- *
- * @var string
- */
- protected $_accessType;
-
- /**
- * ID of the note
- *
- * @var int
- */
- protected $_id;
-
- /**
- * URI of the note
- *
- * @var string
- */
- protected $_uri;
-
- /**
- * Date of the last modification made to the note
- *
- * @var string
- */
- protected $_modDate;
-
- /**
- * Date the note was added
- *
- * @var string
- */
- protected $_addDate;
-
- /**
- * Title of to the note
- *
- * @var string
- */
- protected $_title;
-
- /**
- * Tags assigned to the note
- *
- * @var array
- */
- protected $_tags;
-
- /**
- * Description of the note
- *
- * @var string
- */
- protected $_description;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMNode $node Individual <link> node from a parsed response from
- * a GetLinks operation
- * @return void
- */
- public function __construct($node)
- {
- $this->_accessType = $node->attributes->getNamedItem('accessType')->nodeValue;
-
- $doc = new DOMDocument();
- $doc->appendChild($doc->importNode($node, true));
- $xpath = new DOMXPath($doc);
-
- $this->_uri = $xpath->evaluate('/note/uri')->item(0)->nodeValue;
- $this->_id = substr($this->_uri, strrpos($this->_uri, '=') + 1);
- $this->_modDate = trim($xpath->evaluate('/note/modDate')->item(0)->nodeValue);
- $this->_addDate = trim($xpath->evaluate('/note/addDate')->item(0)->nodeValue);
- $this->_title = $xpath->evaluate('/note/title')->item(0)->nodeValue;
- $this->_description = $xpath->evaluate('/note/description')->item(0)->nodeValue;
-
- $list = $xpath->query('/note/tags/tag');
- $this->_tags = array();
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_tags[$x] = $list->item($x)->nodeValue;
- }
- }
-
- /**
- * Returns the access type assigned to the note
- *
- * @see ACCESSTYPE_PRIVATE
- * @see ACCESSTYPE_PUBLIC
- * @return string
- */
- public function getAccessType()
- {
- return $this->_accessType;
- }
-
- /**
- * Returns the ID of the note
- *
- * @return int
- */
- public function getId()
- {
- return $this->_id;
- }
-
- /**
- * Returns the URI of the note
- *
- * @return string
- */
- public function getUri()
- {
- return $this->_uri;
- }
-
- /**
- * Returns the date of the last modification made to the note
- *
- * @return string
- */
- public function getModDate()
- {
- return $this->_modDate;
- }
-
- /**
- * Returns the date the note was added
- *
- * @return string
- */
- public function getAddDate()
- {
- return $this->_addDate;
- }
-
- /**
- * Returns the title assigned to the note
- *
- * @return string
- */
- public function getTitle()
- {
- return $this->_title;
- }
-
- /**
- * Returns the tags assigned to the note
- *
- * @return array
- */
- public function getTags()
- {
- return $this->_tags;
- }
-
- /**
- * Returns the description assigned to the note
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->_description;
- }
-}
--- a/web/lib/Zend/Service/Simpy/NoteSet.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NoteSet.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_Note
- */
-require_once 'Zend/Service/Simpy/Note.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_NoteSet implements IteratorAggregate
-{
- /**
- * List of notes
- *
- * @var array of Zend_Service_Simpy_Note objects
- */
- protected $_notes;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMDocument $doc Parsed response from a GetNotes operation
- * @return void
- */
- public function __construct(DOMDocument $doc)
- {
- $xpath = new DOMXPath($doc);
- $list = $xpath->query('//notes/note');
- $this->_notes = array();
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_notes[$x] = new Zend_Service_Simpy_Note($list->item($x));
- }
- }
-
- /**
- * Returns an iterator for the note set
- *
- * @return ArrayIterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_notes);
- }
-
- /**
- * Returns the number of notes in the set
- *
- * @return int
- */
- public function getLength()
- {
- return count($this->_notes);
- }
-}
--- a/web/lib/Zend/Service/Simpy/Tag.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tag.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_Tag
-{
- /**
- * Name of the tag
- *
- * @var string
- */
- protected $_tag;
-
- /**
- * Number of links with the tag
- *
- * @var int
- */
- protected $_count;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMNode $node Individual <tag> node from a parsed response from
- * a GetTags operation
- * @return void
- */
- public function __construct($node)
- {
- $map =& $node->attributes;
- $this->_tag = $map->getNamedItem('name')->nodeValue;
- $this->_count = $map->getNamedItem('count')->nodeValue;
- }
-
- /**
- * Returns the name of the tag
- *
- * @return string
- */
- public function getTag()
- {
- return $this->_tag;
- }
-
- /**
- * Returns the number of links with the tag
- *
- * @return int
- */
- public function getCount()
- {
- return $this->_count;
- }
-}
--- a/web/lib/Zend/Service/Simpy/TagSet.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,83 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagSet.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_Tag
- */
-require_once 'Zend/Service/Simpy/Tag.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_TagSet implements IteratorAggregate
-{
- /**
- * List of tags
- *
- * @var array of Zend_Service_Simpy_Tag objects
- */
- protected $_tags;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMDocument $doc Parsed response from a GetTags operation
- * @return void
- */
- public function __construct(DOMDocument $doc)
- {
- $xpath = new DOMXPath($doc);
- $list = $xpath->query('//tags/tag');
- $this->_tags = array();
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_tags[$x] = new Zend_Service_Simpy_Tag($list->item($x));
- }
- }
-
- /**
- * Returns an iterator for the tag set
- *
- * @return ArrayIterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_tags);
- }
-
- /**
- * Returns the number of tags in the set
- *
- * @return int
- */
- public function getLength()
- {
- return count($this->_tags);
- }
-}
--- a/web/lib/Zend/Service/Simpy/Watchlist.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,191 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Watchlist.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_WatchlistFilterSet
- */
-require_once 'Zend/Service/Simpy/WatchlistFilterSet.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_Watchlist
-{
- /**
- * Identifier for the watchlist
- *
- * @var int
- */
- protected $_id;
-
- /**
- * Name of the watchlist
- *
- * @var string
- */
- protected $_name;
-
- /**
- * Description of the watchlist
- *
- * @var string
- */
- protected $_description;
-
- /**
- * Timestamp for when the watchlist was added
- *
- * @var string
- */
- protected $_addDate;
-
- /**
- * Number of new links in the watchlist
- *
- * @var int
- */
- protected $_newLinks;
-
- /**
- * List of usernames for users included in the watchlist
- *
- * @var array
- */
- protected $_users;
-
- /**
- * List of filters included in the watchlist
- *
- * @var Zend_Service_Simpy_WatchlistFilterSet
- */
- protected $_filters;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMNode $node Individual <watchlist> node from a parsed
- * response from a GetWatchlists or GetWatchlist
- * operation
- * @return void
- */
- public function __construct($node)
- {
- $map =& $node->attributes;
-
- $this->_id = $map->getNamedItem('id')->nodeValue;
- $this->_name = $map->getNamedItem('name')->nodeValue;
- $this->_description = $map->getNamedItem('description')->nodeValue;
- $this->_addDate = $map->getNamedItem('addDate')->nodeValue;
- $this->_newLinks = $map->getNamedItem('newLinks')->nodeValue;
-
- $this->_users = array();
- $this->_filters = new Zend_Service_Simpy_WatchlistFilterSet();
-
- $childNode = $node->firstChild;
- while ($childNode !== null) {
- if ($childNode->nodeName == 'user') {
- $this->_users[] = $childNode->attributes->getNamedItem('username')->nodeValue;
- } elseif ($childNode->nodeName == 'filter') {
- $filter = new Zend_Service_Simpy_WatchlistFilter($childNode);
- $this->_filters->add($filter);
- }
- $childNode = $childNode->nextSibling;
- }
- }
-
- /**
- * Returns the identifier for the watchlist
- *
- * @return int
- */
- public function getId()
- {
- return $this->_id;
- }
-
- /**
- * Returns the name of the watchlist
- *
- * @return string
- */
- public function getName()
- {
- return $this->_name;
- }
-
- /**
- * Returns the description of the watchlist
- *
- * @return string
- */
- public function getDescription()
- {
- return $this->_description;
- }
-
- /**
- * Returns a timestamp for when the watchlist was added
- *
- * @return string
- */
- public function getAddDate()
- {
- return $this->_addDate;
- }
-
- /**
- * Returns the number of new links in the watchlist
- *
- * @return int
- */
- public function getNewLinks()
- {
- return $this->_newLinks;
- }
-
- /**
- * Returns a list of usernames for users included in the watchlist
- *
- * @return array
- */
- public function getUsers()
- {
- return $this->_users;
- }
-
- /**
- * Returns a list of filters included in the watchlist
- *
- * @return Zend_Service_Simpy_WatchlistFilterSet
- */
- public function getFilters()
- {
- return $this->_filters;
- }
-}
--- a/web/lib/Zend/Service/Simpy/WatchlistFilter.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WatchlistFilter.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_WatchlistFilter
-{
- /**
- * Name of the filter
- *
- * @var string
- */
- protected $_name;
-
- /**
- * Query for the filter
- *
- * @var string
- */
- protected $_query;
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMNode $node Individual <filter> node from a parsed response from
- * a GetWatchlists or GetWatchlist operation
- * @return void
- */
- public function __construct($node)
- {
- $map =& $node->attributes;
- $this->_name = $map->getNamedItem('name')->nodeValue;
- $this->_query = $map->getNamedItem('query')->nodeValue;
- }
-
- /**
- * Returns the name of the filter
- *
- * @return string
- */
- public function getName()
- {
- return $this->_name;
- }
-
- /**
- * Returns the query for the filter
- *
- * @return string
- */
- public function getQuery()
- {
- return $this->_query;
- }
-}
--- a/web/lib/Zend/Service/Simpy/WatchlistFilterSet.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,77 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WatchlistFilterSet.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_WatchlistFilter
- */
-require_once 'Zend/Service/Simpy/WatchlistFilter.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_WatchlistFilterSet implements IteratorAggregate
-{
- /**
- * List of filters in the set
- *
- * @var array of Zend_Service_Simpy_WatchlistFilter objects
- */
- protected $_filters = array();
-
- /**
- * Adds a filter to the set
- *
- * @param Zend_Service_Simpy_WatchlistFilter $filter Filter to be added
- * @return void
- */
- public function add(Zend_Service_Simpy_WatchlistFilter $filter)
- {
- $this->_filters[] = $filter;
- }
-
- /**
- * Returns an iterator for the watchlist filter set
- *
- * @return ArrayIterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_filters);
- }
-
- /**
- * Returns the number of filters in the set
- *
- * @return int
- */
- public function getLength()
- {
- return count($this->_filters);
- }
-}
--- a/web/lib/Zend/Service/Simpy/WatchlistSet.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,82 +0,0 @@
-<?php
-
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WatchlistSet.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-
-/**
- * @see Zend_Service_Simpy_Watchlist
- */
-require_once 'Zend/Service/Simpy/Watchlist.php';
-
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Simpy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-class Zend_Service_Simpy_WatchlistSet implements IteratorAggregate
-{
- /**
- * List of watchlists
- *
- * @var array of Zend_Service_Simpy_Watchlist objects
- */
- protected $_watchlists = array();
-
- /**
- * Constructor to initialize the object with data
- *
- * @param DOMDocument $doc Parsed response from a GetWatchlists operation
- * @return void
- */
- public function __construct(DOMDocument $doc)
- {
- $xpath = new DOMXPath($doc);
- $list = $xpath->query('//watchlists/watchlist');
-
- for ($x = 0; $x < $list->length; $x++) {
- $this->_watchlists[$x] = new Zend_Service_Simpy_Watchlist($list->item($x));
- }
- }
-
- /**
- * Returns an iterator for the watchlist set
- *
- * @return ArrayIterator
- */
- public function getIterator()
- {
- return new ArrayIterator($this->_watchlists);
- }
-
- /**
- * Returns the number of watchlists in the set
- *
- * @return int
- */
- public function getLength()
- {
- return count($this->_watchlists);
- }
-}
--- a/web/lib/Zend/Service/SlideShare.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/SlideShare.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage SlideShare
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SlideShare.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SlideShare.php 25283 2013-03-09 10:07:13Z frosch $
*/
/**
@@ -44,12 +44,11 @@
* @package Zend_Service
* @subpackage SlideShare
* @throws Zend_Service_SlideShare_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_SlideShare
{
-
/**
* Web service result code mapping
*/
@@ -71,17 +70,17 @@
/**
* Slide share Web service communication URIs
*/
- const SERVICE_UPLOAD_URI = 'http://www.slideshare.net/api/1/upload_slideshow';
- const SERVICE_GET_SHOW_URI = 'http://www.slideshare.net/api/1/get_slideshow';
- const SERVICE_GET_SHOW_BY_USER_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_user';
- const SERVICE_GET_SHOW_BY_TAG_URI = 'http://www.slideshare.net/api/1/get_slideshow_by_tag';
- const SERVICE_GET_SHOW_BY_GROUP_URI = 'http://www.slideshare.net/api/1/get_slideshows_from_group';
+ const SERVICE_UPLOAD_URI = 'https://www.slideshare.net/api/2/upload_slideshow';
+ const SERVICE_GET_SHOW_URI = 'https://www.slideshare.net/api/2/get_slideshow';
+ const SERVICE_GET_SHOW_BY_USER_URI = 'https://www.slideshare.net/api/2/get_slideshows_by_user';
+ const SERVICE_GET_SHOW_BY_TAG_URI = 'https://www.slideshare.net/api/2/get_slideshows_by_tag';
+ const SERVICE_GET_SHOW_BY_GROUP_URI = 'https://www.slideshare.net/api/2/get_slideshows_by_group';
/**
* The MIME type of Slideshow files
*
*/
- const POWERPOINT_MIME_TYPE = "application/vnd.ms-powerpoint";
+ const POWERPOINT_MIME_TYPE = "application/vnd.ms-powerpoint";
/**
* The API key to use in requests
@@ -147,15 +146,20 @@
public function getHttpClient()
{
- if(!($this->_httpclient instanceof Zend_Http_Client)) {
+ if (!($this->_httpclient instanceof Zend_Http_Client)) {
$client = new Zend_Http_Client();
- $client->setConfig(array('maxredirects' => 2,
- 'timeout' => 5));
+ $client->setConfig(
+ array(
+ 'maxredirects' => 2,
+ 'timeout' => 5
+ )
+ );
$this->setHttpClient($client);
}
$this->_httpclient->resetParameters();
+
return $this->_httpclient;
}
@@ -181,10 +185,16 @@
public function getCacheObject()
{
- if(!($this->_cacheobject instanceof Zend_Cache_Core)) {
- $cache = Zend_Cache::factory('Core', 'File', array('lifetime' => 43200,
- 'automatic_serialization' => true),
- array('cache_dir' => '/tmp'));
+ if (!($this->_cacheobject instanceof Zend_Cache_Core)) {
+ $cache = Zend_Cache::factory(
+ 'Core',
+ 'File',
+ array(
+ 'lifetime' => 43200,
+ 'automatic_serialization' => true
+ ),
+ array('cache_dir' => '/tmp')
+ );
$this->setCacheObject($cache);
}
@@ -283,17 +293,19 @@
/**
* The Constructor
*
- * @param string $apikey The API key
+ * @param string $apikey The API key
* @param string $sharedSecret The shared secret
- * @param string $username The username
- * @param string $password The password
+ * @param string $username The username
+ * @param string $password The password
*/
- public function __construct($apikey, $sharedSecret, $username = null, $password = null)
+ public function __construct(
+ $apikey, $sharedSecret, $username = null, $password = null
+ )
{
$this->setApiKey($apikey)
- ->setSharedSecret($sharedSecret)
- ->setUserName($username)
- ->setPassword($password);
+ ->setSharedSecret($sharedSecret)
+ ->setUserName($username)
+ ->setPassword($password);
$this->_httpclient = new Zend_Http_Client();
}
@@ -301,41 +313,47 @@
/**
* Uploads the specified Slide show the the server
*
- * @param Zend_Service_SlideShare_SlideShow $ss The slide show object representing the slide show to upload
- * @param boolean $make_src_public Determines if the the slide show's source file is public or not upon upload
+ * @param Zend_Service_SlideShare_SlideShow $ss The slide show object representing the slide show to upload
+ * @param boolean $makeSrcPublic Determines if the the slide show's source file is public or not upon upload
* @return Zend_Service_SlideShare_SlideShow The passed Slide show object, with the new assigned ID provided
+ * @throws Zend_Service_SlideShare_Exception
*/
- public function uploadSlideShow(Zend_Service_SlideShare_SlideShow $ss, $make_src_public = true)
+ public function uploadSlideShow(
+ Zend_Service_SlideShare_SlideShow $ss, $makeSrcPublic = true
+ )
{
-
$timestamp = time();
- $params = array('api_key' => $this->getApiKey(),
- 'ts' => $timestamp,
- 'hash' => sha1($this->getSharedSecret().$timestamp),
- 'username' => $this->getUserName(),
- 'password' => $this->getPassword(),
- 'slideshow_title' => $ss->getTitle());
+ $params = array(
+ 'api_key' => $this->getApiKey(),
+ 'ts' => $timestamp,
+ 'hash' => sha1($this->getSharedSecret() . $timestamp),
+ 'username' => $this->getUserName(),
+ 'password' => $this->getPassword(),
+ 'slideshow_title' => $ss->getTitle()
+ );
$description = $ss->getDescription();
- $tags = $ss->getTags();
+ $tags = $ss->getTags();
$filename = $ss->getFilename();
- if(!file_exists($filename) || !is_readable($filename)) {
+ if (!file_exists($filename) || !is_readable($filename)) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Specified Slideshow for upload not found or unreadable");
+ throw new Zend_Service_SlideShare_Exception(
+ 'Specified Slideshow for upload not found or unreadable'
+ );
}
- if(!empty($description)) {
+ if (!empty($description)) {
$params['slideshow_description'] = $description;
} else {
$params['slideshow_description'] = "";
}
- if(!empty($tags)) {
+ if (!empty($tags)) {
$tmp = array();
- foreach($tags as $tag) {
+ foreach ($tags as $tag) {
$tmp[] = "\"$tag\"";
}
$params['slideshow_tags'] = implode(' ', $tmp);
@@ -343,7 +361,6 @@
$params['slideshow_tags'] = "";
}
-
$client = $this->getHttpClient();
$client->setUri(self::SERVICE_UPLOAD_URI);
$client->setParameterPost($params);
@@ -352,23 +369,29 @@
require_once 'Zend/Http/Client/Exception.php';
try {
$response = $client->request('POST');
- } catch(Zend_Http_Client_Exception $e) {
+ } catch (Zend_Http_Client_Exception $e) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Service Request Failed: {$e->getMessage()}", 0, $e);
+ throw new Zend_Service_SlideShare_Exception(
+ "Service Request Failed: {$e->getMessage()}", 0, $e
+ );
}
$sxe = simplexml_load_string($response->getBody());
- if($sxe->getName() == "SlideShareServiceError") {
+ if ($sxe->getName() == "SlideShareServiceError") {
$message = (string)$sxe->Message[0];
list($code, $error_str) = explode(':', $message);
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception(trim($error_str), $code);
+ throw new Zend_Service_SlideShare_Exception(trim(
+ $error_str
+ ), $code);
}
- if(!$sxe->getName() == "SlideShowUploaded") {
+ if (!$sxe->getName() == "SlideShowUploaded") {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Unknown XML Respons Received");
+ throw new Zend_Service_SlideShare_Exception(
+ 'Unknown XML Respons Received'
+ );
}
$ss->setId((int)(string)$sxe->SlideShowID);
@@ -381,21 +404,24 @@
*
* @param int $ss_id The slide show ID
* @return Zend_Service_SlideShare_SlideShow the Slideshow object
+ * @throws Zend_Service_SlideShare_Exception
*/
public function getSlideShow($ss_id)
{
$timestamp = time();
- $params = array('api_key' => $this->getApiKey(),
- 'ts' => $timestamp,
- 'hash' => sha1($this->getSharedSecret().$timestamp),
- 'slideshow_id' => $ss_id);
+ $params = array(
+ 'api_key' => $this->getApiKey(),
+ 'ts' => $timestamp,
+ 'hash' => sha1($this->getSharedSecret() . $timestamp),
+ 'slideshow_id' => $ss_id
+ );
$cache = $this->getCacheObject();
$cache_key = md5("__zendslideshare_cache_$ss_id");
- if(!$retval = $cache->load($cache_key)) {
+ if (!$retval = $cache->load($cache_key)) {
$client = $this->getHttpClient();
$client->setUri(self::SERVICE_GET_SHOW_URI);
@@ -404,26 +430,31 @@
require_once 'Zend/Http/Client/Exception.php';
try {
$response = $client->request('POST');
- } catch(Zend_Http_Client_Exception $e) {
+ } catch (Zend_Http_Client_Exception $e) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Service Request Failed: {$e->getMessage()}", 0, $e);
+ throw new Zend_Service_SlideShare_Exception(
+ "Service Request Failed: {$e->getMessage()}", 0, $e
+ );
}
$sxe = simplexml_load_string($response->getBody());
- if($sxe->getName() == "SlideShareServiceError") {
+ if ($sxe->getName() == "SlideShareServiceError") {
$message = (string)$sxe->Message[0];
list($code, $error_str) = explode(':', $message);
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception(trim($error_str), $code);
+ throw new Zend_Service_SlideShare_Exception(trim(
+ $error_str
+ ), $code);
}
- if(!$sxe->getName() == 'Slideshows') {
+ if (!($sxe->getName() == 'Slideshow')) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception('Unknown XML Repsonse Received');
+ throw new Zend_Service_SlideShare_Exception(
+ 'Unknown XML Repsonse Received'
+ );
}
-
- $retval = $this->_slideShowNodeToObject(clone $sxe->Slideshow[0]);
+ $retval = $this->_slideShowNodeToObject(clone $sxe);
$cache->save($retval, $cache_key);
}
@@ -439,9 +470,13 @@
* @param int $limit The maximum number of slide shows to retrieve
* @return array An array of Zend_Service_SlideShare_SlideShow objects
*/
- public function getSlideShowsByUsername($username, $offset = null, $limit = null)
+ public function getSlideShowsByUsername(
+ $username, $offset = null, $limit = null
+ )
{
- return $this->_getSlideShowsByType('username_for', $username, $offset, $limit);
+ return $this->_getSlideShowsByType(
+ 'username_for', $username, $offset, $limit
+ );
}
/**
@@ -455,9 +490,9 @@
public function getSlideShowsByTag($tag, $offset = null, $limit = null)
{
- if(is_array($tag)) {
+ if (is_array($tag)) {
$tmp = array();
- foreach($tag as $t) {
+ foreach ($tag as $t) {
$tmp[] = "\"$t\"";
}
@@ -484,33 +519,35 @@
* Retrieves Zend_Service_SlideShare_SlideShow object arrays based on the type of
* list desired
*
- * @param string $key The type of slide show object to retrieve
- * @param string $value The specific search query for the slide show type to look up
- * @param int $offset The offset of the list to start retrieving from
- * @param int $limit The maximum number of slide shows to retrieve
+ * @param string $key The type of slide show object to retrieve
+ * @param string $value The specific search query for the slide show type to look up
+ * @param int $offset The offset of the list to start retrieving from
+ * @param int $limit The maximum number of slide shows to retrieve
* @return array An array of Zend_Service_SlideShare_SlideShow objects
+ * @throws Zend_Service_SlideShare_Exception
*/
protected function _getSlideShowsByType($key, $value, $offset = null, $limit = null)
{
-
$key = strtolower($key);
- switch($key) {
+ switch ($key) {
case 'username_for':
$responseTag = 'User';
- $queryUri = self::SERVICE_GET_SHOW_BY_USER_URI;
+ $queryUri = self::SERVICE_GET_SHOW_BY_USER_URI;
break;
case 'group_name':
$responseTag = 'Group';
- $queryUri = self::SERVICE_GET_SHOW_BY_GROUP_URI;
+ $queryUri = self::SERVICE_GET_SHOW_BY_GROUP_URI;
break;
case 'tag':
$responseTag = 'Tag';
- $queryUri = self::SERVICE_GET_SHOW_BY_TAG_URI;
+ $queryUri = self::SERVICE_GET_SHOW_BY_TAG_URI;
break;
default:
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Invalid SlideShare Query");
+ throw new Zend_Service_SlideShare_Exception(
+ 'Invalid SlideShare Query'
+ );
}
$timestamp = time();
@@ -520,11 +557,11 @@
'hash' => sha1($this->getSharedSecret().$timestamp),
$key => $value);
- if($offset !== null) {
+ if ($offset !== null) {
$params['offset'] = (int)$offset;
}
- if($limit !== null) {
+ if ($limit !== null) {
$params['limit'] = (int)$limit;
}
@@ -532,8 +569,7 @@
$cache_key = md5($key.$value.$offset.$limit);
- if(!$retval = $cache->load($cache_key)) {
-
+ if (!$retval = $cache->load($cache_key)) {
$client = $this->getHttpClient();
$client->setUri($queryUri);
@@ -542,29 +578,35 @@
require_once 'Zend/Http/Client/Exception.php';
try {
$response = $client->request('POST');
- } catch(Zend_Http_Client_Exception $e) {
+ } catch (Zend_Http_Client_Exception $e) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Service Request Failed: {$e->getMessage()}", 0, $e);
+ throw new Zend_Service_SlideShare_Exception(
+ "Service Request Failed: {$e->getMessage()}", 0, $e
+ );
}
$sxe = simplexml_load_string($response->getBody());
- if($sxe->getName() == "SlideShareServiceError") {
+ if ($sxe->getName() == "SlideShareServiceError") {
$message = (string)$sxe->Message[0];
list($code, $error_str) = explode(':', $message);
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception(trim($error_str), $code);
+ throw new Zend_Service_SlideShare_Exception(
+ trim($error_str), $code
+ );
}
- if(!$sxe->getName() == $responseTag) {
+ if (!$sxe->getName() == $responseTag) {
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception('Unknown or Invalid XML Repsonse Received');
+ throw new Zend_Service_SlideShare_Exception(
+ 'Unknown or Invalid XML Repsonse Received'
+ );
}
$retval = array();
- foreach($sxe->children() as $node) {
- if($node->getName() == 'Slideshow') {
+ foreach ($sxe->children() as $node) {
+ if ($node->getName() == 'Slideshow') {
$retval[] = $this->_slideShowNodeToObject($node);
}
}
@@ -581,12 +623,12 @@
*
* @param SimpleXMLElement $node The input XML from the slideshare.net service
* @return Zend_Service_SlideShare_SlideShow The resulting object
+ * @throws Zend_Service_SlideShare_Exception
*/
protected function _slideShowNodeToObject(SimpleXMLElement $node)
{
if($node->getName() == 'Slideshow') {
-
$ss = new Zend_Service_SlideShare_SlideShow();
$ss->setId((string)$node->ID);
@@ -597,9 +639,8 @@
$ss->setStatus((string)$node->Status);
$ss->setStatusDescription((string)$node->StatusDescription);
- foreach(explode(",", (string)$node->Tags) as $tag) {
-
- if(!in_array($tag, $ss->getTags())) {
+ foreach (explode(",", (string)$node->Tags) as $tag) {
+ if (!in_array($tag, $ss->getTags())) {
$ss->addTag($tag);
}
}
@@ -610,10 +651,11 @@
$ss->setTranscript((string)$node->Transcript);
return $ss;
-
}
require_once 'Zend/Service/SlideShare/Exception.php';
- throw new Zend_Service_SlideShare_Exception("Was not provided the expected XML Node for processing");
+ throw new Zend_Service_SlideShare_Exception(
+ 'Was not provided the expected XML Node for processing'
+ );
}
}
--- a/web/lib/Zend/Service/SlideShare/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/SlideShare/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage SlideShare
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Service
* @subpackage SlideShare
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_SlideShare_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/SlideShare/SlideShow.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/SlideShare/SlideShow.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage SlideShare
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SlideShow.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SlideShow.php 25283 2013-03-09 10:07:13Z frosch $
*/
@@ -28,12 +28,11 @@
* @category Zend
* @package Zend_Service
* @subpackage SlideShare
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_SlideShare_SlideShow
{
-
/**
* Status constant mapping for web service
*
@@ -328,7 +327,7 @@
/**
* Sets the description for the Slide show
*
- * @param strign $desc The description of the slide show
+ * @param string $desc The description of the slide show
* @return Zend_Service_SlideShare_SlideShow
*/
public function setDescription($desc)
--- a/web/lib/Zend/Service/StrikeIron.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StrikeIron.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: StrikeIron.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron
--- a/web/lib/Zend/Service/StrikeIron/Base.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/Base.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_Base
@@ -193,10 +193,10 @@
* on what was originally called.
*
* @see __call()
- * @param $result Raw result returned from SOAPClient_>__soapCall()
- * @param $method Method name that was passed to SOAPClient->__soapCall()
- * @param $params Method parameters that were passed to SOAPClient->__soapCall()
- * @return mixed Transformed result
+ * @param object $result Raw result returned from SOAPClient_>__soapCall()
+ * @param string $method Method name that was passed to SOAPClient->__soapCall()
+ * @param array $params Method parameters that were passed to SOAPClient->__soapCall()
+ * @return mixed Transformed result
*/
protected function _transformResult($result, $method, $params)
{
--- a/web/lib/Zend/Service/StrikeIron/Decorator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/Decorator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Decorator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Decorator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_Decorator
--- a/web/lib/Zend/Service/StrikeIron/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/StrikeIron/SalesUseTaxBasic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/SalesUseTaxBasic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SalesUseTaxBasic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SalesUseTaxBasic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Service_StrikeIron_Base */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_SalesUseTaxBasic extends Zend_Service_StrikeIron_Base
--- a/web/lib/Zend/Service/StrikeIron/USAddressVerification.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/USAddressVerification.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: USAddressVerification.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: USAddressVerification.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Service_StrikeIron_Base */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_USAddressVerification extends Zend_Service_StrikeIron_Base
--- a/web/lib/Zend/Service/StrikeIron/ZipCodeInfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/StrikeIron/ZipCodeInfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZipCodeInfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ZipCodeInfo.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Service_StrikeIron_Base */
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage StrikeIron
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_StrikeIron_ZipCodeInfo extends Zend_Service_StrikeIron_Base
--- a/web/lib/Zend/Service/Technorati.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Technorati.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Technorati.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati
--- a/web/lib/Zend/Service/Technorati/Author.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/Author.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Author.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Author.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_Author
--- a/web/lib/Zend/Service/Technorati/BlogInfoResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/BlogInfoResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BlogInfoResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BlogInfoResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_BlogInfoResult
--- a/web/lib/Zend/Service/Technorati/CosmosResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/CosmosResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CosmosResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CosmosResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_CosmosResult extends Zend_Service_Technorati_Result
--- a/web/lib/Zend/Service/Technorati/CosmosResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/CosmosResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CosmosResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CosmosResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_CosmosResultSet extends Zend_Service_Technorati_ResultSet
--- a/web/lib/Zend/Service/Technorati/DailyCountsResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/DailyCountsResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DailyCountsResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DailyCountsResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_DailyCountsResult extends Zend_Service_Technorati_Result
--- a/web/lib/Zend/Service/Technorati/DailyCountsResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/DailyCountsResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DailyCountsResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DailyCountsResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_DailyCountsResultSet extends Zend_Service_Technorati_ResultSet
--- a/web/lib/Zend/Service/Technorati/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/Technorati/GetInfoResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/GetInfoResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GetInfoResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: GetInfoResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_GetInfoResult
--- a/web/lib/Zend/Service/Technorati/KeyInfoResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/KeyInfoResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: KeyInfoResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: KeyInfoResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_KeyInfoResult
--- a/web/lib/Zend/Service/Technorati/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @abstract
*/
--- a/web/lib/Zend/Service/Technorati/ResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/ResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @abstract
*/
--- a/web/lib/Zend/Service/Technorati/SearchResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/SearchResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SearchResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SearchResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_SearchResult extends Zend_Service_Technorati_Result
--- a/web/lib/Zend/Service/Technorati/SearchResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/SearchResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SearchResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SearchResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_SearchResultSet extends Zend_Service_Technorati_ResultSet
--- a/web/lib/Zend/Service/Technorati/TagResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/TagResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TagResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_TagResult extends Zend_Service_Technorati_Result
--- a/web/lib/Zend/Service/Technorati/TagResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/TagResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TagResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_TagResultSet extends Zend_Service_Technorati_ResultSet
--- a/web/lib/Zend/Service/Technorati/TagsResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/TagsResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagsResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TagsResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_TagsResult extends Zend_Service_Technorati_Result
--- a/web/lib/Zend/Service/Technorati/TagsResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/TagsResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TagsResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TagsResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_TagsResultSet extends Zend_Service_Technorati_ResultSet
--- a/web/lib/Zend/Service/Technorati/Utils.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/Utils.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Utils.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Utils.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -27,7 +27,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_Utils
--- a/web/lib/Zend/Service/Technorati/Weblog.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Technorati/Weblog.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Weblog.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Weblog.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Technorati
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Technorati_Weblog
--- a/web/lib/Zend/Service/Twitter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Twitter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,20 +15,20 @@
* @category Zend
* @package Zend_Service
* @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Twitter.php 23312 2010-11-08 19:45:00Z matthew $
+ * @version $Id: Twitter.php 25288 2013-03-13 13:36:39Z matthew $
*/
/**
- * @see Zend_Rest_Client
+ * @see Zend_Http_Client
*/
-require_once 'Zend/Rest/Client.php';
+require_once 'Zend/Http/Client.php';
/**
- * @see Zend_Rest_Client_Result
+ * @see Zend_Http_CookieJar
*/
-require_once 'Zend/Rest/Client/Result.php';
+require_once 'Zend/Http/CookieJar.php';
/**
* @see Zend_Oauth_Consumer
@@ -36,14 +36,33 @@
require_once 'Zend/Oauth/Consumer.php';
/**
+ * @see Zend_Oauth_Token_Access
+ */
+require_once 'Zend/Oauth/Token/Access.php';
+
+/**
+ * @see Zend_Service_Twitter_Response
+ */
+require_once 'Zend/Service/Twitter/Response.php';
+
+/**
* @category Zend
* @package Zend_Service
* @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Service_Twitter extends Zend_Rest_Client
+class Zend_Service_Twitter
{
+ /**
+ * Base URI for all API calls
+ */
+ const API_BASE_URI = 'https://api.twitter.com/1.1/';
+
+ /**
+ * OAuth Endpoint
+ */
+ const OAUTH_BASE_URI = 'https://api.twitter.com/oauth';
/**
* 246 is the current limit for a status message, 140 characters are displayed
@@ -54,181 +73,165 @@
* This should be reviewed in the future...
*/
const STATUS_MAX_CHARACTERS = 246;
-
+
/**
- * OAuth Endpoint
+ * @var array
*/
- const OAUTH_BASE_URI = 'http://twitter.com/oauth';
-
- /**
- * @var Zend_Http_CookieJar
- */
- protected $_cookieJar;
-
+ protected $cookieJar;
+
/**
* Date format for 'since' strings
*
* @var string
*/
- protected $_dateFormat = 'D, d M Y H:i:s T';
-
+ protected $dateFormat = 'D, d M Y H:i:s T';
+
/**
- * Username
- *
- * @var string
+ * @var Zend_Http_Client
*/
- protected $_username;
-
+ protected $httpClient = null;
+
/**
* Current method type (for method proxying)
*
* @var string
*/
- protected $_methodType;
-
+ protected $methodType;
+
/**
- * Zend_Oauth Consumer
+ * Oauth Consumer
*
* @var Zend_Oauth_Consumer
*/
- protected $_oauthConsumer = null;
-
+ protected $oauthConsumer = null;
+
/**
* Types of API methods
*
* @var array
*/
- protected $_methodTypes = array(
- 'status',
- 'user',
- 'directMessage',
- 'friendship',
+ protected $methodTypes = array(
'account',
- 'favorite',
- 'block'
+ 'application',
+ 'blocks',
+ 'directmessages',
+ 'favorites',
+ 'friendships',
+ 'search',
+ 'statuses',
+ 'users',
);
-
+
/**
* Options passed to constructor
*
* @var array
*/
- protected $_options = array();
+ protected $options = array();
/**
- * Local HTTP Client cloned from statically set client
+ * Username
*
- * @var Zend_Http_Client
+ * @var string
*/
- protected $_localHttpClient = null;
+ protected $username;
/**
* Constructor
*
- * @param array $options Optional options array
- * @return void
+ * @param null|array|Zend_Config $options
+ * @param null|Zend_Oauth_Consumer $consumer
+ * @param null|Zend_Http_Client $httpClient
*/
- public function __construct($options = null, Zend_Oauth_Consumer $consumer = null)
+ public function __construct($options = null, Zend_Oauth_Consumer $consumer = null, Zend_Http_Client $httpClient = null)
{
- $this->setUri('http://api.twitter.com');
- if (!is_array($options)) $options = array();
- $options['siteUrl'] = self::OAUTH_BASE_URI;
if ($options instanceof Zend_Config) {
$options = $options->toArray();
}
- $this->_options = $options;
+ if (!is_array($options)) {
+ $options = array();
+ }
+
+ $this->options = $options;
+
if (isset($options['username'])) {
$this->setUsername($options['username']);
}
- if (isset($options['accessToken'])
- && $options['accessToken'] instanceof Zend_Oauth_Token_Access) {
- $this->setLocalHttpClient($options['accessToken']->getHttpClient($options));
- } else {
- $this->setLocalHttpClient(clone self::getHttpClient());
- if ($consumer === null) {
- $this->_oauthConsumer = new Zend_Oauth_Consumer($options);
- } else {
- $this->_oauthConsumer = $consumer;
- }
+
+ $accessToken = false;
+ if (isset($options['accessToken'])) {
+ $accessToken = $options['accessToken'];
+ } elseif (isset($options['access_token'])) {
+ $accessToken = $options['access_token'];
}
- }
+
+ $oauthOptions = array();
+ if (isset($options['oauthOptions'])) {
+ $oauthOptions = $options['oauthOptions'];
+ } elseif (isset($options['oauth_options'])) {
+ $oauthOptions = $options['oauth_options'];
+ }
+ $oauthOptions['siteUrl'] = self::OAUTH_BASE_URI;
+
+ $httpClientOptions = array();
+ if (isset($options['httpClientOptions'])) {
+ $httpClientOptions = $options['httpClientOptions'];
+ } elseif (isset($options['http_client_options'])) {
+ $httpClientOptions = $options['http_client_options'];
+ }
- /**
- * Set local HTTP client as distinct from the static HTTP client
- * as inherited from Zend_Rest_Client.
- *
- * @param Zend_Http_Client $client
- * @return self
- */
- public function setLocalHttpClient(Zend_Http_Client $client)
- {
- $this->_localHttpClient = $client;
- $this->_localHttpClient->setHeaders('Accept-Charset', 'ISO-8859-1,utf-8');
- return $this;
- }
-
- /**
- * Get the local HTTP client as distinct from the static HTTP client
- * inherited from Zend_Rest_Client
- *
- * @return Zend_Http_Client
- */
- public function getLocalHttpClient()
- {
- return $this->_localHttpClient;
- }
-
- /**
- * Checks for an authorised state
- *
- * @return bool
- */
- public function isAuthorised()
- {
- if ($this->getLocalHttpClient() instanceof Zend_Oauth_Client) {
- return true;
+ // If we have an OAuth access token, use the HTTP client it provides
+ if ($accessToken && is_array($accessToken)
+ && (isset($accessToken['token']) && isset($accessToken['secret']))
+ ) {
+ $token = new Zend_Oauth_Token_Access();
+ $token->setToken($accessToken['token']);
+ $token->setTokenSecret($accessToken['secret']);
+ $accessToken = $token;
+ }
+ if ($accessToken && $accessToken instanceof Zend_Oauth_Token_Access) {
+ $oauthOptions['token'] = $accessToken;
+ $this->setHttpClient($accessToken->getHttpClient($oauthOptions, self::OAUTH_BASE_URI, $httpClientOptions));
+ return;
}
- return false;
- }
- /**
- * Retrieve username
- *
- * @return string
- */
- public function getUsername()
- {
- return $this->_username;
- }
+ // See if we were passed an http client
+ if (isset($options['httpClient']) && null === $httpClient) {
+ $httpClient = $options['httpClient'];
+ } elseif (isset($options['http_client']) && null === $httpClient) {
+ $httpClient = $options['http_client'];
+ }
+ if ($httpClient instanceof Zend_Http_Client) {
+ $this->httpClient = $httpClient;
+ } else {
+ $this->setHttpClient(new Zend_Http_Client(null, $httpClientOptions));
+ }
- /**
- * Set username
- *
- * @param string $value
- * @return Zend_Service_Twitter
- */
- public function setUsername($value)
- {
- $this->_username = $value;
- return $this;
+ // Set the OAuth consumer
+ if ($consumer === null) {
+ $consumer = new Zend_Oauth_Consumer($oauthOptions);
+ }
+ $this->oauthConsumer = $consumer;
}
/**
* Proxy service methods
*
* @param string $type
- * @return Zend_Service_Twitter
- * @throws Zend_Service_Twitter_Exception If method not in method types list
+ * @return Twitter
+ * @throws Exception\DomainException If method not in method types list
*/
public function __get($type)
{
- if (!in_array($type, $this->_methodTypes)) {
- include_once 'Zend/Service/Twitter/Exception.php';
+ $type = strtolower($type);
+ $type = str_replace('_', '', $type);
+ if (!in_array($type, $this->methodTypes)) {
+ require_once 'Zend/Service/Twitter/Exception.php';
throw new Zend_Service_Twitter_Exception(
'Invalid method type "' . $type . '"'
);
}
- $this->_methodType = $type;
+ $this->methodType = $type;
return $this;
}
@@ -238,26 +241,28 @@
* @param string $method
* @param array $params
* @return mixed
- * @throws Zend_Service_Twitter_Exception if unable to find method
+ * @throws Exception\BadMethodCallException if unable to find method
*/
public function __call($method, $params)
{
- if (method_exists($this->_oauthConsumer, $method)) {
- $return = call_user_func_array(array($this->_oauthConsumer, $method), $params);
+ if (method_exists($this->oauthConsumer, $method)) {
+ $return = call_user_func_array(array($this->oauthConsumer, $method), $params);
if ($return instanceof Zend_Oauth_Token_Access) {
- $this->setLocalHttpClient($return->getHttpClient($this->_options));
+ $this->setHttpClient($return->getHttpClient($this->options));
}
return $return;
}
- if (empty($this->_methodType)) {
- include_once 'Zend/Service/Twitter/Exception.php';
+ if (empty($this->methodType)) {
+ require_once 'Zend/Service/Twitter/Exception.php';
throw new Zend_Service_Twitter_Exception(
'Invalid method "' . $method . '"'
);
}
- $test = $this->_methodType . ucfirst($method);
+
+ $test = str_replace('_', '', strtolower($method));
+ $test = $this->methodType . $test;
if (!method_exists($this, $test)) {
- include_once 'Zend/Service/Twitter/Exception.php';
+ require_once 'Zend/Service/Twitter/Exception.php';
throw new Zend_Service_Twitter_Exception(
'Invalid method "' . $test . '"'
);
@@ -267,251 +272,543 @@
}
/**
- * Initialize HTTP authentication
+ * Set HTTP client
*
- * @return void
+ * @param Zend_Http_Client $client
+ * @return self
*/
- protected function _init()
+ public function setHttpClient(Zend_Http_Client $client)
{
- if (!$this->isAuthorised() && $this->getUsername() !== null) {
- require_once 'Zend/Service/Twitter/Exception.php';
- throw new Zend_Service_Twitter_Exception(
- 'Twitter session is unauthorised. You need to initialize '
- . 'Zend_Service_Twitter with an OAuth Access Token or use '
- . 'its OAuth functionality to obtain an Access Token before '
- . 'attempting any API actions that require authorisation'
- );
+ $this->httpClient = $client;
+ $this->httpClient->setHeaders(array('Accept-Charset' => 'ISO-8859-1,utf-8'));
+ return $this;
+ }
+
+ /**
+ * Get the HTTP client
+ *
+ * Lazy loads one if none present
+ *
+ * @return Zend_Http_Client
+ */
+ public function getHttpClient()
+ {
+ if (null === $this->httpClient) {
+ $this->setHttpClient(new Zend_Http_Client());
}
- $client = $this->_localHttpClient;
- $client->resetParameters();
- if (null == $this->_cookieJar) {
- $client->setCookieJar();
- $this->_cookieJar = $client->getCookieJar();
- } else {
- $client->setCookieJar($this->_cookieJar);
- }
+ return $this->httpClient;
+ }
+
+ /**
+ * Retrieve username
+ *
+ * @return string
+ */
+ public function getUsername()
+ {
+ return $this->username;
}
/**
- * Set date header
+ * Set username
*
- * @param int|string $value
- * @deprecated Not supported by Twitter since April 08, 2009
- * @return void
+ * @param string $value
+ * @return self
+ */
+ public function setUsername($value)
+ {
+ $this->username = $value;
+ return $this;
+ }
+
+ /**
+ * Checks for an authorised state
+ *
+ * @return bool
*/
- protected function _setDate($value)
+ public function isAuthorised()
+ {
+ if ($this->getHttpClient() instanceof Zend_Oauth_Client) {
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * Verify Account Credentials
+ *
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function accountVerifyCredentials()
{
- if (is_int($value)) {
- $date = date($this->_dateFormat, $value);
- } else {
- $date = date($this->_dateFormat, strtotime($value));
- }
- $this->_localHttpClient->setHeaders('If-Modified-Since', $date);
+ $this->init();
+ $response = $this->get('account/verify_credentials');
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Returns the number of api requests you have left per hour.
+ *
+ * @todo Have a separate payload object to represent rate limits
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function applicationRateLimitStatus()
+ {
+ $this->init();
+ $response = $this->get('application/rate_limit_status');
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * Public Timeline status
+ * Blocks the user specified in the ID parameter as the authenticating user.
+ * Destroys a friendship to the blocked user if it exists.
*
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @param integer|string $id The ID or screen name of a user to block.
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function blocksCreate($id)
+ {
+ $this->init();
+ $path = 'blocks/create';
+ $params = $this->createUserParameter($id, array());
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Un-blocks the user specified in the ID parameter for the authenticating user
+ *
+ * @param integer|string $id The ID or screen_name of the user to un-block.
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusPublicTimeline()
+ public function blocksDestroy($id)
{
- $this->_init();
- $path = '/1/statuses/public_timeline.xml';
- $response = $this->_get($path);
- return new Zend_Rest_Client_Result($response->getBody());
+ $this->init();
+ $path = 'blocks/destroy';
+ $params = $this->createUserParameter($id, array());
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Returns an array of user ids that the authenticating user is blocking
+ *
+ * @param integer $cursor Optional. Specifies the cursor position at which to begin listing ids; defaults to first "page" of results.
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function blocksIds($cursor = -1)
+ {
+ $this->init();
+ $path = 'blocks/ids';
+ $response = $this->get($path, array('cursor' => $cursor));
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * Friend Timeline Status
+ * Returns an array of user objects that the authenticating user is blocking
*
- * $params may include one or more of the following keys
- * - id: ID of a friend whose timeline you wish to receive
- * - count: how many statuses to return
- * - since_id: return results only after the specific tweet
- * - page: return page X of results
+ * @param integer $cursor Optional. Specifies the cursor position at which to begin listing ids; defaults to first "page" of results.
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function blocksList($cursor = -1)
+ {
+ $this->init();
+ $path = 'blocks/list';
+ $response = $this->get($path, array('cursor' => $cursor));
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Destroy a direct message
*
- * @param array $params
+ * @param int $id ID of message to destroy
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return void
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusFriendsTimeline(array $params = array())
+ public function directMessagesDestroy($id)
{
- $this->_init();
- $path = '/1/statuses/friends_timeline';
- $_params = array();
- foreach ($params as $key => $value) {
+ $this->init();
+ $path = 'direct_messages/destroy';
+ $params = array('id' => $this->validInteger($id));
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Retrieve direct messages for the current user
+ *
+ * $options may include one or more of the following keys
+ * - count: return page X of results
+ * - since_id: return statuses only greater than the one specified
+ * - max_id: return statuses with an ID less than (older than) or equal to that specified
+ * - include_entities: setting to false will disable embedded entities
+ * - skip_status:setting to true, "t", or 1 will omit the status in returned users
+ *
+ * @param array $options
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function directMessagesMessages(array $options = array())
+ {
+ $this->init();
+ $path = 'direct_messages';
+ $params = array();
+ foreach ($options as $key => $value) {
switch (strtolower($key)) {
case 'count':
- $count = (int) $value;
- if (0 >= $count) {
- $count = 1;
- } elseif (200 < $count) {
- $count = 200;
- }
- $_params['count'] = (int) $count;
+ $params['count'] = (int) $value;
break;
case 'since_id':
- $_params['since_id'] = $this->_validInteger($value);
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
break;
- case 'page':
- $_params['page'] = (int) $value;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
+ break;
+ case 'skip_status':
+ $params['skip_status'] = (bool) $value;
break;
default:
break;
}
}
- $path .= '.xml';
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Send a direct message to a user
+ *
+ * @param int|string $user User to whom to send message
+ * @param string $text Message to send to user
+ * @throws Exception\InvalidArgumentException if message is empty
+ * @throws Exception\OutOfRangeException if message is too long
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function directMessagesNew($user, $text)
+ {
+ $this->init();
+ $path = 'direct_messages/new';
+
+ $len = iconv_strlen($text, 'UTF-8');
+ if (0 == $len) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Direct message must contain at least one character'
+ );
+ } elseif (140 < $len) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Direct message must contain no more than 140 characters'
+ );
+ }
+
+ $params = $this->createUserParameter($user, array());
+ $params['text'] = $text;
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * User Timeline status
+ * Retrieve list of direct messages sent by current user
+ *
+ * $options may include one or more of the following keys
+ * - count: return page X of results
+ * - page: return starting at page
+ * - since_id: return statuses only greater than the one specified
+ * - max_id: return statuses with an ID less than (older than) or equal to that specified
+ * - include_entities: setting to false will disable embedded entities
*
- * $params may include one or more of the following keys
- * - id: ID of a friend whose timeline you wish to receive
- * - since_id: return results only after the tweet id specified
- * - page: return page X of results
- * - count: how many statuses to return
- * - max_id: returns only statuses with an ID less than or equal to the specified ID
- * - user_id: specifies the ID of the user for whom to return the user_timeline
- * - screen_name: specfies the screen name of the user for whom to return the user_timeline
- * - include_rts: whether or not to return retweets
- * - trim_user: whether to return just the user ID or a full user object; omit to return full object
- * - include_entities: whether or not to return entities nodes with tweet metadata
- *
+ * @param array $options
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusUserTimeline(array $params = array())
+ public function directMessagesSent(array $options = array())
{
- $this->_init();
- $path = '/1/statuses/user_timeline';
- $_params = array();
- foreach ($params as $key => $value) {
+ $this->init();
+ $path = 'direct_messages/sent';
+ $params = array();
+ foreach ($options as $key => $value) {
switch (strtolower($key)) {
- case 'id':
- $path .= '/' . $value;
+ case 'count':
+ $params['count'] = (int) $value;
break;
case 'page':
- $_params['page'] = (int) $value;
+ $params['page'] = (int) $value;
+ break;
+ case 'since_id':
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
+ break;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
+ break;
+ default:
+ break;
+ }
+ }
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Mark a status as a favorite
+ *
+ * @param int $id Status ID you want to mark as a favorite
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function favoritesCreate($id)
+ {
+ $this->init();
+ $path = 'favorites/create';
+ $params = array('id' => $this->validInteger($id));
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Remove a favorite
+ *
+ * @param int $id Status ID you want to de-list as a favorite
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function favoritesDestroy($id)
+ {
+ $this->init();
+ $path = 'favorites/destroy';
+ $params = array('id' => $this->validInteger($id));
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Fetch favorites
+ *
+ * $options may contain one or more of the following:
+ * - user_id: Id of a user for whom to fetch favorites
+ * - screen_name: Screen name of a user for whom to fetch favorites
+ * - count: number of tweets to attempt to retrieve, up to 200
+ * - since_id: return results only after the specified tweet id
+ * - max_id: return results with an ID less than (older than) or equal to the specified ID
+ * - include_entities: when set to false, entities member will be omitted
+ *
+ * @param array $params
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function favoritesList(array $options = array())
+ {
+ $this->init();
+ $path = 'favorites/list';
+ $params = array();
+ foreach ($options as $key => $value) {
+ switch (strtolower($key)) {
+ case 'user_id':
+ $params['user_id'] = $this->validInteger($value);
+ break;
+ case 'screen_name':
+ $params['screen_name'] = $value;
break;
case 'count':
- $count = (int) $value;
- if (0 >= $count) {
- $count = 1;
- } elseif (200 < $count) {
- $count = 200;
- }
- $_params['count'] = $count;
- break;
- case 'user_id':
- $_params['user_id'] = $this->_validInteger($value);
- break;
- case 'screen_name':
- $_params['screen_name'] = $this->_validateScreenName($value);
+ $params['count'] = (int) $value;
break;
case 'since_id':
- $_params['since_id'] = $this->_validInteger($value);
+ $params['since_id'] = $this->validInteger($value);
break;
case 'max_id':
- $_params['max_id'] = $this->_validInteger($value);
+ $params['max_id'] = $this->validInteger($value);
break;
- case 'include_rts':
- case 'trim_user':
case 'include_entities':
- $_params[strtolower($key)] = $value ? '1' : '0';
+ $params['include_entities'] = (bool) $value;
break;
default:
break;
}
}
- $path .= '.xml';
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * Show a single status
+ * Create friendship
*
- * @param int $id Id of status to show
+ * @param int|string $id User ID or name of new friend
+ * @param array $params Additional parameters to pass
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusShow($id)
+ public function friendshipsCreate($id, array $params = array())
{
- $this->_init();
- $path = '/1/statuses/show/' . $this->_validInteger($id) . '.xml';
- $response = $this->_get($path);
- return new Zend_Rest_Client_Result($response->getBody());
+ $this->init();
+ $path = 'friendships/create';
+ $params = $this->createUserParameter($id, $params);
+ $allowed = array(
+ 'user_id' => null,
+ 'screen_name' => null,
+ 'follow' => null,
+ );
+ $params = array_intersect_key($params, $allowed);
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Destroy friendship
+ *
+ * @param int|string $id User ID or name of friend to remove
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function friendshipsDestroy($id)
+ {
+ $this->init();
+ $path = 'friendships/destroy';
+ $params = $this->createUserParameter($id, array());
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * Update user's current status
+ * Search tweets
*
- * @param string $status
- * @param int $in_reply_to_status_id
- * @return Zend_Rest_Client_Result
+ * $options may include any of the following:
+ * - geocode: a string of the form "latitude, longitude, radius"
+ * - lang: restrict tweets to the two-letter language code
+ * - locale: query is in the given two-letter language code
+ * - result_type: what type of results to receive: mixed, recent, or popular
+ * - count: number of tweets to return per page; up to 100
+ * - until: return tweets generated before the given date
+ * - since_id: return resutls with an ID greater than (more recent than) the given ID
+ * - max_id: return results with an ID less than (older than) the given ID
+ * - include_entities: whether or not to include embedded entities
+ *
+ * @param string $query
+ * @param array $options
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @throws Zend_Service_Twitter_Exception if message is too short or too long
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusUpdate($status, $inReplyToStatusId = null)
+ public function searchTweets($query, array $options = array())
{
- $this->_init();
- $path = '/1/statuses/update.xml';
- $len = iconv_strlen(htmlspecialchars($status, ENT_QUOTES, 'UTF-8'), 'UTF-8');
- if ($len > self::STATUS_MAX_CHARACTERS) {
- include_once 'Zend/Service/Twitter/Exception.php';
+ $this->init();
+ $path = 'search/tweets';
+
+ $len = iconv_strlen($query, 'UTF-8');
+ if (0 == $len) {
+ require_once 'Zend/Service/Twitter/Exception.php';
throw new Zend_Service_Twitter_Exception(
- 'Status must be no more than '
- . self::STATUS_MAX_CHARACTERS
- . ' characters in length'
- );
- } elseif (0 == $len) {
- include_once 'Zend/Service/Twitter/Exception.php';
- throw new Zend_Service_Twitter_Exception(
- 'Status must contain at least one character'
+ 'Query must contain at least one character'
);
}
- $data = array('status' => $status);
- if (is_numeric($inReplyToStatusId) && !empty($inReplyToStatusId)) {
- $data['in_reply_to_status_id'] = $inReplyToStatusId;
- }
- $response = $this->_post($path, $data);
- return new Zend_Rest_Client_Result($response->getBody());
- }
- /**
- * Get status replies
- *
- * $params may include one or more of the following keys
- * - since_id: return results only after the specified tweet id
- * - page: return page X of results
- *
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function statusReplies(array $params = array())
- {
- $this->_init();
- $path = '/1/statuses/mentions.xml';
- $_params = array();
- foreach ($params as $key => $value) {
+ $params = array('q' => $query);
+ foreach ($options as $key => $value) {
switch (strtolower($key)) {
- case 'since_id':
- $_params['since_id'] = $this->_validInteger($value);
+ case 'geocode':
+ if (!substr_count($value, ',') !== 2) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ '"geocode" must be of the format "latitude,longitude,radius"'
+ );
+ }
+ list($latitude, $longitude, $radius) = explode(',', $value);
+ $radius = trim($radius);
+ if (!preg_match('/^\d+(mi|km)$/', $radius)) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Radius segment of "geocode" must be of the format "[unit](mi|km)"'
+ );
+ }
+ $latitude = (float) $latitude;
+ $longitude = (float) $longitude;
+ $params['geocode'] = $latitude . ',' . $longitude . ',' . $radius;
+ break;
+ case 'lang':
+ if (strlen($value) > 2) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Query language must be a 2 character string'
+ );
+ }
+ $params['lang'] = strtolower($value);
+ break;
+ case 'locale':
+ if (strlen($value) > 2) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Query locale must be a 2 character string'
+ );
+ }
+ $params['locale'] = strtolower($value);
break;
- case 'page':
- $_params['page'] = (int) $value;
+ case 'result_type':
+ $value = strtolower($value);
+ if (!in_array($value, array('mixed', 'recent', 'popular'))) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'result_type must be one of "mixed", "recent", or "popular"'
+ );
+ }
+ $params['result_type'] = $value;
+ break;
+ case 'count':
+ $value = (int) $value;
+ if (1 > $value || 100 < $value) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'count must be between 1 and 100'
+ );
+ }
+ $params['count'] = $value;
+ break;
+ case 'until':
+ if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $value)) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ '"until" must be a date in the format YYYY-MM-DD'
+ );
+ }
+ $params['until'] = $value;
+ break;
+ case 'since_id':
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
+ break;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
break;
default:
break;
}
}
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
@@ -519,415 +816,376 @@
*
* @param int $id ID of status to destroy
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function statusDestroy($id)
+ public function statusesDestroy($id)
{
- $this->_init();
- $path = '/1/statuses/destroy/' . $this->_validInteger($id) . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
+ $this->init();
+ $path = 'statuses/destroy/' . $this->validInteger($id);
+ $response = $this->post($path);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * User friends
+ * Friend Timeline Status
*
- * @param int|string $id Id or username of user for whom to fetch friends
+ * $options may include one or more of the following keys
+ * - count: number of tweets to attempt to retrieve, up to 200
+ * - since_id: return results only after the specified tweet id
+ * - max_id: return results with an ID less than (older than) or equal to the specified ID
+ * - trim_user: when set to true, "t", or 1, user object in tweets will include only author's ID.
+ * - contributor_details: when set to true, includes screen_name of each contributor
+ * - include_entities: when set to false, entities member will be omitted
+ * - exclude_replies: when set to true, will strip replies appearing in the timeline
+ *
+ * @param array $params
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function userFriends(array $params = array())
+ public function statusesHomeTimeline(array $options = array())
{
- $this->_init();
- $path = '/1/statuses/friends';
- $_params = array();
-
- foreach ($params as $key => $value) {
+ $this->init();
+ $path = 'statuses/home_timeline';
+ $params = array();
+ foreach ($options as $key => $value) {
switch (strtolower($key)) {
- case 'id':
- $path .= '/' . $value;
+ case 'count':
+ $params['count'] = (int) $value;
+ break;
+ case 'since_id':
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
+ break;
+ case 'trim_user':
+ if (in_array($value, array(true, 'true', 't', 1, '1'))) {
+ $value = true;
+ } else {
+ $value = false;
+ }
+ $params['trim_user'] = $value;
+ break;
+ case 'contributor_details:':
+ $params['contributor_details:'] = (bool) $value;
+ break;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
+ break;
+ case 'exclude_replies':
+ $params['exclude_replies'] = (bool) $value;
+ break;
+ default:
break;
- case 'page':
- $_params['page'] = (int) $value;
+ }
+ }
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Get status replies
+ *
+ * $options may include one or more of the following keys
+ * - count: number of tweets to attempt to retrieve, up to 200
+ * - since_id: return results only after the specified tweet id
+ * - max_id: return results with an ID less than (older than) or equal to the specified ID
+ * - trim_user: when set to true, "t", or 1, user object in tweets will include only author's ID.
+ * - contributor_details: when set to true, includes screen_name of each contributor
+ * - include_entities: when set to false, entities member will be omitted
+ *
+ * @param array $options
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function statusesMentionsTimeline(array $options = array())
+ {
+ $this->init();
+ $path = 'statuses/mentions_timeline';
+ $params = array();
+ foreach ($options as $key => $value) {
+ switch (strtolower($key)) {
+ case 'count':
+ $params['count'] = (int) $value;
+ break;
+ case 'since_id':
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
+ break;
+ case 'trim_user':
+ if (in_array($value, array(true, 'true', 't', 1, '1'))) {
+ $value = true;
+ } else {
+ $value = false;
+ }
+ $params['trim_user'] = $value;
+ break;
+ case 'contributor_details:':
+ $params['contributor_details:'] = (bool) $value;
+ break;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
break;
default:
break;
}
}
- $path .= '.xml';
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Public Timeline status
+ *
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function statusesSample()
+ {
+ $this->init();
+ $path = 'statuses/sample';
+ $response = $this->get($path);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+ /**
+ * Show a single status
+ *
+ * @param int $id Id of status to show
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function statusesShow($id)
+ {
+ $this->init();
+ $path = 'statuses/show/' . $this->validInteger($id);
+ $response = $this->get($path);
+ return new Zend_Service_Twitter_Response($response);
+ }
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
+ /**
+ * Update user's current status
+ *
+ * @todo Support additional parameters supported by statuses/update endpoint
+ * @param string $status
+ * @param null|int $inReplyToStatusId
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\OutOfRangeException if message is too long
+ * @throws Exception\InvalidArgumentException if message is empty
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function statusesUpdate($status, $inReplyToStatusId = null)
+ {
+ $this->init();
+ $path = 'statuses/update';
+ $len = iconv_strlen(htmlspecialchars($status, ENT_QUOTES, 'UTF-8'), 'UTF-8');
+ if ($len > self::STATUS_MAX_CHARACTERS) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Status must be no more than '
+ . self::STATUS_MAX_CHARACTERS
+ . ' characters in length'
+ );
+ } elseif (0 == $len) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Status must contain at least one character'
+ );
+ }
+
+ $params = array('status' => $status);
+ $inReplyToStatusId = $this->validInteger($inReplyToStatusId);
+ if ($inReplyToStatusId) {
+ $params['in_reply_to_status_id'] = $inReplyToStatusId;
+ }
+ $response = $this->post($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * User Followers
+ * User Timeline status
*
- * @param bool $lite If true, prevents inline inclusion of current status for followers; defaults to false
+ * $options may include one or more of the following keys
+ * - user_id: Id of a user for whom to fetch favorites
+ * - screen_name: Screen name of a user for whom to fetch favorites
+ * - count: number of tweets to attempt to retrieve, up to 200
+ * - since_id: return results only after the specified tweet id
+ * - max_id: return results with an ID less than (older than) or equal to the specified ID
+ * - trim_user: when set to true, "t", or 1, user object in tweets will include only author's ID.
+ * - exclude_replies: when set to true, will strip replies appearing in the timeline
+ * - contributor_details: when set to true, includes screen_name of each contributor
+ * - include_rts: when set to false, will strip native retweets
+ *
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function userFollowers($lite = false)
+ public function statusesUserTimeline(array $options = array())
{
- $this->_init();
- $path = '/1/statuses/followers.xml';
- if ($lite) {
- $this->lite = 'true';
+ $this->init();
+ $path = 'statuses/user_timeline';
+ $params = array();
+ foreach ($options as $key => $value) {
+ switch (strtolower($key)) {
+ case 'user_id':
+ $params['user_id'] = $this->validInteger($value);
+ break;
+ case 'screen_name':
+ $params['screen_name'] = $this->validateScreenName($value);
+ break;
+ case 'count':
+ $params['count'] = (int) $value;
+ break;
+ case 'since_id':
+ $params['since_id'] = $this->validInteger($value);
+ break;
+ case 'max_id':
+ $params['max_id'] = $this->validInteger($value);
+ break;
+ case 'trim_user':
+ if (in_array($value, array(true, 'true', 't', 1, '1'))) {
+ $value = true;
+ } else {
+ $value = false;
+ }
+ $params['trim_user'] = $value;
+ break;
+ case 'contributor_details:':
+ $params['contributor_details:'] = (bool) $value;
+ break;
+ case 'exclude_replies':
+ $params['exclude_replies'] = (bool) $value;
+ break;
+ case 'include_rts':
+ $params['include_rts'] = (bool) $value;
+ break;
+ default:
+ break;
+ }
}
- $response = $this->_get($path);
- return new Zend_Rest_Client_Result($response->getBody());
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
+ * Search users
+ *
+ * $options may include any of the following:
+ * - page: the page of results to retrieve
+ * - count: the number of users to retrieve per page; max is 20
+ * - include_entities: if set to boolean true, include embedded entities
+ *
+ * @param string $query
+ * @param array $options
+ * @throws Zend_Http_Client_Exception if HTTP request fails or times out
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
+ */
+ public function usersSearch($query, array $options = array())
+ {
+ $this->init();
+ $path = 'users/search';
+
+ $len = iconv_strlen($query, 'UTF-8');
+ if (0 == $len) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Query must contain at least one character'
+ );
+ }
+
+ $params = array('q' => $query);
+ foreach ($options as $key => $value) {
+ switch (strtolower($key)) {
+ case 'count':
+ $value = (int) $value;
+ if (1 > $value || 20 < $value) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'count must be between 1 and 20'
+ );
+ }
+ $params['count'] = $value;
+ break;
+ case 'page':
+ $params['page'] = (int) $value;
+ break;
+ case 'include_entities':
+ $params['include_entities'] = (bool) $value;
+ break;
+ default:
+ break;
+ }
+ }
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
+ }
+
+
+ /**
* Show extended information on a user
*
* @param int|string $id User ID or name
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function userShow($id)
- {
- $this->_init();
- $path = '/1/users/show.xml';
- $response = $this->_get($path, array('id'=>$id));
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Retrieve direct messages for the current user
- *
- * $params may include one or more of the following keys
- * - since_id: return statuses only greater than the one specified
- * - page: return page X of results
- *
- * @param array $params
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @throws Exception\DomainException if unable to decode JSON payload
+ * @return Zend_Service_Twitter_Response
*/
- public function directMessageMessages(array $params = array())
- {
- $this->_init();
- $path = '/1/direct_messages.xml';
- $_params = array();
- foreach ($params as $key => $value) {
- switch (strtolower($key)) {
- case 'since_id':
- $_params['since_id'] = $this->_validInteger($value);
- break;
- case 'page':
- $_params['page'] = (int) $value;
- break;
- default:
- break;
- }
- }
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Retrieve list of direct messages sent by current user
- *
- * $params may include one or more of the following keys
- * - since_id: return statuses only greater than the one specified
- * - page: return page X of results
- *
- * @param array $params
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function directMessageSent(array $params = array())
+ public function usersShow($id)
{
- $this->_init();
- $path = '/1/direct_messages/sent.xml';
- $_params = array();
- foreach ($params as $key => $value) {
- switch (strtolower($key)) {
- case 'since_id':
- $_params['since_id'] = $this->_validInteger($value);
- break;
- case 'page':
- $_params['page'] = (int) $value;
- break;
- default:
- break;
- }
- }
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Send a direct message to a user
- *
- * @param int|string $user User to whom to send message
- * @param string $text Message to send to user
- * @return Zend_Rest_Client_Result
- * @throws Zend_Service_Twitter_Exception if message is too short or too long
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- */
- public function directMessageNew($user, $text)
- {
- $this->_init();
- $path = '/1/direct_messages/new.xml';
- $len = iconv_strlen($text, 'UTF-8');
- if (0 == $len) {
- throw new Zend_Service_Twitter_Exception(
- 'Direct message must contain at least one character'
- );
- } elseif (140 < $len) {
- throw new Zend_Service_Twitter_Exception(
- 'Direct message must contain no more than 140 characters'
- );
- }
- $data = array('user' => $user, 'text' => $text);
- $response = $this->_post($path, $data);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Destroy a direct message
- *
- * @param int $id ID of message to destroy
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function directMessageDestroy($id)
- {
- $this->_init();
- $path = '/1/direct_messages/destroy/' . $this->_validInteger($id) . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Create friendship
- *
- * @param int|string $id User ID or name of new friend
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function friendshipCreate($id)
- {
- $this->_init();
- $path = '/1/friendships/create/' . $id . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Destroy friendship
- *
- * @param int|string $id User ID or name of friend to remove
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function friendshipDestroy($id)
- {
- $this->_init();
- $path = '/1/friendships/destroy/' . $id . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Friendship exists
- *
- * @param int|string $id User ID or name of friend to see if they are your friend
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_result
- */
- public function friendshipExists($id)
- {
- $this->_init();
- $path = '/1/friendships/exists.xml';
- $data = array('user_a' => $this->getUsername(), 'user_b' => $id);
- $response = $this->_get($path, $data);
- return new Zend_Rest_Client_Result($response->getBody());
+ $this->init();
+ $path = 'users/show';
+ $params = $this->createUserParameter($id, array());
+ $response = $this->get($path, $params);
+ return new Zend_Service_Twitter_Response($response);
}
/**
- * Verify Account Credentials
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- *
- * @return Zend_Rest_Client_Result
- */
- public function accountVerifyCredentials()
- {
- $this->_init();
- $response = $this->_get('/1/account/verify_credentials.xml');
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * End current session
+ * Initialize HTTP authentication
*
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return true
- */
- public function accountEndSession()
- {
- $this->_init();
- $this->_get('/1/account/end_session');
- return true;
- }
-
- /**
- * Returns the number of api requests you have left per hour.
- *
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
+ * @return void
+ * @throws Exception\DomainException if unauthorised
*/
- public function accountRateLimitStatus()
- {
- $this->_init();
- $response = $this->_get('/1/account/rate_limit_status.xml');
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Fetch favorites
- *
- * $params may contain one or more of the following:
- * - 'id': Id of a user for whom to fetch favorites
- * - 'page': Retrieve a different page of resuls
- *
- * @param array $params
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function favoriteFavorites(array $params = array())
- {
- $this->_init();
- $path = '/1/favorites';
- $_params = array();
- foreach ($params as $key => $value) {
- switch (strtolower($key)) {
- case 'id':
- $path .= '/' . $this->_validInteger($value);
- break;
- case 'page':
- $_params['page'] = (int) $value;
- break;
- default:
- break;
- }
- }
- $path .= '.xml';
- $response = $this->_get($path, $_params);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Mark a status as a favorite
- *
- * @param int $id Status ID you want to mark as a favorite
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function favoriteCreate($id)
+ protected function init()
{
- $this->_init();
- $path = '/1/favorites/create/' . $this->_validInteger($id) . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Remove a favorite
- *
- * @param int $id Status ID you want to de-list as a favorite
- * @throws Zend_Http_Client_Exception if HTTP request fails or times out
- * @return Zend_Rest_Client_Result
- */
- public function favoriteDestroy($id)
- {
- $this->_init();
- $path = '/1/favorites/destroy/' . $this->_validInteger($id) . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Blocks the user specified in the ID parameter as the authenticating user.
- * Destroys a friendship to the blocked user if it exists.
- *
- * @param integer|string $id The ID or screen name of a user to block.
- * @return Zend_Rest_Client_Result
- */
- public function blockCreate($id)
- {
- $this->_init();
- $path = '/1/blocks/create/' . $id . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Un-blocks the user specified in the ID parameter for the authenticating user
- *
- * @param integer|string $id The ID or screen_name of the user to un-block.
- * @return Zend_Rest_Client_Result
- */
- public function blockDestroy($id)
- {
- $this->_init();
- $path = '/1/blocks/destroy/' . $id . '.xml';
- $response = $this->_post($path);
- return new Zend_Rest_Client_Result($response->getBody());
- }
-
- /**
- * Returns if the authenticating user is blocking a target user.
- *
- * @param string|integer $id The ID or screen_name of the potentially blocked user.
- * @param boolean $returnResult Instead of returning a boolean return the rest response from twitter
- * @return Boolean|Zend_Rest_Client_Result
- */
- public function blockExists($id, $returnResult = false)
- {
- $this->_init();
- $path = '/1/blocks/exists/' . $id . '.xml';
- $response = $this->_get($path);
-
- $cr = new Zend_Rest_Client_Result($response->getBody());
-
- if ($returnResult === true)
- return $cr;
-
- if (!empty($cr->request)) {
- return false;
+ if (!$this->isAuthorised() && $this->getUsername() !== null) {
+ require_once 'Zend/Service/Twitter/Exception.php';
+ throw new Zend_Service_Twitter_Exception(
+ 'Twitter session is unauthorised. You need to initialize '
+ . __CLASS__ . ' with an OAuth Access Token or use '
+ . 'its OAuth functionality to obtain an Access Token before '
+ . 'attempting any API actions that require authorisation'
+ );
}
-
- return true;
- }
-
- /**
- * Returns an array of user objects that the authenticating user is blocking
- *
- * @param integer $page Optional. Specifies the page number of the results beginning at 1. A single page contains 20 ids.
- * @param boolean $returnUserIds Optional. Returns only the userid's instead of the whole user object
- * @return Zend_Rest_Client_Result
- */
- public function blockBlocking($page = 1, $returnUserIds = false)
- {
- $this->_init();
- $path = '/1/blocks/blocking';
- if ($returnUserIds === true) {
- $path .= '/ids';
+ $client = $this->getHttpClient();
+ $client->resetParameters();
+ if (null === $this->cookieJar) {
+ $cookieJar = $client->getCookieJar();
+ if (null === $cookieJar) {
+ $cookieJar = new Zend_Http_CookieJar();
+ }
+ $this->cookieJar = $cookieJar;
+ $this->cookieJar->reset();
+ } else {
+ $client->setCookieJar($this->cookieJar);
}
- $path .= '.xml';
- $response = $this->_get($path, array('page' => $page));
- return new Zend_Rest_Client_Result($response->getBody());
}
/**
* Protected function to validate that the integer is valid or return a 0
- * @param $int
+ *
+ * @param $int
* @throws Zend_Http_Client_Exception if HTTP request fails or times out
* @return integer
*/
- protected function _validInteger($int)
+ protected function validInteger($int)
{
if (preg_match("/(\d+)/", $int)) {
return $int;
@@ -939,12 +1197,12 @@
* Validate a screen name using Twitter rules
*
* @param string $name
- * @throws Zend_Service_Twitter_Exception
* @return string
+ * @throws Exception\InvalidArgumentException
*/
- protected function _validateScreenName($name)
+ protected function validateScreenName($name)
{
- if (!preg_match('/^[a-zA-Z0-9_]{0,15}$/', $name)) {
+ if (!preg_match('/^[a-zA-Z0-9_]{0,20}$/', $name)) {
require_once 'Zend/Service/Twitter/Exception.php';
throw new Zend_Service_Twitter_Exception(
'Screen name, "' . $name
@@ -955,36 +1213,21 @@
}
/**
- * Call a remote REST web service URI and return the Zend_Http_Response object
+ * Call a remote REST web service URI
*
- * @param string $path The path to append to the URI
- * @throws Zend_Rest_Client_Exception
+ * @param string $path The path to append to the URI
+ * @param Zend_Http_Client $client
+ * @throws Zend_Http_Client_Exception
* @return void
*/
- protected function _prepare($path)
+ protected function prepare($path, Zend_Http_Client $client)
{
- // Get the URI object and configure it
- if (!$this->_uri instanceof Zend_Uri_Http) {
- require_once 'Zend/Rest/Client/Exception.php';
- throw new Zend_Rest_Client_Exception(
- 'URI object must be set before performing call'
- );
- }
-
- $uri = $this->_uri->getUri();
-
- if ($path[0] != '/' && $uri[strlen($uri) - 1] != '/') {
- $path = '/' . $path;
- }
-
- $this->_uri->setPath($path);
+ $client->setUri(self::API_BASE_URI . $path . '.json');
/**
- * Get the HTTP client and configure it for the endpoint URI.
- * Do this each time because the Zend_Http_Client instance is shared
- * among all Zend_Service_Abstract subclasses.
+ * Do this each time to ensure oauth calls do not inject new params
*/
- $this->_localHttpClient->resetParameters()->setUri((string) $this->_uri);
+ $client->resetParameters();
}
/**
@@ -995,11 +1238,13 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- protected function _get($path, array $query = null)
+ protected function get($path, array $query = array())
{
- $this->_prepare($path);
- $this->_localHttpClient->setParameterGet($query);
- return $this->_localHttpClient->request(Zend_Http_Client::GET);
+ $client = $this->getHttpClient();
+ $this->prepare($path, $client);
+ $client->setParameterGet($query);
+ $response = $client->request(Zend_Http_Client::GET);
+ return $response;
}
/**
@@ -1010,10 +1255,12 @@
* @throws Zend_Http_Client_Exception
* @return Zend_Http_Response
*/
- protected function _post($path, $data = null)
+ protected function post($path, $data = null)
{
- $this->_prepare($path);
- return $this->_performPost(Zend_Http_Client::POST, $data);
+ $client = $this->getHttpClient();
+ $this->prepare($path, $client);
+ $response = $this->performPost(Zend_Http_Client::POST, $data, $client);
+ return $response;
}
/**
@@ -1027,9 +1274,8 @@
* @param mixed $data
* @return Zend_Http_Response
*/
- protected function _performPost($method, $data = null)
+ protected function performPost($method, $data, Zend_Http_Client $client)
{
- $client = $this->_localHttpClient;
if (is_string($data)) {
$client->setRawData($data);
} elseif (is_array($data) || is_object($data)) {
@@ -1038,4 +1284,24 @@
return $client->request($method);
}
+ /**
+ * Create a parameter representing the user
+ *
+ * Determines if $id is an integer, and, if so, sets the "user_id" parameter.
+ * If not, assumes the $id is the "screen_name".
+ *
+ * @param int|string $id
+ * @param array $params
+ * @return array
+ */
+ protected function createUserParameter($id, array $params)
+ {
+ if ($this->validInteger($id)) {
+ $params['user_id'] = $id;
+ return $params;
+ }
+
+ $params['screen_name'] = $this->validateScreenName($id);
+ return $params;
+ }
}
--- a/web/lib/Zend/Service/Twitter/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Twitter/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 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 Zend_Service_Exception
--- a/web/lib/Zend/Service/Twitter/Search.php Thu Mar 21 17:31:31 2013 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,167 +0,0 @@
-<?php
-/**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Service
- * @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Search.php 20096 2010-01-06 02:05:09Z bkarwin $
- */
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Rest/Client.php';
-
-/**
- * @see Zend_Json
- */
-require_once 'Zend/Json.php';
-
-/**
- * @see Zend_Feed
- */
-require_once 'Zend/Feed.php';
-
-/**
- * @category Zend
- * @package Zend_Service
- * @subpackage Twitter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-class Zend_Service_Twitter_Search extends Zend_Rest_Client
-{
- /**
- * Return Type
- * @var String
- */
- protected $_responseType = 'json';
-
- /**
- * Response Format Types
- * @var array
- */
- protected $_responseTypes = array(
- 'atom',
- 'json'
- );
-
- /**
- * Uri Compoent
- *
- * @var Zend_Uri_Http
- */
- protected $_uri;
-
- /**
- * Constructor
- *
- * @param string $returnType
- * @return void
- */
- public function __construct($responseType = 'json')
- {
- $this->setResponseType($responseType);
- $this->setUri("http://search.twitter.com");
-
- $this->setHeaders('Accept-Charset', 'ISO-8859-1,utf-8');
- }
-
- /**
- * set responseType
- *
- * @param string $responseType
- * @throws Zend_Service_Twitter_Exception
- * @return Zend_Service_Twitter_Search
- */
- 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;
- return $this;
- }
-
- /**
- * Retrieve responseType
- *
- * @return string
- */
- public function getResponseType()
- {
- return $this->_responseType;
- }
-
- /**
- * Get the current twitter trends. Currnetly only supports json as the return.
- *
- * @throws Zend_Http_Client_Exception
- * @return array
- */
- public function trends()
- {
- $response = $this->restGet('/trends.json');
-
- return Zend_Json::decode($response->getBody());
- }
-
- /**
- * Performs a Twitter search query.
- *
- * @throws Zend_Http_Client_Exception
- */
- public function search($query, array $params = array())
- {
-
- $_query = array();
-
- $_query['q'] = $query;
-
- foreach($params as $key=>$param) {
- 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 'page':
- $_query[$key] = intval($param);
- break;
- case 'show_user':
- $_query[$key] = 'true';
- }
- }
-
- $response = $this->restGet('/search.' . $this->_responseType, $_query);
-
- switch($this->_responseType) {
- case 'json':
- return Zend_Json::decode($response->getBody());
- break;
- case 'atom':
- return Zend_Feed::importString($response->getBody());
- break;
- }
-
- return ;
- }
-}
--- a/web/lib/Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,25 +14,16 @@
*
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CredentialsAbstract.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: CredentialsAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
--- a/web/lib/Zend/Service/WindowsAzure/Credentials/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Credentials/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,7 +16,7 @@
* @package Zend_Service_WindowsAzure
* @subpackage Exception
* @version $Id$
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Credentials_Exception extends Zend_Service_WindowsAzure_Exception
--- a/web/lib/Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SharedAccessSignature.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: SharedAccessSignature.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,19 +25,9 @@
require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
/**
- * @see Zend_Service_WindowsAzure_Storage
- */
-require_once 'Zend/Service/WindowsAzure/Storage.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Credentials_SharedAccessSignature
@@ -93,6 +83,7 @@
{
foreach ($value as $url) {
if (strpos($url, $this->_accountName) === false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('The permission set can only contain URLs for the account name specified in the Zend_Service_WindowsAzure_Credentials_SharedAccessSignature instance.');
}
}
--- a/web/lib/Zend/Service/WindowsAzure/Credentials/SharedKey.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Credentials/SharedKey.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SharedKey.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: SharedKey.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,24 +25,9 @@
require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
/**
- * @see Zend_Service_WindowsAzure_Storage
- */
-require_once 'Zend/Service/WindowsAzure/Storage.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Credentials_SharedKey
@@ -91,6 +76,7 @@
// Table storage?
if ($forTableStorage) {
+ require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
throw new Zend_Service_WindowsAzure_Credentials_Exception('The Windows Azure SDK for PHP does not support SharedKey authentication on table storage. Use SharedKeyLite authentication instead.');
}
@@ -115,7 +101,7 @@
}
// Build canonicalized headers
- if ($headers !== null) {
+ if (!is_null($headers)) {
foreach ($headers as $header => $value) {
if (is_bool($value)) {
$value = $value === true ? 'True' : 'False';
@@ -138,7 +124,7 @@
if ($queryString !== '') {
$queryStringItems = $this->_makeArrayOfQueryString($queryString);
foreach ($queryStringItems as $key => $value) {
- $canonicalizedResource .= "\n" . strtolower($key) . ':' . $value;
+ $canonicalizedResource .= "\n" . strtolower($key) . ':' . urldecode($value);
}
}
@@ -149,7 +135,7 @@
&& strtoupper($httpVerb) != Zend_Http_Client::HEAD) {
$contentLength = 0;
- if ($rawData !== null) {
+ if (!is_null($rawData)) {
$contentLength = strlen($rawData);
}
}
--- a/web/lib/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SharedKeyLite.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: SharedKeyLite.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,24 +25,9 @@
require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
/**
- * @see Zend_Service_WindowsAzure_Storage
- */
-require_once 'Zend/Service/WindowsAzure/Storage.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_SharedKey
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Credentials_SharedKeyLite
@@ -89,6 +74,7 @@
) {
// Table storage?
if (!$forTableStorage) {
+ require_once 'Zend/Service/WindowsAzure/Credentials/Exception.php';
throw new Zend_Service_WindowsAzure_Credentials_Exception('The Windows Azure SDK for PHP does not support SharedKeyLite authentication on blob or queue storage. Use SharedKey authentication instead.');
}
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDataSources.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,22 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationLogs
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationLogs.php';
@@ -59,7 +49,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int OverallQuotaInMB Overall quota in MB
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDiagnosticInfrastructureLogs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDiagnosticInfrastructureLogs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,31 +15,17 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_LogLevel
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/LogLevel.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int BufferQuotaInMB Buffer quota in MB
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDirectories.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationDirectories.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int BufferQuotaInMB Buffer quota in MB
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property Zend_Service_WindowsAzure_Diagnostics_ConfigurationDataSources DataSources Data sources
@@ -116,9 +111,10 @@
// Assign Directories settings
$this->DataSources->Directories->BufferQuotaInMB = (int)$configurationXml->DataSources->Directories->BufferQuotaInMB;
$this->DataSources->Directories->ScheduledTransferPeriodInMinutes = (int)$configurationXml->DataSources->Directories->ScheduledTransferPeriodInMinutes;
+
if ($configurationXml->DataSources->Directories->Subscriptions
&& $configurationXml->DataSources->Directories->Subscriptions->DirectoryConfiguration) {
- $subscriptions = $configurationXml->DataSources->WindowsEventLog->Subscriptions;
+ $subscriptions = $configurationXml->DataSources->Directories->Subscriptions;
if (count($subscriptions->DirectoryConfiguration) > 1) {
$subscriptions = $subscriptions->DirectoryConfiguration;
} else {
@@ -212,6 +208,7 @@
$returnValue[] = ' </Directories>';
$returnValue[] = ' </DataSources>';
+ $returnValue[] = ' <IsDefault>false</IsDefault>';
$returnValue[] = '</ConfigRequest>';
// Return
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationLogs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationLogs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int BufferQuotaInMB Buffer quota in MB
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,21 +15,16 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
@@ -52,7 +47,7 @@
$this->_data[strtolower($name)] = $value;
return;
}
-
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name);
}
@@ -65,7 +60,7 @@
if (array_key_exists(strtolower($name), $this->_data)) {
return $this->_data[strtolower($name)];
}
-
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception("Unknown property: " . $name);
}
}
\ No newline at end of file
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationPerformanceCounters.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationPerformanceCounters.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int BufferQuotaInMB Buffer quota in MB
@@ -72,6 +67,7 @@
*/
public function addSubscription($counterSpecifier, $sampleRateInSeconds = 1)
{
+
$this->_data['subscriptions'][$counterSpecifier] = new Zend_Service_WindowsAzure_Diagnostics_PerformanceCounterSubscription($counterSpecifier, $sampleRateInSeconds);
}
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationWindowsEventLog.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/ConfigurationWindowsEventLog.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,31 +15,16 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_LogLevel
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/LogLevel.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int BufferQuotaInMB Buffer quota in MB
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/DirectoryConfigurationSubscription.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/DirectoryConfigurationSubscription.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,26 +15,17 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string Path Path
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,21 +15,18 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
require_once 'Zend/Service/WindowsAzure/Exception.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Diagnostics_Exception
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/LogLevel.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/LogLevel.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
@@ -25,7 +25,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Diagnostics_LogLevel
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/Manager.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/Manager.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,22 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Storage_Blob
- */
-require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationInstance.php';
@@ -39,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Diagnostics_Manager
@@ -101,7 +91,8 @@
*/
public function configurationForRoleInstanceExists($roleInstance = null)
{
- if ($roleInstance === null) {
+ if (is_null($roleInstance)) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
}
@@ -117,10 +108,11 @@
public function configurationForCurrentRoleInstanceExists()
{
if (!isset($_SERVER['RdRoleId'])) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Server variable \'RdRoleId\' is unknown. Please verify the application is running in Development Fabric or Windows Azure Fabric.');
}
- return $this->_blobStorageClient->blobExists($this->_controlContainer, $_SERVER['RdRoleId']);
+ return $this->_blobStorageClient->blobExists($this->_controlContainer, $this->_getCurrentRoleInstanceId());
}
/**
@@ -132,9 +124,41 @@
public function getConfigurationForCurrentRoleInstance()
{
if (!isset($_SERVER['RdRoleId'])) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
+ throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Server variable \'RdRoleId\' is unknown. Please verify the application is running in Development Fabric or Windows Azure Fabric.');
+ }
+ return $this->getConfigurationForRoleInstance($this->_getCurrentRoleInstanceId());
+ }
+
+ /**
+ * Get the current role instance ID. Only works on Development Fabric or Windows Azure Fabric.
+ *
+ * @return string
+ * @throws Zend_Service_WindowsAzure_Diagnostics_Exception
+ */
+ protected function _getCurrentRoleInstanceId()
+ {
+ if (!isset($_SERVER['RdRoleId'])) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Server variable \'RdRoleId\' is unknown. Please verify the application is running in Development Fabric or Windows Azure Fabric.');
}
- return $this->getConfigurationForRoleInstance($_SERVER['RdRoleId']);
+
+ if (strpos($_SERVER['RdRoleId'], 'deployment(') === false) {
+ return $_SERVER['RdRoleId'];
+ } else {
+ $roleIdParts = explode('.', $_SERVER['RdRoleId']);
+ return $roleIdParts[0] . '/' . $roleIdParts[2] . '/' . $_SERVER['RdRoleId'];
+ }
+
+ if (!isset($_SERVER['RoleDeploymentID']) && !isset($_SERVER['RoleInstanceID']) && !isset($_SERVER['RoleName'])) {
+ throw new Exception('Server variables \'RoleDeploymentID\', \'RoleInstanceID\' and \'RoleName\' are unknown. Please verify the application is running in Development Fabric or Windows Azure Fabric.');
+ }
+
+ if (strpos($_SERVER['RdRoleId'], 'deployment(') === false) {
+ return $_SERVER['RdRoleId'];
+ } else {
+ return $_SERVER['RoleDeploymentID'] . '/' . $_SERVER['RoleInstanceID'] . '/' . $_SERVER['RoleName'];
+ }
}
/**
@@ -146,9 +170,11 @@
public function setConfigurationForCurrentRoleInstance(Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance $configuration)
{
if (!isset($_SERVER['RdRoleId'])) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Server variable \'RdRoleId\' is unknown. Please verify the application is running in Development Fabric or Windows Azure Fabric.');
}
- $this->setConfigurationForRoleInstance($_SERVER['RdRoleId'], $configuration);
+
+ $this->setConfigurationForRoleInstance($this->_getCurrentRoleInstanceId(), $configuration);
}
/**
@@ -160,10 +186,13 @@
*/
public function getConfigurationForRoleInstance($roleInstance = null)
{
- if ($roleInstance === null) {
+ if (is_null($roleInstance)) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
}
+
+
if ($this->_blobStorageClient->blobExists($this->_controlContainer, $roleInstance)) {
$configurationInstance = new Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance();
$configurationInstance->loadXml( $this->_blobStorageClient->getBlobData($this->_controlContainer, $roleInstance) );
@@ -182,7 +211,8 @@
*/
public function setConfigurationForRoleInstance($roleInstance = null, Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance $configuration)
{
- if ($roleInstance === null) {
+ if (is_null($roleInstance)) {
+ require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
}
--- a/web/lib/Zend/Service/WindowsAzure/Diagnostics/PerformanceCounterSubscription.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Diagnostics/PerformanceCounterSubscription.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Diagnostics_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Diagnostics/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Diagnostics_ConfigurationObjectBaseAbstract
*/
require_once 'Zend/Service/WindowsAzure/Diagnostics/ConfigurationObjectBaseAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Diagnostics
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string CounterSpecifier Counter specifier
--- a/web/lib/Zend/Service/WindowsAzure/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Exception
- * @version $Id: Exception.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Service_WindowsAzure
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Exception extends Zend_Service_Exception
--- a/web/lib/Zend/Service/WindowsAzure/RetryPolicy/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/RetryPolicy/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Exception
- * @version $Id: Exception.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_RetryPolicy_Exception extends Zend_Service_WindowsAzure_Exception
--- a/web/lib/Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @version $Id: NoRetry.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: NoRetry.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_RetryPolicy_NoRetry extends Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
--- a/web/lib/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/RetryPolicy/RetryN.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @version $Id: RetryN.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: RetryN.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,15 +26,10 @@
require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
/**
- * @see Zend_Service_WindowsAzure_RetryPolicy_Exception
- */
-require_once 'Zend/Service/WindowsAzure/RetryPolicy/Exception.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_RetryPolicy_RetryN extends Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
@@ -82,6 +77,7 @@
return $returnValue;
} catch (Exception $ex) {
if ($retriesLeft == 1) {
+ require_once 'Zend/Service/WindowsAzure/RetryPolicy/Exception.php';
throw new Zend_Service_WindowsAzure_RetryPolicy_Exception("Exceeded retry count of " . $this->_retryCount . ". " . $ex->getMessage());
}
--- a/web/lib/Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @version $Id: RetryPolicyAbstract.php 20785 2010-01-31 09:43:03Z mikaelkael $
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: RetryPolicyAbstract.php 24593 2012-01-05 20:35:02Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_RetryPolicy_NoRetry
*/
require_once 'Zend/Service/WindowsAzure/RetryPolicy/NoRetry.php';
@@ -39,7 +34,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage RetryPolicy
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
@@ -72,6 +67,6 @@
*/
public static function retryN($count = 1, $intervalBetweenRetries = 0)
{
- return new Zend_Service_WindowsAzure_RetryPolicy_RetryN($count, $intervalBetweenRetries);
+ return new Zend_Service_WindowsAzure_RetryPolicy_RetryN($count, $intervalBetweenRetries);
}
}
\ No newline at end of file
--- a/web/lib/Zend/Service/WindowsAzure/SessionHandler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/SessionHandler.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,62 +15,92 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SessionHandler.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: SessionHandler.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/** Zend_Service_WindowsAzure_Storage_Table */
-require_once 'Zend/Service/WindowsAzure/Storage/Table.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_SessionHandler
{
+ /**
+ * Maximal property size in table storage.
+ *
+ * @var int
+ * @see http://msdn.microsoft.com/en-us/library/dd179338.aspx
+ */
+ const MAX_TS_PROPERTY_SIZE = 65536;
+
+ /** Storage backend type */
+ const STORAGE_TYPE_TABLE = 'table';
+ const STORAGE_TYPE_BLOB = 'blob';
+
/**
- * Table storage
+ * Storage back-end
*
- * @var Zend_Service_WindowsAzure_Storage_Table
+ * @var Zend_Service_WindowsAzure_Storage_Table|Zend_Service_WindowsAzure_Storage_Blob
*/
- protected $_tableStorage;
+ protected $_storage;
/**
- * Session table name
+ * Storage backend type
*
* @var string
*/
- protected $_sessionTable;
+ protected $_storageType;
/**
- * Session table partition
+ * Session container name
*
* @var string
*/
- protected $_sessionTablePartition;
+ protected $_sessionContainer;
+
+ /**
+ * Session container partition
+ *
+ * @var string
+ */
+ protected $_sessionContainerPartition;
/**
* Creates a new Zend_Service_WindowsAzure_SessionHandler instance
*
- * @param Zend_Service_WindowsAzure_Storage_Table $tableStorage Table storage
- * @param string $sessionTable Session table name
- * @param string $sessionTablePartition Session table partition
+ * @param Zend_Service_WindowsAzure_Storage_Table|Zend_Service_WindowsAzure_Storage_Blob $storage Storage back-end, can be table storage and blob storage
+ * @param string $sessionContainer Session container name
+ * @param string $sessionContainerPartition Session container partition
*/
- public function __construct(Zend_Service_WindowsAzure_Storage_Table $tableStorage, $sessionTable = 'phpsessions', $sessionTablePartition = 'sessions')
+ public function __construct(Zend_Service_WindowsAzure_Storage $storage, $sessionContainer = 'phpsessions', $sessionContainerPartition = 'sessions')
{
+ // Validate $storage
+ if (!($storage instanceof Zend_Service_WindowsAzure_Storage_Table || $storage instanceof Zend_Service_WindowsAzure_Storage_Blob)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception('Invalid storage back-end given. Storage back-end should be of type Zend_Service_WindowsAzure_Storage_Table or Zend_Service_WindowsAzure_Storage_Blob.');
+ }
+
+ // Validate other parameters
+ if ($sessionContainer == '' || $sessionContainerPartition == '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception('Session container and session partition should be specified.');
+ }
+
+ // Determine storage type
+ $storageType = self::STORAGE_TYPE_TABLE;
+ if ($storage instanceof Zend_Service_WindowsAzure_Storage_Blob) {
+ $storageType = self::STORAGE_TYPE_BLOB;
+ }
+
// Set properties
- $this->_tableStorage = $tableStorage;
- $this->_sessionTable = $sessionTable;
- $this->_sessionTablePartition = $sessionTablePartition;
+ $this->_storage = $storage;
+ $this->_storageType = $storageType;
+ $this->_sessionContainer = $sessionContainer;
+ $this->_sessionContainerPartition = $sessionContainerPartition;
}
/**
@@ -96,12 +126,13 @@
*/
public function open()
{
- // Make sure table exists
- $tableExists = $this->_tableStorage->tableExists($this->_sessionTable);
- if (!$tableExists) {
- $this->_tableStorage->createTable($this->_sessionTable);
- }
-
+ // Make sure storage container exists
+ if ($this->_storageType == self::STORAGE_TYPE_TABLE) {
+ $this->_storage->createTableIfNotExists($this->_sessionContainer);
+ } else if ($this->_storageType == self::STORAGE_TYPE_BLOB) {
+ $this->_storage->createContainerIfNotExists($this->_sessionContainer);
+ }
+
// Ok!
return true;
}
@@ -124,19 +155,37 @@
*/
public function read($id)
{
- try
- {
- $sessionRecord = $this->_tableStorage->retrieveEntityById(
- $this->_sessionTable,
- $this->_sessionTablePartition,
- $id
- );
- return base64_decode($sessionRecord->serializedData);
- }
- catch (Zend_Service_WindowsAzure_Exception $ex)
- {
- return '';
- }
+ // Read data
+ if ($this->_storageType == self::STORAGE_TYPE_TABLE) {
+ // In table storage
+ try
+ {
+ $sessionRecord = $this->_storage->retrieveEntityById(
+ $this->_sessionContainer,
+ $this->_sessionContainerPartition,
+ $id
+ );
+ return unserialize(base64_decode($sessionRecord->serializedData));
+ }
+ catch (Zend_Service_WindowsAzure_Exception $ex)
+ {
+ return '';
+ }
+ } else if ($this->_storageType == self::STORAGE_TYPE_BLOB) {
+ // In blob storage
+ try
+ {
+ $data = $this->_storage->getBlobData(
+ $this->_sessionContainer,
+ $this->_sessionContainerPartition . '/' . $id
+ );
+ return unserialize(base64_decode($data));
+ }
+ catch (Zend_Service_WindowsAzure_Exception $ex)
+ {
+ return false;
+ }
+ }
}
/**
@@ -144,23 +193,42 @@
*
* @param int $id Session Id
* @param string $serializedData Serialized PHP object
+ * @throws Exception
*/
public function write($id, $serializedData)
{
- $sessionRecord = new Zend_Service_WindowsAzure_Storage_DynamicTableEntity($this->_sessionTablePartition, $id);
- $sessionRecord->sessionExpires = time();
- $sessionRecord->serializedData = base64_encode($serializedData);
-
- $sessionRecord->setAzurePropertyType('sessionExpires', 'Edm.Int32');
-
- try
- {
- $this->_tableStorage->updateEntity($this->_sessionTable, $sessionRecord);
- }
- catch (Zend_Service_WindowsAzure_Exception $unknownRecord)
- {
- $this->_tableStorage->insertEntity($this->_sessionTable, $sessionRecord);
- }
+ // Encode data
+ $serializedData = base64_encode(serialize($serializedData));
+ if (strlen($serializedData) >= self::MAX_TS_PROPERTY_SIZE && $this->_storageType == self::STORAGE_TYPE_TABLE) {
+ throw new Zend_Service_WindowsAzure_Exception('Session data exceeds the maximum allowed size of ' . self::MAX_TS_PROPERTY_SIZE . ' bytes that can be stored using table storage. Consider switching to a blob storage back-end or try reducing session data size.');
+ }
+
+ // Store data
+ if ($this->_storageType == self::STORAGE_TYPE_TABLE) {
+ // In table storage
+ $sessionRecord = new Zend_Service_WindowsAzure_Storage_DynamicTableEntity($this->_sessionContainerPartition, $id);
+ $sessionRecord->sessionExpires = time();
+ $sessionRecord->serializedData = $serializedData;
+
+ $sessionRecord->setAzurePropertyType('sessionExpires', 'Edm.Int32');
+
+ try
+ {
+ $this->_storage->updateEntity($this->_sessionContainer, $sessionRecord);
+ }
+ catch (Zend_Service_WindowsAzure_Exception $unknownRecord)
+ {
+ $this->_storage->insertEntity($this->_sessionContainer, $sessionRecord);
+ }
+ } else if ($this->_storageType == self::STORAGE_TYPE_BLOB) {
+ // In blob storage
+ $this->_storage->putBlobData(
+ $this->_sessionContainer,
+ $this->_sessionContainerPartition . '/' . $id,
+ $serializedData,
+ array('sessionexpires' => time())
+ );
+ }
}
/**
@@ -171,21 +239,40 @@
*/
public function destroy($id)
{
- try
- {
- $sessionRecord = $this->_tableStorage->retrieveEntityById(
- $this->_sessionTable,
- $this->_sessionTablePartition,
- $id
- );
- $this->_tableStorage->deleteEntity($this->_sessionTable, $sessionRecord);
-
- return true;
- }
- catch (Zend_Service_WindowsAzure_Exception $ex)
- {
- return false;
- }
+ // Destroy data
+ if ($this->_storageType == self::STORAGE_TYPE_TABLE) {
+ // In table storage
+ try
+ {
+ $sessionRecord = $this->_storage->retrieveEntityById(
+ $this->_sessionContainer,
+ $this->_sessionContainerPartition,
+ $id
+ );
+ $this->_storage->deleteEntity($this->_sessionContainer, $sessionRecord);
+
+ return true;
+ }
+ catch (Zend_Service_WindowsAzure_Exception $ex)
+ {
+ return false;
+ }
+ } else if ($this->_storageType == self::STORAGE_TYPE_BLOB) {
+ // In blob storage
+ try
+ {
+ $this->_storage->deleteBlob(
+ $this->_sessionContainer,
+ $this->_sessionContainerPartition . '/' . $id
+ );
+
+ return true;
+ }
+ catch (Zend_Service_WindowsAzure_Exception $ex)
+ {
+ return false;
+ }
+ }
}
/**
@@ -200,18 +287,38 @@
*/
public function gc($lifeTime)
{
- try
- {
- $result = $this->_tableStorage->retrieveEntities($this->_sessionTable, 'PartitionKey eq \'' . $this->_sessionTablePartition . '\' and sessionExpires lt ' . (time() - $lifeTime));
- foreach ($result as $sessionRecord)
- {
- $this->_tableStorage->deleteEntity($this->_sessionTable, $sessionRecord);
- }
- return true;
- }
- catch (Zend_Service_WindowsAzure_exception $ex)
- {
- return false;
- }
+ if ($this->_storageType == self::STORAGE_TYPE_TABLE) {
+ // In table storage
+ try
+ {
+ $result = $this->_storage->retrieveEntities($this->_sessionContainer, 'PartitionKey eq \'' . $this->_sessionContainerPartition . '\' and sessionExpires lt ' . (time() - $lifeTime));
+ foreach ($result as $sessionRecord)
+ {
+ $this->_storage->deleteEntity($this->_sessionContainer, $sessionRecord);
+ }
+ return true;
+ }
+ catch (Zend_Service_WindowsAzure_exception $ex)
+ {
+ return false;
+ }
+ } else if ($this->_storageType == self::STORAGE_TYPE_BLOB) {
+ // In blob storage
+ try
+ {
+ $result = $this->_storage->listBlobs($this->_sessionContainer, $this->_sessionContainerPartition, '', null, null, 'metadata');
+ foreach ($result as $sessionRecord)
+ {
+ if ($sessionRecord->Metadata['sessionexpires'] < (time() - $lifeTime)) {
+ $this->_storage->deleteBlob($this->_sessionContainer, $sessionRecord->Name);
+ }
+ }
+ return true;
+ }
+ catch (Zend_Service_WindowsAzure_exception $ex)
+ {
+ return false;
+ }
+ }
}
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Storage.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: Storage.php 24697 2012-03-23 13:11:04Z ezimuel $
*/
/**
- * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
+ * @see Zend_Http_Client
*/
-require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
+require_once 'Zend/Http/Client.php';
/**
* @see Zend_Service_WindowsAzure_Credentials_SharedKey
@@ -34,27 +34,11 @@
* @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
*/
require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Http_Response
- */
-require_once 'Zend/Http/Response.php';
-
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage
@@ -205,13 +189,13 @@
$this->_usePathStyleUri = true;
}
- if ($this->_credentials === null) {
+ if (is_null($this->_credentials)) {
$this->_credentials = new Zend_Service_WindowsAzure_Credentials_SharedKey(
$this->_accountName, $this->_accountKey, $this->_usePathStyleUri);
}
$this->_retryPolicy = $retryPolicy;
- if ($this->_retryPolicy === null) {
+ if (is_null($this->_retryPolicy)) {
$this->_retryPolicy = Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract::noRetry();
}
@@ -238,7 +222,7 @@
{
$this->_httpClientChannel->setAdapter($adapterInstance);
}
-
+
/**
* Retrieve HTTP client channel
*
@@ -257,7 +241,7 @@
public function setRetryPolicy(Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null)
{
$this->_retryPolicy = $retryPolicy;
- if ($this->_retryPolicy === null) {
+ if (is_null($this->_retryPolicy)) {
$this->_retryPolicy = Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract::noRetry();
}
}
@@ -372,7 +356,7 @@
}
// Clean headers
- if ($headers === null) {
+ if (is_null($headers)) {
$headers = array();
}
@@ -397,7 +381,7 @@
$requestHeaders = $this->_credentials
->signRequestHeaders($httpVerb, $path, $queryString, $headers, $forTableStorage, $resourceType, $requiredPermission, $rawData);
- // Prepare request
+ // Prepare request
$this->_httpClientChannel->resetParameters(true);
$this->_httpClientChannel->setUri($requestUrl);
$this->_httpClientChannel->setHeaders($requestHeaders);
@@ -421,7 +405,8 @@
*/
protected function _parseResponse(Zend_Http_Response $response = null)
{
- if ($response === null) {
+ if (is_null($response)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Response should not be null.');
}
@@ -459,11 +444,13 @@
$headers = array();
foreach ($metadata as $key => $value) {
if (strpos($value, "\r") !== false || strpos($value, "\n") !== false) {
- throw new Zend_Service_WindowsAzure_Exception('Metadata cannot contain newline characters.');
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception('Metadata cannot contain newline characters.');
}
if (!self::isValidMetadataName($key)) {
- throw new Zend_Service_WindowsAzure_Exception('Metadata name does not adhere to metadata naming conventions. See http://msdn.microsoft.com/en-us/library/aa664670(VS.71).aspx for more information.');
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception('Metadata name does not adhere to metadata naming conventions. See http://msdn.microsoft.com/en-us/library/aa664670(VS.71).aspx for more information.');
}
$headers["x-ms-meta-" . strtolower($key)] = $value;
@@ -503,7 +490,7 @@
protected function _parseMetadataElement($element = null)
{
// Metadata present?
- if ($element !== null && isset($element->Metadata) && $element->Metadata !== null) {
+ if (!is_null($element) && isset($element->Metadata) && !is_null($element->Metadata)) {
return get_object_vars($element->Metadata);
}
@@ -521,7 +508,7 @@
$tz = @date_default_timezone_get();
@date_default_timezone_set('UTC');
- if ($timestamp === null) {
+ if (is_null($timestamp)) {
$timestamp = time();
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/Batch.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/Batch.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,26 +15,17 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Batch.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: Batch.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Storage/BatchStorageAbstract.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_Batch
@@ -138,6 +129,7 @@
// Set _isSingleSelect
if ($httpVerb == Zend_Http_Client::GET) {
if (count($this->_operations) > 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception("Select operations can only be performed in an empty batch transaction.");
}
$this->_isSingleSelect = true;
@@ -149,7 +141,7 @@
}
// Clean headers
- if ($headers === null) {
+ if (is_null($headers)) {
$headers = array();
}
@@ -161,7 +153,7 @@
$requestUrl = $this->getBaseUrl() . $path . $queryString;
// Generate $rawData
- if ($rawData === null) {
+ if (is_null($rawData)) {
$rawData = '';
}
@@ -197,7 +189,7 @@
* @throws Zend_Service_WindowsAzure_Exception
*/
public function commit()
- {
+ {
// Perform batch
$response = $this->_storageClient->performBatch($this->_operations, $this->_forTableStorage, $this->_isSingleSelect);
@@ -210,6 +202,7 @@
// Error?
if (count($errors[2]) > 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('An error has occured while committing a batch: ' . $errors[2][0]);
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/BatchStorageAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/BatchStorageAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BatchStorageAbstract.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: BatchStorageAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,35 +26,10 @@
require_once 'Zend/Service/WindowsAzure/Storage.php';
/**
- * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Storage_Batch
- */
-require_once 'Zend/Service/WindowsAzure/Storage/Batch.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Http_Response
- */
-require_once 'Zend/Http/Response.php';
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
@@ -75,7 +50,8 @@
*/
public function setCurrentBatch(Zend_Service_WindowsAzure_Storage_Batch $batch = null)
{
- if ($batch !== null && $this->isInBatch()) {
+ if (!is_null($batch) && $this->isInBatch()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Only one batch can be active at a time.');
}
$this->_currentBatch = $batch;
@@ -98,7 +74,7 @@
*/
public function isInBatch()
{
- return $this->_currentBatch !== null;
+ return !is_null($this->_currentBatch);
}
/**
@@ -109,6 +85,7 @@
*/
public function startBatch()
{
+ require_once 'Zend/Service/WindowsAzure/Storage/Batch.php';
return new Zend_Service_WindowsAzure_Storage_Batch($this, $this->getBaseUrl());
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/Blob.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/Blob.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,35 +15,10 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://todo name_todo
- * @version $Id: Blob.php 23167 2010-10-19 17:53:31Z mabe $
- */
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract_SharedKey
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_SharedAccessSignature
+ * @version $Id: Blob.php 24697 2012-03-23 13:11:04Z ezimuel $
*/
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
-
-/**
- * @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
- */
-require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Http_Response
- */
-require_once 'Zend/Http/Response.php';
/**
* @see Zend_Service_WindowsAzure_Storage
@@ -51,16 +26,16 @@
require_once 'Zend/Service/WindowsAzure/Storage.php';
/**
+ * @see Zend_Service_WindowsAzure_Storage_BlobInstance
+ */
+require_once 'Zend/Service/WindowsAzure/Storage/BlobInstance.php';
+
+/**
* @see Zend_Service_WindowsAzure_Storage_BlobContainer
*/
require_once 'Zend/Service/WindowsAzure/Storage/BlobContainer.php';
/**
- * @see Zend_Service_WindowsAzure_Storage_BlobInstance
- */
-require_once 'Zend/Service/WindowsAzure/Storage/BlobInstance.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_PageRegionInstance
*/
require_once 'Zend/Service/WindowsAzure/Storage/PageRegionInstance.php';
@@ -71,21 +46,19 @@
require_once 'Zend/Service/WindowsAzure/Storage/LeaseInstance.php';
/**
- * @see Zend_Service_WindowsAzure_Storage_SignedIdentifier
+ * @see Zend_Service_WindowsAzure_Storage_Blob_Stream
*/
-require_once 'Zend/Service/WindowsAzure/Storage/SignedIdentifier.php';
+require_once 'Zend/Service/WindowsAzure/Storage/Blob/Stream.php';
/**
- * @see Zend_Service_WindowsAzure_Exception
+ * @see Zend_Service_WindowsAzure_Credentials_SharedAccessSignature
*/
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-
+require_once 'Zend/Service/WindowsAzure/Credentials/SharedAccessSignature.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_Storage
@@ -154,7 +127,7 @@
*
* @var Zend_Service_WindowsAzure_Credentials_SharedAccessSignature
*/
- private $_sharedAccessSignatureCredentials = null;
+ protected $_sharedAccessSignatureCredentials = null;
/**
* Creates a new Zend_Service_WindowsAzure_Storage_Blob instance
@@ -187,12 +160,15 @@
public function blobExists($containerName = '', $blobName = '', $snapshotId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
@@ -215,9 +191,11 @@
public function containerExists($containerName = '')
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -243,12 +221,15 @@
public function createContainer($containerName = '', $metadata = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if (!is_array($metadata)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Meta data should be an array of key and value pairs.');
}
@@ -259,6 +240,7 @@
// Perform request
$response = $this->_performRequest($containerName, '?restype=container', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_CONTAINER, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if ($response->isSuccessful()) {
+
return new Zend_Service_WindowsAzure_Storage_BlobContainer(
$containerName,
$response->getHeader('Etag'),
@@ -266,9 +248,24 @@
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
+
+ /**
+ * Create container if it does not exist
+ *
+ * @param string $containerName Container name
+ * @param array $metadata Key/value pairs of meta data
+ * @throws Zend_Service_WindowsAzure_Exception
+ */
+ public function createContainerIfNotExists($containerName = '', $metadata = array())
+ {
+ if (!$this->containerExists($containerName)) {
+ $this->createContainer($containerName, $metadata);
+ }
+ }
/**
* Get container ACL
@@ -281,9 +278,11 @@
public function getContainerAcl($containerName = '', $signedIdentifiers = false)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -313,6 +312,7 @@
}
}
+ require_once 'Zend/Service/WindowsAzure/Storage/SignedIdentifier.php';
// Return value
$returnValue = array();
foreach ($entries as $entry) {
@@ -328,6 +328,7 @@
return $returnValue;
}
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -343,9 +344,11 @@
public function setContainerAcl($containerName = '', $acl = self::ACL_PRIVATE, $signedIdentifiers = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -353,7 +356,7 @@
$headers = array();
// Acl specified?
- if ($acl != self::ACL_PRIVATE && $acl !== null && $acl != '') {
+ if ($acl != self::ACL_PRIVATE && !is_null($acl) && $acl != '') {
$headers[Zend_Service_WindowsAzure_Storage::PREFIX_STORAGE_HEADER . 'blob-public-access'] = $acl;
}
@@ -382,6 +385,7 @@
// Perform request
$response = $this->_performRequest($containerName, '?restype=container&comp=acl', Zend_Http_Client::PUT, $headers, false, $policies, Zend_Service_WindowsAzure_Storage::RESOURCE_CONTAINER, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -396,9 +400,11 @@
public function getContainer($containerName = '')
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -416,6 +422,7 @@
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -430,9 +437,11 @@
public function getContainerMetadata($containerName = '')
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -452,12 +461,15 @@
public function setContainerMetadata($containerName = '', $metadata = array(), $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if (!is_array($metadata)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Meta data should be an array of key and value pairs.');
}
if (count($metadata) == 0) {
@@ -476,6 +488,7 @@
// Perform request
$response = $this->_performRequest($containerName, '?restype=container&comp=metadata', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_CONTAINER, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -490,9 +503,11 @@
public function deleteContainer($containerName = '', $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -505,6 +520,7 @@
// Perform request
$response = $this->_performRequest($containerName, '?restype=container', Zend_Http_Client::DELETE, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_CONTAINER, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -524,16 +540,16 @@
{
// Build query string
$queryString = array('comp=list');
- if ($prefix !== null) {
+ if (!is_null($prefix)) {
$queryString[] = 'prefix=' . $prefix;
}
- if ($maxResults !== null) {
+ if (!is_null($maxResults)) {
$queryString[] = 'maxresults=' . $maxResults;
}
- if ($marker !== null) {
+ if (!is_null($marker)) {
$queryString[] = 'marker=' . $marker;
}
- if ($include !== null) {
+ if (!is_null($include)) {
$queryString[] = 'include=' . $include;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -545,8 +561,9 @@
$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
$containers = array();
- if ($xmlContainers !== null) {
+ if (!is_null($xmlContainers)) {
for ($i = 0; $i < count($xmlContainers); $i++) {
+
$containers[] = new Zend_Service_WindowsAzure_Storage_BlobContainer(
(string)$xmlContainers[$i]->Name,
(string)$xmlContainers[$i]->Etag,
@@ -556,17 +573,18 @@
}
}
$currentResultCount = $currentResultCount + count($containers);
- if ($maxResults !== null && $currentResultCount < $maxResults) {
- if ($xmlMarker !== null && $xmlMarker != '') {
+ if (!is_null($maxResults) && $currentResultCount < $maxResults) {
+ if (!is_null($xmlMarker) && $xmlMarker != '') {
$containers = array_merge($containers, $this->listContainers($prefix, $maxResults, $xmlMarker, $include, $currentResultCount));
}
}
- if ($maxResults !== null && count($containers) > $maxResults) {
+ if (!is_null($maxResults) && count($containers) > $maxResults) {
$containers = array_slice($containers, 0, $maxResults);
}
return $containers;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -586,27 +604,33 @@
public function putBlob($containerName = '', $blobName = '', $localFileName = '', $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($localFileName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Local file name is not specified.');
}
if (!file_exists($localFileName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Local file not found.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Check file size
if (filesize($localFileName) >= self::MAX_BLOB_SIZE) {
- return $this->putLargeBlob($containerName, $blobName, $localFileName, $metadata, $leaseId);
+ return $this->putLargeBlob($containerName, $blobName, $localFileName, $metadata, $leaseId, $additionalHeaders);
}
// Put the data to Windows Azure Storage
@@ -628,21 +652,25 @@
public function putBlobData($containerName = '', $blobName = '', $data = '', $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -661,6 +689,7 @@
// Perform request
$response = $this->_performRequest($resourceName, '', Zend_Http_Client::PUT, $headers, false, $data, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if ($response->isSuccessful()) {
+
return new Zend_Service_WindowsAzure_Storage_BlobInstance(
$containerName,
$blobName,
@@ -676,6 +705,7 @@
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -688,33 +718,40 @@
* @param string $localFileName Local file name to be uploaded
* @param array $metadata Key/value pairs of meta data
* @param string $leaseId Lease identifier
+ * @param array $additionalHeaders Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information.
* @return object Partial blob properties
* @throws Zend_Service_WindowsAzure_Exception
*/
- public function putLargeBlob($containerName = '', $blobName = '', $localFileName = '', $metadata = array(), $leaseId = null)
+ public function putLargeBlob($containerName = '', $blobName = '', $localFileName = '', $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($localFileName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Local file name is not specified.');
}
if (!file_exists($localFileName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Local file not found.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Check file size
if (filesize($localFileName) < self::MAX_BLOB_SIZE) {
- return $this->putBlob($containerName, $blobName, $localFileName, $metadata);
+ return $this->putBlob($containerName, $blobName, $localFileName, $metadata, $leaseId, $additionalHeaders);
}
// Determine number of parts
@@ -729,6 +766,7 @@
// Open file
$fp = fopen($localFileName, 'r');
if ($fp === false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Could not open local file.');
}
@@ -752,7 +790,7 @@
fclose($fp);
// Put block list
- $this->putBlockList($containerName, $blobName, $blockIdentifiers, $metadata, $leaseId);
+ $this->putBlockList($containerName, $blobName, $blockIdentifiers, $metadata, $leaseId, $additionalHeaders);
// Return information of the blob
return $this->getBlobInstance($containerName, $blobName, null, $leaseId);
@@ -771,24 +809,29 @@
public function putBlock($containerName = '', $blobName = '', $identifier = '', $contents = '', $leaseId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($identifier === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Block identifier is not specified.');
}
if (strlen($contents) > self::MAX_BLOB_TRANSFER_SIZE) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Block size is too big.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
@@ -798,6 +841,7 @@
// Upload
$response = $this->_performRequest($resourceName, '?comp=block&blockid=' . base64_encode($identifier), Zend_Http_Client::PUT, $headers, false, $contents, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -816,18 +860,23 @@
public function putBlockList($containerName = '', $blobName = '', $blockList = array(), $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if (count($blockList) == 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Block list does not contain any elements.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
@@ -839,15 +888,15 @@
// Generate block list request
$fileContents = utf8_encode(implode("\n", array(
- '<?xml version="1.0" encoding="utf-8"?>',
- '<BlockList>',
- $blocks,
- '</BlockList>'
+ '<?xml version="1.0" encoding="utf-8"?>',
+ '<BlockList>',
+ $blocks,
+ '</BlockList>'
)));
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -863,6 +912,7 @@
// Perform request
$response = $this->_performRequest($resourceName, '?comp=blocklist', Zend_Http_Client::PUT, $headers, false, $fileContents, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -881,15 +931,19 @@
public function getBlockList($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null, $type = 0)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($type < 0 || $type > 2) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Invalid type of block list to retrieve.');
}
@@ -904,13 +958,13 @@
// Headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
// Build query string
$queryString = array('comp=blocklist', 'blocklisttype=' . $blockListType);
- if ($snapshotId !== null) {
+ if (!is_null($snapshotId)) {
$queryString[] = 'snapshot=' . $snapshotId;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -945,6 +999,7 @@
return $returnValue;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -964,24 +1019,29 @@
public function createPageBlob($containerName = '', $blobName = '', $size = 0, $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if ($size <= 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Page blob size must be specified.');
}
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1002,6 +1062,7 @@
// Perform request
$response = $this->_performRequest($resourceName, '', Zend_Http_Client::PUT, $headers, false, '', Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if ($response->isSuccessful()) {
+
return new Zend_Service_WindowsAzure_Storage_BlobInstance(
$containerName,
$blobName,
@@ -1017,6 +1078,7 @@
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1037,33 +1099,40 @@
public function putPage($containerName = '', $blobName = '', $startByteOffset = 0, $endByteOffset = 0, $contents = '', $writeMethod = self::PAGE_WRITE_UPDATE, $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if ($startByteOffset % 512 != 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Start byte offset must be a modulus of 512.');
}
if (($endByteOffset + 1) % 512 != 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('End byte offset must be a modulus of 512 minus 1.');
}
// Determine size
$size = strlen($contents);
if ($size >= self::MAX_BLOB_TRANSFER_SIZE) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Page blob size must not be larger than ' + self::MAX_BLOB_TRANSFER_SIZE . ' bytes.');
}
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
@@ -1084,6 +1153,7 @@
// Perform request
$response = $this->_performRequest($resourceName, '?comp=page', Zend_Http_Client::PUT, $headers, false, $contents, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1102,27 +1172,33 @@
public function getPageRegions($containerName = '', $blobName = '', $startByteOffset = 0, $endByteOffset = 0, $leaseId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if ($startByteOffset % 512 != 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Start byte offset must be a modulus of 512.');
}
if ($endByteOffset > 0 && ($endByteOffset + 1) % 512 != 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('End byte offset must be a modulus of 512 minus 1.');
}
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
@@ -1144,8 +1220,10 @@
} else {
$xmlRanges = array($result->PageRange);
}
-
+
+
$ranges = array();
+
for ($i = 0; $i < count($xmlRanges); $i++) {
$ranges[] = new Zend_Service_WindowsAzure_Storage_PageRegionInstance(
(int)$xmlRanges[$i]->Start,
@@ -1155,6 +1233,7 @@
return $ranges;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1176,33 +1255,41 @@
public function copyBlob($sourceContainerName = '', $sourceBlobName = '', $destinationContainerName = '', $destinationBlobName = '', $metadata = array(), $sourceSnapshotId = null, $destinationLeaseId = null, $additionalHeaders = array())
{
if ($sourceContainerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Source container name is not specified.');
}
if (!self::isValidContainerName($sourceContainerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Source container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($sourceBlobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Source blob name is not specified.');
}
if ($destinationContainerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Destination container name is not specified.');
}
if (!self::isValidContainerName($destinationContainerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Destination container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($destinationBlobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Destination blob name is not specified.');
}
if ($sourceContainerName === '$root' && strpos($sourceBlobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if ($destinationContainerName === '$root' && strpos($destinationBlobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Create metadata headers
$headers = array();
- if ($destinationLeaseId !== null) {
+ if (!is_null($destinationLeaseId)) {
$headers['x-ms-lease-id'] = $destinationLeaseId;
}
$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1214,7 +1301,7 @@
// Resource names
$sourceResourceName = self::createResourceName($sourceContainerName, $sourceBlobName);
- if ($sourceSnapshotId !== null) {
+ if (!is_null($sourceSnapshotId)) {
$sourceResourceName .= '?snapshot=' . $sourceSnapshotId;
}
$destinationResourceName = self::createResourceName($destinationContainerName, $destinationBlobName);
@@ -1225,6 +1312,7 @@
// Perform request
$response = $this->_performRequest($destinationResourceName, '', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if ($response->isSuccessful()) {
+
return new Zend_Service_WindowsAzure_Storage_BlobInstance(
$destinationContainerName,
$destinationBlobName,
@@ -1240,6 +1328,7 @@
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1258,15 +1347,19 @@
public function getBlob($containerName = '', $blobName = '', $localFileName = '', $snapshotId = null, $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($localFileName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Local file name is not specified.');
}
@@ -1288,25 +1381,28 @@
public function getBlobData($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
// Build query string
$queryString = array();
- if ($snapshotId !== null) {
+ if (!is_null($snapshotId)) {
$queryString[] = 'snapshot=' . $snapshotId;
}
$queryString = self::createQueryStringFromArray($queryString);
// Additional headers?
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
foreach ($additionalHeaders as $key => $value) {
@@ -1321,6 +1417,7 @@
if ($response->isSuccessful()) {
return $response->getBody();
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1339,28 +1436,32 @@
public function getBlobInstance($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Build query string
$queryString = array();
- if ($snapshotId !== null) {
+ if (!is_null($snapshotId)) {
$queryString[] = 'snapshot=' . $snapshotId;
}
$queryString = self::createQueryStringFromArray($queryString);
// Additional headers?
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
foreach ($additionalHeaders as $key => $value) {
@@ -1375,26 +1476,27 @@
if ($response->isSuccessful()) {
// Parse metadata
$metadata = $this->_parseMetadataHeaders($response->getHeaders());
-
+
// Return blob
return new Zend_Service_WindowsAzure_Storage_BlobInstance(
- $containerName,
- $blobName,
- $snapshotId,
- $response->getHeader('Etag'),
- $response->getHeader('Last-modified'),
- $this->getBaseUrl() . '/' . $containerName . '/' . $blobName,
- $response->getHeader('Content-Length'),
- $response->getHeader('Content-Type'),
- $response->getHeader('Content-Encoding'),
- $response->getHeader('Content-Language'),
- $response->getHeader('Cache-Control'),
- $response->getHeader('x-ms-blob-type'),
- $response->getHeader('x-ms-lease-status'),
- false,
- $metadata
+ $containerName,
+ $blobName,
+ $snapshotId,
+ $response->getHeader('Etag'),
+ $response->getHeader('Last-modified'),
+ $this->getBaseUrl() . '/' . $containerName . '/' . $blobName,
+ $response->getHeader('Content-Length'),
+ $response->getHeader('Content-Type'),
+ $response->getHeader('Content-Encoding'),
+ $response->getHeader('Content-Language'),
+ $response->getHeader('Cache-Control'),
+ $response->getHeader('x-ms-blob-type'),
+ $response->getHeader('x-ms-lease-status'),
+ false,
+ $metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1412,15 +1514,19 @@
public function getBlobMetadata($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
@@ -1442,15 +1548,19 @@
public function setBlobMetadata($containerName = '', $blobName = '', $metadata = array(), $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if (count($metadata) == 0) {
@@ -1459,7 +1569,7 @@
// Create metadata headers
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1472,6 +1582,7 @@
// Perform request
$response = $this->_performRequest($containerName . '/' . $blobName, '?comp=metadata', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1490,18 +1601,23 @@
public function setBlobProperties($containerName = '', $blobName = '', $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
if (count($additionalHeaders) == 0) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('No additional headers are specified.');
}
@@ -1509,7 +1625,7 @@
$headers = array();
// Lease set?
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
@@ -1521,6 +1637,7 @@
// Perform request
$response = $this->_performRequest($containerName . '/' . $blobName, '?comp=properties', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1538,15 +1655,19 @@
public function getBlobProperties($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
@@ -1566,28 +1687,32 @@
public function deleteBlob($containerName = '', $blobName = '', $snapshotId = null, $leaseId = null, $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Build query string
$queryString = array();
- if ($snapshotId !== null) {
+ if (!is_null($snapshotId)) {
$queryString[] = 'snapshot=' . $snapshotId;
}
$queryString = self::createQueryStringFromArray($queryString);
// Additional headers?
$headers = array();
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
foreach ($additionalHeaders as $key => $value) {
@@ -1600,6 +1725,7 @@
// Perform request
$response = $this->_performRequest($resourceName, $queryString, Zend_Http_Client::DELETE, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1617,15 +1743,19 @@
public function snapshotBlob($containerName = '', $blobName = '', $metadata = array(), $additionalHeaders = array())
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
@@ -1643,6 +1773,7 @@
if ($response->isSuccessful()) {
return $response->getHeader('x-ms-snapshot');
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1660,22 +1791,26 @@
public function leaseBlob($containerName = '', $blobName = '', $leaseAction = self::LEASE_ACQUIRE, $leaseId = null)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
if ($blobName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blob name is not specified.');
}
if ($containerName === '$root' && strpos($blobName, '/') !== false) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Blobs stored in the root container can not have a name containing a forward slash (/).');
}
// Additional headers?
$headers = array();
$headers['x-ms-lease-action'] = strtolower($leaseAction);
- if ($leaseId !== null) {
+ if (!is_null($leaseId)) {
$headers['x-ms-lease-id'] = $leaseId;
}
@@ -1684,6 +1819,9 @@
// Perform request
$response = $this->_performRequest($resourceName, '?comp=lease', Zend_Http_Client::PUT, $headers, false, null, Zend_Service_WindowsAzure_Storage::RESOURCE_BLOB, Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_WRITE);
+
+
+
if ($response->isSuccessful()) {
return new Zend_Service_WindowsAzure_Storage_LeaseInstance(
$containerName,
@@ -1691,6 +1829,7 @@
$response->getHeader('x-ms-lease-id'),
$response->getHeader('x-ms-lease-time'));
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1711,27 +1850,29 @@
public function listBlobs($containerName = '', $prefix = '', $delimiter = '', $maxResults = null, $marker = null, $include = null, $currentResultCount = 0)
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
// Build query string
$queryString = array('restype=container', 'comp=list');
- if ($prefix !== null) {
+ if (!is_null($prefix)) {
$queryString[] = 'prefix=' . $prefix;
}
if ($delimiter !== '') {
$queryString[] = 'delimiter=' . $delimiter;
}
- if ($maxResults !== null) {
+ if (!is_null($maxResults)) {
$queryString[] = 'maxresults=' . $maxResults;
}
- if ($marker !== null) {
+ if (!is_null($marker)) {
$queryString[] = 'marker=' . $marker;
}
- if ($include !== null) {
+ if (!is_null($include)) {
$queryString[] = 'include=' . $include;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -1741,10 +1882,11 @@
if ($response->isSuccessful()) {
// Return value
$blobs = array();
-
+
// Blobs
$xmlBlobs = $this->_parseResponse($response)->Blobs->Blob;
- if ($xmlBlobs !== null) {
+ if (!is_null($xmlBlobs)) {
+
for ($i = 0; $i < count($xmlBlobs); $i++) {
$properties = (array)$xmlBlobs[$i]->Properties;
@@ -1771,7 +1913,8 @@
// Blob prefixes (folders)
$xmlBlobs = $this->_parseResponse($response)->Blobs->BlobPrefix;
- if ($xmlBlobs !== null) {
+ if (!is_null($xmlBlobs)) {
+
for ($i = 0; $i < count($xmlBlobs); $i++) {
$blobs[] = new Zend_Service_WindowsAzure_Storage_BlobInstance(
$containerName,
@@ -1796,17 +1939,18 @@
// More blobs?
$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
$currentResultCount = $currentResultCount + count($blobs);
- if ($maxResults !== null && $currentResultCount < $maxResults) {
- if ($xmlMarker !== null && $xmlMarker != '') {
+ if (!is_null($maxResults) && $currentResultCount < $maxResults) {
+ if (!is_null($xmlMarker) && $xmlMarker != '') {
$blobs = array_merge($blobs, $this->listBlobs($containerName, $prefix, $delimiter, $maxResults, $marker, $include, $currentResultCount));
}
}
- if ($maxResults !== null && count($blobs) > $maxResults) {
+ if (!is_null($maxResults) && count($blobs) > $maxResults) {
$blobs = array_slice($blobs, 0, $maxResults);
}
return $blobs;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -1826,9 +1970,11 @@
public function generateSharedAccessUrl($containerName = '', $blobName = '', $resource = 'b', $permissions = 'r', $start = '', $expiry = '', $identifier = '')
{
if ($containerName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name is not specified.');
}
if (!self::isValidContainerName($containerName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Container name does not adhere to container naming conventions. See http://msdn.microsoft.com/en-us/library/dd135715.aspx for more information.');
}
@@ -1889,11 +2035,6 @@
*/
public function registerStreamWrapper($name = 'azure')
{
- /**
- * @see Zend_Service_WindowsAzure_Storage_Blob_Stream
- */
- require_once 'Zend/Service/WindowsAzure/Storage/Blob/Stream.php';
-
stream_register_wrapper($name, 'Zend_Service_WindowsAzure_Storage_Blob_Stream');
$this->registerAsClient($name);
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/Blob/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/Blob/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,27 +15,16 @@
* @category Zend
* @package Zend_Service_WindowsAzure_Storage
* @subpackage Blob
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://todo name_todo
- * @version $Id: Stream.php 23167 2010-10-19 17:53:31Z mabe $
- */
-
-/**
- * @see Zend_Service_WindowsAzure_Storage_Blob
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
-require_once 'Zend/Service/WindowsAzure/Storage/Blob.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
/**
* @category Zend
* @package Zend_Service_WindowsAzure_Storage
* @subpackage Blob
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_Blob_Stream
@@ -45,42 +34,42 @@
*
* @var string
*/
- private $_fileName = null;
+ protected $_fileName = null;
/**
* Temporary file name
*
* @var string
*/
- private $_temporaryFileName = null;
+ protected $_temporaryFileName = null;
/**
* Temporary file handle
*
* @var resource
*/
- private $_temporaryFileHandle = null;
+ protected $_temporaryFileHandle = null;
/**
* Blob storage client
*
* @var Zend_Service_WindowsAzure_Storage_Blob
*/
- private $_storageClient = null;
+ protected $_storageClient = null;
/**
* Write mode?
*
* @var boolean
*/
- private $_writeMode = false;
+ protected $_writeMode = false;
/**
* List of blobs
*
* @var array
*/
- private $_blobs = null;
+ protected $_blobs = null;
/**
* Retrieve storage client for this stream type
@@ -90,7 +79,7 @@
*/
protected function _getStorageClient($path = '')
{
- if ($this->_storageClient === null) {
+ if (is_null($this->_storageClient)) {
$url = explode(':', $path);
if (!$url) {
throw new Zend_Service_WindowsAzure_Exception('Could not parse path "' . $path . '".');
@@ -150,7 +139,7 @@
* @param string $opened_path
* @return boolean
*/
- public function stream_open($path, $mode, $options, $opened_path)
+ public function stream_open($path, $mode, $options, &$opened_path)
{
$this->_fileName = $path;
$this->_temporaryFileName = tempnam(sys_get_temp_dir(), 'azure');
@@ -347,36 +336,7 @@
return false;
}
- $stat = array();
- $stat['dev'] = 0;
- $stat['ino'] = 0;
- $stat['mode'] = 0;
- $stat['nlink'] = 0;
- $stat['uid'] = 0;
- $stat['gid'] = 0;
- $stat['rdev'] = 0;
- $stat['size'] = 0;
- $stat['atime'] = 0;
- $stat['mtime'] = 0;
- $stat['ctime'] = 0;
- $stat['blksize'] = 0;
- $stat['blocks'] = 0;
-
- $info = null;
- try {
- $info = $this->_getStorageClient($this->_fileName)->getBlobInstance(
- $this->_getContainerName($this->_fileName),
- $this->_getFileName($this->_fileName)
- );
- } catch (Zend_Service_WindowsAzure_Exception $ex) {
- // Unexisting file...
- }
- if ($info !== null) {
- $stat['size'] = $info->Size;
- $stat['atime'] = time();
- }
-
- return $stat;
+ return $this->url_stat($this->_fileName, 0);
}
/**
@@ -391,6 +351,10 @@
$this->_getContainerName($path),
$this->_getFileName($path)
);
+
+ // Clear the stat cache for this path.
+ clearstatcache(true, $path);
+ return true;
}
/**
@@ -420,6 +384,10 @@
$this->_getContainerName($path_from),
$this->_getFileName($path_from)
);
+
+ // Clear the stat cache for the affected paths.
+ clearstatcache(true, $path_from);
+ clearstatcache(true, $path_to);
return true;
}
@@ -453,15 +421,21 @@
$this->_getContainerName($path),
$this->_getFileName($path)
);
+ $stat['size'] = $info->Size;
+
+ // Set the modification time and last modified to the Last-Modified header.
+ $lastmodified = strtotime($info->LastModified);
+ $stat['mtime'] = $lastmodified;
+ $stat['ctime'] = $lastmodified;
+
+ // Entry is a regular file.
+ $stat['mode'] = 0100000;
+
+ return array_values($stat) + $stat;
} catch (Zend_Service_WindowsAzure_Exception $ex) {
// Unexisting file...
+ return false;
}
- if ($info !== null) {
- $stat['size'] = $info->Size;
- $stat['atime'] = time();
- }
-
- return $stat;
}
/**
@@ -480,6 +454,7 @@
$this->_getStorageClient($path)->createContainer(
$this->_getContainerName($path)
);
+ return true;
} catch (Zend_Service_WindowsAzure_Exception $ex) {
return false;
}
@@ -498,11 +473,15 @@
public function rmdir($path, $options)
{
if ($this->_getContainerName($path) == $this->_getFileName($path)) {
+ // Clear the stat cache so that affected paths are refreshed.
+ clearstatcache();
+
// Delete container
try {
$this->_getStorageClient($path)->deleteContainer(
$this->_getContainerName($path)
);
+ return true;
} catch (Zend_Service_WindowsAzure_Exception $ex) {
return false;
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/BlobContainer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/BlobContainer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,26 +15,17 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BlobContainer.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: BlobContainer.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $Name Name of the container
--- a/web/lib/Zend/Service/WindowsAzure/Storage/BlobInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/BlobInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BlobInstance.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: BlobInstance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,35 +29,29 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
- * @property string $Container Container name
- * @property string $Name Name
- * @property string $SnapshotId Snapshot id
- * @property string $Etag Etag
- * @property string $LastModified Last modified date
- * @property string $Url Url
- * @property int $Size Size
- * @property string $ContentType Content Type
- * @property string $ContentEncoding Content Encoding
- * @property string $ContentLanguage Content Language
- * @property string $CacheControl Cache control
- * @property string $BlobType Blob type
- * @property string $LeaseStatus Lease status
- * @property boolean $IsPrefix Is Prefix?
+ * @property string $Container The name of the blob container in which the blob is stored.
+ * @property string $Name The name of the blob.
+ * @property string $SnapshotId The blob snapshot ID if it is a snapshot blob (= a backup copy of a blob).
+ * @property string $Etag The entity tag, used for versioning and concurrency.
+ * @property string $LastModified Timestamp when the blob was last modified.
+ * @property string $Url The full URL where the blob can be downloaded.
+ * @property int $Size The blob size in bytes.
+ * @property string $ContentType The blob content type header.
+ * @property string $ContentEncoding The blob content encoding header.
+ * @property string $ContentLanguage The blob content language header.
+ * @property string $CacheControl The blob cache control header.
+ * @property string $BlobType The blob type (block blob / page blob).
+ * @property string $LeaseStatus The blob lease status.
+ * @property boolean $IsPrefix Is it a blob or a directory prefix?
* @property array $Metadata Key/value pairs of meta data
*/
class Zend_Service_WindowsAzure_Storage_BlobInstance
+ extends Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
{
/**
- * Data
- *
- * @var array
- */
- protected $_data = null;
-
- /**
* Constructor
*
* @param string $containerName Container name
@@ -101,32 +90,4 @@
'metadata' => $metadata
);
}
-
- /**
- * Magic overload for setting properties
- *
- * @param string $name Name of the property
- * @param string $value Value to set
- */
- public function __set($name, $value) {
- if (array_key_exists(strtolower($name), $this->_data)) {
- $this->_data[strtolower($name)] = $value;
- return;
- }
-
- throw new Exception("Unknown property: " . $name);
- }
-
- /**
- * Magic overload for getting properties
- *
- * @param string $name Name of the property
- */
- public function __get($name) {
- if (array_key_exists(strtolower($name), $this->_data)) {
- return $this->_data[strtolower($name)];
- }
-
- throw new Exception("Unknown property: " . $name);
- }
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,28 +15,21 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DynamicTableEntity.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: DynamicTableEntity.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
/**
* @see Zend_Service_WindowsAzure_Storage_TableEntity
*/
require_once 'Zend/Service/WindowsAzure/Storage/TableEntity.php';
-
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_DynamicTableEntity extends Zend_Service_WindowsAzure_Storage_TableEntity
@@ -86,7 +79,7 @@
} else {
if (!array_key_exists(strtolower($name), $this->_dynamicProperties)) {
// Determine type?
- if ($type === null) {
+ if (is_null($type)) {
$type = 'Edm.String';
if (is_int($value)) {
$type = 'Edm.Int32';
@@ -94,6 +87,11 @@
$type = 'Edm.Double';
} else if (is_bool($value)) {
$type = 'Edm.Boolean';
+ } else if ($value instanceof DateTime || $this->_convertToDateTime($value) !== false) {
+ if (!$value instanceof DateTime) {
+ $value = $this->_convertToDateTime($value);
+ }
+ $type = 'Edm.DateTime';
}
}
@@ -104,7 +102,28 @@
'Value' => $value,
);
}
-
+
+ // Set type?
+ if (!is_null($type)) {
+ $this->_dynamicProperties[strtolower($name)]->Type = $type;
+
+ // Try to convert the type
+ if ($type == 'Edm.Int32' || $type == 'Edm.Int64') {
+ $value = intval($value);
+ } else if ($type == 'Edm.Double') {
+ $value = floatval($value);
+ } else if ($type == 'Edm.Boolean') {
+ if (!is_bool($value)) {
+ $value = strtolower($value) == 'true';
+ }
+ } else if ($type == 'Edm.DateTime') {
+ if (!$value instanceof DateTime) {
+ $value = $this->_convertToDateTime($value);
+ }
+ }
+ }
+
+ // Set value
$this->_dynamicProperties[strtolower($name)]->Value = $value;
}
return $this;
--- a/web/lib/Zend/Service/WindowsAzure/Storage/LeaseInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/LeaseInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $Container Container name
--- a/web/lib/Zend/Service/WindowsAzure/Storage/PageRegionInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/PageRegionInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property int $start Page range start
--- a/web/lib/Zend/Service/WindowsAzure/Storage/Queue.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/Queue.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,57 +15,31 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://todo name_todo
- * @version $Id: Queue.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: Queue.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Credentials_SharedKey
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
-
-/**
- * @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
- */
-require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Http_Response
- */
-require_once 'Zend/Http/Response.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Storage
+ * see Zend_Service_WindowsAzure_Storage
*/
require_once 'Zend/Service/WindowsAzure/Storage.php';
/**
- * Zend_Service_WindowsAzure_Storage_QueueInstance
+ * @see Zend_Service_WindowsAzure_Storage_QueueInstance
*/
require_once 'Zend/Service/WindowsAzure/Storage/QueueInstance.php';
/**
- * Zend_Service_WindowsAzure_Storage_QueueMessage
+ * @see Zend_Service_WindowsAzure_Storage_QueueMessage
*/
require_once 'Zend/Service/WindowsAzure/Storage/QueueMessage.php';
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_Storage
@@ -106,9 +80,11 @@
public function queueExists($queueName = '')
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
@@ -134,9 +110,11 @@
public function createQueue($queueName = '', $metadata = array())
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
@@ -147,16 +125,32 @@
// Perform request
$response = $this->_performRequest($queueName, '', Zend_Http_Client::PUT, $headers);
if ($response->isSuccessful()) {
+
return new Zend_Service_WindowsAzure_Storage_QueueInstance(
$queueName,
$metadata
);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
/**
+ * Create queue if it does not exist
+ *
+ * @param string $queueName Queue name
+ * @param array $metadata Key/value pairs of meta data
+ * @throws Zend_Service_WindowsAzure_Exception
+ */
+ public function createQueueIfNotExists($queueName = '', $metadata = array())
+ {
+ if (!$this->queueExists($queueName)) {
+ $this->createQueue($queueName, $metadata);
+ }
+ }
+
+ /**
* Get queue
*
* @param string $queueName Queue name
@@ -166,9 +160,11 @@
public function getQueue($queueName = '')
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
@@ -177,7 +173,7 @@
if ($response->isSuccessful()) {
// Parse metadata
$metadata = $this->_parseMetadataHeaders($response->getHeaders());
-
+
// Return queue
$queue = new Zend_Service_WindowsAzure_Storage_QueueInstance(
$queueName,
@@ -186,6 +182,7 @@
$queue->ApproximateMessageCount = intval($response->getHeader('x-ms-approximate-message-count'));
return $queue;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -200,9 +197,11 @@
public function getQueueMetadata($queueName = '')
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
@@ -221,9 +220,11 @@
public function setQueueMetadata($queueName = '', $metadata = array())
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
if (count($metadata) == 0) {
@@ -238,6 +239,7 @@
$response = $this->_performRequest($queueName, '?comp=metadata', Zend_Http_Client::PUT, $headers);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -251,15 +253,18 @@
public function deleteQueue($queueName = '')
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
// Perform request
$response = $this->_performRequest($queueName, '', Zend_Http_Client::DELETE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -279,16 +284,16 @@
{
// Build query string
$queryString = array('comp=list');
- if ($prefix !== null) {
+ if (!is_null($prefix)) {
$queryString[] = 'prefix=' . $prefix;
}
- if ($maxResults !== null) {
+ if (!is_null($maxResults)) {
$queryString[] = 'maxresults=' . $maxResults;
}
- if ($marker !== null) {
+ if (!is_null($marker)) {
$queryString[] = 'marker=' . $marker;
}
- if ($include !== null) {
+ if (!is_null($include)) {
$queryString[] = 'include=' . $include;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -300,7 +305,8 @@
$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
$queues = array();
- if ($xmlQueues !== null) {
+ if (!is_null($xmlQueues)) {
+
for ($i = 0; $i < count($xmlQueues); $i++) {
$queues[] = new Zend_Service_WindowsAzure_Storage_QueueInstance(
(string)$xmlQueues[$i]->Name,
@@ -309,17 +315,18 @@
}
}
$currentResultCount = $currentResultCount + count($queues);
- if ($maxResults !== null && $currentResultCount < $maxResults) {
- if ($xmlMarker !== null && $xmlMarker != '') {
+ if (!is_null($maxResults) && $currentResultCount < $maxResults) {
+ if (!is_null($xmlMarker) && $xmlMarker != '') {
$queues = array_merge($queues, $this->listQueues($prefix, $maxResults, $xmlMarker, $include, $currentResultCount));
}
}
- if ($maxResults !== null && count($queues) > $maxResults) {
+ if (!is_null($maxResults) && count($queues) > $maxResults) {
$queues = array_slice($queues, 0, $maxResults);
}
return $queues;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -335,24 +342,29 @@
public function putMessage($queueName = '', $message = '', $ttl = null)
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
if (strlen($message) > self::MAX_MESSAGE_SIZE) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Message is too big. Message content should be < 8KB.');
}
if ($message == '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Message is not specified.');
}
- if ($ttl !== null && ($ttl <= 0 || $ttl > self::MAX_MESSAGE_SIZE)) {
+ if (!is_null($ttl) && ($ttl <= 0 || $ttl > self::MAX_MESSAGE_SIZE)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Message TTL is invalid. Maximal TTL is 7 days (' . self::MAX_MESSAGE_SIZE . ' seconds) and should be greater than zero.');
}
// Build query string
$queryString = array();
- if ($ttl !== null) {
+ if (!is_null($ttl)) {
$queryString[] = 'messagettl=' . $ttl;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -367,6 +379,7 @@
$response = $this->_performRequest($queueName . '/messages', $queryString, Zend_Http_Client::POST, array(), false, $rawData);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Error putting message into queue.');
}
}
@@ -384,15 +397,19 @@
public function getMessages($queueName = '', $numOfMessages = 1, $visibilityTimeout = null, $peek = false)
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
if ($numOfMessages < 1 || $numOfMessages > 32 || intval($numOfMessages) != $numOfMessages) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Invalid number of messages to retrieve.');
}
- if ($visibilityTimeout !== null && ($visibilityTimeout <= 0 || $visibilityTimeout > 7200)) {
+ if (!is_null($visibilityTimeout) && ($visibilityTimeout <= 0 || $visibilityTimeout > 7200)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Visibility timeout is invalid. Maximum value is 2 hours (7200 seconds) and should be greater than zero.');
}
@@ -404,7 +421,7 @@
if ($numOfMessages > 1) {
$queryString[] = 'numofmessages=' . $numOfMessages;
}
- if (!$peek && $visibilityTimeout !== null) {
+ if (!$peek && !is_null($visibilityTimeout)) {
$queryString[] = 'visibilitytimeout=' . $visibilityTimeout;
}
$queryString = self::createQueryStringFromArray($queryString);
@@ -424,7 +441,7 @@
} else {
$xmlMessages = array($result->QueueMessage);
}
-
+
$messages = array();
for ($i = 0; $i < count($xmlMessages); $i++) {
$messages[] = new Zend_Service_WindowsAzure_Storage_QueueMessage(
@@ -440,6 +457,7 @@
return $messages;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -458,6 +476,18 @@
}
/**
+ * Checks to see if a given queue has messages
+ *
+ * @param string $queueName Queue name
+ * @return boolean
+ * @throws Zend_Service_WindowsAzure_Exception
+ */
+ public function hasMessages($queueName = '')
+ {
+ return count($this->peekMessages($queueName)) > 0;
+ }
+
+ /**
* Clear queue messages
*
* @param string $queueName Queue name
@@ -466,15 +496,18 @@
public function clearMessages($queueName = '')
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
// Perform request
$response = $this->_performRequest($queueName . '/messages', '', Zend_Http_Client::DELETE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Error clearing messages from queue.');
}
}
@@ -482,25 +515,29 @@
/**
* Delete queue message
*
- * @param string $queueName Queue name
+ * @param string $queueName Queue name
* @param Zend_Service_WindowsAzure_Storage_QueueMessage $message Message to delete from queue. A message retrieved using "peekMessages" can NOT be deleted!
* @throws Zend_Service_WindowsAzure_Exception
*/
public function deleteMessage($queueName = '', Zend_Service_WindowsAzure_Storage_QueueMessage $message)
{
if ($queueName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name is not specified.');
}
if (!self::isValidQueueName($queueName)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Queue name does not adhere to queue naming conventions. See http://msdn.microsoft.com/en-us/library/dd179349.aspx for more information.');
}
if ($message->PopReceipt == '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('A message retrieved using "peekMessages" can NOT be deleted! Use "getMessages" instead.');
}
// Perform request
- $response = $this->_performRequest($queueName . '/messages/' . $message->MessageId, '?popreceipt=' . $message->PopReceipt, Zend_Http_Client::DELETE);
+ $response = $this->_performRequest($queueName . '/messages/' . $message->MessageId, '?popreceipt=' . urlencode($message->PopReceipt), Zend_Http_Client::DELETE);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/QueueInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/QueueInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueueInstance.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: QueueInstance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $Name Name of the queue
--- a/web/lib/Zend/Service/WindowsAzure/Storage/QueueMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/QueueMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueueMessage.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: QueueMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $MessageId Message ID
--- a/web/lib/Zend/Service/WindowsAzure/Storage/SignedIdentifier.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/SignedIdentifier.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SignedIdentifier.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: SignedIdentifier.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $Id Id for the signed identifier
--- a/web/lib/Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,22 +15,16 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
*/
@@ -54,8 +48,8 @@
$this->_data[strtolower($name)] = $value;
return;
}
-
- throw new Exception("Unknown property: " . $name);
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception("Unknown property: " . $name);
}
/**
@@ -67,7 +61,7 @@
if (array_key_exists(strtolower($name), $this->_data)) {
return $this->_data[strtolower($name)];
}
-
- throw new Exception("Unknown property: " . $name);
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception("Unknown property: " . $name);
}
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/Table.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/Table.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,45 +15,10 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Table.php 23170 2010-10-19 18:29:24Z mabe $
- */
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/CredentialsAbstract.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_SharedKey
- */
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedKey.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Credentials_SharedKeyLite
+ * @version $Id: Table.php 24697 2012-03-23 13:11:04Z ezimuel $
*/
-require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
-
-/**
- * @see Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
- */
-require_once 'Zend/Service/WindowsAzure/RetryPolicy/RetryPolicyAbstract.php';
-
-/**
- * @see Zend_Http_Client
- */
-require_once 'Zend/Http/Client.php';
-
-/**
- * @see Zend_Http_Response
- */
-require_once 'Zend/Http/Response.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Storage
- */
-require_once 'Zend/Service/WindowsAzure/Storage.php';
/**
* @see Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
@@ -66,9 +31,9 @@
require_once 'Zend/Service/WindowsAzure/Storage/TableInstance.php';
/**
- * @see Zend_Service_WindowsAzure_Storage_TableEntity
+ * @see Zend_Service_WindowsAzure_Storage_TableEntityQuery
*/
-require_once 'Zend/Service/WindowsAzure/Storage/TableEntity.php';
+require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
/**
* @see Zend_Service_WindowsAzure_Storage_DynamicTableEntity
@@ -76,27 +41,48 @@
require_once 'Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php';
/**
- * @see Zend_Service_WindowsAzure_Storage_TableEntityQuery
+ * @see Zend_Service_WindowsAzure_Credentials_SharedKeyLite
*/
-require_once 'Zend/Service/WindowsAzure/Storage/TableEntityQuery.php';
-
-/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
+require_once 'Zend/Service/WindowsAzure/Credentials/SharedKeyLite.php';
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_Table
extends Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
{
/**
+ * Throw Zend_Service_WindowsAzure_Exception when a property is not specified in Windows Azure?
+ * Defaults to true, making behaviour similar to Windows Azure StorageClient in .NET.
+ *
+ * @var boolean
+ */
+ protected $_throwExceptionOnMissingData = true;
+
+ /**
+ * Throw Zend_Service_WindowsAzure_Exception when a property is not specified in Windows Azure?
+ * Defaults to true, making behaviour similar to Windows Azure StorageClient in .NET.
+ *
+ * @param boolean $value
+ */
+ public function setThrowExceptionOnMissingData($value = true)
+ {
+ $this->_throwExceptionOnMissingData = $value;
+ }
+
+ /**
+ * Throw Zend_Service_WindowsAzure_Exception when a property is not specified in Windows Azure?
+ */
+ public function getThrowExceptionOnMissingData()
+ {
+ return $this->_throwExceptionOnMissingData;
+ }
+
+ /**
* Creates a new Zend_Service_WindowsAzure_Storage_Table instance
*
* @param string $host Storage host name
@@ -125,6 +111,7 @@
public function tableExists($tableName = '')
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
@@ -187,7 +174,8 @@
}
// More tables?
- if ($response->getHeader('x-ms-continuation-NextTableName') !== null) {
+ if (!is_null($response->getHeader('x-ms-continuation-NextTableName'))) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
$returnValue = array_merge($returnValue, $this->listTables($response->getHeader('x-ms-continuation-NextTableName')));
}
@@ -251,6 +239,7 @@
$tableName = $entry->xpath('.//m:properties/d:TableName');
$tableName = (string)$tableName[0];
+
return new Zend_Service_WindowsAzure_Storage_TableInstance(
(string)$entry->id,
$tableName,
@@ -258,7 +247,21 @@
(string)$entry->updated
);
} else {
- throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
+ throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
+ }
+ }
+
+ /**
+ * Create table if it does not exist
+ *
+ * @param string $tableName Table name
+ * @throws Zend_Service_WindowsAzure_Exception
+ */
+ public function createTableIfNotExists($tableName = '')
+ {
+ if (!$this->tableExists($tableName)) {
+ $this->createTable($tableName);
}
}
@@ -271,6 +274,7 @@
public function deleteTable($tableName = '')
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
@@ -281,6 +285,7 @@
// Perform request
$response = $this->_performRequest('Tables(\'' . $tableName . '\')', '', Zend_Http_Client::DELETE, $headers, true, null);
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -296,9 +301,11 @@
public function insertEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null)
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
- if ($entity === null) {
+ if (is_null($entity)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
}
@@ -340,7 +347,7 @@
$result = $this->_parseResponse($response);
$timestamp = $result->xpath('//m:properties/d:Timestamp');
- $timestamp = (string)$timestamp[0];
+ $timestamp = $this->_convertToDateTime( (string)$timestamp[0] );
$etag = $result->attributes('http://schemas.microsoft.com/ado/2007/08/dataservices/metadata');
$etag = (string)$etag['etag'];
@@ -351,6 +358,7 @@
return $entity;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -366,9 +374,11 @@
public function deleteEntity($tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false)
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
- if ($entity === null) {
+ if (is_null($entity)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
}
@@ -394,6 +404,7 @@
$response = $this->_performRequest($tableName . '(PartitionKey=\'' . $entity->getPartitionKey() . '\', RowKey=\'' . $entity->getRowKey() . '\')', '', Zend_Http_Client::DELETE, $headers, true, null);
}
if (!$response->isSuccessful()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -408,18 +419,22 @@
* @return Zend_Service_WindowsAzure_Storage_TableEntity
* @throws Zend_Service_WindowsAzure_Exception
*/
- public function retrieveEntityById($tableName = '', $partitionKey = '', $rowKey = '', $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity')
+ public function retrieveEntityById($tableName, $partitionKey, $rowKey, $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity')
{
- if ($tableName === '') {
+ if (is_null($tableName) || $tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
- if ($partitionKey === '') {
+ if (is_null($partitionKey) || $partitionKey === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Partition key is not specified.');
}
- if ($rowKey === '') {
+ if (is_null($rowKey) || $rowKey === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Row key is not specified.');
}
- if ($entityClass === '') {
+ if (is_null($entityClass) || $entityClass === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity class is not specified.');
}
@@ -429,6 +444,7 @@
if (strlen($partitionKey . $rowKey) >= 256) {
// Start a batch if possible
if ($this->isInBatch()) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity cannot be retrieved. A transaction is required to retrieve the entity, but another transaction is already active.');
}
@@ -460,6 +476,7 @@
*/
public function select()
{
+
return new Zend_Service_WindowsAzure_Storage_TableEntityQuery();
}
@@ -477,9 +494,11 @@
public function retrieveEntities($tableName = '', $filter = '', $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity', $nextPartitionKey = null, $nextRowKey = null)
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
if ($entityClass === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity class is not specified.');
}
@@ -497,7 +516,9 @@
// Option 1: $tableName is a string
// Append parentheses
- $tableName .= '()';
+ if (strpos($tableName, '()') === false) {
+ $tableName .= '()';
+ }
// Build query
$query = array();
@@ -520,16 +541,19 @@
// Change $tableName
$tableName = $tableName->assembleFrom(true);
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Invalid argument: $tableName');
}
// Add continuation querystring parameters?
- if ($nextPartitionKey !== null && $nextRowKey !== null) {
+ if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
if ($queryString !== '') {
$queryString .= '&';
+ } else {
+ $queryString .= '?';
}
- $queryString .= '&NextPartitionKey=' . rawurlencode($nextPartitionKey) . '&NextRowKey=' . rawurlencode($nextRowKey);
+ $queryString .= 'NextPartitionKey=' . rawurlencode($nextPartitionKey) . '&NextRowKey=' . rawurlencode($nextRowKey);
}
// Perform request
@@ -580,15 +604,15 @@
// Create entity
$entity = new $entityClass('', '');
- $entity->setAzureValues((array)$properties, true);
+ $entity->setAzureValues((array)$properties, $this->_throwExceptionOnMissingData);
- // If we have a Zend_Service_WindowsAzure_Storage_DynamicTableEntity, make sure all property types are OK
+ // If we have a Zend_Service_WindowsAzure_Storage_DynamicTableEntity, make sure all property types are set
if ($entity instanceof Zend_Service_WindowsAzure_Storage_DynamicTableEntity) {
foreach ($properties as $key => $value) {
$attributes = $value->attributes('http://schemas.microsoft.com/ado/2007/08/dataservices/metadata');
$type = (string)$attributes['type'];
if ($type !== '') {
- $entity->setAzurePropertyType($key, $type);
+ $entity->setAzureProperty($key, (string)$value, $type);
}
}
}
@@ -603,7 +627,7 @@
}
// More entities?
- if ($response->getHeader('x-ms-continuation-NextPartitionKey') !== null && $response->getHeader('x-ms-continuation-NextRowKey') !== null) {
+ if (!is_null($response->getHeader('x-ms-continuation-NextPartitionKey')) && !is_null($response->getHeader('x-ms-continuation-NextRowKey'))) {
if (strpos($queryString, '$top') === false) {
$returnValue = array_merge($returnValue, $this->retrieveEntities($tableName, $filter, $entityClass, $response->getHeader('x-ms-continuation-NextPartitionKey'), $response->getHeader('x-ms-continuation-NextRowKey')));
}
@@ -612,6 +636,7 @@
// Return
return $returnValue;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -642,6 +667,7 @@
{
$mergeEntity = null;
if (is_array($properties) && count($properties) > 0) {
+
// Build a new object
$mergeEntity = new Zend_Service_WindowsAzure_Storage_DynamicTableEntity($entity->getPartitionKey(), $entity->getRowKey());
@@ -655,10 +681,10 @@
} else {
$mergeEntity = $entity;
}
-
- // Ensure entity timestamp matches updated timestamp
- $entity->setTimestamp($this->isoDate());
+ // Ensure entity timestamp matches updated timestamp
+ $entity->setTimestamp(new DateTime());
+
return $this->_changeEntity(Zend_Http_Client::MERGE, $tableName, $mergeEntity, $verifyEtag);
}
@@ -691,9 +717,11 @@
protected function _changeEntity($httpVerb = Zend_Http_Client::PUT, $tableName = '', Zend_Service_WindowsAzure_Storage_TableEntity $entity = null, $verifyEtag = false)
{
if ($tableName === '') {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
}
- if ($entity === null) {
+ if (is_null($entity)) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
}
@@ -723,14 +751,11 @@
</content>
</entry>';
- // Attempt to get timestamp from entity
+ // Attempt to get timestamp from entity
$timestamp = $entity->getTimestamp();
- if ($timestamp == Zend_Service_WindowsAzure_Storage_TableEntity::DEFAULT_TIMESTAMP) {
- $timestamp = $this->isoDate();
- }
-
+
$requestBody = $this->_fillTemplate($requestBody, array(
- 'Updated' => $timestamp,
+ 'Updated' => $this->_convertToEdmDateTime($timestamp),
'Properties' => $this->_generateAzureRepresentation($entity)
));
@@ -746,18 +771,19 @@
// Perform request
$response = null;
if ($this->isInBatch()) {
- $this->getCurrentBatch()->enlistOperation($tableName . '(PartitionKey=\'' . $entity->getPartitionKey() . '\',RowKey=\'' . $entity->getRowKey() . '\')', '', $httpVerb, $headers, true, $requestBody);
+ $this->getCurrentBatch()->enlistOperation($tableName . '(PartitionKey=\'' . $entity->getPartitionKey() . '\', RowKey=\'' . $entity->getRowKey() . '\')', '', $httpVerb, $headers, true, $requestBody);
return null;
} else {
- $response = $this->_performRequest($tableName . '(PartitionKey=\'' . $entity->getPartitionKey() . '\',RowKey=\'' . $entity->getRowKey() . '\')', '', $httpVerb, $headers, true, $requestBody);
+ $response = $this->_performRequest($tableName . '(PartitionKey=\'' . $entity->getPartitionKey() . '\', RowKey=\'' . $entity->getRowKey() . '\')', '', $httpVerb, $headers, true, $requestBody);
}
if ($response->isSuccessful()) {
// Update properties
$entity->setEtag($response->getHeader('Etag'));
- $entity->setTimestamp($response->getHeader('Last-modified'));
+ $entity->setTimestamp( $this->_convertToDateTime($response->getHeader('Last-modified')) );
return $entity;
} else {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception($this->_getErrorMessage($response, 'Resource could not be accessed.'));
}
}
@@ -804,14 +830,16 @@
if ($azureValue->Type != '') {
$value[] = ' m:type="' . $azureValue->Type . '"';
}
- if ($azureValue->Value === null) {
+ if (is_null($azureValue->Value)) {
$value[] = ' m:null="true"';
}
$value[] = '>';
- if ($azureValue->Value !== null) {
+ if (!is_null($azureValue->Value)) {
if (strtolower($azureValue->Type) == 'edm.boolean') {
$value[] = ($azureValue->Value == true ? '1' : '0');
+ } else if (strtolower($azureValue->Type) == 'edm.datetime') {
+ $value[] = $this->_convertToEdmDateTime($azureValue->Value);
} else {
$value[] = htmlspecialchars($azureValue->Value);
}
@@ -862,5 +890,42 @@
$resourceType,
$requiredPermission
);
- }
+ }
+
+ /**
+ * Converts a string to a DateTime object. Returns false on failure.
+ *
+ * @param string $value The string value to parse
+ * @return DateTime|boolean
+ */
+ protected function _convertToDateTime($value = '')
+ {
+ if ($value instanceof DateTime) {
+ return $value;
+ }
+
+ try {
+ if (substr($value, -1) == 'Z') {
+ $value = substr($value, 0, strlen($value) - 1);
+ }
+ return new DateTime($value, new DateTimeZone('UTC'));
+ }
+ catch (Exception $ex) {
+ return false;
+ }
+ }
+
+ /**
+ * Converts a DateTime object into an Edm.DaeTime value in UTC timezone,
+ * represented as a string.
+ *
+ * @param DateTime $value
+ * @return string
+ */
+ protected function _convertToEdmDateTime(DateTime $value)
+ {
+ $cloned = clone $value;
+ $cloned->setTimezone(new DateTimeZone('UTC'));
+ return str_replace('+0000', 'Z', $cloned->format(DateTime::ISO8601));
+ }
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/TableEntity.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/TableEntity.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,28 +15,20 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TableEntity.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: TableEntity.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-
-/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_TableEntity
{
- const DEFAULT_TIMESTAMP = '1900-01-01T00:00:00';
-
/**
* Partition key
*
@@ -129,8 +121,8 @@
*/
public function getTimestamp()
{
- if (null === $this->_timestamp) {
- $this->setTimestamp(self::DEFAULT_TIMESTAMP);
+ if (null === $this->_timestamp) {
+ $this->setTimestamp(new DateTime());
}
return $this->_timestamp;
}
@@ -139,9 +131,9 @@
* Set timestamp
*
* @azure Timestamp Edm.DateTime
- * @param string $value
+ * @param DateTime $value
*/
- public function setTimestamp($value = '1900-01-01T00:00:00')
+ public function setTimestamp(DateTime $value)
{
$this->_timestamp = $value;
}
@@ -230,6 +222,8 @@
break;
case 'edm.double':
$values[$accessor->AzurePropertyName] = floatval($values[$accessor->AzurePropertyName]); break;
+ case 'edm.datetime':
+ $values[$accessor->AzurePropertyName] = $this->_convertToDateTime($values[$accessor->AzurePropertyName]); break;
}
}
@@ -242,6 +236,7 @@
$this->$method($values[$accessor->AzurePropertyName]);
}
} else if ($throwOnError) {
+ require_once 'Zend/Service/WindowsAzure/Exception.php';
throw new Zend_Service_WindowsAzure_Exception("Property '" . $accessor->AzurePropertyName . "' was not found in \$values array");
}
}
@@ -268,7 +263,7 @@
$properties = $type->getProperties();
foreach ($properties as $property) {
$accessor = self::getAzureAccessor($property);
- if ($accessor !== null) {
+ if (!is_null($accessor)) {
$azureAccessors[] = $accessor;
}
}
@@ -277,7 +272,7 @@
$methods = $type->getMethods();
foreach ($methods as $method) {
$accessor = self::getAzureAccessor($method);
- if ($accessor !== null) {
+ if (!is_null($accessor)) {
$azureAccessors[] = $accessor;
}
}
@@ -325,4 +320,35 @@
'AzurePropertyType' => isset($azureProperties[1]) ? $azureProperties[1] : ''
);
}
+
+ /**
+ * Converts a string to a DateTime object. Returns false on failure.
+ *
+ * @param string $value The string value to parse
+ * @return DateTime|boolean
+ */
+ protected function _convertToDateTime($value = '')
+ {
+ if ($value === '') {
+ return false;
+ }
+
+ if ($value instanceof DateTime) {
+ return $value;
+ }
+
+ if (@strtotime($value) !== false) {
+ try {
+ if (substr($value, -1) == 'Z') {
+ $value = substr($value, 0, strlen($value) - 1);
+ }
+ return new DateTime($value, new DateTimeZone('UTC'));
+ }
+ catch (Exception $ex) {
+ return false;
+ }
+ }
+
+ return false;
+ }
}
--- a/web/lib/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TableEntityQuery.php 23167 2010-10-19 17:53:31Z mabe $
+ * @version $Id: TableEntityQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_WindowsAzure_Storage_TableEntityQuery
@@ -129,7 +129,7 @@
{
$condition = $this->_replaceOperators($condition);
- if ($value !== null) {
+ if (!is_null($value)) {
$condition = $this->_quoteInto($condition, $value);
}
@@ -211,7 +211,7 @@
$query[] = '$orderby=' . ($urlEncode ? self::encodeQuery($orderBy) : $orderBy);
}
- if ($this->_top !== null) {
+ if (!is_null($this->_top)) {
$query[] = '$top=' . $this->_top;
}
@@ -234,16 +234,16 @@
if ($includeParentheses) {
$identifier .= '(';
- if ($this->_partitionKey !== null) {
- $identifier .= 'PartitionKey=\'' . $this->_partitionKey . '\'';
+ if (!is_null($this->_partitionKey)) {
+ $identifier .= 'PartitionKey=\'' . self::encodeQuery($this->_partitionKey) . '\'';
}
- if ($this->_partitionKey !== null && $this->_rowKey !== null) {
+ if (!is_null($this->_partitionKey) && !is_null($this->_rowKey)) {
$identifier .= ', ';
}
- if ($this->_rowKey !== null) {
- $identifier .= 'RowKey=\'' . $this->_rowKey . '\'';
+ if (!is_null($this->_rowKey)) {
+ $identifier .= 'RowKey=\'' . self::encodeQuery($this->_rowKey) . '\'';
}
$identifier .= ')';
@@ -331,8 +331,9 @@
$query = str_replace('+', '%2B', $query);
$query = str_replace(',', '%2C', $query);
$query = str_replace('$', '%24', $query);
-
-
+ $query = str_replace('{', '%7B', $query);
+ $query = str_replace('}', '%7D', $query);
+
$query = str_replace(' ', '%20', $query);
return $query;
--- a/web/lib/Zend/Service/WindowsAzure/Storage/TableInstance.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/WindowsAzure/Storage/TableInstance.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,17 +15,12 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TableInstance.php 22773 2010-08-03 07:18:27Z maartenba $
+ * @version $Id: TableInstance.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
- * @see Zend_Service_WindowsAzure_Exception
- */
-require_once 'Zend/Service/WindowsAzure/Exception.php';
-
-/**
* @see Zend_Service_WindowsAzure_Storage_StorageEntityAbstract
*/
require_once 'Zend/Service/WindowsAzure/Storage/StorageEntityAbstract.php';
@@ -34,7 +29,7 @@
* @category Zend
* @package Zend_Service_WindowsAzure
* @subpackage Storage
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*
* @property string $Id Id
--- a/web/lib/Zend/Service/Yahoo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Yahoo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Yahoo.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo
--- a/web/lib/Zend/Service/Yahoo/Image.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/Image.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Image.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Image.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_Image
--- a/web/lib/Zend/Service/Yahoo/ImageResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/ImageResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImageResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ImageResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_ImageResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/ImageResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/ImageResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImageResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ImageResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_ImageResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/InlinkDataResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/InlinkDataResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InlinkDataResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InlinkDataResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_InlinkDataResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/InlinkDataResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/InlinkDataResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InlinkDataResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InlinkDataResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_InlinkDataResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/LocalResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/LocalResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LocalResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_LocalResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/LocalResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/LocalResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LocalResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_LocalResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/NewsResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/NewsResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewsResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NewsResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_NewsResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/NewsResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/NewsResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NewsResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NewsResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_NewsResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/PageDataResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/PageDataResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PageDataResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PageDataResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_PageDataResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/PageDataResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/PageDataResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PageDataResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PageDataResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_PageDataResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/Result.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/Result.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Result.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Result.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/ResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/ResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_ResultSet implements SeekableIterator
--- a/web/lib/Zend/Service/Yahoo/VideoResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/VideoResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VideoResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_VideoResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/VideoResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/VideoResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: VideoResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: VideoResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_VideoResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Service/Yahoo/WebResult.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/WebResult.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WebResult.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: WebResult.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_WebResult extends Zend_Service_Yahoo_Result
--- a/web/lib/Zend/Service/Yahoo/WebResultSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Service/Yahoo/WebResultSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -16,9 +16,9 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WebResultSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: WebResultSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Service
* @subpackage Yahoo
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Service_Yahoo_WebResultSet extends Zend_Service_Yahoo_ResultSet
--- a/web/lib/Zend/Session.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Session.php 22587 2010-07-16 20:14:18Z ralph $
+ * @version $Id: Session.php 25121 2012-11-13 21:51:23Z matthew $
* @since Preview Release 0.2
*/
@@ -43,7 +43,7 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session extends Zend_Session_Abstract
@@ -308,24 +308,13 @@
"() before any output has been sent to the browser; output started in {$filename}/{$linenum}");
}
- if (self::$_sessionStarted && self::$_regenerateIdState <= 0) {
+ if ( !self::$_sessionStarted ) {
+ self::$_regenerateIdState = -1;
+ } else {
if (!self::$_unitTestEnabled) {
session_regenerate_id(true);
}
self::$_regenerateIdState = 1;
- } else {
- /**
- * @todo If we can detect that this requester had no session previously,
- * then why regenerate the id before the session has started?
- * Feedback wanted for:
- //
- if (isset($_COOKIE[session_name()]) || (!use only cookies && isset($_REQUEST[session_name()]))) {
- self::$_regenerateIdState = 1;
- } else {
- self::$_regenerateIdState = -1;
- }
- //*/
- self::$_regenerateIdState = -1;
}
}
@@ -335,7 +324,7 @@
* seconds is specified, then this defaults to self::$_rememberMeSeconds. Due to clock errors on end users' systems,
* large values are recommended to avoid undesirable expiration of session cookies.
*
- * @param $seconds integer - OPTIONAL specifies TTL for cookie in seconds from present time
+ * @param int $seconds OPTIONAL specifies TTL for cookie in seconds from present time
* @return void
*/
public static function rememberMe($seconds = null)
@@ -394,9 +383,9 @@
*/
public static function sessionExists()
{
- if (ini_get('session.use_cookies') == '1' && isset($_COOKIE[session_name()])) {
+ if ((bool)ini_get('session.use_cookies') == true && isset($_COOKIE[session_name()])) {
return true;
- } elseif (!empty($_REQUEST[session_name()])) {
+ } elseif ((bool)ini_get('session.use_only_cookies') == false && isset($_REQUEST[session_name()])) {
return true;
} elseif (self::$_unitTestEnabled) {
return true;
@@ -426,6 +415,14 @@
*/
public static function start($options = false)
{
+ // Check to see if we've been passed an invalid session ID
+ if ( self::getId() && !self::_checkId(self::getId()) ) {
+ // Generate a valid, temporary replacement
+ self::setId(md5(self::getId()));
+ // Force a regenerate after session is started
+ self::$_regenerateIdState = -1;
+ }
+
if (self::$_sessionStarted && self::$_destroyed) {
require_once 'Zend/Session/Exception.php';
throw new Zend_Session_Exception('The session was explicitly destroyed during this request, attempting to re-start is not allowed.');
@@ -510,6 +507,34 @@
self::_processStartupMetadataGlobal();
}
+ /**
+ * Perform a hash-bits check on the session ID
+ *
+ * @param string $id Session ID
+ * @return bool
+ */
+ protected static function _checkId($id)
+ {
+ $saveHandler = ini_get('session.save_handler');
+ if ($saveHandler == 'cluster') { // Zend Server SC, validate only after last dash
+ $dashPos = strrpos($id, '-');
+ if ($dashPos) {
+ $id = substr($id, $dashPos + 1);
+ }
+ }
+
+ $hashBitsPerChar = ini_get('session.hash_bits_per_character');
+ if (!$hashBitsPerChar) {
+ $hashBitsPerChar = 5; // the default value
+ }
+ switch($hashBitsPerChar) {
+ case 4: $pattern = '^[0-9a-f]*$'; break;
+ case 5: $pattern = '^[0-9a-v]*$'; break;
+ case 6: $pattern = '^[0-9a-zA-Z-,]*$'; break;
+ }
+ return preg_match('#'.$pattern.'#', $id);
+ }
+
/**
* _processGlobalMetadata() - this method initizes the sessions GLOBAL
@@ -572,13 +597,13 @@
}
}
if (empty($_SESSION['__ZF'][$namespace]['ENVGH'])) {
- unset($_SESSION['__ZF'][$namespace]['ENVGH']);
+ unset($_SESSION['__ZF'][$namespace]['ENVGH']);
}
}
- }
-
- if (isset($namespace) && empty($_SESSION['__ZF'][$namespace])) {
- unset($_SESSION['__ZF'][$namespace]);
+
+ if (isset($namespace) && empty($_SESSION['__ZF'][$namespace])) {
+ unset($_SESSION['__ZF'][$namespace]);
+ }
}
}
--- a/web/lib/Zend/Session/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Session_Abstract
@@ -120,7 +120,7 @@
unset(self::$_expiringData[$namespace]);
} else {
unset($_SESSION[$namespace][$name]);
- unset(self::$_expiringData[$namespace]);
+ unset(self::$_expiringData[$namespace][$name]);
}
// if we remove the last value, remove namespace.
--- a/web/lib/Zend/Session/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -32,7 +32,7 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_Exception extends Zend_Exception
@@ -55,7 +55,7 @@
*/
static public function handleSessionStartError($errno, $errstr, $errfile, $errline, $errcontext)
{
- self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr . ' ' . $errcontext;
+ self::$sessionStartError = $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
}
/**
@@ -68,7 +68,7 @@
*/
static public function handleSilentWriteClose($errno, $errstr, $errfile, $errline, $errcontext)
{
- self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr . ' ' . $errcontext;
+ self::$sessionStartError .= PHP_EOL . $errfile . '(Line:' . $errline . '): Error #' . $errno . ' ' . $errstr;
}
}
--- a/web/lib/Zend/Session/Namespace.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Namespace.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Namespace.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Namespace.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_Namespace extends Zend_Session_Abstract implements IteratorAggregate
--- a/web/lib/Zend/Session/SaveHandler/DbTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/SaveHandler/DbTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -46,7 +46,7 @@
* @category Zend
* @package Zend_Session
* @subpackage SaveHandler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_SaveHandler_DbTable
@@ -386,8 +386,8 @@
*/
public function gc($maxlifetime)
{
- $this->delete($this->getAdapter()->quoteIdentifier($this->_modifiedColumn) . ' + '
- . $this->getAdapter()->quoteIdentifier($this->_lifetimeColumn) . ' < '
+ $this->delete($this->getAdapter()->quoteIdentifier($this->_modifiedColumn, true) . ' + '
+ . $this->getAdapter()->quoteIdentifier($this->_lifetimeColumn, true) . ' < '
. $this->getAdapter()->quote(time()));
return true;
@@ -548,7 +548,7 @@
$primaryArray[$primary] = $value;
break;
case self::PRIMARY_TYPE_WHERECLAUSE:
- $primaryArray[] = $this->getAdapter()->quoteIdentifier($primary) . ' = '
+ $primaryArray[] = $this->getAdapter()->quoteIdentifier($primary, true) . ' = '
. $this->getAdapter()->quote($value);
break;
case self::PRIMARY_TYPE_NUM:
--- a/web/lib/Zend/Session/SaveHandler/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/SaveHandler/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_SaveHandler_Exception extends Zend_Session_Exception
--- a/web/lib/Zend/Session/SaveHandler/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/SaveHandler/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Session
* @subpackage SaveHandler
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @see http://php.net/session_set_save_handler
*/
--- a/web/lib/Zend/Session/Validator/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Validator/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Session
* @subpackage Validator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Session_Validator_Abstract implements Zend_Session_Validator_Interface
@@ -62,8 +62,10 @@
protected function getValidData()
{
$validatorName = get_class($this);
-
- return $_SESSION['__ZF']['VALID'][$validatorName];
+ if (isset($_SESSION['__ZF']['VALID'][$validatorName])) {
+ return $_SESSION['__ZF']['VALID'][$validatorName];
+ }
+ return null;
}
}
--- a/web/lib/Zend/Session/Validator/HttpUserAgent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Validator/HttpUserAgent.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpUserAgent.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpUserAgent.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Session
* @subpackage Validator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Session_Validator_HttpUserAgent extends Zend_Session_Validator_Abstract
--- a/web/lib/Zend/Session/Validator/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Session/Validator/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Session
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
* @since Preview Release 0.2
*/
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Session
* @subpackage Validator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Session_Validator_Interface
--- a/web/lib/Zend/Soap/AutoDiscover.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/AutoDiscover.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage AutoDiscover
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AutoDiscover.php 23338 2010-11-15 14:59:33Z alexander $
+ * @version $Id: AutoDiscover.php 24842 2012-05-31 18:31:28Z rob $
*/
/**
@@ -268,7 +268,9 @@
*/
protected function getRequestUriWithoutParameters()
{
- if (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch
+ if (isset($_SERVER['HTTP_X_ORIGINAL_URL'])) { // IIS with Microsoft Rewrite Module
+ $requestUri = $_SERVER['HTTP_X_ORIGINAL_URL'];
+ } elseif (isset($_SERVER['HTTP_X_REWRITE_URL'])) { // check this first so IIS will catch
$requestUri = $_SERVER['HTTP_X_REWRITE_URL'];
} elseif (isset($_SERVER['REQUEST_URI'])) {
$requestUri = $_SERVER['REQUEST_URI'];
@@ -378,10 +380,10 @@
/**
* Add a function to the WSDL document.
*
- * @param $function Zend_Server_Reflection_Function_Abstract function to add
- * @param $wsdl Zend_Soap_Wsdl WSDL document
- * @param $port object wsdl:portType
- * @param $binding object wsdl:binding
+ * @param Zend_Server_Reflection_Function_Abstract $function function to add
+ * @param Zend_Soap_Wsdl $wsdl WSDL document
+ * @param object $port wsdl:portType
+ * @param object $binding wsdl:binding
* @return void
*/
protected function _addFunctionToWsdl($function, $wsdl, $port, $binding)
--- a/web/lib/Zend/Soap/AutoDiscover/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/AutoDiscover/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage AutoDiscover
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
--- a/web/lib/Zend/Soap/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 23453 2010-11-28 13:56:14Z ramon $
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Client
--- a/web/lib/Zend/Soap/Client/Common.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Client/Common.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Common.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Common.php 24593 2012-01-05 20:35:02Z matthew $
*/
--- a/web/lib/Zend/Soap/Client/DotNet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Client/DotNet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DotNet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DotNet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Soap_Client */
--- a/web/lib/Zend/Soap/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -26,9 +26,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Soap_Client_Exception extends Zend_Exception
{}
--- a/web/lib/Zend/Soap/Client/Local.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Client/Local.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Local.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Local.php 25033 2012-08-17 19:50:08Z matthew $
*/
/** Zend_Soap_Server */
@@ -83,8 +83,14 @@
// Perform request as is
ob_start();
$this->_server->handle($request);
- $response = ob_get_contents();
- ob_end_clean();
+ $response = ob_get_clean();
+
+ if ($response === null || $response === '') {
+ $serverResponse = $this->server->getResponse();
+ if ($serverResponse !== null) {
+ $response = $serverResponse;
+ }
+ }
return $response;
}
--- a/web/lib/Zend/Soap/Server.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Server.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,9 +31,9 @@
* @package Zend_Soap
* @subpackage Server
* @uses Zend_Server_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Server.php 22223 2010-05-21 08:06:47Z jan $
+ * @version $Id: Server.php 25177 2012-12-22 20:54:18Z rob $
*/
class Zend_Soap_Server implements Zend_Server_Interface
{
@@ -86,7 +86,13 @@
*/
protected $_wsdlCache;
-
+ /**
+ * WS-I compliant
+ *
+ * @var boolean
+ */
+ protected $_wsiCompliant;
+
/**
* Registered fault exceptions
* @var array
@@ -217,6 +223,9 @@
case 'cache_wsdl':
$this->setWsdlCache($value);
break;
+ case 'wsi_compliant':
+ $this->setWsiCompliant($value);
+ break;
default:
break;
}
@@ -253,17 +262,42 @@
$options['uri'] = $this->_uri;
}
- if(null !== $this->_features) {
+ if (null !== $this->_features) {
$options['features'] = $this->_features;
}
- if(null !== $this->_wsdlCache) {
+ if (null !== $this->_wsdlCache) {
$options['cache_wsdl'] = $this->_wsdlCache;
}
+ if (null !== $this->_wsiCompliant) {
+ $options['wsi_compliant'] = $this->_wsiCompliant;
+ }
+
return $options;
}
-
+ /**
+ * Set WS-I compliant
+ *
+ * @param boolean $value
+ * @return Zend_Soap_Server
+ */
+ public function setWsiCompliant($value)
+ {
+ if (is_bool($value)) {
+ $this->_wsiCompliant = $value;
+ }
+ return $this;
+ }
+ /**
+ * Gt WS-I compliant
+ *
+ * @return boolean
+ */
+ public function getWsiCompliant()
+ {
+ return $this->_wsiCompliant;
+ }
/**
* Set encoding
*
@@ -595,7 +629,12 @@
throw new Zend_Soap_Server_Exception('An object has already been registered with this soap server instance');
}
- $this->_object = $object;
+ if ($this->_wsiCompliant) {
+ require_once 'Zend/Soap/Server/Proxy.php';
+ $this->_object = new Zend_Soap_Server_Proxy($object);
+ } else {
+ $this->_object = $object;
+ }
return $this;
}
@@ -690,11 +729,21 @@
$xml = $request;
}
+ libxml_disable_entity_loader(true);
$dom = new DOMDocument();
if(strlen($xml) == 0 || !$dom->loadXML($xml)) {
require_once 'Zend/Soap/Server/Exception.php';
throw new Zend_Soap_Server_Exception('Invalid XML');
}
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Soap/Server/Exception.php';
+ throw new Zend_Soap_Server_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ libxml_disable_entity_loader(false);
}
$this->_request = $xml;
return $this;
@@ -768,6 +817,10 @@
if (!empty($this->_class)) {
$args = $this->_classArgs;
array_unshift($args, $this->_class);
+ if ($this->_wsiCompliant) {
+ require_once 'Zend/Soap/Server/Proxy.php';
+ array_unshift($args, 'Zend_Soap_Server_Proxy');
+ }
call_user_func_array(array($server, 'setClass'), $args);
}
@@ -820,19 +873,19 @@
} catch (Zend_Soap_Server_Exception $e) {
$setRequestException = $e;
}
-
+
$soap = $this->_getSoap();
+ $fault = false;
ob_start();
- if($setRequestException instanceof Exception) {
- // Send SOAP fault message if we've catched exception
- $soap->fault("Sender", $setRequestException->getMessage());
+ if ($setRequestException instanceof Exception) {
+ // Create SOAP fault message if we've caught a request exception
+ $fault = $this->fault($setRequestException->getMessage(), 'Sender');
} else {
try {
- $soap->handle($request);
+ $soap->handle($this->_request);
} catch (Exception $e) {
$fault = $this->fault($e);
- $soap->fault($fault->faultcode, $fault->faultstring);
}
}
$this->_response = ob_get_clean();
@@ -841,6 +894,11 @@
restore_error_handler();
ini_set('display_errors', $displayErrorsOriginalState);
+ // Send a fault, if we have one
+ if ($fault) {
+ $soap->fault($fault->faultcode, $fault->faultstring);
+ }
+
if (!$this->_returnResponse) {
echo $this->_response;
return;
--- a/web/lib/Zend/Soap/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,9 +28,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Soap_Server_Exception extends Zend_Exception
{}
--- a/web/lib/Zend/Soap/Wsdl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Soap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Wsdl.php 23342 2010-11-15 15:29:20Z alexander $
+ * @version $Id: Wsdl.php 25033 2012-08-17 19:50:08Z matthew $
*/
/**
@@ -96,13 +96,23 @@
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soap-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'></definitions>";
+ libxml_disable_entity_loader(true);
$this->_dom = new DOMDocument();
if (!$this->_dom->loadXML($wsdl)) {
require_once 'Zend/Server/Exception.php';
throw new Zend_Server_Exception('Unable to create DomDocument');
} else {
+ foreach ($this->_dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/Server/Exception.php';
+ throw new Zend_Server_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
$this->_wsdl = $this->_dom->documentElement;
}
+ libxml_disable_entity_loader(false);
$this->setComplexTypeStrategy($strategy);
}
@@ -125,8 +135,10 @@
// @todo: This is the worst hack ever, but its needed due to design and non BC issues of WSDL generation
$xml = $this->_dom->saveXML();
$xml = str_replace($oldUri, $uri, $xml);
+ libxml_disable_entity_loader(true);
$this->_dom = new DOMDocument();
$this->_dom->loadXML($xml);
+ libxml_disable_entity_loader(false);
}
return $this;
@@ -543,28 +555,24 @@
case 'string':
case 'str':
return 'xsd:string';
- break;
+ case 'long':
+ return 'xsd:long';
case 'int':
case 'integer':
return 'xsd:int';
- break;
case 'float':
+ return 'xsd:float';
case 'double':
- return 'xsd:float';
- break;
+ return 'xsd:double';
case 'boolean':
case 'bool':
return 'xsd:boolean';
- break;
case 'array':
return 'soap-enc:Array';
- break;
case 'object':
return 'xsd:struct';
- break;
case 'mixed':
return 'xsd:anyType';
- break;
case 'void':
return '';
default:
--- a/web/lib/Zend/Soap/Wsdl/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Exception extends Zend_Exception { }
\ No newline at end of file
--- a/web/lib/Zend/Soap/Wsdl/Strategy/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Soap_Wsdl_Strategy_Abstract implements Zend_Soap_Wsdl_Strategy_Interface
--- a/web/lib/Zend/Soap/Wsdl/Strategy/AnyType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/AnyType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AnyType.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AnyType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Strategy_AnyType implements Zend_Soap_Wsdl_Strategy_Interface
--- a/web/lib/Zend/Soap/Wsdl/Strategy/ArrayOfTypeComplex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/ArrayOfTypeComplex.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ArrayOfTypeComplex.php 21858 2010-04-15 19:58:12Z beberlei $
+ * @version $Id: ArrayOfTypeComplex.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex extends Zend_Soap_Wsdl_Strategy_DefaultComplexType
--- a/web/lib/Zend/Soap/Wsdl/Strategy/ArrayOfTypeSequence.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/ArrayOfTypeSequence.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Soap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ArrayOfTypeSequence.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ArrayOfTypeSequence.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Strategy_ArrayOfTypeSequence extends Zend_Soap_Wsdl_Strategy_DefaultComplexType
--- a/web/lib/Zend/Soap/Wsdl/Strategy/Composite.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/Composite.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Composite.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Composite.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Strategy_Composite implements Zend_Soap_Wsdl_Strategy_Interface
--- a/web/lib/Zend/Soap/Wsdl/Strategy/DefaultComplexType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/DefaultComplexType.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DefaultComplexType.php 22674 2010-07-25 19:35:20Z ramon $
+ * @version $Id: DefaultComplexType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Soap_Wsdl_Strategy_DefaultComplexType extends Zend_Soap_Wsdl_Strategy_Abstract
--- a/web/lib/Zend/Soap/Wsdl/Strategy/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Soap/Wsdl/Strategy/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Soap
* @subpackage Wsdl
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Soap_Wsdl_Strategy_Interface
--- a/web/lib/Zend/Tag/Cloud.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cloud.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Cloud
--- a/web/lib/Zend/Tag/Cloud/Decorator/Cloud.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Decorator/Cloud.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cloud.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cloud.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tag_Cloud_Decorator_Cloud
--- a/web/lib/Zend/Tag/Cloud/Decorator/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Decorator/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Tag_Cloud_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Cloud_Decorator_Exception extends Zend_Tag_Cloud_Exception
--- a/web/lib/Zend/Tag/Cloud/Decorator/HtmlCloud.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Decorator/HtmlCloud.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlCloud.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: HtmlCloud.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Tag_Cloud_Decorator_Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Cloud_Decorator_HtmlCloud extends Zend_Tag_Cloud_Decorator_Cloud
--- a/web/lib/Zend/Tag/Cloud/Decorator/HtmlTag.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Decorator/HtmlTag.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlTag.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: HtmlTag.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Tag_Cloud_Decorator_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Cloud_Decorator_HtmlTag extends Zend_Tag_Cloud_Decorator_Tag
--- a/web/lib/Zend/Tag/Cloud/Decorator/Tag.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Decorator/Tag.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Cloud
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tag.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tag.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tag_Cloud_Decorator_Tag
--- a/web/lib/Zend/Tag/Cloud/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Cloud/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Cloud_Exception extends Zend_Tag_Exception
--- a/web/lib/Zend/Tag/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Exception extends Zend_Exception
--- a/web/lib/Zend/Tag/Item.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Item.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage Item
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Item.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Item.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_Tag
* @uses Zend_Tag_Taggable
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_Item implements Zend_Tag_Taggable
--- a/web/lib/Zend/Tag/ItemList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/ItemList.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tag
* @subpackage ItemList
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ItemList.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ItemList.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tag_ItemList implements Countable, SeekableIterator, ArrayAccess
--- a/web/lib/Zend/Tag/Taggable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tag/Taggable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tag
* @subpackage Item
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Taggable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Taggable.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
* @category Zend
* @package Zend_Tag
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tag_Taggable
--- a/web/lib/Zend/Test/DbAdapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/DbAdapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbAdapter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbAdapter.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_DbAdapter extends Zend_Db_Adapter_Abstract
@@ -73,7 +73,7 @@
/**
* @var string
- */
+ */
protected $_quoteIdentifierSymbol = '';
/**
@@ -112,7 +112,7 @@
/**
* @var string
- */
+ */
public function setQuoteIdentifierSymbol($symbol)
{
$this->_quoteIdentifierSymbol = $symbol;
--- a/web/lib/Zend/Test/DbStatement.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/DbStatement.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbStatement.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbStatement.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_DbStatement implements Zend_Db_Statement_Interface
--- a/web/lib/Zend/Test/PHPUnit/Constraint/DomQuery.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Constraint/DomQuery.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DomQuery.php 22561 2010-07-15 17:49:16Z dragonbe $
+ * @version $Id: DomQuery.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see PHPUnit_Framework_Constraint */
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
--- a/web/lib/Zend/Test/PHPUnit/Constraint/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Constraint/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see PHPUnit_Framework_ExpectationFailedException */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_Exception extends PHPUnit_Framework_ExpectationFailedException
--- a/web/lib/Zend/Test/PHPUnit/Constraint/Redirect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Constraint/Redirect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Redirect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Redirect.php 25002 2012-06-26 14:38:28Z adamlundrigan $
*/
/** @see PHPUnit_Framework_Constraint */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
@@ -64,6 +64,11 @@
* @var string
*/
protected $_match = null;
+
+ /**
+ * What is actual redirect
+ */
+ protected $_actual = null;
/**
* Whether or not assertion is negated
@@ -142,6 +147,12 @@
: $this->_regex($response, $match);
case self::ASSERT_REDIRECT:
default:
+ $headers = $response->sendHeaders();
+ if (isset($headers['location'])) {
+ $redirect = $headers['location'];
+ $redirect = str_replace('Location: ', '', $redirect);
+ $this->_actual = $redirect;
+ }
return ($this->_negate) ? !$response->isRedirect() : $response->isRedirect();
}
}
@@ -166,6 +177,9 @@
$failure = 'Failed asserting response DOES NOT redirect to "%s"';
}
$failure = sprintf($failure, $this->_match);
+ if (!$this->_negate && $this->_actual) {
+ $failure .= sprintf(PHP_EOL . 'It redirects to "%s".', $this->_actual);
+ }
break;
case self::ASSERT_REDIRECT_REGEX:
$failure = 'Failed asserting response redirects to URL MATCHING "%s"';
@@ -173,12 +187,18 @@
$failure = 'Failed asserting response DOES NOT redirect to URL MATCHING "%s"';
}
$failure = sprintf($failure, $this->_match);
+ if ($this->_actual) {
+ $failure .= sprintf(PHP_EOL . 'It redirects to "%s".', $this->_actual);
+ }
break;
case self::ASSERT_REDIRECT:
default:
$failure = 'Failed asserting response is a redirect';
if ($this->_negate) {
$failure = 'Failed asserting response is NOT a redirect';
+ if ($this->_actual) {
+ $failure .= sprintf(PHP_EOL . 'It redirects to "%s"', $this->_actual);
+ }
}
break;
}
@@ -216,6 +236,7 @@
$headers = $response->sendHeaders();
$redirect = $headers['location'];
$redirect = str_replace('Location: ', '', $redirect);
+ $this->_actual = $redirect;
return ($redirect == $match);
}
@@ -236,6 +257,7 @@
$headers = $response->sendHeaders();
$redirect = $headers['location'];
$redirect = str_replace('Location: ', '', $redirect);
+ $this->_actual = $redirect;
return ($redirect != $match);
}
@@ -256,6 +278,7 @@
$headers = $response->sendHeaders();
$redirect = $headers['location'];
$redirect = str_replace('Location: ', '', $redirect);
+ $this->_actual = $redirect;
return preg_match($pattern, $redirect);
}
@@ -276,6 +299,7 @@
$headers = $response->sendHeaders();
$redirect = $headers['location'];
$redirect = str_replace('Location: ', '', $redirect);
+ $this->_actual = $redirect;
return !preg_match($pattern, $redirect);
}
--- a/web/lib/Zend/Test/PHPUnit/Constraint/ResponseHeader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Constraint/ResponseHeader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ResponseHeader.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ResponseHeader.php 25205 2013-01-10 11:23:25Z frosch $
*/
/** @see PHPUnit_Framework_Constraint */
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Constraint
@@ -65,6 +65,11 @@
* @var int Response code
*/
protected $_code = 200;
+
+ /**
+ * @var int Actual response code
+ */
+ protected $_actualCode = null;
/**
* @var string Header
@@ -197,6 +202,9 @@
$failure = 'Failed asserting response code IS NOT "%s"';
}
$failure = sprintf($failure, $this->_code);
+ if (!$this->_negate && $this->_actualCode) {
+ $failure .= sprintf(PHP_EOL . 'Was "%s"', $this->_actualCode);
+ }
break;
case self::ASSERT_HEADER:
$failure = 'Failed asserting response header "%s" found';
@@ -250,6 +258,7 @@
protected function _code(Zend_Controller_Response_Abstract $response, $code)
{
$test = $this->_getCode($response);
+ $this->_actualCode = $test;
return ($test == $code);
}
@@ -338,7 +347,7 @@
$contents = str_replace($header . ': ', '', $fullHeader);
- return (strstr($contents, $match));
+ return (strstr($contents, $match) !== false);
}
/**
@@ -357,7 +366,7 @@
$contents = str_replace($header . ': ', '', $fullHeader);
- return (!strstr($contents, $match));
+ return (strstr($contents, $match) === false);
}
/**
--- a/web/lib/Zend/Test/PHPUnit/ControllerTestCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/ControllerTestCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,17 +14,20 @@
*
* @category Zend
* @package Zend_Test
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ControllerTestCase.php 22291 2010-05-25 15:52:09Z bradley.holt $
+ * @version $Id: ControllerTestCase.php 24593 2012-01-05 20:35:02Z matthew $
*/
-/** @see PHPUnit_Framework_TestCase */
-require_once 'PHPUnit/Framework/TestCase.php';
-
/** @see PHPUnit_Runner_Version */
require_once 'PHPUnit/Runner/Version.php';
+/**
+ * Depending on version, include the proper PHPUnit support
+ * @see PHPUnit_Autoload
+ */
+require_once (version_compare(PHPUnit_Runner_Version::id(), '3.5.0', '>=')) ? 'PHPUnit/Autoload.php' : 'PHPUnit/Framework.php';
+
/** @see Zend_Controller_Front */
require_once 'Zend/Controller/Front.php';
@@ -47,7 +50,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_TestCase
@@ -1117,7 +1120,7 @@
/**
* Retrieve test case request object
*
- * @return Zend_Controller_Request_Abstract
+ * @return Zend_Controller_Request_HttpTestCase
*/
public function getRequest()
{
@@ -1131,7 +1134,7 @@
/**
* Retrieve test case response object
*
- * @return Zend_Controller_Response_Abstract
+ * @return Zend_Controller_Response_HttpTestCase
*/
public function getResponse()
{
@@ -1155,6 +1158,38 @@
}
return $this->_query;
}
+
+ /**
+ * URL Helper
+ *
+ * @param array $urlOptions
+ * @param string $name
+ * @param bool $reset
+ * @param bool $encode
+ */
+ public function url($urlOptions = array(), $name = null, $reset = false, $encode = true)
+ {
+ $frontController = $this->getFrontController();
+ $router = $frontController->getRouter();
+ if (!$router instanceof Zend_Controller_Router_Rewrite) {
+ throw new Exception('This url helper utility function only works when the router is of type Zend_Controller_Router_Rewrite');
+ }
+ if (count($router->getRoutes()) == 0) {
+ $router->addDefaultRoutes();
+ }
+ return $router->assemble($urlOptions, $name, $reset, $encode);
+ }
+
+ public function urlizeOptions($urlOptions, $actionControllerModuleOnly = true)
+ {
+ $ccToDash = new Zend_Filter_Word_CamelCaseToDash();
+ foreach ($urlOptions as $n => $v) {
+ if (in_array($n, array('action', 'controller', 'module'))) {
+ $urlOptions[$n] = $ccToDash->filter($v);
+ }
+ }
+ return $urlOptions;
+ }
/**
* Increment assertion count
--- a/web/lib/Zend/Test/PHPUnit/DatabaseTestCase.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/DatabaseTestCase.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DatabaseTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DatabaseTestCase.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Test_PHPUnit_DatabaseTestCase extends PHPUnit_Extensions_Database_TestCase
--- a/web/lib/Zend/Test/PHPUnit/Db/Connection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Connection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Connection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Connection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Connection extends PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection
--- a/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbRowset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbRowset.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbRowset.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbRowset.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_DataSet_DbRowset extends PHPUnit_Extensions_Database_DataSet_AbstractTable
--- a/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_DataSet_DbTable extends PHPUnit_Extensions_Database_DataSet_QueryTable
--- a/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbTableDataSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/DataSet/DbTableDataSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTableDataSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbTableDataSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once "PHPUnit/Extensions/Database/DataSet/QueryDataSet.php";
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_DataSet_DbTableDataSet extends PHPUnit_Extensions_Database_DataSet_AbstractDataSet
--- a/web/lib/Zend/Test/PHPUnit/Db/DataSet/QueryDataSet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/DataSet/QueryDataSet.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryDataSet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryDataSet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_DataSet_QueryDataSet extends PHPUnit_Extensions_Database_DataSet_QueryDataSet
--- a/web/lib/Zend/Test/PHPUnit/Db/DataSet/QueryTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/DataSet/QueryTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: QueryTable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: QueryTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_DataSet_QueryTable extends PHPUnit_Extensions_Database_DataSet_QueryTable
--- a/web/lib/Zend/Test/PHPUnit/Db/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Exception extends Zend_Exception
--- a/web/lib/Zend/Test/PHPUnit/Db/Metadata/Generic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Metadata/Generic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Generic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Generic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -37,7 +37,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Metadata_Generic implements PHPUnit_Extensions_Database_DB_IMetaData
--- a/web/lib/Zend/Test/PHPUnit/Db/Operation/DeleteAll.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Operation/DeleteAll.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DeleteAll.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DeleteAll.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,7 +52,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Operation_DeleteAll implements PHPUnit_Extensions_Database_Operation_IDatabaseOperation
--- a/web/lib/Zend/Test/PHPUnit/Db/Operation/Insert.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Operation/Insert.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Insert.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Insert.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,7 +52,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Operation_Insert implements PHPUnit_Extensions_Database_Operation_IDatabaseOperation
--- a/web/lib/Zend/Test/PHPUnit/Db/Operation/Truncate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/Operation/Truncate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Truncate.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Truncate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -52,7 +52,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_Operation_Truncate implements PHPUnit_Extensions_Database_Operation_IDatabaseOperation
@@ -89,7 +89,7 @@
*/
protected function _truncate(Zend_Db_Adapter_Abstract $db, $tableName)
{
- $tableName = $db->quoteIdentifier($tableName);
+ $tableName = $db->quoteIdentifier($tableName, true);
if($db instanceof Zend_Db_Adapter_Pdo_Sqlite) {
$db->query('DELETE FROM '.$tableName);
} else if($db instanceof Zend_Db_Adapter_Db2) {
--- a/web/lib/Zend/Test/PHPUnit/Db/SimpleTester.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Test/PHPUnit/Db/SimpleTester.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SimpleTester.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SimpleTester.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -57,7 +57,7 @@
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Db_SimpleTester extends PHPUnit_Extensions_Database_DefaultTester
--- a/web/lib/Zend/Text/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Text
* @uses Zend_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Exception extends Zend_Exception
--- a/web/lib/Zend/Text/Figlet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Figlet.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Figlet
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Figlet.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Figlet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Text_Figlet
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Figlet
--- a/web/lib/Zend/Text/Figlet/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Figlet/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Figlet
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Text_Figlet
* @uses Zend_Text_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Figlet_Exception extends Zend_Text_Exception
--- a/web/lib/Zend/Text/Figlet/zend-framework.flf Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Figlet/zend-framework.flf Thu Mar 21 19:50:53 2013 +0100
@@ -17,7 +17,7 @@
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
-------------------------------------------------------------------------------
--- a/web/lib/Zend/Text/MultiByte.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/MultiByte.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MultiByte.php 21931 2010-04-18 15:25:32Z dasprid $
+ * @version $Id: MultiByte.php 24762 2012-05-06 00:06:46Z adamlundrigan $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Text
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_MultiByte
@@ -39,78 +39,56 @@
* @param string $charset
* @return string
*/
- public static function wordWrap($string, $width = 75, $break = "\n", $cut = false, $charset = 'UTF-8')
+ public static function wordWrap($string, $width = 75, $break = "\n", $cut = false, $charset = 'utf-8')
{
- $result = array();
- $breakWidth = iconv_strlen($break, $charset);
-
- while (($stringLength = iconv_strlen($string, $charset)) > 0) {
- $breakPos = iconv_strpos($string, $break, 0, $charset);
-
- if ($breakPos !== false && $breakPos < $width) {
- if ($breakPos === $stringLength - $breakWidth) {
- $subString = $string;
- $cutLength = null;
- } else {
- $subString = iconv_substr($string, 0, $breakPos, $charset);
- $cutLength = $breakPos + $breakWidth;
- }
+ $stringWidth = iconv_strlen($string, $charset);
+ $breakWidth = iconv_strlen($break, $charset);
+
+ if (strlen($string) === 0) {
+ return '';
+ } elseif ($breakWidth === null) {
+ throw new Zend_Text_Exception('Break string cannot be empty');
+ } elseif ($width === 0 && $cut) {
+ throw new Zend_Text_Exception('Can\'t force cut when width is zero');
+ }
+
+ $result = '';
+ $lastStart = $lastSpace = 0;
+
+ for ($current = 0; $current < $stringWidth; $current++) {
+ $char = iconv_substr($string, $current, 1, $charset);
+
+ if ($breakWidth === 1) {
+ $possibleBreak = $char;
} else {
- $subString = iconv_substr($string, 0, $width, $charset);
-
- if ($subString === $string) {
- $cutLength = null;
- } else {
- $nextChar = iconv_substr($string, $width, 1, $charset);
-
- if ($breakWidth === 1) {
- $nextBreak = $nextChar;
- } else {
- $nextBreak = iconv_substr($string, $breakWidth, 1, $charset);
- }
-
- if ($nextChar === ' ' || $nextBreak === $break) {
- $afterNextChar = iconv_substr($string, $width + 1, 1, $charset);
-
- if ($afterNextChar === false) {
- $subString .= $nextChar;
- }
-
- $cutLength = iconv_strlen($subString, $charset) + 1;
- } else {
- $spacePos = iconv_strrpos($subString, ' ', $charset);
-
- if ($spacePos !== false) {
- $subString = iconv_substr($subString, 0, $spacePos, $charset);
- $cutLength = $spacePos + 1;
- } else if ($cut === false) {
- $spacePos = iconv_strpos($string, ' ', 0, $charset);
-
- if ($spacePos !== false) {
- $subString = iconv_substr($string, 0, $spacePos, $charset);
- $cutLength = $spacePos + 1;
- } else {
- $subString = $string;
- $cutLength = null;
- }
- } else {
- $subString = iconv_substr($subString, 0, $width, $charset);
- $cutLength = $width;
- }
- }
+ $possibleBreak = iconv_substr($string, $current, $breakWidth, $charset);
+ }
+
+ if ($possibleBreak === $break) {
+ $result .= iconv_substr($string, $lastStart, $current - $lastStart + $breakWidth, $charset);
+ $current += $breakWidth - 1;
+ $lastStart = $lastSpace = $current + 1;
+ } elseif ($char === ' ') {
+ if ($current - $lastStart >= $width) {
+ $result .= iconv_substr($string, $lastStart, $current - $lastStart, $charset) . $break;
+ $lastStart = $current + 1;
}
- }
-
- $result[] = $subString;
-
- if ($cutLength !== null) {
- $string = iconv_substr($string, $cutLength, ($stringLength - $cutLength), $charset);
- } else {
- break;
+
+ $lastSpace = $current;
+ } elseif ($current - $lastStart >= $width && $cut && $lastStart >= $lastSpace) {
+ $result .= iconv_substr($string, $lastStart, $current - $lastStart, $charset) . $break;
+ $lastStart = $lastSpace = $current;
+ } elseif ($current - $lastStart >= $width && $lastStart < $lastSpace) {
+ $result .= iconv_substr($string, $lastStart, $lastSpace - $lastStart, $charset) . $break;
+ $lastStart = $lastSpace = $lastSpace + 1;
}
}
-
- return implode($break, $result);
+
+ if ($lastStart !== $current) {
+ $result .= iconv_substr($string, $lastStart, $current - $lastStart, $charset);
+ }
+
+ return $result;
}
/**
@@ -123,13 +101,13 @@
* @param string $charset
* @return string
*/
- public static function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT, $charset = 'UTF-8')
+ public static function strPad($input, $padLength, $padString = ' ', $padType = STR_PAD_RIGHT, $charset = 'utf-8')
{
$return = '';
$lengthOfPadding = $padLength - iconv_strlen($input, $charset);
$padStringLength = iconv_strlen($padString, $charset);
- if ($padStringLength === 0 || $lengthOfPadding === 0) {
+ if ($padStringLength === 0 || $lengthOfPadding <= 0) {
$return = $input;
} else {
$repeatCount = floor($lengthOfPadding / $padStringLength);
--- a/web/lib/Zend/Text/Table.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Table.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Table.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table
@@ -341,6 +341,7 @@
}
require_once 'Zend/Text/Table/Row.php';
+ require_once 'Zend/Text/Table/Column.php';
$data = $row;
$row = new Zend_Text_Table_Row();
--- a/web/lib/Zend/Text/Table/Column.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Column.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Column.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Column.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table_Column
--- a/web/lib/Zend/Text/Table/Decorator/Ascii.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Decorator/Ascii.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ascii.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ascii.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Text_Table
* @uses Zend_Text_Table_Decorator_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table_Decorator_Ascii implements Zend_Text_Table_Decorator_Interface
--- a/web/lib/Zend/Text/Table/Decorator/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Decorator/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Text_Table_Decorator_Interface
--- a/web/lib/Zend/Text/Table/Decorator/Unicode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Decorator/Unicode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Unicode.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Unicode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Text_Table
* @uses Zend_Text_Table_Decorator_Interface
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table_Decorator_Unicode implements Zend_Text_Table_Decorator_Interface
--- a/web/lib/Zend/Text/Table/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Text_Table
* @uses Zend_Text_Exception
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table_Exception extends Zend_Text_Exception
--- a/web/lib/Zend/Text/Table/Row.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Text/Table/Row.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Row.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Row.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Text_Table
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Text_Table_Row
@@ -197,11 +197,11 @@
for ($line = 0; $line < $maxHeight; $line++) {
$result .= $decorator->getVertical();
- foreach ($renderedColumns as $renderedColumn) {
+ foreach ($renderedColumns as $index => $renderedColumn) {
if (isset($renderedColumn[$line]) === true) {
$result .= $renderedColumn[$line];
} else {
- $result .= str_repeat(' ', strlen($renderedColumn[0]));
+ $result .= str_repeat(' ', $this->_columnWidths[$index]);
}
$result .= $decorator->getVertical();
--- a/web/lib/Zend/TimeSync.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/TimeSync.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: TimeSync.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: TimeSync.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_TimeSync implements IteratorAggregate
@@ -233,7 +233,7 @@
* facade and will try to return the date from the first server that
* returns a valid result.
*
- * @param $locale - OPTIONAL locale
+ * @param Zend_Locale $locale - OPTIONAL locale
* @return object
* @throws Zend_TimeSync_Exception
*/
--- a/web/lib/Zend/TimeSync/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/TimeSync/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_TimeSync_Exception extends Zend_Exception
--- a/web/lib/Zend/TimeSync/Ntp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/TimeSync/Ntp.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ntp.php 21480 2010-03-13 22:09:26Z thomas $
+ * @version $Id: Ntp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_TimeSync_Ntp extends Zend_TimeSync_Protocol
--- a/web/lib/Zend/TimeSync/Protocol.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/TimeSync/Protocol.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Protocol.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Protocol.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_TimeSync_Protocol
--- a/web/lib/Zend/TimeSync/Sntp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/TimeSync/Sntp.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sntp.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Sntp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_TimeSync
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_TimeSync_Sntp extends Zend_TimeSync_Protocol
--- a/web/lib/Zend/Tool/Framework/Action/Base.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Action/Base.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Base.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Action_Base implements Zend_Tool_Framework_Action_Interface
--- a/web/lib/Zend/Tool/Framework/Action/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Action/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Action_Exception extends Zend_Tool_Framework_Exception
--- a/web/lib/Zend/Tool/Framework/Action/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Action/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Action_Interface
--- a/web/lib/Zend/Tool/Framework/Action/Repository.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Action/Repository.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Repository.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Action_Repository
--- a/web/lib/Zend/Tool/Framework/Client/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23204 2010-10-21 15:35:21Z ralph $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tool_Framework_Client_Abstract implements Zend_Tool_Framework_Registry_EnabledInterface
@@ -61,7 +61,7 @@
public function __construct($options = array())
{
- // require autoloader
+ // require autoloader
Zend_Loader_Autoloader::getInstance();
// this might look goofy, but this is setting up the
@@ -70,7 +70,7 @@
$registry->setClient($this);
// NOTE: at this moment, $this->_registry should contain the registry object
-
+
if ($options) {
$this->setOptions($options);
}
@@ -110,7 +110,7 @@
$manifest = $this->_registry->getManifestRepository();
$manifest->addManifest(new Zend_Tool_Framework_Client_Manifest());
-
+
// setup the debug log
if (!$this->_debugLogger instanceof Zend_Log) {
require_once 'Zend/Log.php';
@@ -177,10 +177,10 @@
$this->_registry = $registry;
return $this;
}
-
+
/**
* getRegistry();
- *
+ *
* @return Zend_Tool_Framework_Registry_Interface
*/
public function getRegistry()
@@ -317,7 +317,7 @@
$this->_handleDispatchExecution($provider, $methodName, $callParameters);
}
-
+
protected function _handleDispatchExecution($class, $methodName, $callParameters)
{
if (method_exists($class, $methodName)) {
--- a/web/lib/Zend/Tool/Framework/Client/Config.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Config.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Config.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Config.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Config
@@ -72,13 +72,13 @@
$this->_configFilepath = $configFilepath;
$this->loadConfig($configFilepath);
-
+
return $this;
}
/**
* Load the configuration from the given path.
- *
+ *
* @param string $configFilepath
*/
protected function loadConfig($configFilepath)
@@ -108,7 +108,7 @@
/**
* Return the filepath of the configuration.
- *
+ *
* @return string
*/
public function getConfigFilepath()
@@ -118,7 +118,7 @@
/**
* Get a configuration value.
- *
+ *
* @param string $name
* @param string $defaultValue
* @return mixed
--- a/web/lib/Zend/Tool/Framework/Client/Console.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Console.php 23204 2010-10-21 15:35:21Z ralph $
+ * @version $Id: Console.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,8 +40,10 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
+ *
+ * @todo methods need more API documentation.
*/
class Zend_Tool_Framework_Client_Console
extends Zend_Tool_Framework_Client_Abstract
@@ -73,7 +75,7 @@
* @var array
*/
protected $_classesToLoad = array();
-
+
/**
* main() - This is typically called from zf.php. This method is a
* self contained main() function.
@@ -94,11 +96,11 @@
{
return 'console';
}
-
+
/**
* setConfigOptions()
- *
- * @param $configOptions
+ *
+ * @param array $configOptions
*/
public function setConfigOptions($configOptions)
{
@@ -108,15 +110,18 @@
/**
* setStorageOptions()
- *
- * @param $storageOptions
+ *
+ * @param array $storageOptions
*/
public function setStorageOptions($storageOptions)
{
$this->_storageOptions = $storageOptions;
return $this;
}
-
+
+ /**
+ * @param array $classesToLoad
+ */
public function setClassesToLoad($classesToLoad)
{
$this->_classesToLoad = $classesToLoad;
@@ -145,10 +150,10 @@
// which classes are essential to initializing Zend_Tool_Framework_Client_Console
$classesToLoad = array(
- 'Zend_Tool_Framework_Client_Console_Manifest',
+ 'Zend_Tool_Framework_Client_Console_Manifest',
'Zend_Tool_Framework_System_Manifest'
);
-
+
if ($this->_classesToLoad) {
if (is_string($this->_classesToLoad)) {
$classesToLoad[] = $this->_classesToLoad;
@@ -156,7 +161,7 @@
$classesToLoad = array_merge($classesToLoad, $this->_classesToLoad);
}
}
-
+
// add classes to the basic loader from the config file basicloader.classes.1 ..
if (isset($config->basicloader) && isset($config->basicloader->classes)) {
foreach ($config->basicloader->classes as $classKey => $className) {
@@ -186,7 +191,7 @@
if (function_exists('posix_isatty')) {
$response->addContentDecorator(new Zend_Tool_Framework_Client_Console_ResponseDecorator_Colorizer());
}
-
+
$response->addContentDecorator(new Zend_Tool_Framework_Client_Response_ContentDecorator_Separator())
->setDefaultDecoratorOptions(array('separator' => true));
--- a/web/lib/Zend/Tool/Framework/Client/Console/ArgumentParser.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/ArgumentParser.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ArgumentParser.php 22877 2010-08-21 19:53:14Z ramon $
+ * @version $Id: ArgumentParser.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Console_ArgumentParser implements Zend_Tool_Framework_Registry_EnabledInterface
--- a/web/lib/Zend/Tool/Framework/Client/Console/HelpSystem.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/HelpSystem.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelpSystem.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelpSystem.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Console_HelpSystem
@@ -271,7 +271,7 @@
$this->_respondWithProviderName($providerMetadata);
$providerNameDisplayed = true;
}
-
+
if ($includeAllSpecialties || $isSingleSpecialProviderAction) {
foreach ($providerSignature->getSpecialties() as $specialtyName) {
@@ -303,7 +303,7 @@
}
}
-
+
// reset the special flag for single provider action with specialty
$isSingleSpecialProviderAction = false;
--- a/web/lib/Zend/Tool/Framework/Client/Console/Manifest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/Manifest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manifest.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Manifest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -54,7 +54,7 @@
* Zend_Tool_Framework_Client_ConsoleClient_Manifest
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Console_Manifest
--- a/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/AlignCenter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/AlignCenter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AlignCenter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AlignCenter.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Tool_Framework_Client_Console_ResponseDecorator_AlignCenter
implements Zend_Tool_Framework_Client_Response_ContentDecorator_Interface
--- a/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Blockize.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Blockize.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,9 +27,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Blockize.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Blockize.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Tool_Framework_Client_Console_ResponseDecorator_Blockize
implements Zend_Tool_Framework_Client_Response_ContentDecorator_Interface
--- a/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Colorizer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Colorizer.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Colorizer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Colorizer.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Console_ResponseDecorator_Colorizer
--- a/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Indention.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Console/ResponseDecorator/Indention.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Indention.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Indention.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once "Zend/Tool/Framework/Client/Response/ContentDecorator/Interface.php";
@@ -24,7 +24,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Console_ResponseDecorator_Indention
--- a/web/lib/Zend/Tool/Framework/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Exception extends Zend_Tool_Framework_Exception
--- a/web/lib/Zend/Tool/Framework/Client/Interactive/InputHandler.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Interactive/InputHandler.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InputHandler.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InputHandler.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Interactive_InputHandler
--- a/web/lib/Zend/Tool/Framework/Client/Interactive/InputInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Interactive/InputInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InputInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InputInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Client_Interactive_InputInterface
--- a/web/lib/Zend/Tool/Framework/Client/Interactive/InputRequest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Interactive/InputRequest.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InputRequest.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InputRequest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Interactive_InputRequest
--- a/web/lib/Zend/Tool/Framework/Client/Interactive/InputResponse.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Interactive/InputResponse.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InputResponse.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: InputResponse.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Interactive_InputResponse
--- a/web/lib/Zend/Tool/Framework/Client/Interactive/OutputInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Interactive/OutputInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: OutputInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: OutputInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Client_Interactive_OutputInterface
--- a/web/lib/Zend/Tool/Framework/Client/Manifest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Manifest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manifest.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Manifest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -54,7 +54,7 @@
* Zend_Tool_Framework_Client_ConsoleClient_Manifest
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Manifest
@@ -140,7 +140,7 @@
if ($specialty == '_Global') {
continue;
}
-
+
$metadatas[] = new Zend_Tool_Framework_Metadata_Tool(array(
'name' => 'normalizedSpecialtyName',
'value' => $lowerFilter->filter($specialty),
--- a/web/lib/Zend/Tool/Framework/Client/Request.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Request.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Request.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Request.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Request
--- a/web/lib/Zend/Tool/Framework/Client/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Response.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Response
--- a/web/lib/Zend/Tool/Framework/Client/Response/ContentDecorator/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Response/ContentDecorator/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Client_Response_ContentDecorator_Interface
--- a/web/lib/Zend/Tool/Framework/Client/Response/ContentDecorator/Separator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Response/ContentDecorator/Separator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Separator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Separator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Response_ContentDecorator_Separator
--- a/web/lib/Zend/Tool/Framework/Client/Storage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Storage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Storage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Storage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Storage
--- a/web/lib/Zend/Tool/Framework/Client/Storage/AdapterInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Storage/AdapterInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: AdapterInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Client_Storage_AdapterInterface
--- a/web/lib/Zend/Tool/Framework/Client/Storage/Directory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Client/Storage/Directory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Directory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Directory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Client_Storage_Directory
--- a/web/lib/Zend/Tool/Framework/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Exception extends Zend_Exception
--- a/web/lib/Zend/Tool/Framework/Loader/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Loader/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,10 +33,10 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-abstract class Zend_Tool_Framework_Loader_Abstract
+abstract class Zend_Tool_Framework_Loader_Abstract
implements Zend_Tool_Framework_Loader_Interface, Zend_Tool_Framework_Registry_EnabledInterface
{
/**
--- a/web/lib/Zend/Tool/Framework/Loader/BasicLoader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Loader/BasicLoader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BasicLoader.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: BasicLoader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,10 +40,10 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Tool_Framework_Loader_BasicLoader
+class Zend_Tool_Framework_Loader_BasicLoader
implements Zend_Tool_Framework_Loader_Interface, Zend_Tool_Framework_Registry_EnabledInterface
{
/**
@@ -55,14 +55,14 @@
* @var array
*/
protected $_classesToLoad = array();
-
+
public function __construct($options = array())
{
if ($options) {
$this->setOptions($options);
}
}
-
+
public function setOptions(Array $options)
{
foreach ($options as $optionName => $optionValue) {
@@ -72,7 +72,7 @@
}
}
}
-
+
/**
* setRegistry() - required by the enabled interface to get an instance of
* the registry
@@ -95,17 +95,17 @@
$this->_classesToLoad = $classesToLoad;
return $this;
}
-
+
public function load()
{
$manifestRegistry = $this->_registry->getManifestRepository();
$providerRegistry = $this->_registry->getProviderRepository();
-
+
$loadedClasses = array();
-
+
// loop through the loaded classes and ensure that
foreach ($this->_classesToLoad as $class) {
-
+
if (!class_exists($class)) {
Zend_Loader::loadClass($class);
}
@@ -153,5 +153,5 @@
&& !$providerRegistry->hasProvider($reflectionClass->getName(), false)
);
}
-
+
}
\ No newline at end of file
--- a/web/lib/Zend/Tool/Framework/Loader/IncludePathLoader.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Loader/IncludePathLoader.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IncludePathLoader.php 20904 2010-02-04 16:18:18Z matthew $
+ * @version $Id: IncludePathLoader.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Loader_IncludePathLoader extends Zend_Tool_Framework_Loader_Abstract
--- a/web/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Loader/IncludePathLoader/RecursiveFilterIterator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RecursiveFilterIterator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RecursiveFilterIterator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Loader_IncludePathLoader_RecursiveFilterIterator extends RecursiveFilterIterator
--- a/web/lib/Zend/Tool/Framework/Loader/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Loader/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 21308 2010-03-03 15:42:27Z elazar $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Loader_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/ActionManifestable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/ActionManifestable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActionManifestable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActionManifestable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Manifest_ActionManifestable extends Zend_Tool_Framework_Manifest_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Manifest_Exception extends Zend_Tool_Framework_Exception
--- a/web/lib/Zend/Tool/Framework/Manifest/Indexable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/Indexable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Indexable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Indexable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Manifest_Indexable extends Zend_Tool_Framework_Manifest_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Manifest_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/MetadataManifestable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/MetadataManifestable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MetadataManifestable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: MetadataManifestable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Manifest_MetadataManifestable extends Zend_Tool_Framework_Manifest_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/ProviderManifestable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/ProviderManifestable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProviderManifestable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProviderManifestable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Manifest_ProviderManifestable extends Zend_Tool_Framework_Manifest_Interface
--- a/web/lib/Zend/Tool/Framework/Manifest/Repository.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Manifest/Repository.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Repository.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Manifest_Repository
@@ -100,7 +100,7 @@
if (is_string($provider)) {
$provider = new $provider();
}
-
+
if (!$provider instanceof Zend_Tool_Framework_Provider_Interface) {
require_once 'Zend/Tool/Framework/Manifest/Exception.php';
throw new Zend_Tool_Framework_Manifest_Exception(
@@ -183,7 +183,7 @@
}
$metadata = new Zend_Tool_Framework_Metadata_Dynamic($metadata);
}
-
+
if (!$metadata instanceof Zend_Tool_Framework_Metadata_Interface) {
require_once 'Zend/Tool/Framework/Manifest/Exception.php';
throw new Zend_Tool_Framework_Manifest_Exception(
--- a/web/lib/Zend/Tool/Framework/Metadata/Attributable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Metadata/Attributable.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Attributable.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Attributable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Metadata_Attributable
--- a/web/lib/Zend/Tool/Framework/Metadata/Basic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Metadata/Basic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Basic.php 22662 2010-07-24 17:37:36Z mabe $
+ * @version $Id: Basic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,10 +33,10 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Tool_Framework_Metadata_Basic
+class Zend_Tool_Framework_Metadata_Basic
implements Zend_Tool_Framework_Metadata_Interface, Zend_Tool_Framework_Metadata_Attributable
{
--- a/web/lib/Zend/Tool/Framework/Metadata/Dynamic.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Metadata/Dynamic.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Dynamic.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Dynamic.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,10 +33,10 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Tool_Framework_Metadata_Dynamic
+class Zend_Tool_Framework_Metadata_Dynamic
implements Zend_Tool_Framework_Metadata_Interface, Zend_Tool_Framework_Metadata_Attributable
{
@@ -66,7 +66,7 @@
$this->setOptions($options);
}
}
-
+
public function setOptions(Array $options = array())
{
foreach ($options as $optName => $optValue) {
@@ -74,11 +74,11 @@
$this->{$methodName}($optValue);
}
}
-
+
/**
* setType()
- *
- * @param $type
+ *
+ * @param string $type
* @return Zend_Tool_Framework_Metadata_Dynamic
*/
public function setType($type)
@@ -86,7 +86,7 @@
$this->_type = $type;
return $this;
}
-
+
/**
* getType()
*
@@ -101,8 +101,8 @@
/**
* setName()
- *
- * @param $name
+ *
+ * @param string $name
* @return Zend_Tool_Framework_Metadata_Dynamic
*/
public function setName($name)
@@ -110,7 +110,7 @@
$this->_name = $name;
return $this;
}
-
+
/**
* getName()
*
@@ -125,8 +125,8 @@
/**
* setValue()
- *
- * @param $value
+ *
+ * @param mixed $value
* @return Zend_Tool_Framework_Metadata_Dynamic
*/
public function setValue($value)
@@ -134,7 +134,7 @@
$this->_value = $value;
return $this;
}
-
+
/**
* getValue()
*
--- a/web/lib/Zend/Tool/Framework/Metadata/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Metadata/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Metadata_Interface
@@ -48,5 +48,5 @@
*
*/
public function getValue();
-
+
}
--- a/web/lib/Zend/Tool/Framework/Metadata/Tool.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Metadata/Tool.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Tool.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Tool.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Metadata_Tool extends Zend_Tool_Framework_Metadata_Basic
--- a/web/lib/Zend/Tool/Framework/Provider/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -40,7 +40,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tool_Framework_Provider_Abstract
--- a/web/lib/Zend/Tool/Framework/Provider/DocblockManifestable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/DocblockManifestable.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DocblockManifestable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DocblockManifestable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Provider_DocblockManifestInterface
--- a/web/lib/Zend/Tool/Framework/Provider/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Provider_Exception extends Zend_Tool_Framework_Exception
--- a/web/lib/Zend/Tool/Framework/Provider/Initializable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Initializable.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: Interactable.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -22,7 +22,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Provider_Initializable
--- a/web/lib/Zend/Tool/Framework/Provider/Interactable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Interactable.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interactable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interactable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Provider_Interactable
--- a/web/lib/Zend/Tool/Framework/Provider/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Provider_Interface
--- a/web/lib/Zend/Tool/Framework/Provider/Pretendable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Pretendable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Pretendable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Pretendable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Provider_Pretendable
--- a/web/lib/Zend/Tool/Framework/Provider/Repository.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Repository.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Repository.php 23202 2010-10-21 15:08:15Z ralph $
+ * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Provider_Repository
@@ -163,7 +163,7 @@
//foreach ($this->_unprocessedProviders as $providerName => $provider) {
reset($this->_unprocessedProviders);
while ($this->_unprocessedProviders) {
-
+
$providerName = key($this->_unprocessedProviders);
$provider = array_shift($this->_unprocessedProviders);
--- a/web/lib/Zend/Tool/Framework/Provider/Signature.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Provider/Signature.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Signature.php 23202 2010-10-21 15:08:15Z ralph $
+ * @version $Id: Signature.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -41,7 +41,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Provider_Signature implements Zend_Tool_Framework_Registry_EnabledInterface
--- a/web/lib/Zend/Tool/Framework/Registry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Registry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Registry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Registry implements Zend_Tool_Framework_Registry_Interface
--- a/web/lib/Zend/Tool/Framework/Registry/EnabledInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Registry/EnabledInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EnabledInterface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EnabledInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Registry_EnabledInterface
--- a/web/lib/Zend/Tool/Framework/Registry/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Registry/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Framework/Exception.php';
@@ -24,7 +24,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_Registry_Exception extends Zend_Tool_Framework_Exception
--- a/web/lib/Zend/Tool/Framework/Registry/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/Registry/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Framework_Registry_Interface
--- a/web/lib/Zend/Tool/Framework/System/Action/Create.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Action/Create.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Create.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Create.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Action_Create extends Zend_Tool_Framework_Action_Base
--- a/web/lib/Zend/Tool/Framework/System/Action/Delete.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Action/Delete.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Delete.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Delete.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Action_Delete extends Zend_Tool_Framework_Action_Base
--- a/web/lib/Zend/Tool/Framework/System/Manifest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Manifest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manifest.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Manifest.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Framework/Manifest/ProviderManifestable.php';
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Manifest
--- a/web/lib/Zend/Tool/Framework/System/Provider/Config.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Provider/Config.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -46,9 +46,9 @@
* @package Zend_Tool
* @package Framework
* @uses Zend_Tool_Framework_Provider_Abstract
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Config.php 23206 2010-10-21 15:49:31Z ralph $
+ * @version $Id: Config.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_Tool_Framework_System_Provider_Config extends Zend_Tool_Framework_Provider_Abstract
{
@@ -59,11 +59,11 @@
/**
* array of specialties handled by this provider
- *
+ *
* @var array
*/
protected $_specialties = array('Manifest', 'Provider');
-
+
/**
* @param string $type
*/
--- a/web/lib/Zend/Tool/Framework/System/Provider/Manifest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Provider/Manifest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manifest.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Manifest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Provider_Manifest
--- a/web/lib/Zend/Tool/Framework/System/Provider/Phpinfo.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Provider/Phpinfo.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phpinfo.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phpinfo.php 25024 2012-07-30 15:08:15Z rob $
*/
require_once 'Zend/Tool/Framework/Provider/Interface.php';
@@ -24,7 +24,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Provider_Phpinfo implements Zend_Tool_Framework_Provider_Interface
--- a/web/lib/Zend/Tool/Framework/System/Provider/Version.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Framework/System/Provider/Version.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Version.php 22763 2010-08-02 02:59:36Z ramon $
+ * @version $Id: Version.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Framework/Registry.php';
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Framework_System_Provider_Version
--- a/web/lib/Zend/Tool/Project/Context/Content/Engine.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Content/Engine.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Engine.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Engine.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Content_Engine
--- a/web/lib/Zend/Tool/Project/Context/Content/Engine/CodeGenerator.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Content/Engine/CodeGenerator.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CodeGenerator.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CodeGenerator.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Content_Engine_CodeGenerator
--- a/web/lib/Zend/Tool/Project/Context/Content/Engine/Phtml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Content/Engine/Phtml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Phtml.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Phtml.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Content_Engine_Phtml
--- a/web/lib/Zend/Tool/Project/Context/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Project/Exception.php';
@@ -24,7 +24,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Exception extends Zend_Tool_Project_Exception
--- a/web/lib/Zend/Tool/Project/Context/Filesystem/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Filesystem/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tool_Project_Context_Filesystem_Abstract implements Zend_Tool_Project_Context_Interface
--- a/web/lib/Zend/Tool/Project/Context/Filesystem/Directory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Filesystem/Directory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Directory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Directory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Filesystem_Directory extends Zend_Tool_Project_Context_Filesystem_Abstract
@@ -41,14 +41,14 @@
/**
* getName()
- *
+ *
* @return string
*/
public function getName()
{
return 'directory';
}
-
+
/**
* create()
*
--- a/web/lib/Zend/Tool/Project/Context/Filesystem/File.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Filesystem/File.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: File.php 20901 2010-02-04 16:06:12Z ralph $
+ * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,28 +33,28 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Filesystem_File extends Zend_Tool_Project_Context_Filesystem_Abstract
{
protected $_fileOnlyContext = null;
-
+
protected $_filesystemName = null;
-
+
protected $_content = null;
-
+
/**
* getName()
- *
+ *
* @return string
*/
public function getName()
{
return 'file';
}
-
+
/**
* init()
*
@@ -65,12 +65,12 @@
if ($this->_resource->hasAttribute('filesystemName')) {
$this->_filesystemName = $this->_resource->getAttribute('filesystemName');
}
-
- // check to see if this file is
+
+ // check to see if this file is
if ($this->getName() == 'file') {
$this->_initFileOnlyContext();
}
-
+
// @potential-todo check to ensure that this 'file' resource has no children
parent::init();
return $this;
@@ -89,7 +89,7 @@
}
return $returnAttrs;
}
-
+
/**
* setResource()
*
@@ -101,10 +101,10 @@
$this->_resource->setAppendable(false);
return $this;
}
-
+
/**
* getResource()
- *
+ *
* @return Zend_Tool_Project_Profile_Resource
*/
public function getResource()
@@ -170,5 +170,5 @@
$this->_filesystemName = 'file.txt';
}
}
-
+
}
--- a/web/lib/Zend/Tool/Project/Context/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Project_Context_Interface
--- a/web/lib/Zend/Tool/Project/Context/Repository.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Repository.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Repository.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Repository.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Project/Context/System/Interface.php';
@@ -26,7 +26,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Repository implements Countable
--- a/web/lib/Zend/Tool/Project/Context/System/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Project_Context_System_Interface
--- a/web/lib/Zend/Tool/Project/Context/System/NotOverwritable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/NotOverwritable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NotOverwritable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NotOverwritable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Project_Context_System_NotOverwritable
--- a/web/lib/Zend/Tool/Project/Context/System/ProjectDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/ProjectDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProjectDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProjectDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -48,7 +48,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_System_ProjectDirectory
--- a/web/lib/Zend/Tool/Project/Context/System/ProjectProfileFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/ProjectProfileFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProjectProfileFile.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: ProjectProfileFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -48,7 +48,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_System_ProjectProfileFile
@@ -66,7 +66,7 @@
* @var Zend_Tool_Project_Profile
*/
protected $_profile = null;
-
+
/**
* getName()
*
@@ -76,7 +76,7 @@
{
return 'ProjectProfileFile';
}
-
+
/**
* setProfile()
*
--- a/web/lib/Zend/Tool/Project/Context/System/ProjectProvidersDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/ProjectProvidersDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProjectProvidersDirectory.php 23202 2010-10-21 15:08:15Z ralph $
+ * @version $Id: ProjectProvidersDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_System_ProjectProvidersDirectory
@@ -66,13 +66,13 @@
{
return 'ProjectProvidersDirectory';
}
-
+
public function loadProviders(Zend_Tool_Framework_Registry_Interface $registry)
{
if (file_exists($this->getPath())) {
$providerRepository = $registry->getProviderRepository();
-
+
foreach (new DirectoryIterator($this->getPath()) as $item) {
if ($item->isFile() && (($suffixStart = strpos($item->getFilename(), 'Provider.php')) !== false)) {
$className = substr($item->getFilename(), 0, $suffixStart+8);
--- a/web/lib/Zend/Tool/Project/Context/System/TopLevelRestrictable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/System/TopLevelRestrictable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TopLevelRestrictable.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TopLevelRestrictable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Project_Context_System_TopLevelRestrictable
--- a/web/lib/Zend/Tool/Project/Context/Zf/AbstractClassFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/AbstractClassFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,12 +15,17 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AbstractClassFile.php 23417 2010-11-20 16:24:35Z ramon $
+ * @version $Id: AbstractClassFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
+ * Zend_Tool_Project_Context_Filesystem_File
+ */
+require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
+
+/**
* This class is the front most class for utilizing Zend_Tool_Project
*
* A profile is a hierarchical set of resources that keep track of
@@ -28,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tool_Project_Context_Zf_AbstractClassFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -37,8 +42,8 @@
/**
* getFullClassName()
*
- * @param $localClassName
- * @param $classContextName
+ * @param string $localClassName
+ * @param string $classContextName
*/
public function getFullClassName($localClassName, $classContextName = null)
{
@@ -62,7 +67,8 @@
$prefix = $containingResource->getAttribute('classNamePrefix');
$fullClassName = $prefix;
} elseif ($containingResource->getName() == 'ModuleDirectory') {
- $prefix = ucfirst($containingResource->getAttribute('moduleName')) . '_';
+ $filter = new Zend_Filter_Word_DashToCamelCase();
+ $prefix = $filter->filter(ucfirst($containingResource->getAttribute('moduleName'))) . '_';
$fullClassName = $prefix;
}
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/ActionMethod.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ActionMethod.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ActionMethod.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ActionMethod.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Context_Interface
--- a/web/lib/Zend/Tool/Project/Context/Zf/ApisDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ApisDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ApisDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ApisDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,12 +33,11 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ApisDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
{
-
/**
* @var string
*/
@@ -53,5 +52,4 @@
{
return 'ApisDirectory';
}
-
-}
+}
\ No newline at end of file
--- a/web/lib/Zend/Tool/Project/Context/Zf/ApplicationConfigFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ApplicationConfigFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ApplicationConfigFile.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: ApplicationConfigFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -48,7 +48,7 @@
* @var string
*/
protected $_content = null;
-
+
/**
* getName()
*
@@ -94,9 +94,9 @@
} else {
$this->_content = $this->_getDefaultContents();
}
-
+
}
-
+
return $this->_content;
}
@@ -104,11 +104,11 @@
{
return new Zend_Config_Ini($this->getPath(), $section);
}
-
+
/**
* addStringItem()
- *
- * @param string $key
+ *
+ * @param string $key
* @param string $value
* @param string $section
* @param bool $quoteValue
@@ -120,39 +120,41 @@
if ($quoteValue === null) {
$quoteValue = preg_match('#[\"\']#', $value) ? false : true;
}
-
+
if ($quoteValue == true) {
$value = '"' . $value . '"';
}
-
+
$contentLines = preg_split('#[\n\r]#', $this->getContents());
-
+
$newLines = array();
$insideSection = false;
-
+
foreach ($contentLines as $contentLineIndex => $contentLine) {
-
+
if ($insideSection === false && preg_match('#^\[' . $section . '#', $contentLine)) {
$insideSection = true;
}
-
+
+ $newLines[] = $contentLine;
if ($insideSection) {
// if its blank, or a section heading
- if ((trim($contentLine) == null) || (isset($contentLines[$contentLineIndex + 1]{0}) && $contentLines[$contentLineIndex + 1]{0} == '[')) {
+ if (isset($contentLines[$contentLineIndex + 1]{0}) && $contentLines[$contentLineIndex + 1]{0} == '[') {
+ $newLines[] = $key . ' = ' . $value;
+ $insideSection = null;
+ } else if (!isset($contentLines[$contentLineIndex + 1])){
$newLines[] = $key . ' = ' . $value;
$insideSection = null;
}
}
-
- $newLines[] = $contentLine;
}
$this->_content = implode("\n", $newLines);
return $this;
}
-
+
/**
- *
+ *
* @param array $item
* @param string $section
* @param bool $quoteValue
@@ -163,18 +165,18 @@
$stringItems = array();
$stringValues = array();
$configKeyNames = array();
-
+
$rii = new RecursiveIteratorIterator(
new RecursiveArrayIterator($item),
RecursiveIteratorIterator::SELF_FIRST
);
-
+
$lastDepth = 0;
-
+
// loop through array structure recursively to create proper keys
foreach ($rii as $name => $value) {
$lastDepth = $rii->getDepth();
-
+
if (is_array($value)) {
array_push($configKeyNames, $name);
} else {
@@ -182,59 +184,59 @@
$stringValues[] = $value;
}
}
-
+
foreach ($stringItems as $stringItemIndex => $stringItem) {
$this->addStringItem($stringItem, $stringValues[$stringItemIndex], $section, $quoteValue);
}
-
+
return $this;
}
-
+
public function removeStringItem($key, $section = 'production')
{
$contentLines = file($this->getPath());
-
+
$newLines = array();
$insideSection = false;
-
+
foreach ($contentLines as $contentLineIndex => $contentLine) {
-
+
if ($insideSection === false && preg_match('#^\[' . $section . '#', $contentLine)) {
$insideSection = true;
}
-
+
if ($insideSection) {
// if its blank, or a section heading
if ((trim($contentLine) == null) || ($contentLines[$contentLineIndex + 1][0] == '[')) {
$insideSection = null;
}
}
-
- if (!preg_match('#' . $key . '\s?=.*#', $contentLine)) {
+
+ if (!preg_match('#' . $key . '\s?=.*#', $contentLine)) {
$newLines[] = $contentLine;
}
}
$this->_content = implode('', $newLines);
}
-
+
public function removeItem($item, $section = 'production')
{
$stringItems = array();
$stringValues = array();
$configKeyNames = array();
-
+
$rii = new RecursiveIteratorIterator(
new RecursiveArrayIterator($item),
RecursiveIteratorIterator::SELF_FIRST
);
-
+
$lastDepth = 0;
-
+
// loop through array structure recursively to create proper keys
foreach ($rii as $name => $value) {
$lastDepth = $rii->getDepth();
-
+
if (is_array($value)) {
array_push($configKeyNames, $name);
} else {
@@ -242,14 +244,14 @@
$stringValues[] = $value;
}
}
-
+
foreach ($stringItems as $stringItemIndex => $stringItem) {
$this->removeStringItem($stringItem, $section);
}
-
+
return $this;
}
-
+
protected function _getDefaultContents()
{
@@ -279,5 +281,5 @@
return $contents;
}
-
+
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/ApplicationDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ApplicationDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ApplicationDirectory.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: ApplicationDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
@@ -42,7 +42,7 @@
protected $_filesystemName = 'application';
protected $_classNamePrefix = 'Application_';
-
+
public function init()
{
if ($this->_resource->hasAttribute('classNamePrefix')) {
@@ -50,7 +50,7 @@
}
parent::init();
}
-
+
/**
* getPersistentAttributes
*
@@ -62,17 +62,17 @@
'classNamePrefix' => $this->getClassNamePrefix()
);
}
-
+
public function getName()
{
return 'ApplicationDirectory';
}
-
+
public function setClassNamePrefix($classNamePrefix)
{
$this->_classNamePrefix = $classNamePrefix;
}
-
+
public function getClassNamePrefix()
{
return $this->_classNamePrefix;
--- a/web/lib/Zend/Tool/Project/Context/Zf/BootstrapFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/BootstrapFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BootstrapFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: BootstrapFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_BootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -43,12 +43,12 @@
* @var Zend_Tool_Project_Profile_Resource
*/
protected $_applicationConfigFile = null;
-
+
/**
* @var Zend_Tool_Project_Profile_Resource
*/
protected $_applicationDirectory = null;
-
+
/**
* @var Zend_Application
*/
@@ -98,7 +98,7 @@
return $codeGenFile->generate();
}
-
+
public function getApplicationInstance()
{
if ($this->_applicationInstance == null) {
@@ -106,14 +106,14 @@
define('APPLICATION_PATH', $this->_applicationDirectory->getPath());
$applicationOptions = array();
$applicationOptions['config'] = $this->_applicationConfigFile->getPath();
-
+
$this->_applicationInstance = new Zend_Application(
'development',
$applicationOptions
);
}
}
-
+
return $this->_applicationInstance;
}
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/CacheDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/CacheDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CacheDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: CacheDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_CacheDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ConfigFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ConfigFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConfigFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ConfigFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ConfigFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/ConfigsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ConfigsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ConfigsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ConfigsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ConfigsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ControllerFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ControllerFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ControllerFile.php 23204 2010-10-21 15:35:21Z ralph $
+ * @version $Id: ControllerFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -43,7 +43,7 @@
* @var string
*/
protected $_moduleName = null;
-
+
/**
* @var string
*/
@@ -100,9 +100,11 @@
*/
public function getContents()
{
- $className = ($this->_moduleName) ? ucfirst($this->_moduleName) . '_' : '';
+ $filter = new Zend_Filter_Word_DashToCamelCase();
+
+ $className = ($this->_moduleName) ? $filter->filter(ucfirst($this->_moduleName)) . '_' : '';
$className .= ucfirst($this->_controllerName) . 'Controller';
-
+
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
'fileName' => $this->getPath(),
'classes' => array(
@@ -134,7 +136,7 @@
'body' => <<<EOS
\$errors = \$this->_getParam('error_handler');
-if (!\$errors) {
+if (!\$errors || !\$errors instanceof ArrayObject) {
\$this->view->message = 'You have reached the error page';
return;
}
@@ -143,21 +145,23 @@
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ROUTE:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
-
// 404 error -- controller or action not found
\$this->getResponse()->setHttpResponseCode(404);
+ \$priority = Zend_Log::NOTICE;
\$this->view->message = 'Page not found';
break;
default:
// application error
\$this->getResponse()->setHttpResponseCode(500);
+ \$priority = Zend_Log::CRIT;
\$this->view->message = 'Application error';
break;
}
// Log exception, if logger available
if (\$log = \$this->getLog()) {
- \$log->crit(\$this->view->message, \$errors->exception);
+ \$log->log(\$this->view->message, \$priority, \$errors->exception);
+ \$log->log('Request Parameters', \$priority, \$errors->request->getParams());
}
// conditionally display exceptions
--- a/web/lib/Zend/Tool/Project/Context/Zf/ControllersDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ControllersDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ControllersDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ControllersDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ControllersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/DataDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/DataDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DataDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DataDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_DataDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/DbTableDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/DbTableDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTableDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: DbTableDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_DbTableDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/DbTableFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/DbTableFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTableFile.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: DbTableFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,16 +28,16 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_DbTableFile extends Zend_Tool_Project_Context_Zf_AbstractClassFile
{
protected $_dbTableName = null;
-
+
protected $_actualTableName = null;
-
+
/**
* getName()
*
@@ -59,7 +59,7 @@
$this->_filesystemName = ucfirst($this->_dbTableName) . '.php';
parent::init();
}
-
+
public function getPersistentAttributes()
{
return array('dbTableName' => $this->_dbTableName);
@@ -68,7 +68,7 @@
public function getContents()
{
$className = $this->getFullClassName($this->_dbTableName, 'Model_DbTable');
-
+
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
'fileName' => $this->getPath(),
'classes' => array(
@@ -82,11 +82,11 @@
'defaultValue' => $this->_actualTableName
))
),
-
+
))
)
));
return $codeGenFile->generate();
}
-
+
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/DocsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/DocsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: DataDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
*/
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_DocsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
@@ -53,7 +53,7 @@
{
return 'DocsDirectory';
}
-
+
public function create(){
parent::create();
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/FormFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/FormFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormFile.php 23343 2010-11-15 15:33:22Z ramon $
+ * @version $Id: FormFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_FormFile extends Zend_Tool_Project_Context_Zf_AbstractClassFile
--- a/web/lib/Zend/Tool/Project/Context/Zf/FormsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/FormsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_FormsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/HtaccessFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/HtaccessFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtaccessFile.php 20897 2010-02-04 06:31:52Z ralph $
+ * @version $Id: HtaccessFile.php 25211 2013-01-10 21:10:30Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_HtaccessFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -64,11 +64,21 @@
$output = <<<EOS
RewriteEngine On
+# The following rule tells Apache that if the requested filename
+# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
-RewriteRule ^.*$ index.php [NC,L]
+# The following rewrites all other queries to index.php. The
+# condition ensures that if you are using Apache aliases to do
+# mass virtual hosting, the base path will be prepended to
+# allow proper resolution of the index.php file; it will work
+# in non-aliased environments as well, providing a safe, one-size
+# fits all solution.
+RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
+RewriteRule ^(.*)$ - [E=BASE:%1]
+RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
EOS;
return $output;
--- a/web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LayoutScriptFile.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: LayoutScriptFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LayoutScriptFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LayoutScriptsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LayoutScriptsDirectory.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: LayoutScriptsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LayoutScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/LayoutsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LayoutsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LayoutsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LayoutsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LayoutsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/LibraryDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LibraryDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LibraryDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LibraryDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/LocalesDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LocalesDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LocalesDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LocalesDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LocalesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/LogsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/LogsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LogsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: LogsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_LogsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ModelFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ModelFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,12 +15,17 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ModelFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ModelFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
+ * Zend_Tool_Project_Context_Zf_AbstractClassFile
+ */
+require_once 'Zend/Tool/Project/Context/Zf/AbstractClassFile.php';
+
+/**
* This class is the front most class for utilizing Zend_Tool_Project
*
* A profile is a hierarchical set of resources that keep track of
@@ -28,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ModelFile extends Zend_Tool_Project_Context_Zf_AbstractClassFile
@@ -38,12 +43,12 @@
* @var string
*/
protected $_modelName = 'Base';
-
+
/**
* @var string
*/
protected $_filesystemName = 'modelName';
-
+
/**
* init()
*
@@ -66,7 +71,7 @@
'modelName' => $this->getModelName()
);
}
-
+
/**
* getName()
*
@@ -81,12 +86,12 @@
{
return $this->_modelName;
}
-
+
public function getContents()
{
-
+
$className = $this->getFullClassName($this->_modelName, 'Model');
-
+
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
'fileName' => $this->getPath(),
'classes' => array(
@@ -97,6 +102,6 @@
));
return $codeGenFile->generate();
}
-
-
+
+
}
\ No newline at end of file
--- a/web/lib/Zend/Tool/Project/Context/Zf/ModelsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ModelsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ModelsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ModelsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ModelsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ModuleDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ModuleDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ModuleDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ModuleDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ModulesDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ModulesDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ModulesDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ModulesDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ModulesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ProjectProviderFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ProjectProviderFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProjectProviderFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProjectProviderFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/PublicDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/PublicDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PublicDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PublicDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_PublicDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/PublicImagesDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/PublicImagesDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PublicImagesDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PublicImagesDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_PublicImagesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/PublicIndexFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/PublicIndexFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PublicIndexFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PublicIndexFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_PublicIndexFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/PublicScriptsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/PublicScriptsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PublicScriptsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PublicScriptsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_PublicScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/PublicStylesheetsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/PublicStylesheetsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PublicStylesheetsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PublicStylesheetsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_PublicStylesheetsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/SearchIndexesDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/SearchIndexesDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SearchIndexesDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SearchIndexesDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_SearchIndexesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/SessionsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/SessionsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SessionsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SessionsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_SessionsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TemporaryDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TemporaryDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TemporaryDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TemporaryDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TemporaryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationBootstrapFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationBootstrapFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestApplicationBootstrapFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestApplicationBootstrapFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestApplicationBootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationControllerDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationControllerDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestApplicationControllerDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestApplicationControllerDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestApplicationControllerDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationControllerFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationControllerFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestApplicationControllerFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestApplicationControllerFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -68,6 +68,27 @@
}
/**
+ * getPersistentAttributes()
+ *
+ * @return unknown
+ */
+ public function getPersistentAttributes()
+ {
+ $attributes = array();
+
+ if ($this->_forControllerName) {
+ $attributes['forControllerName'] = $this->getForControllerName();
+ }
+
+ return $attributes;
+ }
+
+ public function getForControllerName()
+ {
+ return $this->_forControllerName;
+ }
+
+ /**
* getContents()
*
* @return string
@@ -78,23 +99,26 @@
$filter = new Zend_Filter_Word_DashToCamelCase();
$className = $filter->filter($this->_forControllerName) . 'ControllerTest';
-
+
+ /* @var $controllerDirectoryResource Zend_Tool_Project_Profile_Resource */
+ $controllerDirectoryResource = $this->_resource->getParentResource();
+ if ($controllerDirectoryResource->getParentResource()->getName() == 'TestApplicationModuleDirectory') {
+ $className = $filter->filter(ucfirst($controllerDirectoryResource->getParentResource()->getForModuleName()))
+ . '_' . $className;
+ }
+
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
- 'requiredFiles' => array(
- 'PHPUnit/Framework/TestCase.php'
- ),
'classes' => array(
new Zend_CodeGenerator_Php_Class(array(
'name' => $className,
- 'extendedClass' => 'PHPUnit_Framework_TestCase',
+ 'extendedClass' => 'Zend_Test_PHPUnit_ControllerTestCase',
'methods' => array(
new Zend_CodeGenerator_Php_Method(array(
'name' => 'setUp',
- 'body' => ' /* Setup Routine */'
- )),
- new Zend_CodeGenerator_Php_Method(array(
- 'name' => 'tearDown',
- 'body' => ' /* Tear Down Routine */'
+ 'body' => <<<EOS
+\$this->bootstrap = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
+parent::setUp();
+EOS
))
)
))
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestApplicationDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestApplicationDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestApplicationDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryBootstrapFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryBootstrapFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestLibraryBootstrapFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestLibraryBootstrapFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestLibraryBootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestLibraryDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestLibraryDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestLibraryFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestLibraryFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Context_Filesystem_File
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryNamespaceDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestLibraryNamespaceDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestLibraryNamespaceDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestLibraryNamespaceDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestPHPUnitConfigFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestPHPUnitConfigFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestPHPUnitConfigFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestPHPUnitConfigFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestPHPUnitConfigFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -53,5 +53,29 @@
{
return 'TestPHPUnitConfigFile';
}
+
+ public function getContents()
+ {
+ return <<<EOS
+<phpunit bootstrap="./bootstrap.php">
+ <testsuite name="Application Test Suite">
+ <directory>./application</directory>
+ </testsuite>
+ <testsuite name="Library Test Suite">
+ <directory>./library</directory>
+ </testsuite>
+
+ <filter>
+ <!-- If Zend Framework is inside your project's library, uncomment this filter -->
+ <!--
+ <whitelist>
+ <directory suffix=".php">../../library/Zend</directory>
+ </whitelist>
+ -->
+ </filter>
+</phpunit>
+
+EOS;
+ }
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/TestsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/TestsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TestsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TestsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_TestsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/UploadsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/UploadsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: UploadsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: UploadsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_UploadsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewControllerScriptsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewControllerScriptsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewControllerScriptsDirectory.php 23343 2010-11-15 15:33:22Z ramon $
+ * @version $Id: ViewControllerScriptsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewFiltersDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewFiltersDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewFiltersDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ViewFiltersDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewFiltersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewHelpersDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewHelpersDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewHelpersDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ViewHelpersDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewHelpersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewScriptFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewScriptFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewScriptFile.php 23343 2010-11-15 15:33:22Z ramon $
+ * @version $Id: ViewScriptFile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -49,7 +49,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewScriptFile extends Zend_Tool_Project_Context_Filesystem_File
@@ -130,6 +130,18 @@
{
$contents = '';
+ $controllerName = $this->_resource->getParentResource()->getAttribute('forControllerName');
+
+ $viewsDirectoryResource = $this->_resource
+ ->getParentResource() // view script
+ ->getParentResource() // view controller dir
+ ->getParentResource(); // views dir
+ if ($viewsDirectoryResource->getParentResource()->getName() == 'ModuleDirectory') {
+ $moduleName = $viewsDirectoryResource->getParentResource()->getModuleName();
+ } else {
+ $moduleName = 'default';
+ }
+
if ($this->_filesystemName == 'error.phtml') { // should also check that the above directory is forController=error
$contents .= <<<EOS
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -143,7 +155,7 @@
<h2><?php echo \$this->message ?></h2>
<?php if (isset(\$this->exception)): ?>
-
+
<h3>Exception information:</h3>
<p>
<b>Message:</b> <?php echo \$this->exception->getMessage() ?>
@@ -154,15 +166,16 @@
</pre>
<h3>Request Parameters:</h3>
- <pre><?php echo var_export(\$this->request->getParams(), true) ?>
+ <pre><?php echo \$this->escape(var_export(\$this->request->getParams(), true)) ?>
</pre>
+
<?php endif ?>
</body>
</html>
EOS;
- } elseif ($this->_forActionName == 'index' && $this->_resource->getParentResource()->getAttribute('forControllerName') == 'Index') {
+ } elseif ($this->_forActionName == 'index' && $controllerName == 'Index' && $moduleName == 'default') {
$contents =<<<EOS
<style>
@@ -211,8 +224,14 @@
EOS;
} else {
- $contents = '<br /><br /><center>View script for controller <b>' . $this->_resource->getParentResource()->getAttribute('forControllerName') . '</b>'
- . ' and script/action name <b>' . $this->_forActionName . '</b></center>';
+ $controllerName = $this->_resource->getParentResource()->getAttribute('forControllerName');
+ $actionName = $this->_forActionName;
+ $contents = <<<EOS
+<br /><br />
+<div id="view-content">
+ <p>View script for controller <b>$controllerName</b> and script/action name <b>$actionName</b></p>
+</div>
+EOS;
}
return $contents;
}
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewScriptsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewScriptsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewScriptsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ViewScriptsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ViewsDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ViewsDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ViewsDirectory.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ViewsDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ViewsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Context/Zf/ZfStandardLibraryDirectory.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Context/Zf/ZfStandardLibraryDirectory.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ZfStandardLibraryDirectory.php 20904 2010-02-04 16:18:18Z matthew $
+ * @version $Id: ZfStandardLibraryDirectory.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
--- a/web/lib/Zend/Tool/Project/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Exception extends Zend_Exception
--- a/web/lib/Zend/Tool/Project/Profile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Profile.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Profile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile extends Zend_Tool_Project_Profile_Resource_Container
@@ -48,7 +48,7 @@
* @var bool
*/
protected static $_traverseEnabled = false;
-
+
/**
* Constructor, standard usage would allow the setting of options
*
--- a/web/lib/Zend/Tool/Project/Profile/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Exception extends Zend_Tool_Project_Exception
--- a/web/lib/Zend/Tool/Project/Profile/FileParser/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/FileParser/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Tool_Project_Profile_FileParser_Interface
--- a/web/lib/Zend/Tool/Project/Profile/FileParser/Xml.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/FileParser/Xml.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Xml.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Xml.php 24593 2012-01-05 20:35:02Z matthew $
*/
require_once 'Zend/Tool/Project/Profile/FileParser/Interface.php';
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_FileParser_Xml implements Zend_Tool_Project_Profile_FileParser_Interface
@@ -72,11 +72,11 @@
if ($profile->hasAttribute('type')) {
$xmlElement->addAttribute('type', $profile->getAttribute('type'));
}
-
+
if ($profile->hasAttribute('version')) {
$xmlElement->addAttribute('version', $profile->getAttribute('version'));
}
-
+
self::_serializeRecurser($profile, $xmlElement);
$doc = new DOMDocument('1.0');
@@ -111,15 +111,15 @@
if ($xmlDataIterator->getName() != 'projectProfile') {
throw new Exception('Profiles must start with a projectProfile node');
}
-
+
if (isset($xmlDataIterator['type'])) {
$this->_profile->setAttribute('type', (string) $xmlDataIterator['type']);
}
-
+
if (isset($xmlDataIterator['version'])) {
$this->_profile->setAttribute('version', (string) $xmlDataIterator['version']);
}
-
+
// start un-serialization of the xml doc
$this->_unserializeRecurser($xmlDataIterator);
--- a/web/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Iterator/ContextFilter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ContextFilter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ContextFilter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Iterator_ContextFilter extends RecursiveFilterIterator
@@ -135,7 +135,7 @@
foreach ($acceptNames as $n => $v) {
$acceptNames[$n] = strtolower($v);
}
-
+
$this->_acceptNames = $acceptNames;
return $this;
}
@@ -155,7 +155,7 @@
foreach ($denyNames as $n => $v) {
$denyNames[$n] = strtolower($v);
}
-
+
$this->_denyNames = $denyNames;
return $this;
}
--- a/web/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Iterator/EnabledResourceFilter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EnabledResourceFilter.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: EnabledResourceFilter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Iterator_EnabledResourceFilter extends RecursiveFilterIterator
--- a/web/lib/Zend/Tool/Project/Profile/Resource.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Resource.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Resource.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Resource.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Resource extends Zend_Tool_Project_Profile_Resource_Container
--- a/web/lib/Zend/Tool/Project/Profile/Resource/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Resource/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Container.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Resource_Container implements RecursiveIterator, Countable
@@ -50,7 +50,7 @@
* @var bool
*/
protected $_appendable = true;
-
+
/**
* @var array
*/
@@ -253,10 +253,10 @@
{
return (array_key_exists($name, $this->_attributes)) ? $this->_attributes[$name] : null;
}
-
+
/**
* hasAttribute()
- *
+ *
* @param string $name
* @return bool
*/
--- a/web/lib/Zend/Tool/Project/Profile/Resource/SearchConstraints.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Profile/Resource/SearchConstraints.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: SearchConstraints.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: SearchConstraints.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Profile_Resource_SearchConstraints
--- a/web/lib/Zend/Tool/Project/Provider/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23202 2010-10-21 15:08:15Z ralph $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -50,7 +50,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Tool_Project_Provider_Abstract
@@ -77,7 +77,7 @@
{
// initialize the ZF Contexts (only once per php request)
if (!self::$_isInitialized) {
-
+
// load all base contexts ONCE
$contextRegistry = Zend_Tool_Project_Context_Repository::getInstance();
$contextRegistry->addContextsFromDirectory(
@@ -86,7 +86,7 @@
$contextRegistry->addContextsFromDirectory(
dirname(dirname(__FILE__)) . '/Context/Filesystem/', 'Zend_Tool_Project_Context_Filesystem_'
);
-
+
// determine if there are project specfic providers ONCE
$profilePath = $this->_findProfileDirectory();
if ($this->_hasProjectProviderDirectory($profilePath . DIRECTORY_SEPARATOR . '.zfproject.xml')) {
@@ -95,7 +95,7 @@
$ppd = $profile->search('ProjectProvidersDirectory');
$ppd->loadProviders($this->_registry);
}
-
+
self::$_isInitialized = true;
}
@@ -118,9 +118,9 @@
* - if an enpoint variable has been registered in teh client registry - key=workingDirectory
* - if an ENV variable with the key ZFPROJECT_PATH is found
*
- * @param $loadProfileFlag bool Whether or not to throw an exception when no profile is found
- * @param $projectDirectory string The project directory to use to search
- * @param $searchParentDirectories bool Whether or not to search upper level direcotries
+ * @param bool $loadProfileFlag Whether or not to throw an exception when no profile is found
+ * @param string $projectDirectory The project directory to use to search
+ * @param bool $searchParentDirectories Whether or not to search upper level direcotries
* @return Zend_Tool_Project_Profile
*/
protected function _loadProfile($loadProfileFlag = self::NO_PROFILE_THROW_EXCEPTION, $projectDirectory = null, $searchParentDirectories = true)
@@ -134,14 +134,14 @@
return false;
}
}
-
+
$profile = new Zend_Tool_Project_Profile();
$profile->setAttribute('projectDirectory', $foundPath);
$profile->loadFromFile();
$this->_loadedProfile = $profile;
return $profile;
}
-
+
protected function _findProfileDirectory($projectDirectory = null, $searchParentDirectories = true)
{
// use the cwd if no directory was provided
@@ -166,7 +166,7 @@
unset($profile);
return $projectDirectoryAssembled;
}
-
+
// break after first run if we are not to check upper directories
if ($searchParentDirectories == false) {
break;
@@ -174,10 +174,10 @@
array_pop($parentDirectoriesArray);
}
-
+
return false;
}
-
+
/**
* Load the project profile from the current working directory, if not throw exception
*
@@ -248,19 +248,19 @@
if (!file_exists($pathToProfileFile)) {
return false;
}
-
+
$contents = file_get_contents($pathToProfileFile);
if (strstr($contents, '<projectProvidersDirectory') === false) {
return false;
}
-
+
if (strstr($contents, '<projectProvidersDirectory enabled="false"')) {
return false;
}
-
+
return true;
}
-
+
/**
* _loadContextClassesIntoRegistry() - This is called by the constructor
* so that child providers can provide a list of contexts to load into the
--- a/web/lib/Zend/Tool/Project/Provider/Action.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Action.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Action.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Action
@@ -92,7 +92,7 @@
if ($controllerFile == null) {
throw new Zend_Tool_Project_Provider_Exception('Controller ' . $controllerName . ' was not found.');
}
-
+
return (($controllerFile->search(array('actionMethod' => array('actionName' => $actionName)))) instanceof Zend_Tool_Project_Profile_Resource);
}
@@ -131,33 +131,50 @@
$this->_loadProfile();
+ // get request/response object
+ $request = $this->_registry->getRequest();
+ $response = $this->_registry->getResponse();
+
+ // determine if testing is enabled in the project
+ require_once 'Zend/Tool/Project/Provider/Test.php';
+ $testingEnabled = Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
+
+ if ($testingEnabled && !Zend_Tool_Project_Provider_Test::isPHPUnitAvailable()) {
+ $testingEnabled = false;
+ $response->appendContent(
+ 'Note: PHPUnit is required in order to generate controller test stubs.',
+ array('color' => array('yellow'))
+ );
+ }
+
// Check that there is not a dash or underscore, return if doesnt match regex
if (preg_match('#[_-]#', $name)) {
throw new Zend_Tool_Project_Provider_Exception('Action names should be camel cased.');
}
-
+
$originalName = $name;
$originalControllerName = $controllerName;
-
+
// ensure it is camelCase (lower first letter)
$name = strtolower(substr($name, 0, 1)) . substr($name, 1);
-
+
// ensure controller is MixedCase
$controllerName = ucfirst($controllerName);
-
+
if (self::hasResource($this->_loadedProfile, $name, $controllerName, $module)) {
throw new Zend_Tool_Project_Provider_Exception('This controller (' . $controllerName . ') already has an action named (' . $name . ')');
}
-
- $actionMethod = self::createResource($this->_loadedProfile, $name, $controllerName, $module);
+
+ $actionMethodResource = self::createResource($this->_loadedProfile, $name, $controllerName, $module);
- // get request/response object
- $request = $this->_registry->getRequest();
- $response = $this->_registry->getResponse();
-
+ $testActionMethodResource = null;
+ if ($testingEnabled) {
+ $testActionMethodResource = Zend_Tool_Project_Provider_Test::createApplicationResource($this->_loadedProfile, $controllerName, $name, $module);
+ }
+
// alert the user about inline converted names
$tense = (($request->isPretend()) ? 'would be' : 'is');
-
+
if ($name !== $originalName) {
$response->appendContent(
'Note: The canonical action name that ' . $tense
@@ -166,7 +183,7 @@
array('color' => array('yellow'))
);
}
-
+
if ($controllerName !== $originalControllerName) {
$response->appendContent(
'Note: The canonical controller name that ' . $tense
@@ -175,20 +192,31 @@
array('color' => array('yellow'))
);
}
-
+
unset($tense);
-
+
if ($request->isPretend()) {
$response->appendContent(
'Would create an action named ' . $name .
- ' inside controller at ' . $actionMethod->getParentResource()->getContext()->getPath()
+ ' inside controller at ' . $actionMethodResource->getParentResource()->getContext()->getPath()
);
+
+ if ($testActionMethodResource) {
+ $response->appendContent('Would create an action test in ' . $testActionMethodResource->getParentResource()->getContext()->getPath());
+ }
+
} else {
$response->appendContent(
'Creating an action named ' . $name .
- ' inside controller at ' . $actionMethod->getParentResource()->getContext()->getPath()
+ ' inside controller at ' . $actionMethodResource->getParentResource()->getContext()->getPath()
);
- $actionMethod->create();
+ $actionMethodResource->create();
+
+ if ($testActionMethodResource) {
+ $response->appendContent('Creating an action test in ' . $testActionMethodResource->getParentResource()->getContext()->getPath());
+ $testActionMethodResource->create();
+ }
+
$this->_storeProfile();
}
--- a/web/lib/Zend/Tool/Project/Provider/Application.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Application.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,39 +15,39 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Application.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Application.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Tool_Project_Provider_Application
+class Zend_Tool_Project_Provider_Application
extends Zend_Tool_Project_Provider_Abstract
implements Zend_Tool_Framework_Provider_Pretendable
{
-
+
protected $_specialties = array('ClassNamePrefix');
-
+
/**
- *
- * @param $classNamePrefix Prefix of classes
- * @param $force
+ *
+ * @param string $classNamePrefix Prefix of classes
+ * @param bool $force
*/
public function changeClassNamePrefix($classNamePrefix /* , $force = false */)
{
$profile = $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
-
+
$originalClassNamePrefix = $classNamePrefix;
-
+
if (substr($classNamePrefix, -1) != '_') {
$classNamePrefix .= '_';
}
-
+
$configFileResource = $profile->search('ApplicationConfigFile');
$zc = $configFileResource->getAsZendConfig('production');
if ($zc->appnamespace == $classNamePrefix) {
@@ -57,31 +57,31 @@
// remove the old
$configFileResource->removeStringItem('appnamespace', 'production');
$configFileResource->create();
-
+
// add the new
$configFileResource->addStringItem('appnamespace', $classNamePrefix, 'production', true);
$configFileResource->create();
-
+
// update the project profile
$applicationDirectory = $profile->search('ApplicationDirectory');
$applicationDirectory->setClassNamePrefix($classNamePrefix);
$response = $this->_registry->getResponse();
-
+
if ($originalClassNamePrefix !== $classNamePrefix) {
$response->appendContent(
'Note: the name provided "' . $originalClassNamePrefix . '" was'
. ' altered to "' . $classNamePrefix . '" for correctness.',
array('color' => 'yellow')
);
- }
-
+ }
+
// note to the user
$response->appendContent('Note: All existing models will need to be altered to this new namespace by hand', array('color' => 'yellow'));
$response->appendContent('application.ini updated with new appnamespace ' . $classNamePrefix);
-
+
// store profile
$this->_storeProfile();
}
-
+
}
--- a/web/lib/Zend/Tool/Project/Provider/Controller.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Controller.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Controller.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Controller.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Controller
@@ -57,7 +57,7 @@
}
$newController = $controllersDirectory->createResource(
- 'controllerFile',
+ 'controllerFile',
array('controllerName' => $controllerName, 'moduleName' => $moduleName)
);
@@ -70,7 +70,7 @@
* @param Zend_Tool_Project_Profile $profile
* @param string $controllerName
* @param string $moduleName
- * @return Zend_Tool_Project_Profile_Resource
+ * @return boolean
*/
public static function hasResource(Zend_Tool_Project_Profile $profile, $controllerName, $moduleName = null)
{
@@ -79,7 +79,7 @@
}
$controllersDirectory = self::_getControllersDirectoryResource($profile, $moduleName);
- return (($controllersDirectory->search(array('controllerFile' => array('controllerName' => $controllerName)))) instanceof Zend_Tool_Project_Profile_Resource);
+ return ($controllersDirectory &&($controllersDirectory->search(array('controllerFile' => array('controllerName' => $controllerName)))) instanceof Zend_Tool_Project_Profile_Resource);
}
/**
@@ -112,10 +112,25 @@
{
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
+ // get request & response
+ $request = $this->_registry->getRequest();
+ $response = $this->_registry->getResponse();
+
// determine if testing is enabled in the project
require_once 'Zend/Tool/Project/Provider/Test.php';
$testingEnabled = Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
+ if ($testingEnabled && !Zend_Tool_Project_Provider_Test::isPHPUnitAvailable()) {
+ $testingEnabled = false;
+ $response->appendContent(
+ 'Note: PHPUnit is required in order to generate controller test stubs.',
+ array('color' => array('yellow'))
+ );
+ }
+
+ $originalName = $name;
+ $name = ucfirst($name);
+
if (self::hasResource($this->_loadedProfile, $name, $module)) {
throw new Zend_Tool_Project_Provider_Exception('This project already has a controller named ' . $name);
}
@@ -124,14 +139,7 @@
if (preg_match('#[_-]#', $name)) {
throw new Zend_Tool_Project_Provider_Exception('Controller names should be camel cased.');
}
-
- $originalName = $name;
- $name = ucfirst($name);
-
- // get request & response
- $request = $this->_registry->getRequest();
- $response = $this->_registry->getResponse();
-
+
try {
$controllerResource = self::createResource($this->_loadedProfile, $name, $module);
if ($indexActionIncluded) {
@@ -139,7 +147,7 @@
$indexActionViewResource = Zend_Tool_Project_Provider_View::createResource($this->_loadedProfile, 'index', $name, $module);
}
if ($testingEnabled) {
- $testControllerResource = Zend_Tool_Project_Provider_Test::createApplicationResource($this->_loadedProfile, $name, 'index', $module);
+ $testActionResource = Zend_Tool_Project_Provider_Test::createApplicationResource($this->_loadedProfile, $name, 'index', $module);
}
} catch (Exception $e) {
@@ -158,19 +166,19 @@
);
unset($tense);
}
-
+
// do the creation
if ($request->isPretend()) {
-
+
$response->appendContent('Would create a controller at ' . $controllerResource->getContext()->getPath());
if (isset($indexActionResource)) {
$response->appendContent('Would create an index action method in controller ' . $name);
$response->appendContent('Would create a view script for the index action method at ' . $indexActionViewResource->getContext()->getPath());
}
-
- if ($testControllerResource) {
- $response->appendContent('Would create a controller test file at ' . $testControllerResource->getContext()->getPath());
+
+ if ($testingEnabled) {
+ $response->appendContent('Would create a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
}
} else {
@@ -185,9 +193,10 @@
$indexActionViewResource->create();
}
- if ($testControllerResource) {
- $response->appendContent('Creating a controller test file at ' . $testControllerResource->getContext()->getPath());
- $testControllerResource->create();
+ if ($testingEnabled) {
+ $response->appendContent('Creating a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
+ $testActionResource->getParentResource()->create();
+ $testActionResource->create();
}
$this->_storeProfile();
--- a/web/lib/Zend/Tool/Project/Provider/DbAdapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/DbAdapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbAdapter.php 20852 2010-02-02 21:59:18Z ralph $
+ * @version $Id: DbAdapter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,46 +33,46 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_DbAdapter
extends Zend_Tool_Project_Provider_Abstract
implements Zend_Tool_Framework_Provider_Interactable, Zend_Tool_Framework_Provider_Pretendable
{
-
+
protected $_appConfigFilePath = null;
-
+
protected $_config = null;
-
+
protected $_sectionName = 'production';
-
+
public function configure($dsn = null, /* $interactivelyPrompt = false, */ $sectionName = 'production')
{
$profile = $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
-
+
$appConfigFileResource = $profile->search('applicationConfigFile');
-
+
if ($appConfigFileResource == false) {
throw new Zend_Tool_Project_Exception('A project with an application config file is required to use this provider.');
}
-
+
$this->_appConfigFilePath = $appConfigFileResource->getPath();
-
+
$this->_config = new Zend_Config_Ini($this->_appConfigFilePath, null, array('skipExtends' => true, 'allowModifications' => true));
-
+
if ($sectionName != 'production') {
$this->_sectionName = $sectionName;
}
-
+
if (!isset($this->_config->{$this->_sectionName})) {
throw new Zend_Tool_Project_Exception('The config does not have a ' . $this->_sectionName . ' section.');
}
-
+
if (isset($this->_config->{$this->_sectionName}->resources->db)) {
throw new Zend_Tool_Project_Exception('The config already has a db resource configured in section ' . $this->_sectionName . '.');
}
-
+
if ($dsn) {
$this->_configureViaDSN($dsn);
//} elseif ($interactivelyPrompt) {
@@ -80,44 +80,44 @@
} else {
$this->_registry->getResponse()->appendContent('Nothing to do!');
}
-
-
+
+
}
-
+
protected function _configureViaDSN($dsn)
{
$dsnVars = array();
-
+
if (strpos($dsn, '=') === false) {
throw new Zend_Tool_Project_Provider_Exception('At least one name value pair is expected, typcially '
- . 'in the format of "adapter=Mysqli&username=uname&password=mypass&dbname=mydb"'
+ . 'in the format of "adapter=Mysqli&username=uname&password=mypass&dbname=mydb"'
);
}
-
+
parse_str($dsn, $dsnVars);
// parse_str suffers when magic_quotes is enabled
if (get_magic_quotes_gpc()) {
array_walk_recursive($dsnVars, array($this, '_cleanMagicQuotesInValues'));
}
-
+
$dbConfigValues = array('resources' => array('db' => null));
-
+
if (isset($dsnVars['adapter'])) {
$dbConfigValues['resources']['db']['adapter'] = $dsnVars['adapter'];
unset($dsnVars['adapter']);
}
-
+
$dbConfigValues['resources']['db']['params'] = $dsnVars;
-
+
$isPretend = $this->_registry->getRequest()->isPretend();
// get the config resource
$applicationConfig = $this->_loadedProfile->search('ApplicationConfigFile');
$applicationConfig->addItem($dbConfigValues, $this->_sectionName, null);
-
+
$response = $this->_registry->getResponse();
-
+
if ($isPretend) {
$response->appendContent('A db configuration for the ' . $this->_sectionName
. ' section would be written to the application config file with the following contents: '
@@ -130,10 +130,10 @@
);
}
}
-
+
protected function _cleanMagicQuotesInValues(&$value, $key)
{
$value = stripslashes($value);
}
-
+
}
--- a/web/lib/Zend/Tool/Project/Provider/DbTable.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/DbTable.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,29 +15,29 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DbTable.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: DbTable.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
-class Zend_Tool_Project_Provider_DbTable
+class Zend_Tool_Project_Provider_DbTable
extends Zend_Tool_Project_Provider_Abstract
implements Zend_Tool_Framework_Provider_Pretendable
{
-
+
protected $_specialties = array('FromDatabase');
-
+
/**
* @var Zend_Filter
*/
protected $_nameFilter = null;
-
+
public static function createResource(Zend_Tool_Project_Profile $profile, $dbTableName, $actualTableName, $moduleName = null)
{
$profileSearchParams = array();
@@ -47,25 +47,25 @@
}
$profileSearchParams[] = 'modelsDirectory';
-
+
$modelsDirectory = $profile->search($profileSearchParams);
-
+
if (!($modelsDirectory instanceof Zend_Tool_Project_Profile_Resource)) {
throw new Zend_Tool_Project_Provider_Exception(
'A models directory was not found' .
(($moduleName) ? ' for module ' . $moduleName . '.' : '.')
);
}
-
+
if (!($dbTableDirectory = $modelsDirectory->search('DbTableDirectory'))) {
$dbTableDirectory = $modelsDirectory->createResource('DbTableDirectory');
}
-
+
$dbTableFile = $dbTableDirectory->createResource('DbTableFile', array('dbTableName' => $dbTableName, 'actualTableName' => $actualTableName));
-
+
return $dbTableFile;
}
-
+
public static function hasResource(Zend_Tool_Project_Profile $profile, $dbTableName, $moduleName = null)
{
$profileSearchParams = array();
@@ -75,20 +75,20 @@
}
$profileSearchParams[] = 'modelsDirectory';
-
+
$modelsDirectory = $profile->search($profileSearchParams);
-
+
if (!($modelsDirectory instanceof Zend_Tool_Project_Profile_Resource)
|| !($dbTableDirectory = $modelsDirectory->search('DbTableDirectory'))) {
return false;
}
-
+
$dbTableFile = $dbTableDirectory->search(array('DbTableFile' => array('dbTableName' => $dbTableName)));
-
+
return ($dbTableFile instanceof Zend_Tool_Project_Profile_Resource) ? true : false;
}
-
-
+
+
public function create($name, $actualTableName, $module = null, $forceOverwrite = false)
{
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
@@ -97,14 +97,14 @@
if (preg_match('#[_-]#', $name)) {
throw new Zend_Tool_Project_Provider_Exception('DbTable names should be camel cased.');
}
-
+
$originalName = $name;
$name = ucfirst($name);
-
+
if ($actualTableName == '') {
throw new Zend_Tool_Project_Provider_Exception('You must provide both the DbTable name as well as the actual db table\'s name.');
}
-
+
if (self::hasResource($this->_loadedProfile, $name, $module)) {
throw new Zend_Tool_Project_Provider_Exception('This project already has a DbTable named ' . $name);
}
@@ -112,10 +112,10 @@
// get request/response object
$request = $this->_registry->getRequest();
$response = $this->_registry->getResponse();
-
+
// alert the user about inline converted names
$tense = (($request->isPretend()) ? 'would be' : 'is');
-
+
if ($name !== $originalName) {
$response->appendContent(
'Note: The canonical model name that ' . $tense
@@ -124,7 +124,7 @@
array('color' => array('yellow'))
);
}
-
+
try {
$tableResource = self::createResource($this->_loadedProfile, $name, $actualTableName, $module);
} catch (Exception $e) {
@@ -142,38 +142,43 @@
$this->_storeProfile();
}
}
-
+
+ /**
+ * @param string $module Module name action should be applied to.
+ * @param bool $forceOverwrite Whether should force overwriting previous classes generated
+ * @return void
+ */
public function createFromDatabase($module = null, $forceOverwrite = false)
{
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
-
+
$bootstrapResource = $this->_loadedProfile->search('BootstrapFile');
-
+
/* @var $zendApp Zend_Application */
$zendApp = $bootstrapResource->getApplicationInstance();
-
+
try {
$zendApp->bootstrap('db');
} catch (Zend_Application_Exception $e) {
throw new Zend_Tool_Project_Provider_Exception('Db resource not available, you might need to configure a DbAdapter.');
return;
}
-
+
/* @var $db Zend_Db_Adapter_Abstract */
$db = $zendApp->getBootstrap()->getResource('db');
-
+
$tableResources = array();
foreach ($db->listTables() as $actualTableName) {
-
+
$dbTableName = $this->_convertTableNameToClassName($actualTableName);
-
+
if (!$forceOverwrite && self::hasResource($this->_loadedProfile, $dbTableName, $module)) {
throw new Zend_Tool_Project_Provider_Exception(
'This DbTable resource already exists, if you wish to overwrite it, '
. 'pass the "forceOverwrite" flag to this provider.'
);
}
-
+
$tableResources[] = self::createResource(
$this->_loadedProfile,
$dbTableName,
@@ -181,11 +186,11 @@
$module
);
}
-
+
if (count($tableResources) == 0) {
$this->_registry->getResponse()->appendContent('There are no tables in the selected database to write.');
}
-
+
// do the creation
if ($this->_registry->getRequest()->isPretend()) {
@@ -202,10 +207,10 @@
$this->_storeProfile();
}
-
-
+
+
}
-
+
protected function _convertTableNameToClassName($tableName)
{
if ($this->_nameFilter == null) {
@@ -213,8 +218,8 @@
$this->_nameFilter
->addFilter(new Zend_Filter_Word_UnderscoreToCamelCase());
}
-
+
return $this->_nameFilter->filter($tableName);
}
-
+
}
\ No newline at end of file
--- a/web/lib/Zend/Tool/Project/Provider/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Exception extends Zend_Tool_Project_Exception
--- a/web/lib/Zend/Tool/Project/Provider/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Form.php 23209 2010-10-21 16:09:34Z ralph $
+ * @version $Id: Form.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Form extends Zend_Tool_Project_Provider_Abstract
@@ -45,7 +45,7 @@
}
$newForm = $formsDirectory->createResource(
- 'formFile',
+ 'formFile',
array('formName' => $formName, 'moduleName' => $moduleName)
);
@@ -69,7 +69,7 @@
$formsDirectory = self::_getFormsDirectoryResource($profile, $moduleName);
return (($formsDirectory->search(array('formFile' => array('formName' => $formName)))) instanceof Zend_Tool_Project_Profile_Resource);
}
-
+
/**
* _getFormsDirectoryResource()
*
@@ -89,7 +89,7 @@
return $profile->search($profileSearchParams);
}
-
+
public function enable($module = null)
{
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
@@ -98,7 +98,7 @@
$testingEnabled = Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
$formDirectoryResource = self::_getFormsDirectoryResource($this->_loadedProfile, $module);
-
+
if ($formDirectoryResource->isEnabled()) {
throw new Zend_Tool_Project_Provider_Exception('This project already has forms enabled.');
} else {
@@ -108,12 +108,12 @@
$this->_registry->getResponse()->appendContent('Enabling forms directory at ' . $formDirectoryResource->getContext()->getPath());
$formDirectoryResource->setEnabled(true);
$formDirectoryResource->create();
- $this->_storeProfile();
+ $this->_storeProfile();
}
}
}
-
+
/**
* Create a new form
*
@@ -135,9 +135,9 @@
if (preg_match('#[_-]#', $name)) {
throw new Zend_Tool_Project_Provider_Exception('Form names should be camel cased.');
}
-
+
$name = ucwords($name);
-
+
try {
$formResource = self::createResource($this->_loadedProfile, $name, $module);
--- a/web/lib/Zend/Tool/Project/Provider/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Layout.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Layout.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,82 +28,113 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Layout extends Zend_Tool_Project_Provider_Abstract implements Zend_Tool_Framework_Provider_Pretendable
{
-
+ /**
+ * @var string Layout path
+ */
+ protected $_layoutPath = 'APPLICATION_PATH "/layouts/scripts/"';
+
public static function createResource(Zend_Tool_Project_Profile $profile, $layoutName = 'layout')
{
$applicationDirectory = $profile->search('applicationDirectory');
$layoutDirectory = $applicationDirectory->search('layoutsDirectory');
-
+
if ($layoutDirectory == false) {
$layoutDirectory = $applicationDirectory->createResource('layoutsDirectory');
}
-
+
$layoutScriptsDirectory = $layoutDirectory->search('layoutScriptsDirectory');
-
+
if ($layoutScriptsDirectory == false) {
$layoutScriptsDirectory = $layoutDirectory->createResource('layoutScriptsDirectory');
}
-
+
$layoutScriptFile = $layoutScriptsDirectory->search('layoutScriptFile', array('layoutName' => 'layout'));
if ($layoutScriptFile == false) {
$layoutScriptFile = $layoutScriptsDirectory->createResource('layoutScriptFile', array('layoutName' => 'layout'));
}
-
+
return $layoutScriptFile;
}
-
+
public function enable()
{
$profile = $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
-
+
$applicationConfigResource = $profile->search('ApplicationConfigFile');
if (!$applicationConfigResource) {
throw new Zend_Tool_Project_Exception('A project with an application config file is required to use this provider.');
}
-
+
$zc = $applicationConfigResource->getAsZendConfig();
-
- if (isset($zc->resources) && isset($zf->resources->layout)) {
+
+ if (isset($zc->resources) && isset($zc->resources->layout)) {
$this->_registry->getResponse()->appendContent('A layout resource already exists in this project\'s application configuration file.');
return;
}
-
- $layoutPath = 'APPLICATION_PATH "/layouts/scripts/"';
-
+
if ($this->_registry->getRequest()->isPretend()) {
$this->_registry->getResponse()->appendContent('Would add "resources.layout.layoutPath" key to the application config file.');
} else {
- $applicationConfigResource->addStringItem('resources.layout.layoutPath', $layoutPath, 'production', false);
- $applicationConfigResource->create();
+ $applicationConfigResource->addStringItem('resources.layout.layoutPath', $this->_layoutPath, 'production', false);
+ $applicationConfigResource->create();
+
+ $this->_registry->getResponse()->appendContent('A layout entry has been added to the application config file.');
$layoutScriptFile = self::createResource($profile);
-
- $layoutScriptFile->create();
-
- $this->_registry->getResponse()->appendContent(
- 'Layouts have been enabled, and a default layout created at '
- . $layoutScriptFile->getPath()
- );
-
- $this->_registry->getResponse()->appendContent('A layout entry has been added to the application config file.');
+ if (!$layoutScriptFile->exists()) {
+ $layoutScriptFile->create();
+ $this->_registry->getResponse()->appendContent(
+ 'A default layout has been created at '
+ . $layoutScriptFile->getPath()
+ );
+
+ }
+
+ $this->_storeProfile();
}
-
-
-
}
-
+
public function disable()
{
- // @todo
+ $profile = $this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
+
+ $applicationConfigResource = $this->_getApplicationConfigResource($profile);
+ $zc = $applicationConfigResource->getAsZendConfig();
+
+ if (isset($zc->resources) && !isset($zc->resources->layout)) {
+ $this->_registry->getResponse()->appendContent('No layout configuration exists in application config file.');
+ return;
+ }
+
+ if ($this->_registry->getRequest()->isPretend()) {
+ $this->_registry->getResponse()->appendContent('Would remove "resources.layout.layoutPath" key from the application config file.');
+ } else {
+
+ // Remove the resources.layout.layoutPath directive from application config
+ $applicationConfigResource->removeStringItem('resources.layout.layoutPath', $this->_layoutPath, 'production', false);
+ $applicationConfigResource->create();
+
+ // Tell the user about the good work we've done
+ $this->_registry->getResponse()->appendContent('Layout entry has been removed from the application config file.');
+
+ $this->_storeProfile();
+ }
+ }
+
+ protected function _getApplicationConfigResource(Zend_Tool_Project_Profile $profile)
+ {
+ $applicationConfigResource = $profile->search('ApplicationConfigFile');
+ if (!$applicationConfigResource) {
+ throw new Zend_Tool_Project_Exception('A project with an application config file is required to use this provider.');
+ }
+
+ return $applicationConfigResource;
}
-
-
-
}
--- a/web/lib/Zend/Tool/Project/Provider/Manifest.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Manifest.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Manifest.php 22607 2010-07-17 08:39:49Z torio $
+ * @version $Id: Manifest.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Manifest implements
@@ -43,33 +43,33 @@
public function getProviders()
{
// the order here will represent what the output will look like when iterating a manifest
-
+
return array(
// top level project & profile providers
'Zend_Tool_Project_Provider_Profile',
'Zend_Tool_Project_Provider_Project',
-
+
// app layer provider
'Zend_Tool_Project_Provider_Application',
-
+
// MVC layer providers
'Zend_Tool_Project_Provider_Model',
'Zend_Tool_Project_Provider_View',
'Zend_Tool_Project_Provider_Controller',
'Zend_Tool_Project_Provider_Action',
-
+
// hMVC provider
'Zend_Tool_Project_Provider_Module',
-
+
// application problem providers
'Zend_Tool_Project_Provider_Form',
'Zend_Tool_Project_Provider_Layout',
'Zend_Tool_Project_Provider_DbAdapter',
'Zend_Tool_Project_Provider_DbTable',
-
+
// provider within project provider
'Zend_Tool_Project_Provider_ProjectProvider',
-
+
);
}
}
--- a/web/lib/Zend/Tool/Project/Provider/Model.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Model.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,15 +15,15 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Model.php 20851 2010-02-02 21:45:51Z ralph $
+ * @version $Id: Model.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Model extends Zend_Tool_Project_Provider_Abstract
@@ -45,7 +45,7 @@
}
$newModel = $modelsDirectory->createResource(
- 'modelFile',
+ 'modelFile',
array('modelName' => $modelName, 'moduleName' => $moduleName)
);
@@ -67,9 +67,14 @@
}
$modelsDirectory = self::_getModelsDirectoryResource($profile, $moduleName);
+
+ if (!$modelsDirectory instanceof Zend_Tool_Project_Profile_Resource) {
+ return false;
+ }
+
return (($modelsDirectory->search(array('modelFile' => array('modelName' => $modelName)))) instanceof Zend_Tool_Project_Profile_Resource);
}
-
+
/**
* _getModelsDirectoryResource()
*
@@ -89,7 +94,7 @@
return $profile->search($profileSearchParams);
}
-
+
/**
* Create a new model
*
@@ -101,9 +106,9 @@
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
$originalName = $name;
-
+
$name = ucwords($name);
-
+
// determine if testing is enabled in the project
$testingEnabled = false; //Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
$testModelResource = null;
@@ -112,18 +117,18 @@
if (preg_match('#[_-]#', $name)) {
throw new Zend_Tool_Project_Provider_Exception('Model names should be camel cased.');
}
-
+
if (self::hasResource($this->_loadedProfile, $name, $module)) {
throw new Zend_Tool_Project_Provider_Exception('This project already has a model named ' . $name);
}
-
+
// get request/response object
$request = $this->_registry->getRequest();
$response = $this->_registry->getResponse();
-
+
// alert the user about inline converted names
$tense = (($request->isPretend()) ? 'would be' : 'is');
-
+
if ($name !== $originalName) {
$response->appendContent(
'Note: The canonical model name that ' . $tense
@@ -132,7 +137,7 @@
array('color' => array('yellow'))
);
}
-
+
try {
$modelResource = self::createResource($this->_loadedProfile, $name, $module);
--- a/web/lib/Zend/Tool/Project/Provider/Module.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Module.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Module.php 23419 2010-11-20 21:37:46Z ramon $
+ * @version $Id: Module.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -43,7 +43,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Module
@@ -136,6 +136,10 @@
{
$this->_loadProfile(self::NO_PROFILE_THROW_EXCEPTION);
+ // determine if testing is enabled in the project
+ require_once 'Zend/Tool/Project/Provider/Test.php';
+ //$testingEnabled = Zend_Tool_Project_Provider_Test::isTestingEnabled($this->_loadedProfile);
+
$resources = self::createResources($this->_loadedProfile, $name);
$response = $this->_registry->getResponse();
--- a/web/lib/Zend/Tool/Project/Provider/Profile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Profile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Profile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Profile.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Profile extends Zend_Tool_Project_Provider_Abstract
--- a/web/lib/Zend/Tool/Project/Provider/Project.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Project.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Project.php 20898 2010-02-04 07:03:46Z ralph $
+ * @version $Id: Project.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Project
@@ -91,13 +91,18 @@
$newProfile->loadFromData();
$response = $this->_registry->getResponse();
-
+
$response->appendContent('Creating project at ' . $path);
$response->appendContent('Note: ', array('separator' => false, 'color' => 'yellow'));
$response->appendContent(
'This command created a web project, '
. 'for more information setting up your VHOST, please see docs/README');
+ if (!Zend_Tool_Project_Provider_Test::isPHPUnitAvailable()) {
+ $response->appendContent('Testing Note: ', array('separator' => false, 'color' => 'yellow'));
+ $response->appendContent('PHPUnit was not found in your include_path, therefore no testing actions will be created.');
+ }
+
foreach ($newProfile->getIterator() as $resource) {
$resource->create();
}
@@ -120,13 +125,19 @@
protected function _getDefaultProfile()
{
+ $testAction = '';
+ if (Zend_Tool_Project_Provider_Test::isPHPUnitAvailable()) {
+ $testAction = ' <testApplicationActionMethod forActionName="index" />';
+ }
+
+ $version = Zend_Version::VERSION;
+
$data = <<<EOS
<?xml version="1.0" encoding="UTF-8"?>
-<projectProfile type="default" version="1.10">
+<projectProfile type="default" version="$version">
<projectDirectory>
<projectProfileFile />
<applicationDirectory>
- <apisDirectory enabled="false" />
<configsDirectory>
<applicationConfigFile type="ini" />
</configsDirectory>
@@ -140,6 +151,7 @@
<layoutsDirectory enabled="false" />
<modelsDirectory />
<modulesDirectory enabled="false" />
+ <servicesDirectory enabled="false" />
<viewsDirectory>
<viewScriptsDirectory>
<viewControllerScriptsDirectory forControllerName="Index">
@@ -179,19 +191,22 @@
<temporaryDirectory enabled="false" />
<testsDirectory>
<testPHPUnitConfigFile />
+ <testPHPUnitBootstrapFile />
<testApplicationDirectory>
- <testApplicationBootstrapFile />
- </testApplicationDirectory>
- <testLibraryDirectory>
- <testLibraryBootstrapFile />
- </testLibraryDirectory>
+ <testApplicationControllerDirectory>
+ <testApplicationControllerFile filesystemName="IndexControllerTest.php" forControllerName="Index">
+$testAction
+ </testApplicationControllerFile>
+ </testApplicationControllerDirectory>
+ </testApplicationDirectory>
+ <testLibraryDirectory />
</testsDirectory>
</projectDirectory>
</projectProfile>
EOS;
return $data;
}
-
+
public static function getDefaultReadmeContents($caller = null)
{
$projectDirResource = $caller->getResource()->getProfile()->search('projectDirectory');
@@ -201,13 +216,13 @@
} else {
$path = '/path/to/public';
}
-
+
return <<< EOS
README
======
This directory should be used to place project specfic documentation including
-but not limited to project notes, generated API/phpdoc documentation, or
+but not limited to project notes, generated API/phpdoc documentation, or
manual files generated or hand written. Ideally, this directory would remain
in your development environment only and should not be deployed with your
application to it's final production location.
@@ -224,14 +239,14 @@
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
-
+
<Directory "$path">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
-
+
</VirtualHost>
EOS;
--- a/web/lib/Zend/Tool/Project/Provider/ProjectProvider.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/ProjectProvider.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ProjectProvider.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ProjectProvider.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Tool_Project_Provider_Abstract */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_ProjectProvider extends Zend_Tool_Project_Provider_Abstract
--- a/web/lib/Zend/Tool/Project/Provider/Test.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/Test.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Test.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Test.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_Test extends Zend_Tool_Project_Provider_Abstract
@@ -55,6 +55,21 @@
return $testsDirectory->isEnabled();
}
+ public static function isPHPUnitAvailable()
+ {
+ if (class_exists('PHPUnit_Runner_Version', false)) {
+ return true;
+ }
+
+ $included = @include 'PHPUnit/Runner/Version.php';
+
+ if ($included === false) {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
/**
* createApplicationResource()
*
@@ -76,22 +91,32 @@
$testsDirectoryResource = $profile->search('testsDirectory');
- if (($testAppDirectoryResource = $testsDirectoryResource->search('testApplicationDirectory')) === false) {
- $testAppDirectoryResource = $testsDirectoryResource->createResource('testApplicationDirectory');
+ // parentOfController could either be application/ or a particular module folder, which is why we use this name
+ if (($testParentOfControllerDirectoryResource = $testsDirectoryResource->search('testApplicationDirectory')) === false) {
+ $testParentOfControllerDirectoryResource = $testsDirectoryResource->createResource('testApplicationDirectory');
}
if ($moduleName) {
- //@todo $moduleName
- $moduleName = '';
+ if (($testAppModulesDirectoryResource = $testParentOfControllerDirectoryResource->search('testApplicationModulesDirectory')) === false) {
+ $testAppModulesDirectoryResource = $testParentOfControllerDirectoryResource->createResource('testApplicationModulesDirectory');
+ }
+
+ if (($testAppModuleDirectoryResource = $testAppModulesDirectoryResource->search(array('testApplicationModuleDirectory' => array('forModuleName' => $moduleName)))) === false) {
+ $testAppModuleDirectoryResource = $testAppModulesDirectoryResource->createResource('testApplicationModuleDirectory', array('forModuleName' => $moduleName));
+ }
+
+ $testParentOfControllerDirectoryResource = $testAppModuleDirectoryResource;
}
- if (($testAppControllerDirectoryResource = $testAppDirectoryResource->search('testApplicationControllerDirectory')) === false) {
- $testAppControllerDirectoryResource = $testAppDirectoryResource->createResource('testApplicationControllerDirectory');
+ if (($testAppControllerDirectoryResource = $testParentOfControllerDirectoryResource->search('testApplicationControllerDirectory', 'testApplicationModuleDirectory')) === false) {
+ $testAppControllerDirectoryResource = $testParentOfControllerDirectoryResource->createResource('testApplicationControllerDirectory');
}
- $testAppControllerFileResource = $testAppControllerDirectoryResource->createResource('testApplicationControllerFile', array('forControllerName' => $controllerName));
-
- return $testAppControllerFileResource;
+ if (($testAppControllerFileResource = $testAppControllerDirectoryResource->search(array('testApplicationControllerFile' => array('forControllerName' => $controllerName)))) === false) {
+ $testAppControllerFileResource = $testAppControllerDirectoryResource->createResource('testApplicationControllerFile', array('forControllerName' => $controllerName));
+ }
+
+ return $testAppControllerFileResource->createResource('testApplicationActionMethod', array('forActionName' => $actionName));
}
/**
@@ -120,7 +145,6 @@
$currentDirectoryResource = $libraryDirectoryResource;
}
-
} else {
if (($libraryFileResource = $currentDirectoryResource->search(array('TestLibraryFile' => array('forClassName' => $libraryClassName)))) === false) {
@@ -147,7 +171,7 @@
/**
* create()
*
- * @param unknown_type $libraryClassName
+ * @param string $libraryClassName
*/
public function create($libraryClassName)
{
--- a/web/lib/Zend/Tool/Project/Provider/View.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Tool/Project/Provider/View.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Tool
* @subpackage Framework
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: View.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: View.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Tool
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Tool_Project_Provider_View extends Zend_Tool_Project_Provider_Abstract
@@ -90,7 +90,7 @@
* @param string $controllerName
* @param string $actionNameOrSimpleName
*/
- public function create($controllerName, $actionNameOrSimpleName)
+ public function create($controllerName, $actionNameOrSimpleName, $module = null)
{
if ($controllerName == '' || $actionNameOrSimpleName == '') {
@@ -100,7 +100,7 @@
$profile = $this->_loadProfile();
- $view = self::createResource($profile, $actionNameOrSimpleName, $controllerName);
+ $view = self::createResource($profile, $actionNameOrSimpleName, $controllerName, $module);
if ($this->_registry->getRequest()->isPretend()) {
$this->_registry->getResponse(
--- a/web/lib/Zend/Translate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Translate.php 22591 2010-07-16 20:58:05Z thomas $
+ * @version $Id: Translate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate {
--- a/web/lib/Zend/Translate/Adapter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Translate
* @subpackage Zend_Translate_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Adapter.php 22726 2010-07-30 10:52:07Z thomas $
+ * @version $Id: Adapter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_Translate
* @subpackage Zend_Translate_Adapter
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Translate_Adapter {
@@ -212,6 +212,11 @@
} else if (!is_array($options)) {
$options = array('content' => $options);
}
+
+ if (!isset($options['content']) || empty($options['content'])) {
+ require_once 'Zend/Translate/Exception.php';
+ throw new Zend_Translate_Exception("Required option 'content' is missing");
+ }
$originate = null;
if (!empty($options['locale'])) {
@@ -240,9 +245,15 @@
if (is_string($options['content']) and is_dir($options['content'])) {
$options['content'] = realpath($options['content']);
$prev = '';
- foreach (new RecursiveIteratorIterator(
- new RecursiveDirectoryIterator($options['content'], RecursiveDirectoryIterator::KEY_AS_PATHNAME),
- RecursiveIteratorIterator::SELF_FIRST) as $directory => $info) {
+ $iterator = new RecursiveIteratorIterator(
+ new RecursiveRegexIterator(
+ new RecursiveDirectoryIterator($options['content'], RecursiveDirectoryIterator::KEY_AS_PATHNAME),
+ '/^(?!.*(\.svn|\.cvs)).*$/', RecursiveRegexIterator::MATCH
+ ),
+ RecursiveIteratorIterator::SELF_FIRST
+ );
+
+ foreach ($iterator as $directory => $info) {
$file = $info->getFilename();
if (is_array($options['ignore'])) {
foreach ($options['ignore'] as $key => $ignore) {
@@ -310,6 +321,8 @@
}
}
}
+
+ unset($iterator);
} else {
$this->_addTranslationData($options);
}
@@ -464,7 +477,7 @@
/**
* Returns the available languages from this adapter
*
- * @return array
+ * @return array|null
*/
public function getList()
{
--- a/web/lib/Zend/Translate/Adapter/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Array extends Zend_Translate_Adapter
--- a/web/lib/Zend/Translate/Adapter/Csv.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Csv.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Csv.php 21661 2010-03-27 20:20:27Z thomas $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Csv.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Csv extends Zend_Translate_Adapter
--- a/web/lib/Zend/Translate/Adapter/Gettext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Gettext.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Gettext.php 22653 2010-07-22 18:41:39Z mabe $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Gettext.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Gettext extends Zend_Translate_Adapter {
@@ -72,6 +72,7 @@
throw new Zend_Translate_Exception('Error opening translation file \'' . $filename . '\'.');
}
if (@filesize($filename) < 10) {
+ @fclose($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file');
}
@@ -83,6 +84,7 @@
} else if (strtolower(substr(dechex($input[1]), -8)) == "de120495") {
$this->_bigEndian = true;
} else {
+ @fclose($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file');
}
@@ -131,6 +133,8 @@
}
}
}
+
+ @fclose($this->_file);
$this->_data[$locale][''] = trim($this->_data[$locale]['']);
if (empty($this->_data[$locale][''])) {
--- a/web/lib/Zend/Translate/Adapter/Ini.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Ini.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Ini.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Ini.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Ini extends Zend_Translate_Adapter
--- a/web/lib/Zend/Translate/Adapter/Qt.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Qt.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Qt.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Qt.php 24649 2012-02-26 03:37:54Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Qt extends Zend_Translate_Adapter {
@@ -74,9 +74,10 @@
xml_set_character_data_handler($this->_file, "_contentElement");
if (!xml_parse($this->_file, file_get_contents($filename))) {
- $ex = sprintf('XML error: %s at line %d',
+ $ex = sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file)),
- xml_get_current_line_number($this->_file));
+ xml_get_current_line_number($this->_file),
+ $filename);
xml_parser_free($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception($ex);
--- a/web/lib/Zend/Translate/Adapter/Tbx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Tbx.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Tbx.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Tbx.php 24649 2012-02-26 03:37:54Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Tbx extends Zend_Translate_Adapter {
@@ -69,9 +69,10 @@
xml_set_character_data_handler($this->_file, "_contentElement");
if (!xml_parse($this->_file, file_get_contents($filename))) {
- $ex = sprintf('XML error: %s at line %d',
+ $ex = sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file)),
- xml_get_current_line_number($this->_file));
+ xml_get_current_line_number($this->_file),
+ $filename);
xml_parser_free($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception($ex);
--- a/web/lib/Zend/Translate/Adapter/Tmx.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Tmx.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Tmx.php 21049 2010-02-13 22:52:52Z thomas $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Tmx.php 24649 2012-02-26 03:37:54Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Tmx extends Zend_Translate_Adapter {
@@ -74,9 +74,10 @@
xml_set_character_data_handler($this->_file, "_contentElement");
if (!xml_parse($this->_file, file_get_contents($filename))) {
- $ex = sprintf('XML error: %s at line %d',
+ $ex = sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file)),
- xml_get_current_line_number($this->_file));
+ xml_get_current_line_number($this->_file),
+ $filename);
xml_parser_free($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception($ex);
--- a/web/lib/Zend/Translate/Adapter/Xliff.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/Xliff.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Xliff.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Xliff.php 24649 2012-02-26 03:37:54Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_Xliff extends Zend_Translate_Adapter {
@@ -81,9 +81,10 @@
xml_set_character_data_handler($this->_file, "_contentElement");
if (!xml_parse($this->_file, file_get_contents($filename))) {
- $ex = sprintf('XML error: %s at line %d',
+ $ex = sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file)),
- xml_get_current_line_number($this->_file));
+ xml_get_current_line_number($this->_file),
+ $filename);
xml_parser_free($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception($ex);
--- a/web/lib/Zend/Translate/Adapter/XmlTm.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Adapter/XmlTm.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: XmlTm.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: XmlTm.php 24649 2012-02-26 03:37:54Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Adapter_XmlTm extends Zend_Translate_Adapter {
@@ -69,9 +69,10 @@
xml_set_character_data_handler($this->_file, "_contentElement");
if (!xml_parse($this->_file, file_get_contents($filename))) {
- $ex = sprintf('XML error: %s at line %d',
+ $ex = sprintf('XML error: %s at line %d of file %s',
xml_error_string(xml_get_error_code($this->_file)),
- xml_get_current_line_number($this->_file));
+ xml_get_current_line_number($this->_file),
+ $filename);
xml_parser_free($this->_file);
require_once 'Zend/Translate/Exception.php';
throw new Zend_Translate_Exception($ex);
--- a/web/lib/Zend/Translate/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_Translate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Exception extends Zend_Exception
--- a/web/lib/Zend/Translate/Plural.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Translate/Plural.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Plural.php 22518 2010-07-04 11:05:10Z thomas $
+ * @version $Id: Plural.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Locale
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Translate_Plural
--- a/web/lib/Zend/Uri.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Uri.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Uri.php 23376 2010-11-18 21:19:24Z bittarman $
+ * @version $Id: Uri.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Uri
--- a/web/lib/Zend/Uri/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Uri/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Uri_Exception extends Zend_Exception
--- a/web/lib/Zend/Uri/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Uri/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 23409 2010-11-19 19:55:25Z bittarman $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Uri
* @uses Zend_Uri
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Uri_Http extends Zend_Uri
@@ -217,24 +217,20 @@
// Additional decomposition to get username, password, host, and port
$combo = isset($matches[3]) === true ? $matches[3] : '';
- $pattern = '~^(([^:@]*)(:([^@]*))?@)?([^:]+)(:(.*))?$~';
+ $pattern = '~^(([^:@]*)(:([^@]*))?@)?((?(?=[[])[[][^]]+[]]|[^:]+))(:(.*))?$~';
$status = @preg_match($pattern, $combo, $matches);
if ($status === false) {
require_once 'Zend/Uri/Exception.php';
throw new Zend_Uri_Exception('Internal error: authority decomposition failed');
}
-
- // Failed decomposition; no further processing needed
- if ($status === false) {
- return;
- }
-
+
// Save remaining URI components
$this->_username = isset($matches[2]) === true ? $matches[2] : '';
$this->_password = isset($matches[4]) === true ? $matches[4] : '';
- $this->_host = isset($matches[5]) === true ? $matches[5] : '';
+ $this->_host = isset($matches[5]) === true
+ ? preg_replace('~^\[([^]]+)\]$~', '\1', $matches[5]) // Strip wrapper [] from IPv6 literal
+ : '';
$this->_port = isset($matches[7]) === true ? $matches[7] : '';
-
}
/**
--- a/web/lib/Zend/Validate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Validate.php 21339 2010-03-05 15:32:25Z thomas $
+ * @version $Id: Validate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate implements Zend_Validate_Interface
--- a/web/lib/Zend/Validate/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22472 2010-06-20 07:36:16Z thomas $
+ * @version $Id: Abstract.php 25105 2012-11-07 20:33:22Z rob $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Validate_Abstract implements Zend_Validate_Interface
@@ -230,16 +230,20 @@
$value = $value->__toString();
}
} else {
- $value = (string)$value;
+ $value = implode((array) $value);
}
if ($this->getObscureValue()) {
$value = str_repeat('*', strlen($value));
}
- $message = str_replace('%value%', (string) $value, $message);
+ $message = str_replace('%value%', $value, $message);
foreach ($this->_messageVariables as $ident => $property) {
- $message = str_replace("%$ident%", (string) $this->$property, $message);
+ $message = str_replace(
+ "%$ident%",
+ implode(' ', (array) $this->$property),
+ $message
+ );
}
$length = self::getMessageLength();
--- a/web/lib/Zend/Validate/Alnum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Alnum.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Alnum.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Alnum.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Alnum extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Alpha.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Alpha.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Alpha.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Alpha.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Alpha extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Barcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Barcode.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Barcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Barcode/AdapterAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/AdapterAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterAbstract.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: AdapterAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/AdapterInterface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/AdapterInterface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: AdapterInterface.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: AdapterInterface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Validate_Barcode_AdapterInterface
--- a/web/lib/Zend/Validate/Barcode/Code25.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code25.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code25.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code25.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code25 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Code25interleaved.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code25interleaved.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code25interleaved.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code25interleaved.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code25interleaved extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Code39.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code39.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code39.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code39.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code39 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Code39ext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code39ext.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code39ext.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code39ext.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code39ext extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Code93.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code93.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code93.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code93.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code93 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Code93ext.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Code93ext.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Code93ext.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Code93ext.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Code93ext extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean12.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean12.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean12.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean12.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean12 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean13.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean13.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean13.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ean13.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean13 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean14.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean14.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean14.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean14.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean14 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean18.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean18.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean18.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean18.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean18 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean2.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean2.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean2.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean2.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean2 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean5.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean5.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean5.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean5.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean5 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Ean8.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Ean8.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ean8.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Ean8.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Ean8 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Gtin12.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Gtin12.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gtin12.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Gtin12.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Gtin12 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Gtin13.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Gtin13.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gtin13.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Gtin13.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Gtin13 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Gtin14.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Gtin14.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Gtin14.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Gtin14.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Gtin14 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Identcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Identcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Identcode.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Identcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Identcode extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Intelligentmail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Intelligentmail.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Intelligentmail.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Intelligentmail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_IntelligentMail extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Issn.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Issn.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Issn.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Issn.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Issn extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Itf14.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Itf14.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Itf14.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Itf14.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Itf14 extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Leitcode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Leitcode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Leitcode.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Leitcode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Leitcode extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Planet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Planet.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Planet.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Planet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Planet extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Postnet.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Postnet.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Postnet.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Postnet.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Postnet extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Royalmail.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Royalmail.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Royalmail.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Royalmail.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Royalmail extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Sscc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Sscc.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sscc.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Sscc.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Sscc extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Upca.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Upca.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Upca.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Upca.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Upca extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Barcode/Upce.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Barcode/Upce.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Upce.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Upce.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Barcode_Upce extends Zend_Validate_Barcode_AdapterAbstract
--- a/web/lib/Zend/Validate/Between.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Between.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Between.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Between.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Between extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Callback.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Callback.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Callback.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Callback.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Callback extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Ccnum.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Ccnum.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ccnum.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Ccnum.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Ccnum extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/CreditCard.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/CreditCard.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: CreditCard.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: CreditCard.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_CreditCard extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Date.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Date.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Date.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Date.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Date extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Db/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Db/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 23356 2010-11-18 15:59:10Z ralph $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Validate
* @uses Zend_Validate_Abstract
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_Validate_Db_Abstract extends Zend_Validate_Abstract
@@ -276,7 +276,7 @@
/**
* Sets the select object to be used by the validator
- *
+ *
* @param Zend_Db_Select $select
* @return Zend_Validate_Db_Abstract
*/
--- a/web/lib/Zend/Validate/Db/NoRecordExists.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Db/NoRecordExists.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NoRecordExists.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: NoRecordExists.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Validate
* @uses Zend_Validate_Db_Abstract
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Db_NoRecordExists extends Zend_Validate_Db_Abstract
--- a/web/lib/Zend/Validate/Db/RecordExists.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Db/RecordExists.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: RecordExists.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: RecordExists.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -30,7 +30,7 @@
* @category Zend
* @package Zend_Validate
* @uses Zend_Validate_Db_Abstract
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Db_RecordExists extends Zend_Validate_Db_Abstract
--- a/web/lib/Zend/Validate/Digits.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Digits.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Digits.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Digits.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Digits extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/EmailAddress.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/EmailAddress.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: EmailAddress.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: EmailAddress.php 25057 2012-11-02 20:35:40Z rob $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_EmailAddress extends Zend_Validate_Abstract
@@ -52,28 +52,37 @@
*/
protected $_messageTemplates = array(
self::INVALID => "Invalid type given. String expected",
- self::INVALID_FORMAT => "'%value%' is no valid email address in the basic format local-part@hostname",
- self::INVALID_HOSTNAME => "'%hostname%' is no valid hostname for email address '%value%'",
+ self::INVALID_FORMAT => "'%value%' is not a valid email address in the basic format local-part@hostname",
+ self::INVALID_HOSTNAME => "'%hostname%' is not a valid hostname for email address '%value%'",
self::INVALID_MX_RECORD => "'%hostname%' does not appear to have a valid MX record for the email address '%value%'",
self::INVALID_SEGMENT => "'%hostname%' is not in a routable network segment. The email address '%value%' should not be resolved from public network",
self::DOT_ATOM => "'%localPart%' can not be matched against dot-atom format",
self::QUOTED_STRING => "'%localPart%' can not be matched against quoted-string format",
- self::INVALID_LOCAL_PART => "'%localPart%' is no valid local part for email address '%value%'",
+ self::INVALID_LOCAL_PART => "'%localPart%' is not a valid local part for email address '%value%'",
self::LENGTH_EXCEEDED => "'%value%' exceeds the allowed length",
);
/**
+ * As of RFC5753 (JAN 2010), the following blocks are no logner reserved:
+ * - 128.0.0.0/16
+ * - 191.255.0.0/16
+ * - 223.255.255.0/24
+ * @see http://tools.ietf.org/html/rfc5735#page-6
+ *
+ * As of RFC6598 (APR 2012), the following blocks are now reserved:
+ * - 100.64.0.0/10
+ * @see http://tools.ietf.org/html/rfc6598#section-7
+ *
* @see http://en.wikipedia.org/wiki/IPv4
* @var array
*/
protected $_invalidIp = array(
'0' => '0.0.0.0/8',
'10' => '10.0.0.0/8',
+ '100' => '100.64.0.0/10',
'127' => '127.0.0.0/8',
- '128' => '128.0.0.0/16',
'169' => '169.254.0.0/16',
'172' => '172.16.0.0/12',
- '191' => '191.255.0.0/16',
'192' => array(
'192.0.0.0/24',
'192.0.2.0/24',
@@ -81,7 +90,6 @@
'192.168.0.0/16'
),
'198' => '198.18.0.0/15',
- '223' => '223.255.255.0/24',
'224' => '224.0.0.0/4',
'240' => '240.0.0.0/4'
);
@@ -177,6 +185,8 @@
} else {
$this->setHostnameValidator($options['hostname']);
}
+ } elseif ($this->_options['hostname'] == null) {
+ $this->setHostnameValidator();
}
if (array_key_exists('mx', $options)) {
@@ -205,17 +215,17 @@
*/
public function setMessage($messageString, $messageKey = null)
{
- $messageKeys = $messageKey;
if ($messageKey === null) {
- $keys = array_keys($this->_messageTemplates);
- $messageKeys = current($keys);
+ $this->_options['hostname']->setMessage($messageString);
+ parent::setMessage($messageString);
+ return $this;
}
- if (!isset($this->_messageTemplates[$messageKeys])) {
+ if (!isset($this->_messageTemplates[$messageKey])) {
$this->_options['hostname']->setMessage($messageString, $messageKey);
}
- $this->_messageTemplates[$messageKeys] = $messageString;
+ $this->_messageTemplates[$messageKey] = $messageString;
return $this;
}
--- a/web/lib/Zend/Validate/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Exception extends Zend_Exception
--- a/web/lib/Zend/Validate/File/Count.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Count.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Count.php 21325 2010-03-04 20:26:36Z thomas $
+ * @version $Id: Count.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Count extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/Crc32.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Crc32.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Crc32.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Crc32.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Crc32 extends Zend_Validate_File_Hash
--- a/web/lib/Zend/Validate/File/ExcludeExtension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/ExcludeExtension.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ExcludeExtension.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: ExcludeExtension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_ExcludeExtension extends Zend_Validate_File_Extension
--- a/web/lib/Zend/Validate/File/ExcludeMimeType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/ExcludeMimeType.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ExcludeMimeType.php 21935 2010-04-18 16:21:35Z thomas $
+ * @version $Id: ExcludeMimeType.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_ExcludeMimeType extends Zend_Validate_File_MimeType
--- a/web/lib/Zend/Validate/File/Exists.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Exists.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exists.php 20352 2010-01-17 17:55:38Z thomas $
+ * @version $Id: Exists.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Exists extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/Extension.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Extension.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Extension.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Extension.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Extension extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/FilesSize.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/FilesSize.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FilesSize.php 20454 2010-01-20 22:50:59Z thomas $
+ * @version $Id: FilesSize.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_FilesSize extends Zend_Validate_File_Size
--- a/web/lib/Zend/Validate/File/Hash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Hash.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hash.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Hash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Hash extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/ImageSize.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/ImageSize.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ImageSize.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: ImageSize.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_ImageSize extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/IsCompressed.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/IsCompressed.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IsCompressed.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: IsCompressed.php 24702 2012-03-28 20:08:40Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_IsCompressed extends Zend_Validate_File_MimeType
@@ -94,6 +94,7 @@
'application/x-stuffit',
'application/x-tar',
'application/zip',
+ 'application/x-zip',
'application/zoo',
'multipart/x-gzip',
);
--- a/web/lib/Zend/Validate/File/IsImage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/IsImage.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IsImage.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: IsImage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_IsImage extends Zend_Validate_File_MimeType
--- a/web/lib/Zend/Validate/File/Md5.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Md5.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Md5.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Md5.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Md5 extends Zend_Validate_File_Hash
--- a/web/lib/Zend/Validate/File/MimeType.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/MimeType.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: MimeType.php 22832 2010-08-12 18:02:41Z thomas $
+ * @version $Id: MimeType.php 25175 2012-12-22 20:47:08Z rob $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_MimeType extends Zend_Validate_Abstract
@@ -103,6 +103,12 @@
);
/**
+ * Indicates whether use of $_magicFiles should be attempted.
+ * @var boolean
+ */
+ protected $_tryCommonMagicFiles = true;
+
+ /**
* Option to allow header check
*
* @var boolean
@@ -144,14 +150,22 @@
/**
* Returns the actual set magicfile
*
+ * Note that for PHP 5.3.0 or higher, we don't use $_ENV['MAGIC'] or try to
+ * find a magic file in a common location as PHP now has a built-in internal
+ * magic file.
+ *
* @return string
*/
public function getMagicFile()
{
- if (null === $this->_magicfile) {
+ if (version_compare(PHP_VERSION, '5.3.0', '<')
+ && null === $this->_magicfile) {
if (!empty($_ENV['MAGIC'])) {
$this->setMagicFile($_ENV['MAGIC']);
- } elseif (!(@ini_get("safe_mode") == 'On' || @ini_get("safe_mode") === 1)) {
+ } elseif (
+ !(@ini_get("safe_mode") == 'On' || @ini_get("safe_mode") === 1)
+ && $this->shouldTryCommonMagicFiles() // @see ZF-11784
+ ) {
require_once 'Zend/Validate/Exception.php';
foreach ($this->_magicFiles as $file) {
// supressing errors which are thrown due to openbase_dir restrictions
@@ -210,6 +224,32 @@
}
/**
+ * Enables or disables attempts to try the common magic file locations
+ * specified by Zend_Validate_File_MimeType::_magicFiles
+ *
+ * @param boolean $flag
+ * @return Zend_Validate_File_MimeType Provides fluent interface
+ * @see http://framework.zend.com/issues/browse/ZF-11784
+ */
+ public function setTryCommonMagicFilesFlag($flag = true)
+ {
+ $this->_tryCommonMagicFiles = (boolean) $flag;
+
+ return $this;
+ }
+
+ /**
+ * Accessor for Zend_Validate_File_MimeType::_magicFiles
+ *
+ * @return boolean
+ * @see http://framework.zend.com/issues/browse/ZF-11784
+ */
+ public function shouldTryCommonMagicFiles()
+ {
+ return $this->_tryCommonMagicFiles;
+ }
+
+ /**
* Returns the Header Check option
*
* @return boolean
--- a/web/lib/Zend/Validate/File/NotExists.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/NotExists.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NotExists.php 20352 2010-01-17 17:55:38Z thomas $
+ * @version $Id: NotExists.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_NotExists extends Zend_Validate_File_Exists
--- a/web/lib/Zend/Validate/File/Sha1.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Sha1.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sha1.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Sha1.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Sha1 extends Zend_Validate_File_Hash
--- a/web/lib/Zend/Validate/File/Size.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Size.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Size.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Size.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Size extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/File/Upload.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/Upload.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Upload.php 22398 2010-06-09 19:05:46Z thomas $
+ * @version $Id: Upload.php 24959 2012-06-15 13:51:04Z adamlundrigan $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_Upload extends Zend_Validate_Abstract
@@ -136,6 +136,11 @@
$this->_files = $files;
}
+ // see ZF-10738
+ if (is_null($this->_files)) {
+ $this->_files = array();
+ }
+
foreach($this->_files as $file => $content) {
if (!isset($content['error'])) {
unset($this->_files[$file]);
@@ -180,40 +185,40 @@
switch($content['error']) {
case 0:
if (!is_uploaded_file($content['tmp_name'])) {
- $this->_throw($file, self::ATTACK);
+ $this->_throw($content, self::ATTACK);
}
break;
case 1:
- $this->_throw($file, self::INI_SIZE);
+ $this->_throw($content, self::INI_SIZE);
break;
case 2:
- $this->_throw($file, self::FORM_SIZE);
+ $this->_throw($content, self::FORM_SIZE);
break;
case 3:
- $this->_throw($file, self::PARTIAL);
+ $this->_throw($content, self::PARTIAL);
break;
case 4:
- $this->_throw($file, self::NO_FILE);
+ $this->_throw($content, self::NO_FILE);
break;
case 6:
- $this->_throw($file, self::NO_TMP_DIR);
+ $this->_throw($content, self::NO_TMP_DIR);
break;
case 7:
- $this->_throw($file, self::CANT_WRITE);
+ $this->_throw($content, self::CANT_WRITE);
break;
case 8:
- $this->_throw($file, self::EXTENSION);
+ $this->_throw($content, self::EXTENSION);
break;
default:
- $this->_throw($file, self::UNKNOWN);
+ $this->_throw($content, self::UNKNOWN);
break;
}
}
--- a/web/lib/Zend/Validate/File/WordCount.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/File/WordCount.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: WordCount.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: WordCount.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_File_WordCount extends Zend_Validate_File_Count
--- a/web/lib/Zend/Validate/Float.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Float.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Float.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Float.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Float extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/GreaterThan.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/GreaterThan.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GreaterThan.php 20352 2010-01-17 17:55:38Z thomas $
+ * @version $Id: GreaterThan.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_GreaterThan extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Hex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hex.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hex.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Hex.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Hex extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Hostname.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hostname.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Hostname.php 22830 2010-08-12 16:05:09Z thomas $
+ * @version $Id: Hostname.php 25061 2012-11-02 21:24:09Z rob $
*/
/**
@@ -41,7 +41,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Hostname extends Zend_Validate_Abstract
@@ -100,12 +100,12 @@
/**
* Allows all types of hostnames
*/
- const ALLOW_ALL = 7;
+ const ALLOW_URI = 8;
/**
* Allows all types of hostnames
*/
- const ALLOW_URI = 8;
+ const ALLOW_ALL = 15;
/**
* Array of valid top-level-domains
@@ -133,7 +133,7 @@
'sm', 'sn', 'so', 'sr', 'st', 'su', 'sv', 'sy', 'sz', 'tc', 'td', 'tel', 'tf', 'tg', 'th',
'tj', 'tk', 'tl', 'tm', 'tn', 'to', 'tp', 'tr', 'travel', 'tt', 'tv', 'tw', 'tz', 'ua',
'ug', 'uk', 'um', 'us', 'uy', 'uz', 'va', 'vc', 've', 'vg', 'vi', 'vn', 'vu', 'wf', 'ws',
- 'ye', 'yt', 'yu', 'za', 'zm', 'zw'
+ 'xxx', 'ye', 'yt', 'yu', 'za', 'zm', 'zw'
);
/**
@@ -205,7 +205,7 @@
'CN' => 'Hostname/Cn.php',
'COM' => 'Zend/Validate/Hostname/Com.php',
'DE' => array(1 => '/^[\x{002d}0-9a-zà-öø-ÿăąāćĉčċďđĕěėęēğĝġģĥħĭĩįīıĵķĺľļłńňņŋŏőōœĸŕřŗśŝšşťţŧŭůűũųūŵŷźžż]{1,63}$/iu'),
- 'DK' => array(1 => '/^[\x{002d}0-9a-zäéöü]{1,63}$/iu'),
+ 'DK' => array(1 => '/^[\x{002d}0-9a-zäéöüæøå]{1,63}$/iu'),
'ES' => array(1 => '/^[\x{002d}0-9a-zàáçèéíïñòóúü·]{1,63}$/iu'),
'EU' => array(1 => '/^[\x{002d}0-9a-zà-öø-ÿ]{1,63}$/iu',
2 => '/^[\x{002d}0-9a-zāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĵķĺļľŀłńņňʼnŋōŏőœŕŗřśŝšťŧũūŭůűųŵŷźżž]{1,63}$/iu',
@@ -283,6 +283,10 @@
'SA' => array(1 => '/^[\x{002d}.0-9\x{0621}-\x{063A}\x{0641}-\x{064A}\x{0660}-\x{0669}]{1,63}$/iu'),
'SE' => array(1 => '/^[\x{002d}0-9a-zäåéöü]{1,63}$/iu'),
'SH' => array(1 => '/^[\x{002d}0-9a-zà-öø-ÿăąāćĉčċďđĕěėęēğĝġģĥħĭĩįīıĵķĺľļłńňņŋŏőōœĸŕřŗśŝšşťţŧŭůűũųūŵŷźžż]{1,63}$/iu'),
+ 'SI' => array(
+ 1 => '/^[\x{002d}0-9a-zà-öø-ÿ]{1,63}$/iu',
+ 2 => '/^[\x{002d}0-9a-zāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĵķĺļľŀłńņňʼnŋōŏőœŕŗřśŝšťŧũūŭůűųŵŷźżž]{1,63}$/iu',
+ 3 => '/^[\x{002d}0-9a-zșț]{1,63}$/iu'),
'SJ' => array(1 => '/^[\x{002d}0-9a-zàáä-éêñ-ôöøüčđńŋšŧž]{1,63}$/iu'),
'TH' => array(1 => '/^[\x{002d}0-9a-z\x{0E01}-\x{0E3A}\x{0E40}-\x{0E4D}\x{0E50}-\x{0E59}]{1,63}$/iu'),
'TM' => array(1 => '/^[\x{002d}0-9a-zà-öø-ÿāăąćĉċčďđēėęěĝġģĥħīįĵķĺļľŀłńņňŋőœŕŗřśŝşšţťŧūŭůűųŵŷźżž]{1,63}$/iu'),
@@ -502,7 +506,7 @@
$this->_setValue($value);
// Check input against IP address schema
- if (preg_match('/^[0-9.a-e:.]*$/i', $value) &&
+ if (preg_match('/^[0-9a-f:.]*$/i', $value) &&
$this->_options['ip']->setTranslator($this->getTranslator())->isValid($value)) {
if (!($this->_options['allow'] & self::ALLOW_IP)) {
$this->_error(self::IP_ADDRESS_NOT_ALLOWED);
@@ -512,8 +516,36 @@
}
}
+ // RFC3986 3.2.2 states:
+ //
+ // The rightmost domain label of a fully qualified domain name
+ // in DNS may be followed by a single "." and should be if it is
+ // necessary to distinguish between the complete domain name and
+ // some local domain.
+ //
+ // (see ZF-6363)
+
+ // Local hostnames are allowed to be partitial (ending '.')
+ if ($this->_options['allow'] & self::ALLOW_LOCAL) {
+ if (substr($value, -1) === '.') {
+ $value = substr($value, 0, -1);
+ if (substr($value, -1) === '.') {
+ // Empty hostnames (ending '..') are not allowed
+ $this->_error(self::INVALID_LOCAL_NAME);
+ return false;
+ }
+ }
+ }
+
+ $domainParts = explode('.', $value);
+
+ // Prevent partitial IP V4 adresses (ending '.')
+ if ((count($domainParts) == 4) && preg_match('/^[0-9.a-e:.]*$/i', $value) &&
+ $this->_options['ip']->setTranslator($this->getTranslator())->isValid($value)) {
+ $this->_error(self::INVALID_LOCAL_NAME);
+ }
+
// Check input against DNS hostname schema
- $domainParts = explode('.', $value);
if ((count($domainParts) > 1) && (strlen($value) >= 4) && (strlen($value) <= 254)) {
$status = false;
@@ -634,7 +666,7 @@
}
// Check input against local network name schema; last chance to pass validation
- $regexLocal = '/^(([a-zA-Z0-9\x2d]{1,63}\x2e)*[a-zA-Z0-9\x2d]{1,63}){1,254}$/';
+ $regexLocal = '/^(([a-zA-Z0-9\x2d]{1,63}\x2e)*[a-zA-Z0-9\x2d]{1,63}[\x2e]{0,1}){1,254}$/';
$status = @preg_match($regexLocal, $value);
// If the input passes as a local network name, and local network names are allowed, then the
--- a/web/lib/Zend/Validate/Hostname/Biz.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hostname/Biz.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Biz.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Biz.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
--- a/web/lib/Zend/Validate/Hostname/Cn.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hostname/Cn.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cn.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cn.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
--- a/web/lib/Zend/Validate/Hostname/Com.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hostname/Com.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Com.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Com.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
--- a/web/lib/Zend/Validate/Hostname/Jp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Hostname/Jp.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Jp.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Jp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
return array(
--- a/web/lib/Zend/Validate/Iban.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Iban.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Iban.php 22400 2010-06-09 19:25:02Z thomas $
+ * @version $Id: Iban.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Iban extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Identical.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Identical.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Identical.php 22075 2010-05-02 13:42:08Z thomas $
+ * @version $Id: Identical.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Validate_Abstract */
@@ -25,7 +25,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Identical extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/InArray.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/InArray.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: InArray.php 20352 2010-01-17 17:55:38Z thomas $
+ * @version $Id: InArray.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_InArray extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Int.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Int.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Int.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Int.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Int extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 23262 2010-10-27 14:03:36Z matthew $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Validate_Interface
--- a/web/lib/Zend/Validate/Ip.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Ip.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Ip.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Ip.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Ip extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Isbn.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Isbn.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Isbn.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Isbn.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Isbn extends Zend_Validate_Abstract
@@ -45,7 +45,7 @@
*/
protected $_messageTemplates = array(
self::INVALID => "Invalid type given. String or integer expected",
- self::NO_ISBN => "'%value%' is no valid ISBN number",
+ self::NO_ISBN => "'%value%' is not a valid ISBN number",
);
/**
--- a/web/lib/Zend/Validate/LessThan.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/LessThan.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: LessThan.php 20182 2010-01-10 21:12:01Z thomas $
+ * @version $Id: LessThan.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_LessThan extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/NotEmpty.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/NotEmpty.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: NotEmpty.php 22691 2010-07-26 19:29:14Z thomas $
+ * @version $Id: NotEmpty.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_NotEmpty extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/PostCode.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/PostCode.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PostCode.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: PostCode.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -32,7 +32,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_PostCode extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Regex.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Regex.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Regex.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Regex.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Regex extends Zend_Validate_Abstract
--- a/web/lib/Zend/Validate/Sitemap/Changefreq.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Sitemap/Changefreq.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Changefreq.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Changefreq.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Sitemap_Changefreq extends Zend_Validate_Abstract
@@ -51,7 +51,7 @@
* @var array
*/
protected $_messageTemplates = array(
- self::NOT_VALID => "'%value%' is no valid sitemap changefreq",
+ self::NOT_VALID => "'%value%' is not a valid sitemap changefreq",
self::INVALID => "Invalid type given. String expected",
);
--- a/web/lib/Zend/Validate/Sitemap/Lastmod.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Sitemap/Lastmod.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Lastmod.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Lastmod.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Sitemap_Lastmod extends Zend_Validate_Abstract
@@ -57,7 +57,7 @@
* @var array
*/
protected $_messageTemplates = array(
- self::NOT_VALID => "'%value%' is no valid sitemap lastmod",
+ self::NOT_VALID => "'%value%' is not a valid sitemap lastmod",
self::INVALID => "Invalid type given. String expected",
);
--- a/web/lib/Zend/Validate/Sitemap/Loc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Sitemap/Loc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Loc.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Loc.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -38,7 +38,7 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Sitemap_Loc extends Zend_Validate_Abstract
@@ -56,7 +56,7 @@
* @var array
*/
protected $_messageTemplates = array(
- self::NOT_VALID => "'%value%' is no valid sitemap location",
+ self::NOT_VALID => "'%value%' is not a valid sitemap location",
self::INVALID => "Invalid type given. String expected",
);
--- a/web/lib/Zend/Validate/Sitemap/Priority.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/Sitemap/Priority.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Priority.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: Priority.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Validate
* @subpackage Sitemap
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_Sitemap_Priority extends Zend_Validate_Abstract
@@ -51,7 +51,7 @@
* @var array
*/
protected $_messageTemplates = array(
- self::NOT_VALID => "'%value%' is no valid sitemap priority",
+ self::NOT_VALID => "'%value%' is not a valid sitemap priority",
self::INVALID => "Invalid type given. Numeric string, integer or float expected",
);
--- a/web/lib/Zend/Validate/StringLength.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Validate/StringLength.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: StringLength.php 22668 2010-07-25 14:50:46Z thomas $
+ * @version $Id: StringLength.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Validate
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Validate_StringLength extends Zend_Validate_Abstract
--- a/web/lib/Zend/Version.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Version.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_Version
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Version.php 23455 2010-11-29 16:24:55Z matthew $
+ * @version $Id: Version.php 25289 2013-03-13 16:51:14Z matthew $
*/
/**
@@ -24,7 +24,7 @@
*
* @category Zend
* @package Zend_Version
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
final class Zend_Version
@@ -32,14 +32,14 @@
/**
* Zend Framework version identification - see compareVersion()
*/
- const VERSION = '1.11.1';
+ const VERSION = '1.12.3';
/**
* The latest stable version Zend Framework available
- *
+ *
* @var string
*/
- protected static $_lastestVersion;
+ protected static $_latestVersion;
/**
* Compare the specified Zend Framework version string $version
@@ -60,22 +60,22 @@
/**
* Fetches the version of the latest stable release
- *
+ *
* @link http://framework.zend.com/download/latest
* @return string
*/
public static function getLatest()
{
- if (null === self::$_lastestVersion) {
- self::$_lastestVersion = 'not available';
+ if (null === self::$_latestVersion) {
+ self::$_latestVersion = 'not available';
- $handle = fopen('http://framework.zend.com/api/zf-version', 'r');
+ $handle = fopen('http://framework.zend.com/api/zf-version', 'r');
if (false !== $handle) {
- self::$_lastestVersion = stream_get_contents($handle);
+ self::$_latestVersion = stream_get_contents($handle);
fclose($handle);
}
}
- return self::$_lastestVersion;
+ return self::$_latestVersion;
}
}
--- a/web/lib/Zend/View.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: View.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: View.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View extends Zend_View_Abstract
--- a/web/lib/Zend/View/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 22446 2010-06-18 12:11:43Z matthew $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** @see Zend_Loader */
@@ -33,7 +33,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Abstract implements Zend_View_Interface
@@ -221,6 +221,14 @@
$this->setLfiProtection($config['lfiProtectionOn']);
}
+ if (array_key_exists('assign', $config)
+ && is_array($config['assign'])
+ ) {
+ foreach ($config['assign'] as $key => $value) {
+ $this->assign($key, $value);
+ }
+ }
+
$this->init();
}
@@ -948,7 +956,7 @@
/**
* Finds a view script from the available directories.
*
- * @param $name string The base name of the script.
+ * @param string $name The base name of the script.
* @return void
*/
protected function _script($name)
--- a/web/lib/Zend/View/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -13,9 +13,9 @@
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
- * @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @package Zend_View
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,8 +30,8 @@
* Exception for Zend_View class.
*
* @category Zend
- * @package Zend_Date
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @package Zend_View
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Exception extends Zend_Exception
--- a/web/lib/Zend/View/Helper/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_Abstract implements Zend_View_Helper_Interface
--- a/web/lib/Zend/View/Helper/Action.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Action.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Action.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Action.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Action extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/BaseUrl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/BaseUrl.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: BaseUrl.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: BaseUrl.php 25024 2012-07-30 15:08:15Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_BaseUrl extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/Currency.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Currency.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Currency.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: Currency.php 24768 2012-05-06 03:08:09Z adamlundrigan $
*/
/** Zend_View_Helper_Abstract.php */
@@ -28,7 +28,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Currency extends Zend_View_Helper_Abstract
@@ -61,8 +61,9 @@
/**
* Output a formatted currency
*
- * @param integer|float $value Currency value to output
- * @param string|Zend_Locale|Zend_Currency $currency OPTIONAL Currency to use for this call
+ * @param integer|float $value Currency value to output
+ * @param string|Zend_Locale|array $currency OPTIONAL Currency to use for
+ * this call
* @return string Formatted currency
*/
public function currency($value = null, $currency = null)
--- a/web/lib/Zend/View/Helper/Cycle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Cycle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Cycle.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Cycle.php 25024 2012-07-30 15:08:15Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,7 +25,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Cycle implements Iterator
@@ -92,7 +92,7 @@
/**
* Sets actual name of cycle
*
- * @param $name
+ * @param string $name
* @return Zend_View_Helper_Cycle
*/
public function setName($name = self::DEFAULT_NAME)
@@ -111,7 +111,6 @@
/**
* Gets actual name of cycle
*
- * @param $name
* @return string
*/
public function getName()
--- a/web/lib/Zend/View/Helper/DeclareVars.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/DeclareVars.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: DeclareVars.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: DeclareVars.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_DeclareVars extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/Doctype.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Doctype.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Doctype.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Doctype.php 25101 2012-11-07 20:27:27Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Doctype extends Zend_View_Helper_Abstract
@@ -43,6 +43,8 @@
const XHTML1_STRICT = 'XHTML1_STRICT';
const XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL';
const XHTML1_FRAMESET = 'XHTML1_FRAMESET';
+ const XHTML1_RDFA = 'XHTML1_RDFA';
+ const XHTML1_RDFA11 = 'XHTML1_RDFA11';
const XHTML_BASIC1 = 'XHTML_BASIC1';
const XHTML5 = 'XHTML5';
const HTML4_STRICT = 'HTML4_STRICT';
@@ -87,6 +89,8 @@
self::XHTML1_STRICT => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
self::XHTML1_TRANSITIONAL => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
self::XHTML1_FRAMESET => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
+ self::XHTML1_RDFA => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
+ self::XHTML1_RDFA11 => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">',
self::XHTML_BASIC1 => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">',
self::XHTML5 => '<!DOCTYPE html>',
self::HTML4_STRICT => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
@@ -117,6 +121,8 @@
case self::XHTML1_TRANSITIONAL:
case self::XHTML1_FRAMESET:
case self::XHTML_BASIC1:
+ case self::XHTML1_RDFA:
+ case self::XHTML1_RDFA11:
case self::XHTML5:
case self::HTML4_STRICT:
case self::HTML4_LOOSE:
@@ -186,15 +192,42 @@
{
return (stristr($this->getDoctype(), 'xhtml') ? true : false);
}
-
- /**
- * Is doctype HTML5? (HeadMeta uses this for validation)
- *
- * @return booleean
- */
- public function isHtml5() {
- return (stristr($this->doctype(), '<!DOCTYPE html>') ? true : false);
- }
+
+ /**
+ * Is doctype strict?
+ *
+ * @return boolean
+ */
+ public function isStrict()
+ {
+ switch ( $this->getDoctype() )
+ {
+ case self::XHTML1_STRICT:
+ case self::XHTML11:
+ case self::HTML4_STRICT:
+ return true;
+ default:
+ return false;
+ }
+ }
+
+ /**
+ * Is doctype HTML5? (HeadMeta uses this for validation)
+ *
+ * @return booleean
+ */
+ public function isHtml5() {
+ return (stristr($this->doctype(), '<!DOCTYPE html>') ? true : false);
+ }
+
+ /**
+ * Is doctype RDFa?
+ *
+ * @return booleean
+ */
+ public function isRdfa() {
+ return (stristr($this->getDoctype(), 'rdfa') ? true : false);
+ }
/**
* String representation of doctype
--- a/web/lib/Zend/View/Helper/Fieldset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Fieldset.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Fieldset.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Fieldset.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Fieldset extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/Form.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Form.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Form.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Form.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Form extends Zend_View_Helper_FormElement
@@ -55,9 +55,20 @@
if (array_key_exists('id', $attribs) && empty($attribs['id'])) {
unset($attribs['id']);
}
+
+ if (!empty($name) && !($this->_isXhtml() && $this->_isStrictDoctype())) {
+ $name = ' name="' . $this->view->escape($name) . '"';
+ } else {
+ $name = '';
+ }
+
+ if ( array_key_exists('name', $attribs) && empty($attribs['id'])) {
+ unset($attribs['id']);
+ }
$xhtml = '<form'
. $id
+ . $name
. $this->_htmlAttribs($attribs)
. '>';
--- a/web/lib/Zend/View/Helper/FormButton.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormButton.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormButton.php 22290 2010-05-25 14:27:12Z matthew $
+ * @version $Id: FormButton.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormButton extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/FormCheckbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormCheckbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormCheckbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormCheckbox.php 24825 2012-05-29 20:42:55Z rob $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormCheckbox extends Zend_View_Helper_FormElement
@@ -81,17 +81,18 @@
$disabled = ' disabled="disabled"';
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
+ // build the element
+ $xhtml = '';
+ if ((!$disable && !strstr($name, '[]'))
+ && (empty($attribs['disableHidden']) || !$attribs['disableHidden'])
+ ) {
+ $xhtml = $this->_hidden($name, $checkedOptions['uncheckedValue']);
}
- // build the element
- $xhtml = '';
- if (!$disable && !strstr($name, '[]')) {
- $xhtml = $this->_hidden($name, $checkedOptions['uncheckedValue']);
+ if (array_key_exists('disableHidden', $attribs)) {
+ unset($attribs['disableHidden']);
}
+
$xhtml .= '<input type="checkbox"'
. ' name="' . $this->view->escape($name) . '"'
. ' id="' . $this->view->escape($id) . '"'
@@ -99,7 +100,7 @@
. $checkedOptions['checkedString']
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormElement.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormElement.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormElement.php 22290 2010-05-25 14:27:12Z matthew $
+ * @version $Id: FormElement.php 24823 2012-05-29 19:52:12Z rob $
*/
/**
@@ -31,20 +31,20 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_FormElement extends Zend_View_Helper_HtmlElement
{
/**
- * @var Zend_Translate
+ * @var Zend_Translate_Adapter|null
*/
protected $_translator;
/**
* Get translator
*
- * @return Zend_Translate
+ * @return Zend_Translate_Adapter|null
*/
public function getTranslator()
{
@@ -54,7 +54,7 @@
/**
* Set translator
*
- * @param $translator|null Zend_Translate
+ * @param Zend_Translate|Zend_Translate_Adapter|null $translator
* @return Zend_View_Helper_FormElement
*/
public function setTranslator($translator = null)
@@ -115,7 +115,7 @@
}
}
- // If all helper options are passed as an array, attribs may have
+ // If all helper options are passed as an array, attribs may have
// been as well
if (null === $attribs) {
$attribs = $info['attribs'];
@@ -146,6 +146,16 @@
$info['id'] = trim(strtr($info['name'],
array('[' => '-', ']' => '')), '-');
}
+
+ // Remove NULL name attribute override
+ if (array_key_exists('name', $attribs) && is_null($attribs['name'])) {
+ unset($attribs['name']);
+ }
+
+ // Override name in info if specified in attribs
+ if (array_key_exists('name', $attribs) && $attribs['name'] != $info['name']) {
+ $info['name'] = $attribs['name'];
+ }
// Determine escaping from attributes
if (array_key_exists('escape', $attribs)) {
@@ -178,11 +188,9 @@
*
* @access protected
*
- * @param $name The element name.
- *
- * @param $value The element value.
- *
- * @param $attribs Attributes for the element.
+ * @param string $name The element name.
+ * @param string $value The element value.
+ * @param array $attribs Attributes for the element.
*
* @return string A hidden element.
*/
--- a/web/lib/Zend/View/Helper/FormErrors.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormErrors.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormErrors.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormErrors.php 25207 2013-01-10 11:36:54Z frosch $
*/
/**
@@ -32,7 +32,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormErrors extends Zend_View_Helper_FormElement
@@ -69,6 +69,16 @@
$options['class'] = 'errors';
}
+ if (isset($options['elementStart'])) {
+ $this->setElementStart($options['elementStart']);
+ }
+ if (isset($options['elementEnd'])) {
+ $this->setElementEnd($options['elementEnd']);
+ }
+ if (isset($options['elementSeparator'])) {
+ $this->setElementSeparator($options['elementSeparator']);
+ }
+
$start = $this->getElementStart();
if (strstr($start, '%s')) {
$attribs = $this->_htmlAttribs($options);
--- a/web/lib/Zend/View/Helper/FormFile.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormFile.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormFile.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormFile.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormFile extends Zend_View_Helper_FormElement
@@ -62,19 +62,13 @@
$disabled = ' disabled="disabled"';
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
// build the element
$xhtml = '<input type="file"'
. ' name="' . $this->view->escape($name) . '"'
. ' id="' . $this->view->escape($id) . '"'
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormHidden.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormHidden.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormHidden.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormHidden.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormHidden extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/FormImage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormImage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormImage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormImage.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormImage extends Zend_View_Helper_FormElement
@@ -80,12 +80,6 @@
$disabled = ' disabled="disabled"';
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
// build the element
$xhtml = '<input type="image"'
. ' name="' . $this->view->escape($name) . '"'
@@ -94,7 +88,7 @@
. $value
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormLabel.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormLabel.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormLabel.php 22290 2010-05-25 14:27:12Z matthew $
+ * @version $Id: FormLabel.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_View_Helper_FormElement **/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormLabel extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/FormMultiCheckbox.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormMultiCheckbox.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormMultiCheckbox.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormMultiCheckbox.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormMultiCheckbox extends Zend_View_Helper_FormRadio
--- a/web/lib/Zend/View/Helper/FormNote.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormNote.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormNote.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormNote.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormNote extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/FormPassword.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormPassword.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormPassword.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormPassword.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormPassword extends Zend_View_Helper_FormElement
@@ -74,12 +74,6 @@
unset($attribs['renderPassword']);
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
// render the element
$xhtml = '<input type="password"'
. ' name="' . $this->view->escape($name) . '"'
@@ -87,7 +81,7 @@
. $valueString
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormRadio.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormRadio.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormRadio.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormRadio.php 24865 2012-06-02 01:02:32Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormRadio extends Zend_View_Helper_FormElement
@@ -123,15 +123,14 @@
// ensure value is an array to allow matching multiple times
$value = (array) $value;
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
+ // Set up the filter - Alnum + hyphen + underscore
+ require_once 'Zend/Filter/PregReplace.php';
+ $pattern = @preg_match('/\pL/u', 'a')
+ ? '/[^\p{L}\p{N}\-\_]/u' // Unicode
+ : '/[^a-zA-Z0-9\-\_]/'; // No Unicode
+ $filter = new Zend_Filter_PregReplace($pattern, "");
+
// add radio buttons to the list.
- require_once 'Zend/Filter/Alnum.php';
- $filter = new Zend_Filter_Alnum();
foreach ($options as $opt_value => $opt_label) {
// Should the label be escaped?
@@ -158,7 +157,7 @@
// Wrap the radios in labels
$radio = '<label'
- . $this->_htmlAttribs($label_attribs) . ' for="' . $optId . '">'
+ . $this->_htmlAttribs($label_attribs) . '>'
. (('prepend' == $labelPlacement) ? $opt_label : '')
. '<input type="' . $this->_inputType . '"'
. ' name="' . $name . '"'
@@ -167,13 +166,18 @@
. $checked
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag
+ . $this->getClosingBracket()
. (('append' == $labelPlacement) ? $opt_label : '')
. '</label>';
// add to the array of radio buttons
$list[] = $radio;
}
+
+ // XHTML or HTML for standard list separator?
+ if (!$this->_isXhtml() && false !== strpos($listsep, '<br />')) {
+ $listsep = str_replace('<br />', '<br>', $listsep);
+ }
// done!
$xhtml .= implode($listsep, $list);
--- a/web/lib/Zend/View/Helper/FormReset.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormReset.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormReset.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormReset.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormReset extends Zend_View_Helper_FormElement
@@ -64,12 +64,6 @@
$disabled = ' disabled="disabled"';
}
- // get closing tag
- $endTag = '>';
- if ($this->view->doctype()->isXhtml()) {
- $endTag = ' />';
- }
-
// Render button
$xhtml = '<input type="reset"'
. ' name="' . $this->view->escape($name) . '"'
@@ -82,7 +76,7 @@
}
// add attributes, close, and return
- $xhtml .= $this->_htmlAttribs($attribs) . $endTag;
+ $xhtml .= $this->_htmlAttribs($attribs) . $this->getClosingBracket();
return $xhtml;
}
}
--- a/web/lib/Zend/View/Helper/FormSelect.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormSelect.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormSelect.php 25187 2013-01-08 08:21:00Z frosch $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormSelect extends Zend_View_Helper_FormElement
@@ -52,6 +52,9 @@
* multiple-select elements).
*
* @param array|string $attribs Attributes added to the 'select' tag.
+ * the optional 'optionClasses' attribute is used to add a class to
+ * the options within the select (associative array linking the option
+ * value to the desired class)
*
* @param array $options An array of key-value pairs where the array
* key is the radio value, and the array value is the radio text.
@@ -96,6 +99,13 @@
unset($attribs['multiple']);
}
+ // handle the options classes
+ $optionClasses = array();
+ if (isset($attribs['optionClasses'])) {
+ $optionClasses = $attribs['optionClasses'];
+ unset($attribs['optionClasses']);
+ }
+
// now start building the XHTML.
$disabled = '';
if (true === $disable) {
@@ -123,15 +133,18 @@
if (null !== $translator) {
$opt_value = $translator->translate($opt_value);
}
+ $opt_id = ' id="' . $this->view->escape($id) . '-optgroup-'
+ . $this->view->escape($opt_value) . '"';
$list[] = '<optgroup'
. $opt_disable
+ . $opt_id
. ' label="' . $this->view->escape($opt_value) .'">';
foreach ($opt_label as $val => $lab) {
- $list[] = $this->_build($val, $lab, $value, $disable);
+ $list[] = $this->_build($val, $lab, $value, $disable, $optionClasses);
}
$list[] = '</optgroup>';
} else {
- $list[] = $this->_build($opt_value, $opt_label, $value, $disable);
+ $list[] = $this->_build($opt_value, $opt_label, $value, $disable, $optionClasses);
}
}
@@ -148,18 +161,27 @@
* @param string $label Options Label
* @param array $selected The option value(s) to mark as 'selected'
* @param array|bool $disable Whether the select is disabled, or individual options are
+ * @param array $optionClasses The classes to associate with each option value
* @return string Option Tag XHTML
*/
- protected function _build($value, $label, $selected, $disable)
+ protected function _build($value, $label, $selected, $disable, $optionClasses = array())
{
if (is_bool($disable)) {
$disable = array();
}
+ $class = null;
+ if (array_key_exists($value, $optionClasses)) {
+ $class = $optionClasses[$value];
+ }
+
+
$opt = '<option'
- . ' value="' . $this->view->escape($value) . '"'
- . ' label="' . $this->view->escape($label) . '"';
+ . ' value="' . $this->view->escape($value) . '"';
+ if ($class) {
+ $opt .= ' class="' . $class . '"';
+ }
// selected?
if (in_array((string) $value, $selected)) {
$opt .= ' selected="selected"';
--- a/web/lib/Zend/View/Helper/FormSubmit.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormSubmit.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormSubmit.php 23403 2010-11-19 19:23:29Z bittarman $
+ * @version $Id: FormSubmit.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormSubmit extends Zend_View_Helper_FormElement
@@ -67,12 +67,6 @@
$id = ' id="' . $this->view->escape($id) . '"';
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
// Render the button.
$xhtml = '<input type="submit"'
. ' name="' . $this->view->escape($name) . '"'
@@ -80,7 +74,7 @@
. ' value="' . $this->view->escape($value) . '"'
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormText.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormText.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormText.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormText.php 24750 2012-05-05 01:24:21Z adamlundrigan $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormText extends Zend_View_Helper_FormElement
@@ -65,19 +65,13 @@
$disabled = ' disabled="disabled"';
}
- // XHTML or HTML end tag?
- $endTag = ' />';
- if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
- $endTag= '>';
- }
-
$xhtml = '<input type="text"'
. ' name="' . $this->view->escape($name) . '"'
. ' id="' . $this->view->escape($id) . '"'
. ' value="' . $this->view->escape($value) . '"'
. $disabled
. $this->_htmlAttribs($attribs)
- . $endTag;
+ . $this->getClosingBracket();
return $xhtml;
}
--- a/web/lib/Zend/View/Helper/FormTextarea.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/FormTextarea.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FormTextarea.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FormTextarea.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_FormTextarea extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/Gravatar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Gravatar.php Thu Mar 21 19:50:53 2013 +0100
@@ -67,9 +67,9 @@
* @var array
*/
protected $_options = array(
- 'img_size' => 80,
- 'default_img' => self::DEFAULT_MM,
- 'rating' => self::RATING_G,
+ 'img_size' => 80,
+ 'default_img' => self::DEFAULT_MM,
+ 'rating' => self::RATING_G,
'secure' => null,
);
@@ -113,8 +113,8 @@
/**
* Configure state
- *
- * @param array $options
+ *
+ * @param array $options
* @return Zend_View_Helper_Gravatar
*/
public function setOptions(array $options)
@@ -188,8 +188,8 @@
{
switch ($rating) {
case self::RATING_G:
- case self::RATING_PG:
- case self::RATING_R:
+ case self::RATING_PG:
+ case self::RATING_R:
case self::RATING_X:
$this->_options['rating'] = $rating;
break;
@@ -244,7 +244,7 @@
public function setSecure($flag)
{
$this->_options['secure'] = ($flag === null) ? null : (bool) $flag;
- return $this;
+ return $this;
}
/**
@@ -264,8 +264,8 @@
* Get attribs of image
*
* Warning!
- * If you set src attrib, you get it, but this value will be overwritten in
- * protected method _setSrcAttribForImg(). And finally your get other src
+ * If you set src attrib, you get it, but this value will be overwritten in
+ * protected method _setSrcAttribForImg(). And finally your get other src
* value!
*
* @return array
@@ -303,7 +303,7 @@
/**
* Get avatar url (including size, rating and default image oprions)
- *
+ *
* @return string
*/
protected function _getAvatarUrl()
@@ -336,9 +336,9 @@
}
/**
- * Return valid image tag
+ * Return valid image tag
*
- * @return string
+ * @return string
*/
public function getImgTag()
{
@@ -349,7 +349,7 @@
return $html;
}
-
+
/**
* Return valid image tag
*
--- a/web/lib/Zend/View/Helper/HeadLink.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HeadLink.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: HeadLink.php 23249 2010-10-26 12:46:47Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: HeadLink.php 24858 2012-06-01 01:24:17Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @uses Zend_View_Helper_Placeholder_Container_Standalone
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HeadLink extends Zend_View_Helper_Placeholder_Container_Standalone
@@ -40,7 +40,19 @@
*
* @var array
*/
- protected $_itemKeys = array('charset', 'href', 'hreflang', 'id', 'media', 'rel', 'rev', 'type', 'title', 'extras');
+ protected $_itemKeys = array(
+ 'charset',
+ 'href',
+ 'hreflang',
+ 'id',
+ 'media',
+ 'rel',
+ 'rev',
+ 'type',
+ 'title',
+ 'extras',
+ 'sizes',
+ );
/**
* @var string registry key
@@ -379,7 +391,7 @@
}
$attributes = compact('rel', 'type', 'href', 'media', 'conditionalStylesheet', 'extras');
- return $this->createData($attributes);
+ return $this->createData($this->_applyExtras($attributes));
}
/**
@@ -432,6 +444,24 @@
$title = (string) $title;
$attributes = compact('rel', 'href', 'type', 'title', 'extras');
- return $this->createData($attributes);
+ return $this->createData($this->_applyExtras($attributes));
+ }
+
+ /**
+ * Apply any overrides specified in the 'extras' array
+ * @param array $attributes
+ * @return array
+ */
+ protected function _applyExtras($attributes)
+ {
+ if (isset($attributes['extras'])) {
+ foreach ($attributes['extras'] as $eKey=>$eVal) {
+ if (isset($attributes[$eKey])) {
+ $attributes[$eKey] = $eVal;
+ unset($attributes['extras'][$eKey]);
+ }
+ }
+ }
+ return $attributes;
}
}
--- a/web/lib/Zend/View/Helper/HeadMeta.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HeadMeta.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: HeadMeta.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: HeadMeta.php 24776 2012-05-08 18:36:40Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @uses Zend_View_Helper_Placeholder_Container_Standalone
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HeadMeta extends Zend_View_Helper_Placeholder_Container_Standalone
@@ -39,7 +39,7 @@
* Types of attributes
* @var array
*/
- protected $_typeKeys = array('name', 'http-equiv', 'charset');
+ protected $_typeKeys = array('name', 'http-equiv', 'charset', 'property');
protected $_requiredKeys = array('content');
protected $_modifierKeys = array('lang', 'scheme');
@@ -98,6 +98,8 @@
return 'name';
case 'HttpEquiv':
return 'http-equiv';
+ case 'Property':
+ return 'property';
default:
require_once 'Zend/View/Exception.php';
$e = new Zend_View_Exception(sprintf('Invalid type "%s" passed to _normalizeType', $type));
@@ -118,6 +120,10 @@
* - offsetGetHttpEquiv($index, $keyValue, $content, $modifers = array())
* - prependHttpEquiv($keyValue, $content, $modifiers = array())
* - setHttpEquiv($keyValue, $content, $modifiers = array())
+ * - appendProperty($keyValue, $content, $modifiers = array())
+ * - offsetGetProperty($index, $keyValue, $content, $modifiers = array())
+ * - prependProperty($keyValue, $content, $modifiers = array())
+ * - setProperty($keyValue, $content, $modifiers = array())
*
* @param string $method
* @param array $args
@@ -125,7 +131,7 @@
*/
public function __call($method, $args)
{
- if (preg_match('/^(?P<action>set|(pre|ap)pend|offsetSet)(?P<type>Name|HttpEquiv)$/', $method, $matches)) {
+ if (preg_match('/^(?P<action>set|(pre|ap)pend|offsetSet)(?P<type>Name|HttpEquiv|Property)$/', $method, $matches)) {
$action = $matches['action'];
$type = $this->_normalizeType($matches['type']);
$argc = count($args);
@@ -162,14 +168,14 @@
return parent::__call($method, $args);
}
- /**
- * Create an HTML5-style meta charset tag. Something like <meta charset="utf-8">
- *
- * Not valid in a non-HTML5 doctype
- *
- * @param string $charset
- * @return Zend_View_Helper_HeadMeta Provides a fluent interface
- */
+ /**
+ * Create an HTML5-style meta charset tag. Something like <meta charset="utf-8">
+ *
+ * Not valid in a non-HTML5 doctype
+ *
+ * @param string $charset
+ * @return Zend_View_Helper_HeadMeta Provides a fluent interface
+ */
public function setCharset($charset)
{
$item = new stdClass;
@@ -196,9 +202,16 @@
return false;
}
+ $isHtml5 = is_null($this->view) ? false : $this->view->doctype()->isHtml5();
+
if (!isset($item->content)
- && (! $this->view->doctype()->isHtml5()
- || (! $this->view->doctype()->isHtml5() && $item->type !== 'charset'))) {
+ && (! $isHtml5 || (! $isHtml5 && $item->type !== 'charset'))) {
+ return false;
+ }
+
+ // <meta property= ... /> is only supported with doctype RDFa
+ if ( !is_null($this->view) && !$this->view->doctype()->isRdfa()
+ && $item->type === 'property') {
return false;
}
@@ -329,7 +342,7 @@
$modifiersString = '';
foreach ($item->modifiers as $key => $value) {
- if ($this->view->doctype()->isHtml5()
+ if (!is_null($this->view) && $this->view->doctype()->isHtml5()
&& $key == 'scheme') {
require_once 'Zend/View/Exception.php';
throw new Zend_View_Exception('Invalid modifier '
@@ -344,9 +357,9 @@
if ($this->view instanceof Zend_View_Abstract) {
if ($this->view->doctype()->isHtml5()
&& $type == 'charset') {
- $tpl = ($this->view->doctype()->isXhtml())
- ? '<meta %s="%s"/>'
- : '<meta %s="%s">';
+ $tpl = ($this->view->doctype()->isXhtml())
+ ? '<meta %s="%s"/>'
+ : '<meta %s="%s">';
} elseif ($this->view->doctype()->isXhtml()) {
$tpl = '<meta %s="%s" content="%s" %s/>';
} else {
@@ -363,6 +376,14 @@
$this->_escape($item->content),
$modifiersString
);
+
+ if (isset($item->modifiers['conditional'])
+ && !empty($item->modifiers['conditional'])
+ && is_string($item->modifiers['conditional']))
+ {
+ $meta = '<!--[if ' . $this->_escape($item->modifiers['conditional']) . ']>' . $meta . '<![endif]-->';
+ }
+
return $meta;
}
--- a/web/lib/Zend/View/Helper/HeadScript.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HeadScript.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: HeadScript.php 20363 2010-01-17 22:55:25Z mabe $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: HeadScript.php 24960 2012-06-15 14:09:34Z adamlundrigan $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @uses Zend_View_Helper_Placeholder_Container_Standalone
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HeadScript extends Zend_View_Helper_Placeholder_Container_Standalone
@@ -245,7 +245,7 @@
break;
case 'file':
default:
- if (!$this->_isDuplicate($content)) {
+ if (!$this->_isDuplicate($content) || $action=='set') {
$attrs['src'] = $content;
$item = $this->createData($type, $attrs);
if ('offsetSet' == $action) {
@@ -371,7 +371,6 @@
throw $e;
}
- $this->_isValid($value);
return $this->getContainer()->offsetSet($index, $value);
}
@@ -411,8 +410,8 @@
$attrString = '';
if (!empty($item->attributes)) {
foreach ($item->attributes as $key => $value) {
- if (!$this->arbitraryAttributesAllowed()
- && !in_array($key, $this->_optionalAttributes))
+ if ((!$this->arbitraryAttributesAllowed() && !in_array($key, $this->_optionalAttributes))
+ || in_array($key, array('conditional', 'noescape')))
{
continue;
}
@@ -423,10 +422,24 @@
}
}
+ $addScriptEscape = !(isset($item->attributes['noescape']) && filter_var($item->attributes['noescape'], FILTER_VALIDATE_BOOLEAN));
+
$type = ($this->_autoEscape) ? $this->_escape($item->type) : $item->type;
$html = '<script type="' . $type . '"' . $attrString . '>';
if (!empty($item->source)) {
- $html .= PHP_EOL . $indent . ' ' . $escapeStart . PHP_EOL . $item->source . $indent . ' ' . $escapeEnd . PHP_EOL . $indent;
+ $html .= PHP_EOL ;
+
+ if ($addScriptEscape) {
+ $html .= $indent . ' ' . $escapeStart . PHP_EOL;
+ }
+
+ $html .= $indent . ' ' . $item->source;
+
+ if ($addScriptEscape) {
+ $html .= $indent . ' ' . $escapeEnd . PHP_EOL;
+ }
+
+ $html .= $indent;
}
$html .= '</script>';
--- a/web/lib/Zend/View/Helper/HeadStyle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HeadStyle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: HeadStyle.php 20104 2010-01-06 21:26:01Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: HeadStyle.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @uses Zend_View_Helper_Placeholder_Container_Standalone
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HeadStyle extends Zend_View_Helper_Placeholder_Container_Standalone
@@ -355,14 +355,21 @@
}
}
+ $escapeStart = $indent . '<!--'. PHP_EOL;
+ $escapeEnd = $indent . '-->'. PHP_EOL;
+ if (isset($item->attributes['conditional'])
+ && !empty($item->attributes['conditional'])
+ && is_string($item->attributes['conditional'])
+ ) {
+ $escapeStart = null;
+ $escapeEnd = null;
+ }
+
$html = '<style type="text/css"' . $attrString . '>' . PHP_EOL
- . $indent . '<!--' . PHP_EOL . $indent . $item->content . PHP_EOL . $indent . '-->' . PHP_EOL
+ . $escapeStart . $indent . $item->content . PHP_EOL . $escapeEnd
. '</style>';
- if (isset($item->attributes['conditional'])
- && !empty($item->attributes['conditional'])
- && is_string($item->attributes['conditional']))
- {
+ if (null == $escapeStart && null == $escapeEnd) {
$html = '<!--[if ' . $item->attributes['conditional'] . ']> ' . $html . '<![endif]-->';
}
--- a/web/lib/Zend/View/Helper/HeadTitle.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HeadTitle.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: HeadTitle.php 23388 2010-11-19 00:37:55Z ramon $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: HeadTitle.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
* @uses Zend_View_Helper_Placeholder_Container_Standalone
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HeadTitle extends Zend_View_Helper_Placeholder_Container_Standalone
@@ -69,10 +69,10 @@
*/
public function headTitle($title = null, $setType = null)
{
- if ($setType === null && $this->getDefaultAttachOrder() === null) {
- $setType = Zend_View_Helper_Placeholder_Container_Abstract::APPEND;
- } elseif ($setType === null && $this->getDefaultAttachOrder() !== null) {
- $setType = $this->getDefaultAttachOrder();
+ if (null === $setType) {
+ $setType = (null === $this->getDefaultAttachOrder())
+ ? Zend_View_Helper_Placeholder_Container_Abstract::APPEND
+ : $this->getDefaultAttachOrder();
}
$title = (string) $title;
if ($title !== '') {
--- a/web/lib/Zend/View/Helper/HtmlElement.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlElement.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlElement.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlElement.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_HtmlElement extends Zend_View_Helper_Abstract
@@ -76,6 +76,17 @@
}
/**
+ * Is doctype strict?
+ *
+ * @return boolean
+ */
+ protected function _isStrictDoctype()
+ {
+ $doctype = $this->view->doctype();
+ return $doctype->isStrict();
+ }
+
+ /**
* Converts an associative array to a string of tag attributes.
*
* @access public
@@ -98,7 +109,11 @@
require_once 'Zend/Json.php';
$val = Zend_Json::encode($val);
}
- $val = preg_replace('/"([^"]*)":/', '$1:', $val);
+ // Escape single quotes inside event attribute values.
+ // This will create html, where the attribute value has
+ // single quotes around it, and escaped single quotes or
+ // non-escaped double quotes inside of it
+ $val = str_replace('\'', ''', $val);
} else {
if (is_array($val)) {
$val = implode(' ', $val);
--- a/web/lib/Zend/View/Helper/HtmlFlash.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlFlash.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlFlash.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlFlash.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HtmlFlash extends Zend_View_Helper_HtmlObject
--- a/web/lib/Zend/View/Helper/HtmlList.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlList.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlList.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlList.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HtmlList extends Zend_View_Helper_FormElement
--- a/web/lib/Zend/View/Helper/HtmlObject.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlObject.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlObject.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlObject.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HtmlObject extends Zend_View_Helper_HtmlElement
--- a/web/lib/Zend/View/Helper/HtmlPage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlPage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlPage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlPage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HtmlPage extends Zend_View_Helper_HtmlObject
--- a/web/lib/Zend/View/Helper/HtmlQuicktime.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/HtmlQuicktime.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HtmlQuicktime.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HtmlQuicktime.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_HtmlQuicktime extends Zend_View_Helper_HtmlObject
--- a/web/lib/Zend/View/Helper/InlineScript.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/InlineScript.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: InlineScript.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: InlineScript.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -30,7 +30,7 @@
* @uses Zend_View_Helper_Head_Script
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_InlineScript extends Zend_View_Helper_HeadScript
--- a/web/lib/Zend/View/Helper/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_View_Helper_Interface
--- a/web/lib/Zend/View/Helper/Json.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Json.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Json.php 23451 2010-11-28 13:10:03Z ramon $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Json.php 25091 2012-11-07 19:58:48Z rob $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,7 +34,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Json extends Zend_View_Helper_Abstract
@@ -43,28 +43,38 @@
* Encode data as JSON, disable layouts, and set response header
*
* If $keepLayouts is true, does not disable layouts.
+ * If $encodeJson is false, does not JSON-encode $data
*
* @param mixed $data
* @param bool $keepLayouts
* NOTE: if boolean, establish $keepLayouts to true|false
* if array, admit params for Zend_Json::encode as enableJsonExprFinder=>true|false
- * this array can contains a 'keepLayout'=>true|false
+ * this array can contains a 'keepLayout'=>true|false and/or 'encodeData'=>true|false
* that will not be passed to Zend_Json::encode method but will be used here
+ * @param bool $encodeData
* @return string|void
*/
- public function json($data, $keepLayouts = false)
+ public function json($data, $keepLayouts = false, $encodeData = true)
{
$options = array();
- if (is_array($keepLayouts))
- {
- $options = $keepLayouts;
- $keepLayouts = (array_key_exists('keepLayouts', $keepLayouts))
- ? $keepLayouts['keepLayouts']
- : false;
- unset($options['keepLayouts']);
+ if (is_array($keepLayouts)) {
+ $options = $keepLayouts;
+
+ $keepLayouts = false;
+ if (array_key_exists('keepLayouts', $options)) {
+ $keepLayouts = $options['keepLayouts'];
+ unset($options['keepLayouts']);
+ }
+
+ if (array_key_exists('encodeData', $options)) {
+ $encodeData = $options['encodeData'];
+ unset($options['encodeData']);
+ }
}
- $data = Zend_Json::encode($data, null, $options);
+ if ($encodeData) {
+ $data = Zend_Json::encode($data, null, $options);
+ }
if (!$keepLayouts) {
require_once 'Zend/Layout.php';
$layout = Zend_Layout::getMvcInstance();
--- a/web/lib/Zend/View/Helper/Layout.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Layout.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Layout.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Layout.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Layout extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/Navigation.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Navigation.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Navigation.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Navigation
@@ -157,9 +157,17 @@
}
if (!$this->view->getPluginLoader('helper')->getPaths(self::NS)) {
+ // Add navigation helper path at the beginning
+ $paths = $this->view->getHelperPaths();
+ $this->view->setHelperPath(null);
+
$this->view->addHelperPath(
str_replace('_', '/', self::NS),
self::NS);
+
+ foreach ($paths as $ns => $path) {
+ $this->view->addHelperPath($path, $ns);
+ }
}
if ($strict) {
--- a/web/lib/Zend/View/Helper/Navigation/Breadcrumbs.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/Breadcrumbs.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Breadcrumbs.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Breadcrumbs.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Navigation_Breadcrumbs
@@ -293,8 +293,8 @@
if (count($partial) != 2) {
require_once 'Zend/View/Exception.php';
$e = new Zend_View_Exception(
- 'Unable to render menu: A view partial supplied as '
- . 'an array must contain two values: partial view '
+ 'Unable to render menu: A view partial supplied as '
+ . 'an array must contain two values: partial view '
. 'script and module where script can be found'
);
$e->setView($this->view);
--- a/web/lib/Zend/View/Helper/Navigation/Helper.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/Helper.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Helper.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Helper.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_View_Helper_Navigation_Helper
--- a/web/lib/Zend/View/Helper/Navigation/HelperAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/HelperAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HelperAbstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HelperAbstract.php 25239 2013-01-22 09:45:01Z frosch $
*/
/**
@@ -36,7 +36,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_Navigation_HelperAbstract
@@ -72,6 +72,27 @@
protected $_indent = '';
/**
+ * Whether HTML/XML output should be formatted
+ *
+ * @var bool
+ */
+ protected $_formatOutput = true;
+
+ /**
+ * Prefix for IDs when they are normalized
+ *
+ * @var string|null
+ */
+ protected $_prefixForId = null;
+
+ /**
+ * Skip current prefix for IDs when they are normalized (flag)
+ *
+ * @var bool
+ */
+ protected $_skipPrefixForId = false;
+
+ /**
* Translator
*
* @var Zend_Translate_Adapter
@@ -264,16 +285,108 @@
}
/**
- * Returns indentation
+ * Returns indentation (format output is respected)
*
- * @return string
+ * @return string indentation string or an empty string
*/
public function getIndent()
{
+ if (false === $this->getFormatOutput()) {
+ return '';
+ }
+
return $this->_indent;
}
/**
+ * Returns the EOL character (format output is respected)
+ *
+ * @see self::EOL
+ * @see getFormatOutput()
+ *
+ * @return string standard EOL charater or an empty string
+ */
+ public function getEOL()
+ {
+ if (false === $this->getFormatOutput()) {
+ return '';
+ }
+
+ return self::EOL;
+ }
+
+ /**
+ * Sets whether HTML/XML output should be formatted
+ *
+ * @param bool $formatOutput [optional] whether output
+ * should be formatted. Default
+ * is true.
+ *
+ * @return Zend_View_Helper_Navigation_Sitemap fluent interface, returns
+ * self
+ */
+ public function setFormatOutput($formatOutput = true)
+ {
+ $this->_formatOutput = (bool)$formatOutput;
+
+ return $this;
+ }
+
+ /**
+ * Returns whether HTML/XML output should be formatted
+ *
+ * @return bool whether HTML/XML output should be formatted
+ */
+ public function getFormatOutput()
+ {
+ return $this->_formatOutput;
+ }
+
+ /**
+ * Sets prefix for IDs when they are normalized
+ *
+ * @param string $prefix Prefix for IDs
+ * @return Zend_View_Helper_Navigation_HelperAbstract fluent interface, returns self
+ */
+ public function setPrefixForId($prefix)
+ {
+ if (is_string($prefix)) {
+ $this->_prefixForId = trim($prefix);
+ }
+
+ return $this;
+ }
+
+ /**
+ * Returns prefix for IDs when they are normalized
+ *
+ * @return string Prefix for
+ */
+ public function getPrefixForId()
+ {
+ if (null === $this->_prefixForId) {
+ $prefix = get_class($this);
+ $this->_prefixForId = strtolower(
+ trim(substr($prefix, strrpos($prefix, '_')), '_')
+ ) . '-';
+ }
+
+ return $this->_prefixForId;
+ }
+
+ /**
+ * Skip the current prefix for IDs when they are normalized
+ *
+ * @param bool $flag
+ * @return Zend_View_Helper_Navigation_HelperAbstract fluent interface, returns self
+ */
+ public function skipPrefixForId($flag = true)
+ {
+ $this->_skipPrefixForId = (bool) $flag;
+ return $this;
+ }
+
+ /**
* Sets translator to use in helper
*
* Implements {@link Zend_View_Helper_Navigation_Helper::setTranslator()}.
@@ -377,7 +490,7 @@
} else {
require_once 'Zend/View/Exception.php';
$e = new Zend_View_Exception(sprintf(
- '$role must be a string, null, or an instance of '
+ '$role must be a string, null, or an instance of '
. 'Zend_Acl_Role_Interface; %s given',
gettype($role)
));
@@ -669,12 +782,15 @@
}
// get attribs for anchor element
- $attribs = array(
- 'id' => $page->getId(),
- 'title' => $title,
- 'class' => $page->getClass(),
- 'href' => $page->getHref(),
- 'target' => $page->getTarget()
+ $attribs = array_merge(
+ array(
+ 'id' => $page->getId(),
+ 'title' => $title,
+ 'class' => $page->getClass(),
+ 'href' => $page->getHref(),
+ 'target' => $page->getTarget()
+ ),
+ $page->getCustomHtmlAttribs()
);
return '<a' . $this->_htmlAttribs($attribs) . '>'
@@ -800,17 +916,22 @@
/**
* Normalize an ID
*
- * Overrides {@link Zend_View_Helper_HtmlElement::_normalizeId()}.
+ * Extends {@link Zend_View_Helper_HtmlElement::_normalizeId()}.
*
- * @param string $value
- * @return string
+ * @param string $value ID
+ * @return string Normalized ID
*/
protected function _normalizeId($value)
- {
- $prefix = get_class($this);
- $prefix = strtolower(trim(substr($prefix, strrpos($prefix, '_')), '_'));
+ {
+ if (false === $this->_skipPrefixForId) {
+ $prefix = $this->getPrefixForId();
- return $prefix . '-' . $value;
+ if (strlen($prefix)) {
+ return $prefix . $value;
+ }
+ }
+
+ return parent::_normalizeId($value);
}
// Static methods:
--- a/web/lib/Zend/View/Helper/Navigation/Links.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/Links.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Links.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Links.php 25239 2013-01-22 09:45:01Z frosch $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Navigation_Links
@@ -769,7 +769,7 @@
foreach ($types as $relation => $pages) {
foreach ($pages as $page) {
if ($r = $this->renderLink($page, $attrib, $relation)) {
- $output .= $indent . $r . self::EOL;
+ $output .= $indent . $r . $this->getEOL();
}
}
}
--- a/web/lib/Zend/View/Helper/Navigation/Menu.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/Menu.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Menu.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Menu.php 25239 2013-01-22 09:45:01Z frosch $
*/
/**
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Navigation_Menu
@@ -45,6 +45,34 @@
protected $_ulClass = 'navigation';
/**
+ * Unique identifier (id) for the ul element
+ *
+ * @var string
+ */
+ protected $_ulId = null;
+
+ /**
+ * CSS class to use for the active elements
+ *
+ * @var string
+ */
+ protected $_activeClass = 'active';
+
+ /**
+ * CSS class to use for the parent li element
+ *
+ * @var string
+ */
+ protected $_parentClass = 'menu-parent';
+
+ /**
+ * Whether parent li elements should be rendered with parent class
+ *
+ * @var bool
+ */
+ protected $_renderParentClass = false;
+
+ /**
* Whether only active branch should be rendered
*
* @var bool
@@ -66,6 +94,27 @@
protected $_partial = null;
/**
+ * Expand all sibling nodes of active branch nodes
+ *
+ * @var bool
+ */
+ protected $_expandSiblingNodesOfActiveBranch = false;
+
+ /**
+ * Adds CSS class from page to li element
+ *
+ * @var bool
+ */
+ protected $_addPageClassToLi = false;
+
+ /**
+ * Inner indentation string
+ *
+ * @var string
+ */
+ protected $_innerIndent = ' ';
+
+ /**
* View helper entry point:
* Retrieves helper and optionally sets container to operate on
*
@@ -111,6 +160,107 @@
}
/**
+ * Sets unique identifier (id) to use for the first 'ul' element when
+ * rendering
+ *
+ * @param string|null $ulId Unique identifier (id) to set
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function setUlId($ulId)
+ {
+ if (is_string($ulId)) {
+ $this->_ulId = $ulId;
+ }
+
+ return $this;
+ }
+
+ /**
+ * Returns unique identifier (id) to use for the first 'ul' element when
+ * rendering
+ *
+ * @return string|null Unique identifier (id); Default is 'null'
+ */
+ public function getUlId()
+ {
+ return $this->_ulId;
+ }
+
+ /**
+ * Sets CSS class to use for the active elements when rendering
+ *
+ * @param string $activeClass CSS class to set
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function setActiveClass($activeClass)
+ {
+ if (is_string($activeClass)) {
+ $this->_activeClass = $activeClass;
+ }
+
+ return $this;
+ }
+
+ /**
+ * Returns CSS class to use for the active elements when rendering
+ *
+ * @return string CSS class
+ */
+ public function getActiveClass()
+ {
+ return $this->_activeClass;
+ }
+
+ /**
+ * Sets CSS class to use for the parent li elements when rendering
+ *
+ * @param string $parentClass CSS class to set to parents
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function setParentClass($parentClass)
+ {
+ if (is_string($parentClass)) {
+ $this->_parentClass = $parentClass;
+ }
+
+ return $this;
+ }
+
+ /**
+ * Returns CSS class to use for the parent lie elements when rendering
+ *
+ * @return string CSS class
+ */
+ public function getParentClass()
+ {
+ return $this->_parentClass;
+ }
+
+ /**
+ * Enables/disables rendering of parent class to the li element
+ *
+ * @param bool $flag [optional] render with parent
+ * class. Default is true.
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function setRenderParentClass($flag = true)
+ {
+ $this->_renderParentClass = (bool) $flag;
+ return $this;
+ }
+
+ /**
+ * Returns flag indicating whether parent class should be rendered to the li
+ * element
+ *
+ * @return bool whether parent class should be rendered
+ */
+ public function getRenderParentClass()
+ {
+ return $this->_renderParentClass;
+ }
+
+ /**
* Sets a flag indicating whether only active branch should be rendered
*
* @param bool $flag [optional] render only active
@@ -135,8 +285,34 @@
{
return $this->_onlyActiveBranch;
}
+
+ /**
+ * Sets a flag indicating whether to expand all sibling nodes of the active branch
+ *
+ * @param bool $flag [optional] expand all siblings of
+ * nodes in the active branch. Default is true.
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function setExpandSiblingNodesOfActiveBranch($flag = true)
+ {
+ $this->_expandSiblingNodesOfActiveBranch = (bool) $flag;
+ return $this;
+ }
/**
+ * Returns a flag indicating whether to expand all sibling nodes of the active branch
+ *
+ * By default, this value is false, meaning the entire menu will be
+ * be rendered.
+ *
+ * @return bool whether siblings of nodes in the active branch should be expanded
+ */
+ public function getExpandSiblingNodesOfActiveBranch()
+ {
+ return $this->_expandSiblingNodesOfActiveBranch;
+ }
+
+ /**
* Enables/disables rendering of parents when only rendering active branch
*
* See {@link setOnlyActiveBranch()} for more information.
@@ -195,6 +371,78 @@
return $this->_partial;
}
+ /**
+ * Adds CSS class from page to li element
+ *
+ * Before:
+ * <code>
+ * <li>
+ * <a href="#" class="foo">Bar</a>
+ * </li>
+ * </code>
+ *
+ * After:
+ * <code>
+ * <li class="foo">
+ * <a href="#">Bar</a>
+ * </li>
+ * </code>
+ *
+ * @param bool $flag [optional] adds CSS class from
+ * page to li element
+ *
+ * @return Zend_View_Helper_Navigation_Menu fluent interface, returns self
+ */
+ public function addPageClassToLi($flag = true)
+ {
+ $this->_addPageClassToLi = (bool) $flag;
+
+ return $this;
+ }
+
+ /**
+ * Returns a flag indicating whether the CSS class from page to be added to
+ * li element
+ *
+ * @return bool
+ */
+ public function getAddPageClassToLi()
+ {
+ return $this->_addPageClassToLi;
+ }
+
+ /**
+ * Set the inner indentation string for using in {@link render()}, optionally
+ * a number of spaces to indent with
+ *
+ * @param string|int $indent indentation string or
+ * number of spaces
+ * @return Zend_View_Helper_Navigation_HelperAbstract fluent interface,
+ * returns self
+ */
+ public function setInnerIndent($indent)
+ {
+ $this->_innerIndent = $this->_getWhitespace($indent);
+
+ return $this;
+ }
+
+ /**
+ * Returns inner indentation (format output is respected)
+ *
+ * @see getFormatOutput()
+ *
+ * @return string indentation string or an empty string
+ */
+ public function getInnerIndent()
+ {
+ if (false === $this->getFormatOutput()) {
+ return '';
+ }
+
+ return $this->_innerIndent;
+ }
+
// Public methods:
/**
@@ -226,18 +474,25 @@
$attribs = array(
'id' => $page->getId(),
'title' => $title,
- 'class' => $page->getClass()
);
+ if (false === $this->getAddPageClassToLi()) {
+ $attribs['class'] = $page->getClass();
+ }
+
// does page have a href?
if ($href = $page->getHref()) {
- $element = 'a';
- $attribs['href'] = $href;
- $attribs['target'] = $page->getTarget();
+ $element = 'a';
+ $attribs['href'] = $href;
+ $attribs['target'] = $page->getTarget();
+ $attribs['accesskey'] = $page->getAccessKey();
} else {
$element = 'span';
}
+ // Add custom HTML attributes
+ $attribs = array_merge($attribs, $page->getCustomHtmlAttribs());
+
return '<' . $element . $this->_htmlAttribs($attribs) . '>'
. $this->view->escape($label)
. '</' . $element . '>';
@@ -251,18 +506,51 @@
*/
protected function _normalizeOptions(array $options = array())
{
+ // Ident
if (isset($options['indent'])) {
$options['indent'] = $this->_getWhitespace($options['indent']);
} else {
$options['indent'] = $this->getIndent();
}
+ // Inner ident
+ if (isset($options['innerIndent'])) {
+ $options['innerIndent'] =
+ $this->_getWhitespace($options['innerIndent']);
+ } else {
+ $options['innerIndent'] = $this->getInnerIndent();
+ }
+
+ // UL class
if (isset($options['ulClass']) && $options['ulClass'] !== null) {
$options['ulClass'] = (string) $options['ulClass'];
} else {
$options['ulClass'] = $this->getUlClass();
}
+ // UL id
+ if (isset($options['ulId']) && $options['ulId'] !== null) {
+ $options['ulId'] = (string) $options['ulId'];
+ } else {
+ $options['ulId'] = $this->getUlId();
+ }
+
+ // Active class
+ if (isset($options['activeClass']) && $options['activeClass'] !== null
+ ) {
+ $options['activeClass'] = (string) $options['activeClass'];
+ } else {
+ $options['activeClass'] = $this->getActiveClass();
+ }
+
+ // Parent class
+ if (isset($options['parentClass']) && $options['parentClass'] !== null) {
+ $options['parentClass'] = (string) $options['parentClass'];
+ } else {
+ $options['parentClass'] = $this->getParentClass();
+ }
+
+ // Minimum depth
if (array_key_exists('minDepth', $options)) {
if (null !== $options['minDepth']) {
$options['minDepth'] = (int) $options['minDepth'];
@@ -275,6 +563,7 @@
$options['minDepth'] = 0;
}
+ // Maximum depth
if (array_key_exists('maxDepth', $options)) {
if (null !== $options['maxDepth']) {
$options['maxDepth'] = (int) $options['maxDepth'];
@@ -283,14 +572,31 @@
$options['maxDepth'] = $this->getMaxDepth();
}
+ // Only active branch
if (!isset($options['onlyActiveBranch'])) {
$options['onlyActiveBranch'] = $this->getOnlyActiveBranch();
}
+ // Expand sibling nodes of active branch
+ if (!isset($options['expandSiblingNodesOfActiveBranch'])) {
+ $options['expandSiblingNodesOfActiveBranch'] = $this->getExpandSiblingNodesOfActiveBranch();
+ }
+
+ // Render parents?
if (!isset($options['renderParents'])) {
$options['renderParents'] = $this->getRenderParents();
}
+ // Render parent class?
+ if (!isset($options['renderParentClass'])) {
+ $options['renderParentClass'] = $this->getRenderParentClass();
+ }
+
+ // Add page CSS class to LI element
+ if (!isset($options['addPageClassToLi'])) {
+ $options['addPageClassToLi'] = $this->getAddPageClassToLi();
+ }
+
return $options;
}
@@ -300,19 +606,34 @@
* Renders the deepest active menu within [$minDepth, $maxDeth], (called
* from {@link renderMenu()})
*
- * @param Zend_Navigation_Container $container container to render
- * @param array $active active page and depth
- * @param string $ulClass CSS class for first UL
- * @param string $indent initial indentation
- * @param int|null $minDepth minimum depth
- * @param int|null $maxDepth maximum depth
- * @return string rendered menu
+ * @param Zend_Navigation_Container $container container to render
+ * @param string $ulClass CSS class for first UL
+ * @param string $indent initial indentation
+ * @param string $innerIndent inner indentation
+ * @param int|null $minDepth minimum depth
+ * @param int|null $maxDepth maximum depth
+ * @param string|null $ulId unique identifier (id)
+ * for first UL
+ * @param bool $addPageClassToLi adds CSS class from
+ * page to li element
+ * @param string|null $activeClass CSS class for active
+ * element
+ * @param string $parentClass CSS class for parent
+ * li's
+ * @param bool $renderParentClass Render parent class?
+ * @return string rendered menu (HTML)
*/
protected function _renderDeepestMenu(Zend_Navigation_Container $container,
$ulClass,
$indent,
+ $innerIndent,
$minDepth,
- $maxDepth)
+ $maxDepth,
+ $ulId,
+ $addPageClassToLi,
+ $activeClass,
+ $parentClass,
+ $renderParentClass)
{
if (!$active = $this->findActive($container, $minDepth - 1, $maxDepth)) {
return '';
@@ -326,22 +647,49 @@
} else if (!$active['page']->hasPages()) {
// found pages has no children; render siblings
$active['page'] = $active['page']->getParent();
- } else if (is_int($maxDepth) && $active['depth'] +1 > $maxDepth) {
+ } else if (is_int($maxDepth) && $active['depth'] + 1 > $maxDepth) {
// children are below max depth; render siblings
$active['page'] = $active['page']->getParent();
}
- $ulClass = $ulClass ? ' class="' . $ulClass . '"' : '';
- $html = $indent . '<ul' . $ulClass . '>' . self::EOL;
+ $attribs = array(
+ 'class' => $ulClass,
+ 'id' => $ulId,
+ );
+
+ // We don't need a prefix for the menu ID (backup)
+ $skipValue = $this->_skipPrefixForId;
+ $this->skipPrefixForId();
+
+ $html = $indent . '<ul'
+ . $this->_htmlAttribs($attribs)
+ . '>'
+ . $this->getEOL();
+
+ // Reset prefix for IDs
+ $this->_skipPrefixForId = $skipValue;
foreach ($active['page'] as $subPage) {
if (!$this->accept($subPage)) {
continue;
}
- $liClass = $subPage->isActive(true) ? ' class="active"' : '';
- $html .= $indent . ' <li' . $liClass . '>' . self::EOL;
- $html .= $indent . ' ' . $this->htmlify($subPage) . self::EOL;
- $html .= $indent . ' </li>' . self::EOL;
+
+ $liClass = '';
+ if ($subPage->isActive(true) && $addPageClassToLi) {
+ $liClass = $this->_htmlAttribs(
+ array('class' => $activeClass . ' ' . $subPage->getClass())
+ );
+ } else if ($subPage->isActive(true)) {
+ $liClass = $this->_htmlAttribs(array('class' => $activeClass));
+ } else if ($addPageClassToLi) {
+ $liClass = $this->_htmlAttribs(
+ array('class' => $subPage->getClass())
+ );
+ }
+ $html .= $indent . $innerIndent . '<li' . $liClass . '>' . $this->getEOL();
+ $html .= $indent . str_repeat($innerIndent, 2) . $this->htmlify($subPage)
+ . $this->getEOL();
+ $html .= $indent . $innerIndent . '</li>' . $this->getEOL();
}
$html .= $indent . '</ul>';
@@ -352,20 +700,39 @@
/**
* Renders a normal menu (called from {@link renderMenu()})
*
- * @param Zend_Navigation_Container $container container to render
- * @param string $ulClass CSS class for first UL
- * @param string $indent initial indentation
- * @param int|null $minDepth minimum depth
- * @param int|null $maxDepth maximum depth
- * @param bool $onlyActive render only active branch?
- * @return string
+ * @param Zend_Navigation_Container $container container to render
+ * @param string $ulClass CSS class for first UL
+ * @param string $indent initial indentation
+ * @param string $innerIndent inner indentation
+ * @param int|null $minDepth minimum depth
+ * @param int|null $maxDepth maximum depth
+ * @param bool $onlyActive render only active branch?
+ * @param bool $expandSibs render siblings of active
+ * branch nodes?
+ * @param string|null $ulId unique identifier (id)
+ * for first UL
+ * @param bool $addPageClassToLi adds CSS class from
+ * page to li element
+ * @param string|null $activeClass CSS class for active
+ * element
+ * @param string $parentClass CSS class for parent
+ * li's
+ * @param bool $renderParentClass Render parent class?
+ * @return string rendered menu (HTML)
*/
protected function _renderMenu(Zend_Navigation_Container $container,
$ulClass,
$indent,
+ $innerIndent,
$minDepth,
$maxDepth,
- $onlyActive)
+ $onlyActive,
+ $expandSibs,
+ $ulId,
+ $addPageClassToLi,
+ $activeClass,
+ $parentClass,
+ $renderParentClass)
{
$html = '';
@@ -392,6 +759,21 @@
if ($depth < $minDepth || !$this->accept($page)) {
// page is below minDepth or not accepted by acl/visibilty
continue;
+ } else if ($expandSibs && $depth > $minDepth) {
+ // page is not active itself, but might be in the active branch
+ $accept = false;
+ if ($foundPage) {
+ if ($foundPage->hasPage($page)) {
+ // accept if page is a direct child of the active page
+ $accept = true;
+ } else if ($page->getParent()->isActive(true)) {
+ // page is a sibling of the active branch...
+ $accept = true;
+ }
+ }
+ if (!$isActive && !$accept) {
+ continue;
+ }
} else if ($onlyActive && !$isActive) {
// page is not active itself, but might be in the active branch
$accept = false;
@@ -416,35 +798,71 @@
}
// make sure indentation is correct
- $depth -= $minDepth;
- $myIndent = $indent . str_repeat(' ', $depth);
+ $depth -= $minDepth;
+ $myIndent = $indent . str_repeat($innerIndent, $depth * 2);
if ($depth > $prevDepth) {
+ $attribs = array();
+
// start new ul tag
- if ($ulClass && $depth == 0) {
- $ulClass = ' class="' . $ulClass . '"';
- } else {
- $ulClass = '';
+ if (0 == $depth) {
+ $attribs = array(
+ 'class' => $ulClass,
+ 'id' => $ulId,
+ );
}
- $html .= $myIndent . '<ul' . $ulClass . '>' . self::EOL;
+
+ // We don't need a prefix for the menu ID (backup)
+ $skipValue = $this->_skipPrefixForId;
+ $this->skipPrefixForId();
+
+ $html .= $myIndent . '<ul'
+ . $this->_htmlAttribs($attribs)
+ . '>'
+ . $this->getEOL();
+
+ // Reset prefix for IDs
+ $this->_skipPrefixForId = $skipValue;
} else if ($prevDepth > $depth) {
// close li/ul tags until we're at current depth
for ($i = $prevDepth; $i > $depth; $i--) {
- $ind = $indent . str_repeat(' ', $i);
- $html .= $ind . ' </li>' . self::EOL;
- $html .= $ind . '</ul>' . self::EOL;
+ $ind = $indent . str_repeat($innerIndent, $i * 2);
+ $html .= $ind . $innerIndent . '</li>' . $this->getEOL();
+ $html .= $ind . '</ul>' . $this->getEOL();
}
// close previous li tag
- $html .= $myIndent . ' </li>' . self::EOL;
+ $html .= $myIndent . $innerIndent . '</li>' . $this->getEOL();
} else {
// close previous li tag
- $html .= $myIndent . ' </li>' . self::EOL;
+ $html .= $myIndent . $innerIndent . '</li>' . $this->getEOL();
}
// render li tag and page
- $liClass = $isActive ? ' class="active"' : '';
- $html .= $myIndent . ' <li' . $liClass . '>' . self::EOL
- . $myIndent . ' ' . $this->htmlify($page) . self::EOL;
+ $liClasses = array();
+ // Is page active?
+ if ($isActive) {
+ $liClasses[] = $activeClass;
+ }
+ // Add CSS class from page to LI?
+ if ($addPageClassToLi) {
+ $liClasses[] = $page->getClass();
+ }
+ // Add CSS class for parents to LI?
+ if ($renderParentClass && $page->hasChildren()) {
+ // Check max depth
+ if ((is_int($maxDepth) && ($depth + 1 < $maxDepth))
+ || !is_int($maxDepth)
+ ) {
+ $liClasses[] = $parentClass;
+ }
+ }
+
+ $html .= $myIndent . $innerIndent . '<li'
+ . $this->_htmlAttribs(array('class' => implode(' ', $liClasses)))
+ . '>' . $this->getEOL()
+ . $myIndent . str_repeat($innerIndent, 2)
+ . $this->htmlify($page)
+ . $this->getEOL();
// store as previous depth for next iteration
$prevDepth = $depth;
@@ -453,11 +871,11 @@
if ($html) {
// done iterating container; close open ul/li tags
for ($i = $prevDepth+1; $i > 0; $i--) {
- $myIndent = $indent . str_repeat(' ', $i-1);
- $html .= $myIndent . ' </li>' . self::EOL
- . $myIndent . '</ul>' . self::EOL;
+ $myIndent = $indent . str_repeat($innerIndent . $innerIndent, $i - 1);
+ $html .= $myIndent . $innerIndent . '</li>' . $this->getEOL()
+ . $myIndent . '</ul>' . $this->getEOL();
}
- $html = rtrim($html, self::EOL);
+ $html = rtrim($html, $this->getEOL());
}
return $html;
@@ -491,18 +909,35 @@
$options = $this->_normalizeOptions($options);
if ($options['onlyActiveBranch'] && !$options['renderParents']) {
- $html = $this->_renderDeepestMenu($container,
- $options['ulClass'],
- $options['indent'],
- $options['minDepth'],
- $options['maxDepth']);
+ $html = $this->_renderDeepestMenu(
+ $container,
+ $options['ulClass'],
+ $options['indent'],
+ $options['innerIndent'],
+ $options['minDepth'],
+ $options['maxDepth'],
+ $options['ulId'],
+ $options['addPageClassToLi'],
+ $options['activeClass'],
+ $options['parentClass'],
+ $options['renderParentClass']
+ );
} else {
- $html = $this->_renderMenu($container,
- $options['ulClass'],
- $options['indent'],
- $options['minDepth'],
- $options['maxDepth'],
- $options['onlyActiveBranch']);
+ $html = $this->_renderMenu(
+ $container,
+ $options['ulClass'],
+ $options['indent'],
+ $options['innerIndent'],
+ $options['minDepth'],
+ $options['maxDepth'],
+ $options['onlyActiveBranch'],
+ $options['expandSiblingNodesOfActiveBranch'],
+ $options['ulId'],
+ $options['addPageClassToLi'],
+ $options['activeClass'],
+ $options['parentClass'],
+ $options['renderParentClass']
+ );
}
return $html;
@@ -527,7 +962,7 @@
* render. Default is to render
* the container registered in
* the helper.
- * @param string $ulClass [optional] CSS class to
+ * @param string|null $ulClass [optional] CSS class to
* use for UL element. Default
* is to use the value from
* {@link getUlClass()}.
@@ -536,19 +971,34 @@
* spaces. Default is to use
* the value retrieved from
* {@link getIndent()}.
- * @return string rendered content
+ * @param string|null $ulId [optional] Unique identifier
+ * (id) use for UL element
+ * @param bool $addPageClassToLi adds CSS class from
+ * page to li element
+ * @param string|int $innerIndent [optional] inner
+ * indentation as a string
+ * or number of spaces.
+ * Default is to use the
+ * {@link getInnerIndent()}.
+ * @return string rendered content
*/
public function renderSubMenu(Zend_Navigation_Container $container = null,
$ulClass = null,
- $indent = null)
+ $indent = null,
+ $ulId = null,
+ $addPageClassToLi = false,
+ $innerIndent = null)
{
return $this->renderMenu($container, array(
'indent' => $indent,
+ 'innerIndent' => $innerIndent,
'ulClass' => $ulClass,
'minDepth' => null,
'maxDepth' => null,
'onlyActiveBranch' => true,
- 'renderParents' => false
+ 'renderParents' => false,
+ 'ulId' => $ulId,
+ 'addPageClassToLi' => $addPageClassToLi,
));
}
@@ -573,6 +1023,8 @@
* and the module where the
* script can be found.
* @return string helper output
+ *
+ * @throws Zend_View_Exception When no partial script is set
*/
public function renderPartial(Zend_Navigation_Container $container = null,
$partial = null)
@@ -602,8 +1054,8 @@
if (count($partial) != 2) {
require_once 'Zend/View/Exception.php';
$e = new Zend_View_Exception(
- 'Unable to render menu: A view partial supplied as '
- . 'an array must contain two values: partial view '
+ 'Unable to render menu: A view partial supplied as '
+ . 'an array must contain two values: partial view '
. 'script and module where script can be found'
);
$e->setView($this->view);
--- a/web/lib/Zend/View/Helper/Navigation/Sitemap.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Navigation/Sitemap.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Sitemap.php 20104 2010-01-06 21:26:01Z matthew $
+ * @version $Id: Sitemap.php 25239 2013-01-22 09:45:01Z frosch $
*/
/**
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Navigation_Sitemap
@@ -54,13 +54,6 @@
const SITEMAP_XSD = 'http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd';
/**
- * Whether XML output should be formatted
- *
- * @var bool
- */
- protected $_formatOutput = false;
-
- /**
* Whether the XML declaration should be included in XML output
*
* @var bool
@@ -109,31 +102,6 @@
// Accessors:
/**
- * Sets whether XML output should be formatted
- *
- * @param bool $formatOutput [optional] whether output
- * should be formatted. Default
- * is true.
- * @return Zend_View_Helper_Navigation_Sitemap fluent interface, returns
- * self
- */
- public function setFormatOutput($formatOutput = true)
- {
- $this->_formatOutput = (bool) $formatOutput;
- return $this;
- }
-
- /**
- * Returns whether XML output should be formatted
- *
- * @return bool whether XML output should be formatted
- */
- public function getFormatOutput()
- {
- return $this->_formatOutput;
- }
-
- /**
* Sets whether the XML declaration should be used in output
*
* @param bool $useXmlDecl whether XML delcaration
@@ -269,15 +237,8 @@
$enc = $this->view->getEncoding();
}
- // TODO: remove check when minimum PHP version is >= 5.2.3
- if (version_compare(PHP_VERSION, '5.2.3', '>=')) {
- // do not encode existing HTML entities
- return htmlspecialchars($string, ENT_QUOTES, $enc, false);
- } else {
- $string = preg_replace('/&(?!(?:#\d++|[a-z]++);)/ui', '&', $string);
- $string = str_replace(array('<', '>', '\'', '"'), array('<', '>', ''', '"'), $string);
- return $string;
- }
+ // do not encode existing HTML entities
+ return htmlspecialchars($string, ENT_QUOTES, $enc, false);
}
// Public methods:
@@ -478,6 +439,6 @@
$dom->saveXML() :
$dom->saveXML($dom->documentElement);
- return rtrim($xml, PHP_EOL);
+ return rtrim($xml, self::EOL);
}
}
--- a/web/lib/Zend/View/Helper/PaginationControl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/PaginationControl.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: PaginationControl.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: PaginationControl.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_PaginationControl
--- a/web/lib/Zend/View/Helper/Partial.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Partial.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Partial.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Partial.php 25203 2013-01-10 11:02:17Z frosch $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Partial extends Zend_View_Helper_Abstract
@@ -71,6 +71,10 @@
if (isset($this->partialCounter)) {
$view->partialCounter = $this->partialCounter;
}
+ if (isset($this->partialTotalCount)) {
+ $view->partialTotalCount = $this->partialTotalCount;
+ }
+
if ((null !== $module) && is_string($module)) {
require_once 'Zend/Controller/Front.php';
$moduleDir = Zend_Controller_Front::getInstance()->getControllerDirectory($module);
--- a/web/lib/Zend/View/Helper/Partial/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Partial/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Partial_Exception extends Zend_View_Exception
--- a/web/lib/Zend/View/Helper/PartialLoop.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/PartialLoop.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: PartialLoop.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: PartialLoop.php 25203 2013-01-10 11:02:17Z frosch $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_PartialLoop extends Zend_View_Helper_Partial
@@ -85,7 +85,9 @@
$content = '';
// reset the counter if it's call again
- $this->partialCounter = 0;
+ $this->partialCounter = 0;
+ $this->partialTotalCount = count($model);
+
foreach ($model as $item) {
// increment the counter variable
$this->partialCounter++;
--- a/web/lib/Zend/View/Helper/Placeholder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Placeholder.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Placeholder.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,7 +34,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Placeholder extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/Placeholder/Container.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Container.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Container.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Container.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Placeholder_Container extends Zend_View_Helper_Placeholder_Container_Abstract
--- a/web/lib/Zend/View/Helper/Placeholder/Container/Abstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Container/Abstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Abstract.php 25255 2013-02-13 15:25:39Z frosch $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,7 +25,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_Placeholder_Container_Abstract extends ArrayObject
@@ -93,7 +93,7 @@
/**
* Constructor - This is needed so that we can attach a class member as the ArrayObject container
*
- * @return void
+ * @return \Zend_View_Helper_Placeholder_Container_Abstract
*/
public function __construct()
{
@@ -252,9 +252,10 @@
/**
* Start capturing content to push into placeholder
*
- * @param int $type How to capture content into placeholder; append, prepend, or set
+ * @param int|string $type How to capture content into placeholder; append, prepend, or set
+ * @param null $key
+ * @throws Zend_View_Helper_Placeholder_Container_Exception
* @return void
- * @throws Zend_View_Helper_Placeholder_Exception if nested captures detected
*/
public function captureStart($type = Zend_View_Helper_Placeholder_Container_Abstract::APPEND, $key = null)
{
@@ -349,10 +350,16 @@
/**
* Render the placeholder
*
+ * @param null $indent
* @return string
*/
public function toString($indent = null)
{
+ // Check items
+ if (0 === $this->count()) {
+ return '';
+ }
+
$indent = ($indent !== null)
? $this->getWhitespace($indent)
: $this->getIndent();
--- a/web/lib/Zend/View/Helper/Placeholder/Container/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Container/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Placeholder_Container_Exception extends Zend_View_Exception
--- a/web/lib/Zend/View/Helper/Placeholder/Container/Standalone.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Container/Standalone.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Standalone.php 20143 2010-01-08 15:17:11Z matthew $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Standalone.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_View_Helper_Placeholder_Container_Standalone extends Zend_View_Helper_Abstract implements IteratorAggregate, Countable, ArrayAccess
--- a/web/lib/Zend/View/Helper/Placeholder/Registry.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Registry.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Registry.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Registry.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -34,7 +34,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Placeholder_Registry
@@ -85,7 +85,7 @@
{
$key = (string) $key;
- $this->_items[$key] = new $this->_containerClass(array());
+ $this->_items[$key] = new $this->_containerClass($value);
return $this->_items[$key];
}
--- a/web/lib/Zend/View/Helper/Placeholder/Registry/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Placeholder/Registry/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Placeholder_Registry_Exception extends Zend_View_Exception
--- a/web/lib/Zend/View/Helper/RenderToPlaceholder.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/RenderToPlaceholder.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: RenderToPlaceholder.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: RenderToPlaceholder.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,7 +29,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -40,8 +40,8 @@
* Renders a template and stores the rendered output as a placeholder
* variable for later use.
*
- * @param $script The template script to render
- * @param $placeholder The placeholder variable name in which to store the rendered output
+ * @param string $script The template script to render
+ * @param string $placeholder The placeholder variable name in which to store the rendered output
* @return void
*/
public function renderToPlaceholder($script, $placeholder)
--- a/web/lib/Zend/View/Helper/ServerUrl.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/ServerUrl.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ServerUrl.php 23371 2010-11-18 20:49:55Z bittarman $
+ * @version $Id: ServerUrl.php 25024 2012-07-30 15:08:15Z rob $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_ServerUrl
@@ -59,7 +59,7 @@
$scheme = 'https';
break;
default:
- $scheme = 'http';
+ $scheme = 'http';
}
$this->setScheme($scheme);
--- a/web/lib/Zend/View/Helper/TinySrc.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/TinySrc.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -25,31 +25,31 @@
/**
* Helper for generating urls and/or image tags for use with tinysrc.net
*
- * tinysrc.net provides an API for generating scaled, browser device-specific
+ * tinysrc.net provides an API for generating scaled, browser device-specific
* images. In essence, you pass the API the URL to an image on your own server,
* and tinysrc.net then provides the appropriate image based on the device that
* accesses it.
*
- * Additionally, tinysrc.net allows you to specify additional configuration via
+ * Additionally, tinysrc.net allows you to specify additional configuration via
* the API:
*
* - image size. You may define this as:
* - explicit size
* - subtractive size (size of screen minus specified number of pixels)
* - percentage size (percentage of screen size))
- * - image format. This will convert the image to the given format; allowed
+ * - image format. This will convert the image to the given format; allowed
* values are "png" or "jpeg". By default, gif images are converted to png.
*
* This helper allows you to specify all configuration options, as well as:
*
* - whether or not to generate the full image tag (or just the URL)
- * - base url to images (which should include the protocol, server, and
+ * - base url to images (which should include the protocol, server, and
* optionally port and base path)
*
* @see http://tinysrc.net/
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_TinySrc extends Zend_View_Helper_HtmlElement
@@ -74,9 +74,9 @@
/**
* Default options
*
- * Used when determining what options were passed, and needing to merge
+ * Used when determining what options were passed, and needing to merge
* them with default options.
- *
+ *
* @var array
*/
protected $_defaultOptions = array(
@@ -94,9 +94,9 @@
/**
* Generate a link or image tag pointing to tinysrc.net
- *
- * @param mixed $image
- * @param array $options
+ *
+ * @param mixed $image
+ * @param array $options
* @return void
*/
public function tinySrc($image = null, array $options = array())
@@ -111,8 +111,8 @@
$url = '/' . $this->_mergeBaseUrl($options) . ltrim($image, '/');
- $src = self::TINYSRC_BASE
- . $this->_mergeFormat($options)
+ $src = self::TINYSRC_BASE
+ . $this->_mergeFormat($options)
. $this->_mergeDimensions($options)
. $url;
@@ -142,8 +142,8 @@
/**
* Set base URL for images
- *
- * @param string $url
+ *
+ * @param string $url
* @return Zend_View_Helper_TinySrc
*/
public function setBaseUrl($url)
@@ -157,7 +157,7 @@
*
* If none already set, uses the ServerUrl and BaseUrl view helpers to
* determine the base URL to images.
- *
+ *
* @return string
*/
public function getBaseUrl()
@@ -172,8 +172,8 @@
* Set default image format
*
* If set, this will set the default format to use on all images.
- *
- * @param null|string $format
+ *
+ * @param null|string $format
* @return Zend_View_Helper_TinySrc
* @throws Zend_View_Exception
*/
@@ -196,12 +196,12 @@
/**
* Set default dimensions
*
- * If null is specified for width, default dimensions will be cleared. If
+ * If null is specified for width, default dimensions will be cleared. If
* only width is specified, only width will be used. If either dimension
* fails validation, an exception is raised.
- *
- * @param null|int|string $width
- * @param null|int|string $height
+ *
+ * @param null|int|string $width
+ * @param null|int|string $height
* @return Zend_View_Helper_TinySrc
* @throws Zend_View_Exception
*/
@@ -232,8 +232,8 @@
/**
* Set state of "create tag" flag
- *
- * @param bool $flag
+ *
+ * @param bool $flag
* @return Zend_View_Helper_TinySrc
*/
public function setCreateTag($flag)
@@ -244,7 +244,7 @@
/**
* Should the helper create an image tag?
- *
+ *
* @return bool
*/
public function createTag()
@@ -256,8 +256,8 @@
* Validate a dimension
*
* Dimensions may be integers, optionally preceded by '-' or 'x'.
- *
- * @param string $dim
+ *
+ * @param string $dim
* @return bool
*/
protected function _validateDimension($dim)
@@ -270,8 +270,8 @@
/**
* Determine whether to use default base URL, or base URL from options
- *
- * @param array $options
+ *
+ * @param array $options
* @return string
*/
protected function _mergeBaseUrl(array $options)
@@ -284,11 +284,11 @@
/**
* Determine whether to use default format or format provided in options.
- *
- * @param array $options
+ *
+ * @param array $options
* @return string
*/
- protected function _mergeFormat(array $options)
+ protected function _mergeFormat(array $options)
{
if (in_array($options['format'], array('png', 'jpeg'))) {
return '/' . $options['format'];
@@ -298,8 +298,8 @@
/**
* Determine whether to use default dimensions, or those passed in options.
- *
- * @param array $options
+ *
+ * @param array $options
* @return string
*/
protected function _mergeDimensions(array $options)
--- a/web/lib/Zend/View/Helper/Translate.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Translate.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Translate.php 20140 2010-01-08 05:21:04Z thomas $
+ * @version $Id: Translate.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Locale */
@@ -31,7 +31,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Translate extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/Url.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/Url.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,8 +15,8 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Url.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Url.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -28,7 +28,7 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_Url extends Zend_View_Helper_Abstract
--- a/web/lib/Zend/View/Helper/UserAgent.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Helper/UserAgent.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,7 +15,7 @@
* @category Zend
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,15 +27,22 @@
*
* @package Zend_View
* @subpackage Helper
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Helper_UserAgent extends Zend_View_Helper_Abstract
{
/**
+ * UserAgent instance
+ *
+ * @var Zend_Http_UserAgent
+ */
+ protected $_userAgent = null;
+
+ /**
* Helper method: retrieve or set UserAgent instance
- *
- * @param null|Zend_Http_UserAgent $userAgent
+ *
+ * @param null|Zend_Http_UserAgent $userAgent
* @return Zend_Http_UserAgent
*/
public function userAgent(Zend_Http_UserAgent $userAgent = null)
@@ -48,8 +55,8 @@
/**
* Set UserAgent instance
- *
- * @param Zend_Http_UserAgent $userAgent
+ *
+ * @param Zend_Http_UserAgent $userAgent
* @return Zend_View_Helper_UserAgent
*/
public function setUserAgent(Zend_Http_UserAgent $userAgent)
@@ -62,7 +69,7 @@
* Retrieve UserAgent instance
*
* If none set, instantiates one using no configuration
- *
+ *
* @return Zend_Http_UserAgent
*/
public function getUserAgent()
--- a/web/lib/Zend/View/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20210 2010-01-12 02:06:34Z yoshida@zend.co.jp $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -25,7 +25,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_View_Interface
--- a/web/lib/Zend/View/Stream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/View/Stream.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Stream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -34,7 +34,7 @@
*
* @category Zend
* @package Zend_View
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_View_Stream
--- a/web/lib/Zend/Wildfire/Channel/HttpHeaders.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Channel/HttpHeaders.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Channel
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpHeaders.php 23096 2010-10-12 20:36:15Z cadorn $
+ * @version $Id: HttpHeaders.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Wildfire_Channel_Interface */
@@ -44,7 +44,7 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Channel
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Channel_HttpHeaders extends Zend_Controller_Plugin_Abstract implements Zend_Wildfire_Channel_Interface
@@ -115,7 +115,7 @@
/**
* Get or create singleton instance
*
- * @param $skipCreate boolean True if an instance should not be created
+ * @param bool $skipCreate True if an instance should not be created
* @return Zend_Wildfire_Channel_HttpHeaders
*/
public static function getInstance($skipCreate=false)
--- a/web/lib/Zend/Wildfire/Channel/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Channel/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,15 +14,15 @@
*
* @category Zend
* @package Zend_Wildfire
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Wildfire
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Wildfire_Channel_Interface
--- a/web/lib/Zend/Wildfire/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,8 +14,8 @@
*
* @category Zend
* @package Zend_Wildfire
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -27,7 +27,7 @@
/**
* @category Zend
* @package Zend_Wildfire
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Exception extends Zend_Exception
--- a/web/lib/Zend/Wildfire/Plugin/FirePhp.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Plugin/FirePhp.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FirePhp.php 23066 2010-10-09 23:29:20Z cadorn $
+ * @version $Id: FirePhp.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Controller_Request_Abstract */
@@ -41,7 +41,7 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Plugin_FirePhp implements Zend_Wildfire_Plugin_Interface
@@ -214,7 +214,7 @@
/**
* Get or create singleton instance
*
- * @param $skipCreate boolean True if an instance should not be created
+ * @param bool $skipCreate True if an instance should not be created
* @return Zend_Wildfire_Plugin_FirePhp
*/
public static function getInstance($skipCreate=false)
@@ -323,11 +323,12 @@
* Starts a group in the Firebug Console
*
* @param string $title The title of the group
+ * @param array $options OPTIONAL Setting 'Collapsed' to true will initialize group collapsed instead of expanded
* @return TRUE if the group instruction was added to the response headers or buffered.
*/
- public static function group($title)
+ public static function group($title, $options=array())
{
- return self::send(null, $title, self::GROUP_START);
+ return self::send(null, $title, self::GROUP_START, $options);
}
/**
@@ -488,6 +489,12 @@
unset($meta['Line']);
}
+ if ($meta['Type'] == self::GROUP_START) {
+ if (isset($options['Collapsed'])) {
+ $meta['Collapsed'] = ($options['Collapsed'])?'true':'false';
+ }
+ }
+
if ($meta['Type'] == self::DUMP) {
return $firephp->_recordMessage(self::STRUCTURE_URI_DUMP,
@@ -515,7 +522,7 @@
$trace = debug_backtrace();
$trace = array_splice($trace, $options['traceOffset']);
-
+
if (!count($trace)) {
return $trace;
}
--- a/web/lib/Zend/Wildfire/Plugin/FirePhp/Message.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Plugin/FirePhp/Message.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Message.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Message.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -28,7 +28,7 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Plugin_FirePhp_Message
--- a/web/lib/Zend/Wildfire/Plugin/FirePhp/TableMessage.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Plugin/FirePhp/TableMessage.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: TableMessage.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: TableMessage.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Wildfire_Plugin_FirePhp */
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_FirePhp_Message
--- a/web/lib/Zend/Wildfire/Plugin/Interface.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Plugin/Interface.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,16 +15,16 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Interface.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Interface.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
* @category Zend
* @package Zend_Wildfire
* @subpackage Plugin
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Zend_Wildfire_Plugin_Interface
--- a/web/lib/Zend/Wildfire/Protocol/JsonStream.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/Wildfire/Protocol/JsonStream.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: JsonStream.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: JsonStream.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Wildfire_Plugin_Interface */
@@ -35,7 +35,7 @@
* @category Zend
* @package Zend_Wildfire
* @subpackage Protocol
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Wildfire_Protocol_JsonStream
--- a/web/lib/Zend/XmlRpc/Client.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Client.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -71,7 +71,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client
@@ -211,7 +211,7 @@
/**
* Returns a proxy object for more convenient method calls
*
- * @param $namespace Namespace to proxy or empty string for none
+ * @param string $namespace Namespace to proxy or empty string for none
* @return Zend_XmlRpc_Client_ServerProxy
*/
public function getProxy($namespace = '')
@@ -294,7 +294,7 @@
$response = new Zend_XmlRpc_Response();
}
$this->_lastResponse = $response;
- $this->_lastResponse->loadXml($httpResponse->getBody());
+ $this->_lastResponse->loadXml(trim($httpResponse->getBody()));
}
/**
@@ -333,22 +333,33 @@
if (!is_array($params)) {
$params = array($params);
}
- foreach ($params as $key => $param) {
+ foreach ($params as $key => $param)
+ {
if ($param instanceof Zend_XmlRpc_Value) {
continue;
}
- $type = Zend_XmlRpc_Value::AUTO_DETECT_TYPE;
- foreach ($signatures as $signature) {
- if (!is_array($signature)) {
- continue;
+ if (count($signatures) > 1) {
+ $type = Zend_XmlRpc_Value::getXmlRpcTypeByValue($param);
+ foreach ($signatures as $signature) {
+ if (!is_array($signature)) {
+ continue;
+ }
+ if (isset($signature['parameters'][$key])) {
+ if ($signature['parameters'][$key] == $type) {
+ break;
+ }
+ }
}
+ } elseif (isset($signatures[0]['parameters'][$key])) {
+ $type = $signatures[0]['parameters'][$key];
+ } else {
+ $type = null;
+ }
- if (isset($signature['parameters'][$key])) {
- $type = $signature['parameters'][$key];
- $type = in_array($type, $validTypes) ? $type : Zend_XmlRpc_Value::AUTO_DETECT_TYPE;
- }
+ if (empty($type) || !in_array($type, $validTypes)) {
+ $type = Zend_XmlRpc_Value::AUTO_DETECT_TYPE;
}
$params[$key] = Zend_XmlRpc_Value::getXmlRpcValue($param, $type);
--- a/web/lib/Zend/XmlRpc/Client/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_Exception extends Zend_XmlRpc_Exception
--- a/web/lib/Zend/XmlRpc/Client/FaultException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/FaultException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: FaultException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: FaultException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_FaultException extends Zend_XmlRpc_Client_Exception
--- a/web/lib/Zend/XmlRpc/Client/HttpException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/HttpException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: HttpException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: HttpException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -34,7 +34,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_HttpException extends Zend_XmlRpc_Client_Exception
--- a/web/lib/Zend/XmlRpc/Client/IntrospectException.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/IntrospectException.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: IntrospectException.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: IntrospectException.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_IntrospectException extends Zend_XmlRpc_Client_Exception
--- a/web/lib/Zend/XmlRpc/Client/ServerIntrospection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/ServerIntrospection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ServerIntrospection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ServerIntrospection.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_ServerIntrospection
--- a/web/lib/Zend/XmlRpc/Client/ServerProxy.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Client/ServerProxy.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: ServerProxy.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: ServerProxy.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Client
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Client_ServerProxy
--- a/web/lib/Zend/XmlRpc/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Exception extends Zend_Exception
--- a/web/lib/Zend/XmlRpc/Fault.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Fault.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,9 +14,9 @@
*
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fault.php 20208 2010-01-11 22:37:37Z lars $
+ * @version $Id: Fault.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -36,7 +36,7 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Fault
--- a/web/lib/Zend/XmlRpc/Generator/DomDocument.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Generator/DomDocument.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Generator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DomDocument.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: DomDocument.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
--- a/web/lib/Zend/XmlRpc/Generator/GeneratorAbstract.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Generator/GeneratorAbstract.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Generator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: GeneratorAbstract.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: GeneratorAbstract.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -47,7 +47,7 @@
* Start XML element
*
* Method opens a new XML element with an element name and an optional value
- *
+ *
* @param string $name XML tag name
* @param string $value Optional value of the XML tag
* @return Zend_XmlRpc_Generator_Abstract Fluent interface
@@ -86,7 +86,7 @@
/**
* Return encoding
- *
+ *
* @return string
*/
public function getEncoding()
@@ -143,7 +143,7 @@
/**
* End XML element
- *
+ *
* @param string $name
*/
abstract protected function _closeElement($name);
--- a/web/lib/Zend/XmlRpc/Generator/XmlWriter.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Generator/XmlWriter.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Generator
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: XmlWriter.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: XmlWriter.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -87,6 +87,7 @@
public function saveXml()
{
- return $this->_xmlWriter->flush(false);
+ $xml = $this->_xmlWriter->flush(false);
+ return $xml;
}
-}
\ No newline at end of file
+}
--- a/web/lib/Zend/XmlRpc/Request.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Request.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -41,9 +41,9 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Request.php 20208 2010-01-11 22:37:37Z lars $
+ * @version $Id: Request.php 25033 2012-08-17 19:50:08Z matthew $
*/
class Zend_XmlRpc_Request
{
@@ -303,12 +303,26 @@
return false;
}
+ // @see ZF-12293 - disable external entities for security purposes
+ $loadEntities = libxml_disable_entity_loader(true);
try {
- $xml = new SimpleXMLElement($request);
+ $dom = new DOMDocument;
+ $dom->loadXML($request);
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/XmlRpc/Exception.php';
+ throw new Zend_XmlRpc_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ $xml = simplexml_import_dom($dom);
+ libxml_disable_entity_loader($loadEntities);
} catch (Exception $e) {
// Not valid XML
$this->_fault = new Zend_XmlRpc_Fault(631);
$this->_fault->setEncoding($this->getEncoding());
+ libxml_disable_entity_loader($loadEntities);
return false;
}
--- a/web/lib/Zend/XmlRpc/Request/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Request/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_XmlRpc_Request_Http extends Zend_XmlRpc_Request
{
--- a/web/lib/Zend/XmlRpc/Request/Stdin.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Request/Stdin.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -32,9 +32,9 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Stdin.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Stdin.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_XmlRpc_Request_Stdin extends Zend_XmlRpc_Request
{
--- a/web/lib/Zend/XmlRpc/Response.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Response.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -35,9 +35,9 @@
*
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Response.php 21359 2010-03-07 00:54:02Z lars $
+ * @version $Id: Response.php 25033 2012-08-17 19:50:08Z matthew $
*/
class Zend_XmlRpc_Response
{
@@ -176,11 +176,27 @@
return false;
}
+ // @see ZF-12293 - disable external entities for security purposes
+ $loadEntities = libxml_disable_entity_loader(true);
+ $useInternalXmlErrors = libxml_use_internal_errors(true);
try {
- $useInternalXmlErrors = libxml_use_internal_errors(true);
+ $dom = new DOMDocument;
+ $dom->loadXML($response);
+ foreach ($dom->childNodes as $child) {
+ if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
+ require_once 'Zend/XmlRpc/Exception.php';
+ throw new Zend_XmlRpc_Exception(
+ 'Invalid XML: Detected use of illegal DOCTYPE'
+ );
+ }
+ }
+ // TODO: Locate why this passes tests but a simplexml import doesn't
+ // $xml = simplexml_import_dom($dom);
$xml = new SimpleXMLElement($response);
+ libxml_disable_entity_loader($loadEntities);
libxml_use_internal_errors($useInternalXmlErrors);
} catch (Exception $e) {
+ libxml_disable_entity_loader($loadEntities);
libxml_use_internal_errors($useInternalXmlErrors);
// Not valid XML
$this->_fault = new Zend_XmlRpc_Fault(651);
@@ -205,6 +221,7 @@
try {
if (!isset($xml->params) || !isset($xml->params->param) || !isset($xml->params->param->value)) {
+ require_once 'Zend/XmlRpc/Value/Exception.php';
throw new Zend_XmlRpc_Value_Exception('Missing XML-RPC value in XML');
}
$valueXml = $xml->params->param->value->asXML();
--- a/web/lib/Zend/XmlRpc/Response/Http.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Response/Http.php Thu Mar 21 19:50:53 2013 +0100
@@ -14,7 +14,7 @@
*
* @category Zend
* @package Zend_Controller
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
@@ -29,9 +29,9 @@
* @uses Zend_XmlRpc_Response
* @category Zend
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Http.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
*/
class Zend_XmlRpc_Response_Http extends Zend_XmlRpc_Response
{
--- a/web/lib/Zend/XmlRpc/Server.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Server.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Server.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Server.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -111,7 +111,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Server extends Zend_Server_Abstract
--- a/web/lib/Zend/XmlRpc/Server/Cache.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Server/Cache.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Cache.php 24593 2012-01-05 20:35:02Z matthew $
*/
/** Zend_Server_Cache */
@@ -29,7 +29,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Server_Cache extends Zend_Server_Cache
--- a/web/lib/Zend/XmlRpc/Server/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Server/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -33,7 +33,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Server_Exception extends Zend_XmlRpc_Exception
--- a/web/lib/Zend/XmlRpc/Server/Fault.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Server/Fault.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Fault.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Fault.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -44,7 +44,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Server_Fault extends Zend_XmlRpc_Fault
--- a/web/lib/Zend/XmlRpc/Server/System.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Server/System.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: System.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: System.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -26,7 +26,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Server
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Server_System
--- a/web/lib/Zend/XmlRpc/Value.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Value.php 22024 2010-04-27 18:08:24Z matthew $
+ * @version $Id: Value.php 24593 2012-01-05 20:35:02Z matthew $
*/
/**
@@ -31,7 +31,7 @@
* from PHP variables, XML string or by specifing the exact XML-RPC natvie type
*
* @package Zend_XmlRpc
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_XmlRpc_Value
@@ -252,6 +252,43 @@
}
}
+ /**
+ * Get XML-RPC type for a PHP native variable
+ *
+ * @static
+ * @param mixed $value
+ * @return string
+ */
+ public static function getXmlRpcTypeByValue($value)
+ {
+ if (is_object($value)) {
+ if ($value instanceof Zend_XmlRpc_Value) {
+ return $value->getType();
+ } elseif (($value instanceof Zend_Date) || ($value instanceof DateTime)) {
+ return self::XMLRPC_TYPE_DATETIME;
+ }
+ return self::getXmlRpcTypeByValue(get_object_vars($value));
+ } elseif (is_array($value)) {
+ if (!empty($value) && is_array($value) && (array_keys($value) !== range(0, count($value) - 1))) {
+ return self::XMLRPC_TYPE_STRUCT;
+ }
+ return self::XMLRPC_TYPE_ARRAY;
+ } elseif (is_int($value)) {
+ return ($value > PHP_INT_MAX) ? self::XMLRPC_TYPE_I8 : self::XMLRPC_TYPE_INTEGER;
+ } elseif (is_double($value)) {
+ return self::XMLRPC_TYPE_DOUBLE;
+ } elseif (is_bool($value)) {
+ return self::XMLRPC_TYPE_BOOLEAN;
+ } elseif (is_null($value)) {
+ return self::XMLRPC_TYPE_NIL;
+ } elseif (is_string($value)) {
+ return self::XMLRPC_TYPE_STRING;
+ }
+ throw new Zend_XmlRpc_Value_Exception(sprintf(
+ 'No matching XMLRPC type found for php type %s.',
+ gettype($value)
+ ));
+ }
/**
* Transform a PHP native variable into a XML-RPC native value
@@ -263,56 +300,52 @@
*/
protected static function _phpVarToNativeXmlRpc($value)
{
- switch (gettype($value)) {
- case 'object':
- // Check to see if it's an XmlRpc value
- if ($value instanceof Zend_XmlRpc_Value) {
- return $value;
- }
-
- if ($value instanceof Zend_Crypt_Math_BigInteger) {
- require_once 'Zend/XmlRpc/Value/BigInteger.php';
- return new Zend_XmlRpc_Value_BigInteger($value);
- }
-
- if ($value instanceof Zend_Date or $value instanceof DateTime) {
- require_once 'Zend/XmlRpc/Value/DateTime.php';
- return new Zend_XmlRpc_Value_DateTime($value);
- }
+ // @see http://framework.zend.com/issues/browse/ZF-8623
+ if (is_object($value)) {
+ if ($value instanceof Zend_XmlRpc_Value) {
+ return $value;
+ }
+ if ($value instanceof Zend_Crypt_Math_BigInteger) {
+ require_once 'Zend/XmlRpc/Value/Exception.php';
+ throw new Zend_XmlRpc_Value_Exception(
+ 'Using Zend_Crypt_Math_BigInteger to get an ' .
+ 'instance of Zend_XmlRpc_Value_BigInteger is not ' .
+ 'available anymore.'
+ );
+ }
+ }
- // Otherwise, we convert the object into a struct
- $value = get_object_vars($value);
- // Break intentionally omitted
- case 'array':
- // Default native type for a PHP array (a simple numeric array) is 'array'
- require_once 'Zend/XmlRpc/Value/Array.php';
- $obj = 'Zend_XmlRpc_Value_Array';
+ switch (self::getXmlRpcTypeByValue($value))
+ {
+ case self::XMLRPC_TYPE_DATETIME:
+ require_once 'Zend/XmlRpc/Value/DateTime.php';
+ return new Zend_XmlRpc_Value_DateTime($value);
- // Determine if this is an associative array
- if (!empty($value) && is_array($value) && (array_keys($value) !== range(0, count($value) - 1))) {
- require_once 'Zend/XmlRpc/Value/Struct.php';
- $obj = 'Zend_XmlRpc_Value_Struct';
- }
- return new $obj($value);
+ case self::XMLRPC_TYPE_ARRAY:
+ require_once 'Zend/XmlRpc/Value/Array.php';
+ return new Zend_XmlRpc_Value_Array($value);
- case 'integer':
+ case self::XMLRPC_TYPE_STRUCT:
+ require_once 'Zend/XmlRpc/Value/Struct.php';
+ return new Zend_XmlRpc_Value_Struct($value);
+
+ case self::XMLRPC_TYPE_INTEGER:
require_once 'Zend/XmlRpc/Value/Integer.php';
return new Zend_XmlRpc_Value_Integer($value);
- case 'double':
+ case self::XMLRPC_TYPE_DOUBLE:
require_once 'Zend/XmlRpc/Value/Double.php';
return new Zend_XmlRpc_Value_Double($value);
- case 'boolean':
+ case self::XMLRPC_TYPE_BOOLEAN:
require_once 'Zend/XmlRpc/Value/Boolean.php';
return new Zend_XmlRpc_Value_Boolean($value);
- case 'NULL':
- case 'null':
+ case self::XMLRPC_TYPE_NIL:
require_once 'Zend/XmlRpc/Value/Nil.php';
- return new Zend_XmlRpc_Value_Nil();
+ return new Zend_XmlRpc_Value_Nil;
- case 'string':
+ case self::XMLRPC_TYPE_STRING:
// Fall through to the next case
default:
// If type isn't identified (or identified as string), it treated as string
@@ -474,7 +507,7 @@
}
/**
- * @param $xml
+ * @param string $xml
* @return void
*/
protected function _setXML($xml)
--- a/web/lib/Zend/XmlRpc/Value/Array.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Array.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Array.php 22024 2010-04-27 18:08:24Z matthew $
+ * @version $Id: Array.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Array extends Zend_XmlRpc_Value_Collection
--- a/web/lib/Zend/XmlRpc/Value/Base64.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Base64.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Base64.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Base64.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Base64 extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/BigInteger.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/BigInteger.php Thu Mar 21 19:50:53 2013 +0100
@@ -1,4 +1,5 @@
<?php
+
/**
* Zend Framework
*
@@ -15,51 +16,43 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: BigInteger.php 20785 2010-01-31 09:43:03Z mikaelkael $
+ * @version $Id: BigInteger.php 24593 2012-01-05 20:35:02Z matthew $
*/
-
/**
* Zend_XmlRpc_Value_Integer
*/
require_once 'Zend/XmlRpc/Value/Integer.php';
-
/**
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_BigInteger extends Zend_XmlRpc_Value_Integer
{
/**
- * @var Zend_Crypt_Math_BigInteger
- */
- protected $_integer;
-
- /**
* @param mixed $value
*/
public function __construct($value)
{
require_once 'Zend/Crypt/Math/BigInteger.php';
- $this->_integer = new Zend_Crypt_Math_BigInteger();
- $this->_value = $this->_integer->init($this->_value);
-
+ $integer = new Zend_Crypt_Math_BigInteger;
+ $this->_value = $integer->init($value);
$this->_type = self::XMLRPC_TYPE_I8;
}
/**
- * Return bigint value object
+ * Return bigint value
*
- * @return Zend_Crypt_Math_BigInteger
+ * @return string
*/
public function getValue()
{
- return $this->_integer;
+ return $this->_value;
}
-}
+}
\ No newline at end of file
--- a/web/lib/Zend/XmlRpc/Value/Boolean.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Boolean.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Boolean.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Boolean.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Boolean extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/Collection.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Collection.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Collection.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Collection.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_XmlRpc_Value_Collection extends Zend_XmlRpc_Value
--- a/web/lib/Zend/XmlRpc/Value/DateTime.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/DateTime.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: DateTime.php 20278 2010-01-14 14:48:59Z ralph $
+ * @version $Id: DateTime.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_DateTime extends Zend_XmlRpc_Value_Scalar
@@ -48,7 +48,7 @@
*
* @var string
*/
- protected $_isoFormatString = 'YYYYMMddTHH:mm:ss';
+ protected $_isoFormatString = 'yyyyMMddTHH:mm:ss';
/**
* Set the value of a dateTime.iso8601 native type
@@ -69,13 +69,13 @@
} elseif (is_numeric($value)) { // The value is numeric, we make sure it is an integer
$this->_value = date($this->_phpFormatString, (int)$value);
} else {
- $timestamp = strtotime($value);
- if ($timestamp === false || $timestamp == -1) { // cannot convert the value to a timestamp
+ $timestamp = new DateTime($value);
+ if ($timestamp === false) { // cannot convert the value to a timestamp
require_once 'Zend/XmlRpc/Value/Exception.php';
throw new Zend_XmlRpc_Value_Exception('Cannot convert given value \''. $value .'\' to a timestamp');
}
- $this->_value = date($this->_phpFormatString, $timestamp); // Convert the timestamp to iso8601 format
+ $this->_value = $timestamp->format($this->_phpFormatString); // Convert the timestamp to iso8601 format
}
}
--- a/web/lib/Zend/XmlRpc/Value/Double.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Double.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Double.php 21158 2010-02-23 17:56:23Z matthew $
+ * @version $Id: Double.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Double extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/Exception.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Exception.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Exception.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Exception extends Zend_XmlRpc_Exception
--- a/web/lib/Zend/XmlRpc/Value/Integer.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Integer.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Integer.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Integer.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Integer extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/Nil.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Nil.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Nil.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: Nil.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Nil extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/Scalar.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Scalar.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Scalar.php 22024 2010-04-27 18:08:24Z matthew $
+ * @version $Id: Scalar.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
abstract class Zend_XmlRpc_Value_Scalar extends Zend_XmlRpc_Value
--- a/web/lib/Zend/XmlRpc/Value/String.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/String.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: String.php 20096 2010-01-06 02:05:09Z bkarwin $
+ * @version $Id: String.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -29,7 +29,7 @@
/**
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_String extends Zend_XmlRpc_Value_Scalar
--- a/web/lib/Zend/XmlRpc/Value/Struct.php Thu Mar 21 17:31:31 2013 +0100
+++ b/web/lib/Zend/XmlRpc/Value/Struct.php Thu Mar 21 19:50:53 2013 +0100
@@ -15,9 +15,9 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id: Struct.php 22024 2010-04-27 18:08:24Z matthew $
+ * @version $Id: Struct.php 24593 2012-01-05 20:35:02Z matthew $
*/
@@ -31,7 +31,7 @@
* @category Zend
* @package Zend_XmlRpc
* @subpackage Value
- * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
+ * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_XmlRpc_Value_Struct extends Zend_XmlRpc_Value_Collection