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

Abstract class which is the ancestor of all other attributes. More...

Inheritance diagram for Attribute:
AddressAttribute CustomAttribute EmailAttribute NameAttribute OrganizationAttribute PhoneAttribute

Public Member Functions

 toXML (\SimpleXMLElement &$xml)
 Convert current attribute to XML. More...
 
 fromXML (\SimpleXMLElement &$xml)
 Create new instance of attribute from XML. More...
 

Static Protected Member Functions

static getChildValue (\SimpleXMLElement &$xml, $elementName)
 

Detailed Description

Abstract class which is the ancestor of all other attributes.

All descendants must implement to/from XML conversions.

Member Function Documentation

◆ fromXML()

fromXML ( \SimpleXMLElement &  $xml)
abstract

Create new instance of attribute from XML.

Parameters
\SimpleXMLElement$xml
Returns
$this

◆ getChildValue()

static getChildValue ( \SimpleXMLElement &  $xml,
  $elementName 
)
staticprotected
Parameters
\SimpleXMLElement$xml
string$elementName
Returns
null|

◆ toXML()

toXML ( \SimpleXMLElement &  $xml)
abstract

Convert current attribute to XML.

Returns

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