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:emailList element used by the Apps data API. This
|
||||
* class represents properties of an email list and is usually contained
|
||||
* Represents the apps:emailList element used by the Apps data API. This
|
||||
* class represents properties of an email list and is usually contained
|
||||
* within an instance of Zend_Gdata_Gapps_EmailListEntry.
|
||||
*
|
||||
* @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,37 +46,35 @@ class Zend_Gdata_Gapps_Extension_EmailList extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'apps';
|
||||
protected $_rootElement = 'emailList';
|
||||
|
||||
|
||||
/**
|
||||
* The name of the email list. This name is used as the email address
|
||||
* The name of the email list. This name is used as the email address
|
||||
* for this list.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_name = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Gapps_Extension_EmailList object.
|
||||
*
|
||||
*
|
||||
* @param string $name (optional) The name to be used for this email list.
|
||||
*/
|
||||
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)
|
||||
@ -89,7 +88,7 @@ class Zend_Gdata_Gapps_Extension_EmailList 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
|
||||
@ -117,8 +116,8 @@ class Zend_Gdata_Gapps_Extension_EmailList extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's name attribute. This is the unique
|
||||
* name which will be used to identify this email list within this
|
||||
* Set the value for this element's name attribute. This is the unique
|
||||
* name which will be used to identify this email list within this
|
||||
* domain, and will be used to form this email list's email address.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
@ -133,7 +132,7 @@ class Zend_Gdata_Gapps_Extension_EmailList extends Zend_Gdata_Extension
|
||||
/**
|
||||
* Magic toString method allows using this directly via echo
|
||||
* Works best in PHP >= 4.2.0
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
|
Reference in New Issue
Block a user