import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -31,12 +31,13 @@ require_once 'Zend/Gdata/Extension.php';
|
||||
require_once 'Zend/Gdata/Gapps.php';
|
||||
|
||||
/**
|
||||
* Represents the apps:nickname element used by the Apps data API. This
|
||||
* is used to describe a nickname's properties, and is usually contained
|
||||
* Represents the apps:nickname element used by the Apps data API. This
|
||||
* is used to describe a nickname's properties, and is usually contained
|
||||
* within instances of Zend_Gdata_Gapps_NicknameEntry.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Gdata
|
||||
* @subpackage Gapps
|
||||
* @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
@ -45,11 +46,11 @@ class Zend_Gdata_Gapps_Extension_Nickname extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'apps';
|
||||
protected $_rootElement = 'nickname';
|
||||
|
||||
|
||||
/**
|
||||
* The name of the nickname. This name is used as the email address
|
||||
* The name of the nickname. This name is used as the email address
|
||||
* for this nickname.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_name = null;
|
||||
@ -58,23 +59,21 @@ class Zend_Gdata_Gapps_Extension_Nickname extends Zend_Gdata_Extension
|
||||
* Constructs a new Zend_Gdata_Gapps_Extension_Nickname object.
|
||||
* @param string $name (optional) The nickname being represented.
|
||||
*/
|
||||
public function __construct($name = null)
|
||||
public function __construct($name = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Gapps::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
parent::__construct();
|
||||
$this->_name = $name;
|
||||
$this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces);
|
||||
parent::__construct();
|
||||
$this->_name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a DOMElement which corresponds to this element and all
|
||||
* 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.
|
||||
* for application storage/persistence.
|
||||
*
|
||||
* @param DOMDocument $doc The DOMDocument used to construct DOMElements
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* @return DOMElement The DOMElement representing this element and all
|
||||
* child properties.
|
||||
*/
|
||||
public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
|
||||
@ -88,7 +87,7 @@ class Zend_Gdata_Gapps_Extension_Nickname extends Zend_Gdata_Extension
|
||||
|
||||
/**
|
||||
* Given a DOMNode representing an attribute, tries to map the data into
|
||||
* instance members. If no mapping is defined, the name and value are
|
||||
* instance members. If no mapping is defined, the name and value are
|
||||
* stored in an array.
|
||||
*
|
||||
* @param DOMNode $attribute The DOMNode attribute needed to be handled
|
||||
@ -116,12 +115,12 @@ class Zend_Gdata_Gapps_Extension_Nickname extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's name attribute. This name uniquely
|
||||
* Set the value for this element's name attribute. This name uniquely
|
||||
* describes this nickname within the domain. Emails addressed to this
|
||||
* name will be delivered to the user who owns this nickname.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
* @return Zend_Gdata_Gapps_Extension_Nickname Provides a fluent
|
||||
* @return Zend_Gdata_Gapps_Extension_Nickname Provides a fluent
|
||||
* interface.
|
||||
*/
|
||||
public function setName($value)
|
||||
|
Reference in New Issue
Block a user