Exemple #1
0
 function handler_vcard($page, $photos = null)
 {
     global $globals;
     $vcard = new VCard($photos == 'photos', 'Membre du groupe ' . $globals->asso('nom'));
     $vcard->addProfiles($globals->asso()->getMembersFilter()->getProfiles(null, Profile::FETCH_ALL));
     $vcard->show();
 }
Exemple #2
0
 function handler_vcard($page, $photos = null)
 {
     $pf = new ProfileFilter(new UFC_Contact(S::user()));
     $vcard = new VCard($photos == 'photos');
     $vcard->addProfiles($pf->getProfiles(null, Profile::FETCH_ALL));
     $vcard->show();
 }
Exemple #3
0
 function handler_vcard($page, $x = null)
 {
     if (is_null($x)) {
         return PL_NOT_FOUND;
     }
     global $globals;
     if (substr($x, -4) == '.vcf') {
         $x = substr($x, 0, strlen($x) - 4);
     }
     $vcard = new VCard();
     $vcard->addProfile(Profile::get($x, Profile::FETCH_ALL));
     $vcard->show();
 }