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:name element used by the Apps data API. This is used
|
||||
* to represent a user's full name. This class is usually contained within
|
||||
* Represents the apps:name element used by the Apps data API. This is used
|
||||
* to represent a user's full name. This class is usually contained within
|
||||
* instances of Zend_Gdata_Gapps_UserEntry.
|
||||
*
|
||||
* @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,47 +46,45 @@ class Zend_Gdata_Gapps_Extension_Name extends Zend_Gdata_Extension
|
||||
|
||||
protected $_rootNamespace = 'apps';
|
||||
protected $_rootElement = 'name';
|
||||
|
||||
|
||||
/**
|
||||
* The associated user's family name.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_familyName = null;
|
||||
|
||||
|
||||
/**
|
||||
* The associated user's given name.
|
||||
*
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $_givenName = null;
|
||||
|
||||
/**
|
||||
* Constructs a new Zend_Gdata_Gapps_Extension_Name object.
|
||||
*
|
||||
* @param string $familyName (optional) The familyName to be set for this
|
||||
*
|
||||
* @param string $familyName (optional) The familyName to be set for this
|
||||
* object.
|
||||
* @param string $givenName (optional) The givenName to be set for this
|
||||
* @param string $givenName (optional) The givenName to be set for this
|
||||
* object.
|
||||
*/
|
||||
public function __construct($familyName = null, $givenName = null)
|
||||
public function __construct($familyName = null, $givenName = null)
|
||||
{
|
||||
foreach (Zend_Gdata_Gapps::$namespaces as $nsPrefix => $nsUri) {
|
||||
$this->registerNamespace($nsPrefix, $nsUri);
|
||||
}
|
||||
parent::__construct();
|
||||
$this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces);
|
||||
parent::__construct();
|
||||
$this->_familyName = $familyName;
|
||||
$this->_givenName = $givenName;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@ -102,7 +101,7 @@ class Zend_Gdata_Gapps_Extension_Name 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
|
||||
@ -133,7 +132,7 @@ class Zend_Gdata_Gapps_Extension_Name extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's familyName attribute. This
|
||||
* Set the value for this element's familyName attribute. This
|
||||
* represents a user's family name.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
@ -144,7 +143,7 @@ class Zend_Gdata_Gapps_Extension_Name extends Zend_Gdata_Extension
|
||||
$this->_familyName = $value;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the value for this element's givenName attribute.
|
||||
*
|
||||
@ -157,7 +156,7 @@ class Zend_Gdata_Gapps_Extension_Name extends Zend_Gdata_Extension
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value for this element's givenName attribute. This
|
||||
* Set the value for this element's givenName attribute. This
|
||||
* represents a user's given name.
|
||||
*
|
||||
* @param string $value The desired value for this attribute.
|
||||
|
Reference in New Issue
Block a user