Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894096
PhabricatorCalendarEventNotificationView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorCalendarEventNotificationView.php
View Options
<?php
final
class
PhabricatorCalendarEventNotificationView
extends
Phobject
{
private
$viewer
;
private
$event
;
private
$epoch
;
private
$dateTime
;
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
public
function
getViewer
(
)
{
return
$this
->
viewer
;
}
public
function
setEvent
(
PhabricatorCalendarEvent
$event
)
{
$this
->
event
=
$event
;
return
$this
;
}
public
function
getEvent
(
)
{
return
$this
->
event
;
}
public
function
setEpoch
(
$epoch
)
{
$this
->
epoch
=
$epoch
;
return
$this
;
}
public
function
getEpoch
(
)
{
return
$this
->
epoch
;
}
public
function
setDateTime
(
PhutilCalendarDateTime
$date_time
)
{
$this
->
dateTime
=
$date_time
;
return
$this
;
}
public
function
getDateTime
(
)
{
return
$this
->
dateTime
;
}
public
function
getDisplayMinutes
(
)
{
$epoch
=
$this
->
getEpoch
(
)
;
$now
=
PhabricatorTime
::
getNow
(
)
;
$minutes
=
(int)
ceil
(
(
$epoch
-
$now
)
/
60
)
;
return
new
PhutilNumber
(
$minutes
)
;
}
public
function
getDisplayTime
(
)
{
$viewer
=
$this
->
getViewer
(
)
;
$epoch
=
$this
->
getEpoch
(
)
;
return
phabricator_datetime
(
$epoch
,
$viewer
)
;
}
public
function
getDisplayTimeWithTimezone
(
)
{
$viewer
=
$this
->
getViewer
(
)
;
$epoch
=
$this
->
getEpoch
(
)
;
return
phabricator_datetimezone
(
$epoch
,
$viewer
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:23 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127928
Default Alt Text
PhabricatorCalendarEventNotificationView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment