示例#1
0
文件: xnetgrp.php 项目: Ekleog/platal
 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();
 }
示例#2
0
文件: carnet.php 项目: Ekleog/platal
 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();
 }
示例#3
0
文件: profile.php 项目: Ekleog/platal
 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();
 }