diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Gdata/Gbase/Extension/BaseAttribute.php --- 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; - } - }