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']; } /** * 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; } }