Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893377
PhabricatorProjectIconTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
987 B
Referenced Files
None
Subscribers
None
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
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:17 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127358
Default Alt Text
PhabricatorProjectIconTransaction.php (987 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment