Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92302199
PhabricatorCalendarEventStartDateTransaction.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
Tue, Nov 19, 05:44
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Nov 21, 05:44 (2 d)
Engine
blob
Format
Raw Data
Handle
22417594
Attached To
rPH Phabricator
PhabricatorCalendarEventStartDateTransaction.php
View Options
<?php
final
class
PhabricatorCalendarEventStartDateTransaction
extends
PhabricatorCalendarEventDateTransaction
{
const
TRANSACTIONTYPE
=
'calendar.startdate'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getDateFrom
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$actor
=
$this
->
getActor
();
$object
->
setDateFrom
(
$value
);
$object
->
setAllDayDateFrom
(
$object
->
getDateEpochForTimezone
(
$value
,
$actor
->
getTimeZone
(),
'Y-m-d'
,
null
,
new
DateTimeZone
(
'UTC'
)));
}
public
function
getTitle
()
{
return
pht
(
'%s changed the start date for this event from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderOldDate
(),
$this
->
renderNewDate
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s changed the start date for %s from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
renderOldDate
(),
$this
->
renderNewDate
());
}
protected
function
getInvalidDateMessage
()
{
return
pht
(
'Start date is invalid.'
);
}
}
Event Timeline
Log In to Comment