Beispiel #1
0
<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Patients
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$patient_id = CValue::get("patient_id");
$patient = new CPatient();
$patient->load($patient_id);
$vcard = new CMbvCardExport();
$vcard->saveVCard($patient);
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 /**
  * 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');
 }