import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -37,6 +37,7 @@ require_once 'Zend/Gdata/Gbase/Extension/BaseAttribute.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
|
||||
*/
|
||||
@ -63,9 +64,7 @@ class Zend_Gdata_Gbase_Entry extends Zend_Gdata_Entry
|
||||
*/
|
||||
public function __construct($element = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Gbase::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Gbase::$namespaces);
|
||||
parent::__construct($element);
|
||||
}
|
||||
|
||||
@ -121,7 +120,7 @@ class Zend_Gdata_Gbase_Entry extends Zend_Gdata_Entry
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Return all the Base attributes
|
||||
* @return Zend_Gdata_Gbase_Extension_BaseAttribute
|
||||
*/
|
||||
@ -129,18 +128,18 @@ class Zend_Gdata_Gbase_Entry extends Zend_Gdata_Entry
|
||||
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)
|
||||
public function getGbaseAttribute($name)
|
||||
{
|
||||
$matches = array();
|
||||
for ($i = 0; $i < count($this->_baseAttributes); $i++) {
|
||||
$baseAttribute = $this->_baseAttributes[$i];
|
||||
if ($baseAttribute->rootElement == $name &&
|
||||
if ($baseAttribute->rootElement == $name &&
|
||||
$baseAttribute->rootNamespaceURI == $this->lookupNamespace('g')) {
|
||||
$matches[] = &$this->_baseAttributes[$i];
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -32,6 +32,7 @@ require_once 'Zend/Gdata/Feed.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
|
||||
*/
|
||||
@ -46,15 +47,13 @@ class Zend_Gdata_Gbase_Feed extends Zend_Gdata_Feed
|
||||
|
||||
/**
|
||||
* Create a new instance.
|
||||
*
|
||||
*
|
||||
* @param DOMElement $element (optional) DOMElement from which this
|
||||
* object should be constructed.
|
||||
*/
|
||||
public function __construct($element = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Gbase::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
$this->registerAllNamespaces(Zend_Gdata_Gbase::$namespaces);
|
||||
parent::__construct($element);
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ require_once 'Zend/Gdata/Gbase/Entry.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
|
||||
*/
|
||||
|
@ -32,6 +32,7 @@ require_once 'Zend/Gdata/Gbase/Feed.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
|
||||
*/
|
||||
|
@ -38,6 +38,7 @@ require_once('Zend/Gdata/Gbase/Query.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
|
||||
*/
|
||||
|
@ -32,6 +32,7 @@ require_once('Zend/Gdata/Query.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
|
||||
*/
|
||||
|
@ -32,6 +32,7 @@ require_once 'Zend/Gdata/Gbase/Entry.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
|
||||
*/
|
||||
|
@ -32,6 +32,7 @@ require_once 'Zend/Gdata/Gbase/Feed.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
|
||||
*/
|
||||
|
@ -37,6 +37,7 @@ require_once('Zend/Gdata/Gbase/Query.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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user