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

Class represents email contact attribute. More...

Inheritance diagram for EmailAttribute:
Attribute

Public Member Functions

 __construct ($value=null, $type=null)
 
 getValue ()
 
 setValue ($value)
 
 getType ()
 
 setType ($type)
 
 toXML (\SimpleXMLElement &$xml)
 
 fromXML (\SimpleXMLElement &$xml)
 
- 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 EMAIL_HOME = "http://schemas.google.com/g/2005#home"
 
const EMAIL_WORK = "http://schemas.google.com/g/2005#work"
 
const EMAIL_OTHER = "http://schemas.google.com/g/2005#other"
 
const ATR_NAME = "gd:email"
 

Private Attributes

 $value
 
 $type
 

Additional Inherited Members

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

Detailed Description

Class represents email contact attribute.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $value = null,
  $type = null 
)

Member Function Documentation

◆ fromXML()

fromXML ( \SimpleXMLElement &  $xml)

◆ getType()

getType ( )
Returns
string

◆ getValue()

getValue ( )
Returns
string

◆ setType()

setType (   $type)
Parameters
string$type

◆ setValue()

setValue (   $value)
Parameters
string$value

◆ toXML()

toXML ( \SimpleXMLElement &  $xml)

Field Documentation

◆ $type

$type
private

◆ $value

$value
private

◆ ATR_NAME

const ATR_NAME = "gd:email"

◆ EMAIL_HOME

const EMAIL_HOME = "http://schemas.google.com/g/2005#home"

◆ EMAIL_OTHER

const EMAIL_OTHER = "http://schemas.google.com/g/2005#other"

◆ EMAIL_WORK

const EMAIL_WORK = "http://schemas.google.com/g/2005#work"

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