Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110453931
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
Sat, Apr 26, 09:51
Size
887 B
Mime Type
text/x-php
Expires
Mon, Apr 28, 09:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25802989
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
)
{
$object
->
setDateFrom
(
$value
);
}
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