Gdata/Gapps/Extension/Name.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- Gapps
- Version
- $Id$
\Zend_Gdata_Gapps_Extension_Name
- Parent(s)
- \Zend_Gdata_Extension < \Zend_Gdata_App_Extension < \Zend_Gdata_App_Base
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

__construct(string $familyName = null, string $givenName = null) : voidConstructs a new Zend_Gdata_Gapps_Extension_Name object.
| Name | Type | Description |
|---|---|---|
| $familyName | string | (optional) The familyName to be set for this |
| $givenName | string | (optional) The givenName to be set for this |

__toString() : voidMagic toString method allows using this directly via echo Works best in PHP >= 4.2.0

getDOM(\DOMDocument $doc = null, $majorVersion = 1, $minorVersion = null) : \DOMElementRetrieves 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.
| Name | Type | Description |
|---|---|---|
| $doc | \DOMDocument | The DOMDocument used to construct DOMElements |
| $majorVersion | ||
| $minorVersion |
| Type | Description |
|---|---|
| \DOMElement | The DOMElement representing this element and all child properties. |

setFamilyName(string $value) : \Zend_Gdata_Gapps_Extension_NameSet the value for this element's familyName attribute. This represents a user's family name.
| Name | Type | Description |
|---|---|---|
| $value | string | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_Extension_Name | Provides a fluent interface.. |

setGivenName(string $value) : \Zend_Gdata_Gapps_Extension_NameSet the value for this element's givenName attribute. This represents a user's given name.
| Name | Type | Description |
|---|---|---|
| $value | string | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Gapps_Extension_Name | Provides a fluent interface. |