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

Class represents phone contact attribute. More...

Inheritance diagram for PhoneAttribute:
Attribute

Public Member Functions

 __construct ($value=null, $type=null)
 PhoneAttribute constructor. More...
 
 getValue ()
 
 setValue ($value)
 
 getType ()
 
 setType ($type)
 
 fromXML (\SimpleXMLElement &$xml)
 
 toXML (\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 PHONE_HOME = "http://schemas.google.com/g/2005#home"
 
const PHONE_MOBILE = "http://schemas.google.com/g/2005#mobile"
 
const PHONE_FAX = "http://schemas.google.com/g/2005#fax"
 
const PHONE_WORK = "http://schemas.google.com/g/2005#work"
 
const ATR_NAME = "gd:phoneNumber"
 

Private Attributes

 $value
 
 $type
 

Additional Inherited Members

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

Detailed Description

Class represents phone contact attribute.

Constructor & Destructor Documentation

◆ __construct()

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

PhoneAttribute constructor.

Parameters
string$value
string$type

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:phoneNumber"

◆ PHONE_FAX

const PHONE_FAX = "http://schemas.google.com/g/2005#fax"

◆ PHONE_HOME

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

◆ PHONE_MOBILE

const PHONE_MOBILE = "http://schemas.google.com/g/2005#mobile"

◆ PHONE_WORK

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

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