ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Duration.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
19 class 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 }
getDateInterval()
Returns a DateInterval representation of the Duration property.
Definition: Duration.php:77
setValue($value)
Updates the current value.
Definition: Property.php:98
getParts()
Returns a multi-valued property.
Definition: Property.php:152
getRawMimeDirValue()
Returns a raw mime-dir representation of the value.
Definition: Duration.php:50
static parseDuration($duration, $asString=false)
Parses an iCalendar (RFC5545) formatted duration value.
getValueType()
Returns the type of value.
Definition: Duration.php:64
setRawMimeDirValue($val)
Sets a raw value coming from a mimedir (iCalendar/vCard) file.
Definition: Duration.php:39