Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78429768
PhabricatorProjectIconTransaction.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, Aug 20, 20:11
Size
987 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 20:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20045311
Attached To
rPH Phabricator
PhabricatorProjectIconTransaction.php
View Options
<?php
final
class
PhabricatorProjectIconTransaction
extends
PhabricatorProjectTransactionType
{
const
TRANSACTIONTYPE
=
'project:icon'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIcon
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIcon
(
$value
);
}
public
function
getTitle
()
{
$set
=
new
PhabricatorProjectIconSet
();
$new
=
$this
->
getNewValue
();
return
pht
(
"%s set this project's icon to %s."
,
$this
->
renderAuthor
(),
$this
->
renderValue
(
$set
->
getIconLabel
(
$new
)));
}
public
function
getTitleForFeed
()
{
$set
=
new
PhabricatorProjectIconSet
();
$new
=
$this
->
getNewValue
();
return
pht
(
'%s set the icon for %s to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
(),
$this
->
renderValue
(
$set
->
getIconLabel
(
$new
)));
}
public
function
getIcon
()
{
$new
=
$this
->
getNewValue
();
return
PhabricatorProjectIconSet
::
getIconIcon
(
$new
);
}
}
Event Timeline
Log In to Comment