Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/calendar/parser/data/PhutilCalendarProxyDateTime.php
12262 views
1
<?php
2
3
abstract class PhutilCalendarProxyDateTime
4
extends PhutilCalendarDateTime {
5
6
private $proxy;
7
8
final protected function setProxy(PhutilCalendarDateTime $proxy) {
9
$this->proxy = $proxy;
10
return $this;
11
}
12
13
final protected function getProxy() {
14
return $this->proxy;
15
}
16
17
public function __clone() {
18
$this->proxy = clone $this->proxy;
19
}
20
21
public function setViewerTimezone($timezone) {
22
$this->getProxy()->setViewerTimezone($timezone);
23
return $this;
24
}
25
26
public function getViewerTimezone() {
27
return $this->getProxy()->getViewerTimezone();
28
}
29
30
public function setIsAllDay($is_all_day) {
31
$this->getProxy()->setIsAllDay($is_all_day);
32
return $this;
33
}
34
35
public function getIsAllDay() {
36
return $this->getProxy()->getIsAllDay();
37
}
38
39
public function newPHPDateTimezone() {
40
return $this->getProxy()->newPHPDateTimezone();
41
}
42
43
public function newPHPDateTime() {
44
return $this->getProxy()->newPHPDateTime();
45
}
46
47
public function getTimezone() {
48
return $this->getProxy()->getTimezone();
49
}
50
51
}
52
53