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

Class represents custom attribute (key, value pairs) More...

Inheritance diagram for CustomAttribute:
Attribute

Public Member Functions

 __construct ($key=null, $value=null)
 
 toXML (\SimpleXMLElement &$xml)
 
 fromXML (\SimpleXMLElement &$xml)
 
 getKey ()
 
 setKey ($key)
 
 getValue ()
 
 setValue ($value)
 
- 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:extendedProperty"
 
const MAXIMUM_AMOUNT = 10
 

Private Attributes

 $key
 
 $value
 

Additional Inherited Members

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

Detailed Description

Class represents custom attribute (key, value pairs)

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ fromXML()

fromXML ( \SimpleXMLElement &  $xml)

◆ getKey()

getKey ( )
Returns
string

◆ getValue()

getValue ( )
Returns
string

◆ setKey()

setKey (   $key)
Parameters
string$key
Returns
CustomAttribute

◆ setValue()

setValue (   $value)
Parameters
string$value
Returns
CustomAttribute

◆ toXML()

toXML ( \SimpleXMLElement &  $xml)

Field Documentation

◆ $key

$key
private

◆ $value

$value
private

◆ ATR_NAME

const ATR_NAME = "gd:extendedProperty"

◆ MAXIMUM_AMOUNT

const MAXIMUM_AMOUNT = 10

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