/** * creates the XSLT generated output */ function createXSLTContact($transformationFile) { $xml = ContactImportExport::xmlExport($this->contact); $x = new XSLTUtility($xml); return $x->transform($transformationFile); }
* Or to the developer forums at: http://sourceforge.net/forum/forum.php?forum_id=590644 */ case "vcard": $output = ContactImportExport::vCardExport($contact, 'WORK'); $fn = mb_convert_encoding($contact->contact['firstname'], 'ASCII') . mb_convert_encoding($contact->contact['lastname'], 'ASCII') . '.vcf'; header("Content-Type: text/x-vCard; name={$fn}"); header("Content-Disposition: attachment; filename={$fn}"); header('Cache-Control: must-revalidate, post-check=0, pre-check=0', true); header('Pragma: none', true); header("Content-Length: " . strlen($output)); echo $output; break; // end vcard // end vcard case "xml": $output = ContactImportExport::xmlExport($contact); $fn = mb_convert_encoding($contact->contact['firstname'], 'ASCII') . mb_convert_encoding($contact->contact['lastname'], 'ASCII') . '.xml'; header("Content-Type: text/xml; name={$fn}"); //header("Content-Disposition: attachment; filename=$fn"); // download? header('Cache-Control: must-revalidate, post-check=0, pre-check=0', true); header('Pragma: none', true); header("Content-Length: " . strlen($output)); echo $output; break; // end vcard } /******************************************************************************** ** EUDORA NICKNAMES FORMAT ** ******************************************************************************** case "eudora":