Class VCard
vCard component that creates vCard-formatted address book data
Methods summary
public
|
|
public
string
|
#
create( array $data, boolean $stream = true, string $file_name = null )
Creates a vCard with the given data
Creates a vCard with the given data
Parameters
- $data
A list of fields to set in the vCard, including (all optional):
- first_name The first name of the contact
- last_name The last name of the contact
- company The contact's company name
- title The contact's title
- email1 The contact's email address (@deprecated since v4.5.0, use 'email' instead)
- email The contact's email address
- home_address The contact's home street address
- home_city The contact's home city
- home_state The contact's home 2-character state
- home_postal_code The contact's home zip/postal code
- home_country The contact's home 2-character country
- work_address The contact's work street address
- work_city The contact's work city
- work_state The contact's work 2-character state
- work_postal_code The contact's work zip/postal code
- work_country The contact's work 2-character country
- home_tel The contact's home phone number
- cell_tel The contact's cell phone number
- fax_tel The contact's fax number
- office_tel The contact's office phone number (@deprecated since v4.5.0, use 'work_tel' instead)
- work_tel The contact's work phone number
- $stream
- True to stream the vCard for download (optional)
- $file_name
- The name of the file to stream (optional)
Returns
string A string representing the vCard
|