Logical representation of a vcard-based address record Provides functions to parse and export vCard data format
package |
Framework |
---|---|
subpackage |
Addressbook |
__construct($vcard = null, $charset = RCUBE_CHARSET, $detect = false, $fieldmap = array())
load($vcard, $charset = RCUBE_CHARSET, $detect = false)
get_assoc() : array
array
Hash array with key-value pairs
export($folded = true)
reset($fields = null)
set($field, $value, $type = 'HOME')
set_raw($tag, $value, $append = false)
get_type_index($field, $type = 'pref') : int
int
Field index having $type set
charset_convert($card, $force_charset = null)
If $force_charset is null, each member value that has a charset parameter will be converted
extend_fieldmap($map)
import($data) : array
array
List of rcube_vcard objects
cleanup($vcard) : string
string
Cleaned vcard block
rfc2425_fold_callback($matches)
rfc2425_fold($val)
vcard_decode($vcard) : array
array
Raw data structure
decode_value($value, $encoding) : string
string
Decoded 8bit value
vcard_encode($data) : string
string
vCard encoded string
vcard_quote($s, $sep = ';') : string
string
Joined and quoted string
vcard_unquote($s, $sep = ';') : array
array
List with splited values
is_empty(mixed $value) : bool
mixed
Attribute value (string or array)
bool
True if the value is empty, False otherwise
array_filter($arr, $values, $inverse = false) : array
array
The filtered array
detect_encoding($string) : string
string
Detected encoding
values_decoded :
raw :
fieldmap :
typemap :
phonetypemap :
addresstypemap :
immap :
business :
displayname :
surname :
firstname :
middlename :
nickname :
organization :
email :
eol :