diff options
author | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
commit | f1c07977809ce3221286d53e99f0d91145b1166f (patch) | |
tree | 4c067a3b701ea56f10070c386b26a30f93666eb0 /vendor/sabre/vobject/lib/Property/ICalendar/Duration.php | |
parent | 701167bc125700efb3e6ce759b85bcb4d36ee42e (diff) | |
download | volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.gz volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.bz2 volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.zip |
Revert "update composer libs"
This reverts commit e779335d060b3a51d6a144d23af4097ae6801473
Diffstat (limited to 'vendor/sabre/vobject/lib/Property/ICalendar/Duration.php')
-rw-r--r-- | vendor/sabre/vobject/lib/Property/ICalendar/Duration.php | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php b/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php index 87f008160..7b7e1ce8e 100644 --- a/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php +++ b/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php @@ -16,8 +16,8 @@ use Sabre\VObject\Property; * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ -class Duration extends Property -{ +class Duration extends Property { + /** * In case this is a multi-value property. This string will be used as a * delimiter. @@ -33,10 +33,13 @@ class Duration extends Property * not yet done, but parameters are not included. * * @param string $val + * + * @return void */ - public function setRawMimeDirValue($val) - { + function setRawMimeDirValue($val) { + $this->setValue(explode($this->delimiter, $val)); + } /** @@ -44,9 +47,10 @@ class Duration extends Property * * @return string */ - public function getRawMimeDirValue() - { + function getRawMimeDirValue() { + return implode($this->delimiter, $this->getParts()); + } /** @@ -57,9 +61,10 @@ class Duration extends Property * * @return string */ - public function getValueType() - { + function getValueType() { + return 'DURATION'; + } /** @@ -69,11 +74,12 @@ class Duration extends Property * * @return \DateInterval */ - public function getDateInterval() - { + function getDateInterval() { + $parts = $this->getParts(); $value = $parts[0]; - return DateTimeParser::parseDuration($value); + } + } |