42 $this->
setValue(explode($this->delimiter, $val));
53 return implode($this->delimiter, $this->
getParts());
85 return strtr(implode(
'/', $item), [
':' =>
'',
'-' =>
'']);
90 parent::setJsonValue($value);
104 foreach ($this->
getParts() as $item) {
111 if (
$end[0] ===
'P') {
113 $start->format(
'Y-m-d\\TH:i:s'),
119 $start->format(
'Y-m-d\\TH:i:s'),
120 $end->format(
'Y-m-d\\TH:i:s'),
140 $writer->startElement(strtolower($this->
getValueType()));
142 $writer->writeElement(
'start',
$value[0][0]);
144 if (
$value[0][1][0] ===
'P') {
145 $writer->writeElement(
'duration',
$value[0][1]);
148 $writer->writeElement(
'end',
$value[0][1]);
151 $writer->endElement();
setValue($value)
Updates the current value.
static parseDateTime($dt, DateTimeZone $tz=null)
Parses an iCalendar (rfc5545) formatted datetime and returns a DateTimeImmutable object.
getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
getValueType()
Returns the type of value.
setRawMimeDirValue($val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
getJsonValue()
Returns the value, in the format it should be encoded for json.
getParts()
Returns a multi-valued property.
setJsonValue(array $value)
Sets the json value, as it would appear in a jCard or jCal object.
xmlSerializeValue(Xml\Writer $writer)
This method serializes only the value of a property.