Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Gdata_Gapps_Extension_Name Class Reference

Public Member Functions

 __construct ($familyName=null, $givenName=null)
 Constructs a new Zend_Gdata_Gapps_Extension_Name object.
 
 getDOM ($doc=null, $majorVersion=1, $minorVersion=null)
 Retrieves a DOMElement which corresponds to this element and all child properties.
 
 getFamilyName ()
 Get the value for this element's familyName attribute.
 
 setFamilyName ($value)
 Set the value for this element's familyName attribute.
 
 getGivenName ()
 Get the value for this element's givenName attribute.
 
 setGivenName ($value)
 Set the value for this element's givenName attribute.
 
 __toString ()
 Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0.
 
- Public Member Functions inherited from Zend_Gdata_Extension
 __construct ()
 

Protected Member Functions

 takeAttributeFromDOM ($attribute)
 Given a DOMNode representing an attribute, tries to map the data into instance members.
 

Protected Attributes

 $_rootNamespace = 'apps'
 
 $_rootElement = 'name'
 
 $_familyName = null
 
 $_givenName = null
 
- Protected Attributes inherited from Zend_Gdata_Extension
 $_rootNamespace = 'gd'
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Gdata_App_Base
static flushNamespaceLookupCache ()
 Flush namespace lookup cache.
 
- Static Protected Attributes inherited from Zend_Gdata_App_Base
static $_namespaceLookupCache = array()
 

Constructor & Destructor Documentation

__construct (   $familyName = null,
  $givenName = null 
)

Constructs a new Zend_Gdata_Gapps_Extension_Name object.

Parameters
string$familyName(optional) The familyName to be set for this object.
string$givenName(optional) The givenName to be set for this object.

Member Function Documentation

__toString ( )

Magic toString method allows using this directly via echo Works best in PHP >= 4.2.0.

getDOM (   $doc = null,
  $majorVersion = 1,
  $minorVersion = null 
)

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.

Parameters
DOMDocument$docThe DOMDocument used to construct DOMElements
Returns
DOMElement The DOMElement representing this element and all child properties.
getFamilyName ( )

Get the value for this element's familyName attribute.

See Also
setFamilyName
Returns
string The requested attribute.
getGivenName ( )

Get the value for this element's givenName attribute.

See Also
setGivenName
Returns
string The requested attribute.
setFamilyName (   $value)

Set the value for this element's familyName attribute.

This represents a user's family name.

Parameters
string$valueThe desired value for this attribute.
Returns
Zend_Gdata_Gapps_Extension_Name Provides a fluent interface..
setGivenName (   $value)

Set the value for this element's givenName attribute.

This represents a user's given name.

Parameters
string$valueThe desired value for this attribute.
Returns
Zend_Gdata_Gapps_Extension_Name Provides a fluent interface.
takeAttributeFromDOM (   $attribute)
protected

Given a DOMNode representing an attribute, tries to map the data into instance members.

If no mapping is defined, the name and value are stored in an array.

Parameters
DOMNode$attributeThe DOMNode attribute needed to be handled

Member Data Documentation

$_familyName = null
protected
$_givenName = null
protected
$_rootElement = 'name'
protected
$_rootNamespace = 'apps'
protected