Google Shared Contacts Manager  1.0
Semestral project for BI-ZNF
AddressAttribute Class Reference

Class represent the address of Contact. More...

Inheritance diagram for AddressAttribute:
Attribute

Public Member Functions

 toXML (\SimpleXMLElement &$xml)
 
 fromXML (\SimpleXMLElement &$xml)
 
 getStreet ()
 
 setStreet ($street)
 
 getCity ()
 
 setCity ($city)
 
 getRegion ()
 
 setRegion ($region)
 
 getCountry ()
 
 setCountry ($country)
 
 getPostCode ()
 
 setPostCode ($postCode)
 
- Public Member Functions inherited from Attribute
 toXML (\SimpleXMLElement &$xml)
 Convert current attribute to XML. More...
 
 fromXML (\SimpleXMLElement &$xml)
 Create new instance of attribute from XML. More...
 

Data Fields

const ATR_NAME = "gd:structuredPostalAddress"
 
const ATR_CITY = "gd:city"
 
const ATR_STREET = "gd:street"
 
const ATR_REGION = "gd:region"
 
const ATR_COUNTRY = "gd:country"
 
const ATR_POSTCODE = "gd:postcode"
 

Private Attributes

 $street
 
 $city
 
 $region
 
 $country
 
 $postCode
 

Additional Inherited Members

- Static Protected Member Functions inherited from Attribute
static getChildValue (\SimpleXMLElement &$xml, $elementName)
 

Detailed Description

Class represent the address of Contact.

Member Function Documentation

◆ fromXML()

fromXML ( \SimpleXMLElement &  $xml)

◆ getCity()

getCity ( )
Returns
string

◆ getCountry()

getCountry ( )
Returns
string

◆ getPostCode()

getPostCode ( )
Returns
string

◆ getRegion()

getRegion ( )
Returns
string

◆ getStreet()

getStreet ( )
Returns
string

◆ setCity()

setCity (   $city)
Parameters
string$city
Returns
AddressAttribute

◆ setCountry()

setCountry (   $country)
Parameters
string$country
Returns
AddressAttribute

◆ setPostCode()

setPostCode (   $postCode)
Parameters
string$postCode
Returns
AddressAttribute

◆ setRegion()

setRegion (   $region)
Parameters
string$region
Returns
AddressAttribute

◆ setStreet()

setStreet (   $street)
Parameters
string$street
Returns
AddressAttribute

◆ toXML()

toXML ( \SimpleXMLElement &  $xml)

Field Documentation

◆ $city

$city
private

◆ $country

$country
private

◆ $postCode

$postCode
private

◆ $region

$region
private

◆ $street

$street
private

◆ ATR_CITY

const ATR_CITY = "gd:city"

◆ ATR_COUNTRY

const ATR_COUNTRY = "gd:country"

◆ ATR_NAME

const ATR_NAME = "gd:structuredPostalAddress"

◆ ATR_POSTCODE

const ATR_POSTCODE = "gd:postcode"

◆ ATR_REGION

const ATR_REGION = "gd:region"

◆ ATR_STREET

const ATR_STREET = "gd:street"

The documentation for this class was generated from the following file: