import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -30,6 +30,7 @@ require_once 'Zend/Gdata/App/Extension/Element.php';
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gbase
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -42,27 +43,25 @@ class Zend_Gdata_Gbase_Extension_BaseAttribute extends Zend_Gdata_App_Extension_
|
||||
* var @string
|
||||
*/
|
||||
protected $_rootNamespace = 'g';
|
||||
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
*
|
||||
* @param string $name (optional) The name of the Base attribute
|
||||
* @param string $text (optional) The text value of the Base attribute
|
||||
* @param string $text (optional) The type of the Base attribute
|
||||
*/
|
||||
public function __construct($name = null, $text = null, $type = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Gbase::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$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),
|
||||
parent::__construct($name,
|
||||
$this->_rootNamespace,
|
||||
$this->lookupNamespace($this->_rootNamespace),
|
||||
$text);
|
||||
}
|
||||
|
||||
@ -87,7 +86,7 @@ class Zend_Gdata_Gbase_Extension_BaseAttribute extends Zend_Gdata_App_Extension_
|
||||
|
||||
/**
|
||||
* Set the 'name' of the Base attribute object:
|
||||
* <g:[$name] type='[$type]'>[$value]</g:[$name]>
|
||||
* <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
|
||||
@ -100,7 +99,7 @@ class Zend_Gdata_Gbase_Extension_BaseAttribute extends Zend_Gdata_App_Extension_
|
||||
|
||||
/**
|
||||
* Set the 'type' of the Base attribute object:
|
||||
* <g:[$name] type='[$type]'>[$value]</g:[$name]>
|
||||
* <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
|
||||
|
Reference in New Issue
Block a user