| | |
| | | 'spouse' => 'X-SPOUSE', |
| | | ); |
| | | private $typemap = array('iPhone' => 'mobile', 'CELL' => 'mobile'); |
| | | private $phonetypemap = array('HOME1' => 'HOME', 'BUSINESS1' => 'WORK', 'BUSINESS2' => 'WORK2', 'WORKFAX' => 'BUSINESSFAX'); |
| | | private $phonetypemap = array('HOME1' => 'HOME', 'BUSINESS1' => 'WORK', 'BUSINESS2' => 'WORK2', 'BUSINESSFAX' => 'WORKFAX'); |
| | | private $addresstypemap = array('BUSINESS' => 'WORK'); |
| | | private $immap = array('X-JABBER' => 'jabber', 'X-ICQ' => 'icq', 'X-MSN' => 'msn', 'X-AIM' => 'aim', 'X-YAHOO' => 'yahoo', 'X-SKYPE' => 'skype', 'X-SKYPE-USERNAME' => 'skype'); |
| | | |
| | |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Setter for individual vcard properties |
| | | * |
| | | * @param string VCard tag name |
| | | * @param array Value-set of this vcard property |
| | | * @param boolean Set to true if the value-set should be appended instead of replacing any existing value-set |
| | | */ |
| | | public function set_raw($tag, $value, $append = false) |
| | | { |
| | | $index = $append ? count($this->raw[$tag]) : 0; |
| | | $this->raw[$tag][$index] = (array)$value; |
| | | } |
| | | |
| | | |
| | |
| | | return $result; |
| | | } |
| | | else { |
| | | return strtr($s, array("\r" => '', '\\\\' => '\\', '\n' => "\n", '\N' => "\n", '\,' => ',', '\;' => ';')); |
| | | return strtr($s, array("\r" => '', '\\\\' => '\\', '\n' => "\n", '\N' => "\n", '\,' => ',', '\;' => ';', '\:' => ':')); |
| | | } |
| | | } |
| | | |