dolibarr 18.0.6
|
Class to buld vCard files. More...
Public Member Functions | |
setPhoneNumber ($number, $type="") | |
mise en forme du numero de telephone | |
setPhoto ($type, $photo) | |
mise en forme de la photo warning NON TESTE ! | |
setFormattedName ($name) | |
mise en forme du nom formate | |
setName ($family="", $first="", $additional="", $prefix="", $suffix="") | |
mise en forme du nom complet | |
setBirthday ($date) | |
mise en forme de l'anniversaire | |
setAddress ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="", $label="") | |
Address. | |
setLabel ($postoffice="", $extended="", $street="", $city="", $region="", $zip="", $country="", $type="HOME") | |
Address (old standard) | |
setEmail ($address, $type="") | |
Add a e-mail address to this vCard. | |
setNote ($note) | |
mise en forme de la note | |
setTitle ($title) | |
mise en forme de la fonction | |
setOrg ($org) | |
mise en forme de la societe | |
setProdId ($prodid) | |
mise en forme du logiciel generateur | |
setUID ($uid) | |
mise en forme du logiciel generateur | |
setURL ($url, $type="") | |
mise en forme de l'url | |
getVCard () | |
permet d'obtenir une vcard | |
getFileName () | |
permet d'obtenir le nom de fichier | |
buildVCardString ($object, $company, $langs, $urlphoto='') | |
Return a VCARD string See RFC https://datatracker.ietf.org/doc/html/rfc6350. | |
Class to buld vCard files.
Definition at line 88 of file vcard.class.php.
vCard::buildVCardString | ( | $object, | |
$company, | |||
$langs, | |||
$urlphoto = '' ) |
Return a VCARD string See RFC https://datatracker.ietf.org/doc/html/rfc6350.
Object | $object | Object (User or Contact) |
Societe | null | $company | Company. May be null |
Translate | $langs | Lang object |
string | $urlphoto | Full public URL of photo |
Definition at line 393 of file vcard.class.php.
References dol_mimetype(), dol_trunc(), getVCard(), setAddress(), setBirthday(), setEmail(), setFormattedName(), setName(), setNote(), setOrg(), setPhoneNumber(), setPhoto(), setProdId(), setTitle(), and setURL().
vCard::getFileName | ( | ) |
permet d'obtenir le nom de fichier
Definition at line 378 of file vcard.class.php.
vCard::getVCard | ( | ) |
permet d'obtenir une vcard
Definition at line 358 of file vcard.class.php.
Referenced by buildVCardString().
vCard::setAddress | ( | $postoffice = "", | |
$extended = "", | |||
$street = "", | |||
$city = "", | |||
$region = "", | |||
$zip = "", | |||
$country = "", | |||
$type = "", | |||
$label = "" ) |
Address.
string | $postoffice | Postoffice |
string | $extended | Extended |
string | $street | Street |
string | $city | City |
string | $region | Region |
string | $zip | Zip |
string | $country | Country |
string | $type | Type |
string | $label | Label |
Definition at line 199 of file vcard.class.php.
References encode().
Referenced by buildVCardString().
vCard::setBirthday | ( | $date | ) |
mise en forme de l'anniversaire
integer | $date | Date |
Definition at line 178 of file vcard.class.php.
References dol_print_date().
Referenced by buildVCardString().
vCard::setEmail | ( | $address, | |
$type = "" ) |
Add a e-mail address to this vCard.
string | $address | E-mail address |
string | $type | (optional) The type of the e-mail (typical "PREF" or "INTERNET") |
Definition at line 266 of file vcard.class.php.
Referenced by buildVCardString().
vCard::setFormattedName | ( | $name | ) |
mise en forme du nom formate
string | $name | Name |
Definition at line 147 of file vcard.class.php.
References encode().
Referenced by buildVCardString(), and setName().
vCard::setLabel | ( | $postoffice = "", | |
$extended = "", | |||
$street = "", | |||
$city = "", | |||
$region = "", | |||
$zip = "", | |||
$country = "", | |||
$type = "HOME" ) |
Address (old standard)
string | $postoffice | Postoffice |
string | $extended | Extended |
string | $street | Street |
string | $city | City |
string | $region | Region |
string | $zip | Zip |
string | $country | Country |
string | $type | Type |
Definition at line 231 of file vcard.class.php.
References encode().
vCard::setName | ( | $family = "", | |
$first = "", | |||
$additional = "", | |||
$prefix = "", | |||
$suffix = "" ) |
mise en forme du nom complet
string | $family | Family name |
string | $first | First name |
string | $additional | Additional (e.g. second name, nick name) |
string | $prefix | Title prefix (e.g. "Mr.", "Ms.", "Prof.") |
string | $suffix | Suffix (e.g. "sen." for senior, "jun." for junior) |
Definition at line 162 of file vcard.class.php.
References encode(), and setFormattedName().
Referenced by buildVCardString().
vCard::setNote | ( | $note | ) |
mise en forme de la note
string | $note | Note |
Definition at line 283 of file vcard.class.php.
References encode().
Referenced by buildVCardString().
vCard::setOrg | ( | $org | ) |
mise en forme de la societe
string | $org | Org |
Definition at line 306 of file vcard.class.php.
References encode().
Referenced by buildVCardString().
vCard::setPhoneNumber | ( | $number, | |
$type = "" ) |
mise en forme du numero de telephone
int | $number | numero de telephone |
string | $type | Type ('cell') |
Definition at line 113 of file vcard.class.php.
Referenced by buildVCardString().
vCard::setPhoto | ( | $type, | |
$photo ) |
mise en forme de la photo warning NON TESTE !
string | $type | Type 'image/jpeg' or 'JPEG' |
string | $photo | Photo |
Definition at line 133 of file vcard.class.php.
Referenced by buildVCardString().
vCard::setProdId | ( | $prodid | ) |
mise en forme du logiciel generateur
string | $prodid | Prodid |
Definition at line 318 of file vcard.class.php.
References encode().
Referenced by buildVCardString().
vCard::setTitle | ( | $title | ) |
mise en forme de la fonction
string | $title | Title |
Definition at line 294 of file vcard.class.php.
References encode().
Referenced by buildVCardString().
vCard::setUID | ( | $uid | ) |
mise en forme du logiciel generateur
string | $uid | Uid |
Definition at line 330 of file vcard.class.php.
References encode().
vCard::setURL | ( | $url, | |
$type = "" ) |
mise en forme de l'url
string | $url | URL |
string | $type | Type |
Definition at line 343 of file vcard.class.php.
Referenced by buildVCardString().