uses |
Hm_Card_Line_Parse |
|---|
Class for parsing vCard/iCal data
| Methods | ||||
|---|---|---|---|---|
public
|
__construct()
init
init |
# | ||
public
|
import(string $str): boolean
Import a single set of values
Import a single set of values Parameters
|
# | ||
public
|
import_parsed(array $data): void
Load an already parsed card
Load an already parsed card Parameters
|
# | ||
public
|
raw_data(): array
Return parsed data for an input
Return parsed data for an input |
# | ||
public
|
build_card()
Format as vcard
Format as vcard |
# | ||
public
|
parsed_data(): array
Return parsed data for an input
Return parsed data for an input |
# | ||
public
|
fld_val($name, $type = false, $default = false, $all = false)
Get the value for a field
Get the value for a field |
# | ||
protected
|
format_vcard_generic(string $name): array
Catch-all for formatting vcard fields that don't need specific formatting
Catch-all for formatting vcard fields that don't need specific formatting Parameters
|
# | ||
protected
|
build_vcard_params($fld_val): array
Build the vcard entry paramater string
Build the vcard entry paramater string |
# | ||
protected
|
combine(mixed $val): string
Combine an array value if needed, return formatted value
Combine an array value if needed, return formatted value Parameters
|
# | ||
protected
|
vcard_format(string $val): string
Clean a vcard value
TODO: make escaping more robust
Clean a vcard value TODO: make escaping more robust Parameters
|
# | ||
| Methods used from Hm_Card_Line_Parse |
|---|
split_value() |
| Properties | |||
|---|---|---|---|
protected
|
|
$version = ''
|
# |
protected
|
|
$raw_card = ''
|
# |
protected
|
|
$data = []
|
# |
protected
|
|
$parameters = []
|
# |
protected
|
|
$properties = []
|
# |