CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
GenericVCardHandler_xCard Class Reference

Public Member Functions

 __construct ($parent, $params)
 
 export_vCard ()
 
 toXml ($data, $rootNodeName= 'data', $xml=null)
 
 import_vCard ()
 
 extract_data ($reader, $result)
 

Detailed Description

GenericVCardHandler_xCard class.

Constructor & Destructor Documentation

GenericVCardHandler_xCard::__construct (   $parent,
  $params 
)

Class constructor.

Parameters
Object$parent
array$params
Returns
void

Member Function Documentation

GenericVCardHandler_xCard::export_vCard ( )

Export vCard

Returns
mixed
GenericVCardHandler_xCard::extract_data (   $reader,
  $result 
)
GenericVCardHandler_xCard::import_vCard ( )

Import vCard.

Returns
mixed
GenericVCardHandler_xCard::toXml (   $data,
  $rootNodeName = 'data',
  $xml = null 
)

The main function for converting to an XML document. Pass in a multi dimensional array and this recrusively loops through and builds up an XML document.

Parameters
array$data
string$rootNodeName- what you want the root node to be - defaultsto data.
SimpleXMLElement$xml- should only be used recursively
Returns
string XML

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