CrmVcard
in package
CrmVcard Class CRM A class to generate vCards for contact data.
Tags
Table of Contents
Properties
- $card : string
- card
- $class : string
- PUBLIC, PRIVATE, CONFIDENTIAL
- $data : array<string|int, mixed>
- array of this vcard's contact data
- $filename : string
- filename for download file naming
- $log : string
- log
- $revision_date : string
- revision_date
Methods
- build() : mixed
- build() method checks all the values, builds appropriate defaults for missing values, generates the vcard data string.
- download() : bool
- download() method streams the vcard to the browser client.
- vcard() : bool
- The class constructor. You can set some defaults here if desired.
Properties
$card
card
public
string
$card
Tags
$class
PUBLIC, PRIVATE, CONFIDENTIAL
public
string
$class
Tags
$data
array of this vcard's contact data
public
array<string|int, mixed>
$data
Tags
$filename
filename for download file naming
public
string
$filename
Tags
$log
log
public
string
$log
Tags
$revision_date
revision_date
public
string
$revision_date
Tags
Methods
build()
build() method checks all the values, builds appropriate defaults for missing values, generates the vcard data string.
public
build() : mixed
download()
download() method streams the vcard to the browser client.
public
download() : bool
Return values
boolvcard()
The class constructor. You can set some defaults here if desired.
public
vcard() : bool