Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97026754
PhabricatorCalendarEventIconTransaction.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, Jan 1, 18:48
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 3, 18:48 (2 d)
Engine
blob
Format
Raw Data
Handle
23315068
Attached To
rPH Phabricator
PhabricatorCalendarEventIconTransaction.php
View Options
<?php
final
class
PhabricatorCalendarEventIconTransaction
extends
PhabricatorCalendarEventTransactionType
{
const
TRANSACTIONTYPE
=
'calendar.icon'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIcon
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIcon
(
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getIconLabel
(
$this
->
getOldValue
());
$new
=
$this
->
getIconLabel
(
$this
->
getNewValue
());
return
pht
(
'%s changed the event icon from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderValue
(
$old
),
$this
->
renderValue
(
$new
));
}
public
function
getTitleForFeed
()
{
$old
=
$this
->
getIconLabel
(
$this
->
getOldValue
());
$new
=
$this
->
getIconLabel
(
$this
->
getNewValue
());
return
pht
(
'%s changed the icon for %s from %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
renderValue
(
$old
),
$this
->
renderValue
(
$new
));
}
private
function
getIconLabel
(
$icon
)
{
$set
=
new
PhabricatorCalendarIconSet
();
return
$set
->
getIconLabel
(
$icon
);
}
}
Event Timeline
Log In to Comment