function toVcard(CMbvCardExport $vcard) { $vcard->addName($this->prenom, $this->nom, ucfirst($this->civilite)); $vcard->addBirthDate($this->naissance); $vcard->addPhoneNumber($this->tel, 'HOME'); $vcard->addPhoneNumber($this->tel2, 'CELL'); $vcard->addPhoneNumber($this->tel_autre, 'WORK'); $vcard->addEmail($this->email); $vcard->addAddress($this->adresse, $this->ville, $this->cp, $this->pays, 'HOME'); $vcard->addTitle(ucfirst($this->profession)); $this->loadRefPhotoIdentite(); if ($this->_ref_photo_identite->_id) { $vcard->addPicture($this->_ref_photo_identite); } }
/** * Exporte au format vCard * * @param CMbvCardExport $vcard Objet vCard * * @return void */ function toVcard(CMbvCardExport $vcard) { $vcard->addName($this->prenom, $this->nom, ""); $vcard->addPhoneNumber($this->tel, 'WORK'); $vcard->addPhoneNumber($this->portable, 'CELL'); $vcard->addPhoneNumber($this->fax, 'FAX'); $vcard->addEmail($this->email); $vcard->addAddress($this->adresse, $this->ville, $this->cp, "", 'WORK'); }