ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Duration.php
Go to the documentation of this file.
1<?php
2
4
7
19class Duration extends Property {
20
27 public $delimiter = ',';
28
39 function setRawMimeDirValue($val) {
40
41 $this->setValue(explode($this->delimiter, $val));
42
43 }
44
50 function getRawMimeDirValue() {
51
52 return implode($this->delimiter, $this->getParts());
53
54 }
55
64 function getValueType() {
65
66 return 'DURATION';
67
68 }
69
77 function getDateInterval() {
78
79 $parts = $this->getParts();
80 $value = $parts[0];
82
83 }
84
85}
An exception for terminatinating execution or to throw for unit testing.
static parseDuration($duration, $asString=false)
Parses an iCalendar (RFC5545) formatted duration value.
getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
Definition: Duration.php:50
getValueType()
Returns the type of value.
Definition: Duration.php:64
getDateInterval()
Returns a DateInterval representation of the Duration property.
Definition: Duration.php:77
setRawMimeDirValue($val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
Definition: Duration.php:39
getParts()
Returns a multi-valued property.
Definition: Property.php:152
setValue($value)
Updates the current value.
Definition: Property.php:98