ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (Component $root, $name, $value=null, array $parameters=[], $group=null) | |
Creates the property. More... | |
setRawMimeDirValue ($val) | |
Sets a raw value coming from a mimedir (iCalendar/vCard) file. More... | |
setQuotedPrintableValue ($val) | |
Sets the value as a quoted-printable encoded string. More... | |
getRawMimeDirValue () | |
Returns a raw mime-dir representation of the value. More... | |
getJsonValue () | |
Returns the value, in the format it should be encoded for json. More... | |
getValueType () | |
Returns the type of value. More... | |
serialize () | |
Turns the object back into a serialized blob. More... | |
validate ($options=0) | |
Validates the node for correctness. More... | |
![]() | |
__construct (Component $root, $name, $value=null, array $parameters=[], $group=null) | |
Creates the generic property. More... | |
setValue ($value) | |
Updates the current value. More... | |
getValue () | |
Returns the current value. More... | |
setParts (array $parts) | |
Sets a multi-valued property. More... | |
getParts () | |
Returns a multi-valued property. More... | |
add ($name, $value=null) | |
Adds a new parameter. More... | |
parameters () | |
Returns an iterable list of children. More... | |
getValueType () | |
Returns the type of value. More... | |
setRawMimeDirValue ($val) | |
Sets a raw value coming from a mimedir (iCalendar/vCard) file. More... | |
getRawMimeDirValue () | |
Returns a raw mime-dir representation of the value. More... | |
serialize () | |
Turns the object back into a serialized blob. More... | |
getJsonValue () | |
Returns the value, in the format it should be encoded for JSON. More... | |
setJsonValue (array $value) | |
Sets the JSON value, as it would appear in a jCard or jCal object. More... | |
jsonSerialize () | |
This method returns an array, with the representation as it should be encoded in JSON. More... | |
setXmlValue (array $value) | |
Hydrate data from a XML subtree, as it would appear in a xCard or xCal object. More... | |
xmlSerialize (Xml\Writer $writer) | |
This method serializes the data into XML. More... | |
__toString () | |
Called when this object is being cast to a string. More... | |
offsetExists ($name) | |
Checks if an array element exists. More... | |
offsetGet ($name) | |
Returns a parameter. More... | |
offsetSet ($name, $value) | |
Creates a new parameter. More... | |
offsetUnset ($name) | |
Removes one or more parameters with the specified name. More... | |
__clone () | |
This method is automatically called when the object is cloned. More... | |
validate ($options=0) | |
Validates the node for correctness. More... | |
destroy () | |
Call this method on a document if you're done using it. More... | |
![]() | |
serialize () | |
Serializes the node into a mimedir format. More... | |
jsonSerialize () | |
This method returns an array, with the representation as it should be encoded in JSON. More... | |
xmlSerialize (Xml\Writer $writer) | |
This method serializes the data into XML. More... | |
destroy () | |
Call this method on a document if you're done using it. More... | |
getIterator () | |
Returns the iterator for this object. More... | |
setIterator (ElementList $iterator) | |
Sets the overridden iterator. More... | |
validate ($options=0) | |
Validates the node for correctness. More... | |
count () | |
Returns the number of elements. More... | |
offsetExists ($offset) | |
Checks if an item exists through ArrayAccess. More... | |
offsetGet ($offset) | |
Gets an item through ArrayAccess. More... | |
offsetSet ($offset, $value) | |
Sets an item through ArrayAccess. More... | |
offsetUnset ($offset) | |
Sets an item through ArrayAccess. More... | |
![]() | |
xmlSerialize (Writer $writer) | |
The xmlSerialize method is called during xml writing. More... | |
Data Fields | |
$delimiter = ',' | |
![]() | |
$name | |
$group | |
$parameters = [] | |
$delimiter = ';' | |
![]() | |
const | REPAIR = 1 |
The following constants are used by the validate() method. More... | |
const | PROFILE_CARDDAV = 2 |
If this option is set, the validator will operate on the vcards on the assumption that the vcards need to be valid for CardDAV. More... | |
const | PROFILE_CALDAV = 4 |
If this option is set, the validator will operate on iCalendar objects on the assumption that the vcards need to be valid for CalDAV. More... | |
$parent | |
Protected Member Functions | |
xmlSerializeValue (Xml\Writer $writer) | |
This method serializes only the value of a property. More... | |
xmlSerializeValue (Xml\Writer $writer) | |
This method serializes only the value of a property. More... | |
Protected Attributes | |
$structuredValues | |
$minimumPropertyValues | |
![]() | |
$value | |
![]() | |
$iterator = null | |
$root | |
Text property.
This object represents TEXT values.
Sabre\VObject\Property\Text::__construct | ( | Component | $root, |
$name, | |||
$value = null , |
|||
array | $parameters = [] , |
||
$group = null |
|||
) |
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.
Component | $root | The root document |
string | $name | |
string | array | null | $value | |
array | $parameters | List of parameters |
string | $group | The vcard property group |
Reimplemented from Sabre\VObject\Property.
Definition at line 75 of file Text.php.
References Sabre\VObject\Property\$group, Sabre\VObject\Property\$name, Sabre\VObject\Property\$parameters, Sabre\VObject\Node\$root, and Sabre\VObject\Property\$value.
Sabre\VObject\Property\Text::getJsonValue | ( | ) |
Returns the value, in the format it should be encoded for json.
This method must always return an array.
Reimplemented from Sabre\VObject\Property.
Reimplemented in Sabre\VObject\Property\Time, Sabre\VObject\Property\Unknown, Sabre\VObject\Property\UtcOffset, and Sabre\VObject\Property\VCard\TimeStamp.
Definition at line 175 of file Text.php.
References Sabre\VObject\Property\getParts().
Sabre\VObject\Property\Text::getRawMimeDirValue | ( | ) |
Returns a raw mime-dir representation of the value.
Reimplemented from Sabre\VObject\Property.
Reimplemented in Sabre\VObject\Property\Uri.
Definition at line 134 of file Text.php.
References Sabre\VObject\Property\getParts().
Referenced by Sabre\VObject\Property\Unknown\getJsonValue().
Sabre\VObject\Property\Text::getValueType | ( | ) |
Returns the type of value.
This corresponds to the VALUE= parameter. Every property also has a 'default' valueType.
Reimplemented from Sabre\VObject\Property.
Reimplemented in Sabre\VObject\Property\ICalendar\CalAddress, Sabre\VObject\Property\Time, Sabre\VObject\Property\Unknown, Sabre\VObject\Property\Uri, Sabre\VObject\Property\UtcOffset, and Sabre\VObject\Property\VCard\TimeStamp.
Definition at line 195 of file Text.php.
Sabre\VObject\Property\Text::serialize | ( | ) |
Turns the object back into a serialized blob.
Reimplemented from Sabre\VObject\Property.
Definition at line 206 of file Text.php.
References $ii, Sabre\VObject\Property\$name, $out, Sabre\VObject\Node\count(), Sabre\VObject\Property\getParts(), Sabre\VObject\Property\parameters(), and Sabre\VObject\Document\VCARD21.
Sabre\VObject\Property\Text::setQuotedPrintableValue | ( | $val | ) |
Sets the value as a quoted-printable encoded string.
string | $val |
Reimplemented in Sabre\VObject\Property\FlatText.
Definition at line 113 of file Text.php.
References Sabre\VObject\Property\setValue().
Sabre\VObject\Property\Text::setRawMimeDirValue | ( | $val | ) |
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.
string | $val |
Reimplemented from Sabre\VObject\Property.
Reimplemented in Sabre\VObject\Property\Uri.
Definition at line 100 of file Text.php.
References Sabre\VObject\Property\setValue(), and Sabre\VObject\Parser\MimeDir\unescapeValue().
Sabre\VObject\Property\Text::validate | ( | $options = 0 | ) |
Validates the node for correctness.
The following options are supported:
An array is returned with warnings.
Every item in the array has the following properties:
int | $options |
Reimplemented from Sabre\VObject\Property.
Definition at line 389 of file Text.php.
References Sabre\VObject\Property\$name, PHPMailer\PHPMailer\$options, $warnings, Sabre\VObject\Node\count(), Sabre\VObject\Property\getParts(), and Sabre\VObject\Property\setParts().
|
protected |
This method serializes only the value of a property.
This is used to create xCard or xCal documents.
Xml\Writer | $writer | XML writer. |
Reimplemented from Sabre\VObject\Property.
Reimplemented in Sabre\VObject\Property\VCard\TimeStamp.
Definition at line 301 of file Text.php.
References $i, $map, $values, and Sabre\VObject\Property\getParts().
|
protected |
|
protected |