Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93221574
PhabricatorCalendarEventUntilDateTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 27, 03:26
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Nov 29, 03:26 (2 d)
Engine
blob
Format
Raw Data
Handle
22596527
Attached To
rPH Phabricator
PhabricatorCalendarEventUntilDateTransaction.php
View Options
<?php
final
class
PhabricatorCalendarEventUntilDateTransaction
extends
PhabricatorCalendarEventDateTransaction
{
const
TRANSACTIONTYPE
=
'calendar.recurrenceenddate'
;
public
function
generateOldValue
(
$object
)
{
// TODO: Upgrade this.
return
$object
->
getUntilDateTimeEpoch
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$actor
=
$this
->
getActor
();
// TODO: DEPRECATED.
$object
->
setRecurrenceEndDate
(
$value
);
$datetime
=
PhutilCalendarAbsoluteDateTime
::
newFromEpoch
(
$value
,
$actor
->
getTimezoneIdentifier
());
$datetime
->
setIsAllDay
(
$object
->
getIsAllDay
());
$object
->
setUntilDateTime
(
$datetime
);
}
public
function
getTitle
()
{
return
pht
(
'%s changed this event to repeat until %s.'
,
$this
->
renderAuthor
(),
$this
->
renderNewDate
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s changed %s to repeat until %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
renderNewDate
());
}
protected
function
getInvalidDateMessage
()
{
return
pht
(
'Repeat until date is invalid.'
);
}
}
Event Timeline
Log In to Comment