ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Date.php
Go to the documentation of this file.
1<?php
2
4
14class Date extends DateAndOrTime {
15
24 function getValueType() {
25
26 return 'DATE';
27
28 }
29
37 function setDateTime(\DateTimeInterface $dt) {
38
39 $this->value = $dt->format('Ymd');
40
41 }
42
43}
An exception for terminatinating execution or to throw for unit testing.
setDateTime(\DateTimeInterface $dt)
Sets the property as a DateTime object.
Definition: Date.php:37
getValueType()
Returns the type of value.
Definition: Date.php:24