| | |
| | | 'manager' => 'X-MANAGER', |
| | | 'spouse' => 'X-SPOUSE', |
| | | 'edit' => 'X-AB-EDIT', |
| | | 'groups' => 'CATEGORIES', |
| | | ); |
| | | private $typemap = array( |
| | | 'IPHONE' => 'mobile', |
| | |
| | | * |
| | | * @return string Joined and quoted string |
| | | */ |
| | | private static function vcard_quote($s, $sep = ';') |
| | | public static function vcard_quote($s, $sep = ';') |
| | | { |
| | | if (is_array($s)) { |
| | | foreach($s as $part) { |
| | |
| | | return(implode($sep, (array)$r)); |
| | | } |
| | | |
| | | return strtr($s, array('\\' => '\\\\', "\r" => '', "\n" => '\n', ',' => '\,', ';' => '\;')); |
| | | return strtr($s, array('\\' => '\\\\', "\r" => '', "\n" => '\n', $sep => '\\'.$sep)); |
| | | } |
| | | |
| | | /** |