Methods |
public
|
__construct(
Component $root,
string $name,
string|array|null $value = null,
array $parameters = [],
string $group = null,
)
Creates the property.
Creates the property.
You can specify the parameters either in key=>value syntax, in which case
parameters will automatically be created, or you can just pass a list of
Parameter objects.
Parameters
$root |
The root document
|
$parameters |
List of parameters
|
$group |
The vcard property group
|
Overrides
|
#
|
public
|
setRawMimeDirValue(string $val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
This has been 'unfolded', so only 1 line will be passed. Unescaping is
not yet done, but parameters are not included.
Overriden by
Implements
|
#
|
public
|
setQuotedPrintableValue(string $val)
Sets the value as a quoted-printable encoded string.
Sets the value as a quoted-printable encoded string.
Overriden by
|
#
|
public
|
getRawMimeDirValue(): string
Returns a raw mime-dir representation of the value.
Returns a raw mime-dir representation of the value.
Overriden by
Implements
|
#
|
public
|
getJsonValue(): array
Returns the value, in the format it should be encoded for json.
Returns the value, in the format it should be encoded for json.
This method must always return an array.
Overrides
Overriden by
|
#
|
public
|
getValueType(): string
Returns the type of value.
Returns the type of value.
This corresponds to the VALUE= parameter. Every property also has a
'default' valueType.
Overriden by
Implements
|
#
|
public
|
serialize(): string
Turns the object back into a serialized blob.
Turns the object back into a serialized blob.
Overrides
|
#
|
public
|
validate(int $options = 0): array
Validates the node for correctness.
Validates the node for correctness.
The following options are supported:
- Node::REPAIR - If something is broken, and automatic repair may
be attempted.
An array is returned with warnings.
Every item in the array has the following properties:
- level - (number between 1 and 3 with severity information)
- message - (human readable message)
- node - (reference to the offending node)
Overrides
|
#
|