Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F527522
DifferentialRevisionWrongStateTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
DifferentialRevisionWrongStateTransaction.php
View Options
<?php
final
class
DifferentialRevisionWrongStateTransaction
extends
DifferentialRevisionTransactionType
{
const
TRANSACTIONTYPE
=
'differential.revision.wrong'
;
public
function
generateOldValue
(
$object
)
{
return
null
;
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
$value
;
}
public
function
getIcon
()
{
return
'fa-exclamation'
;
}
public
function
getColor
()
{
return
'pink'
;
}
public
function
getActionStrength
()
{
return
4
;
}
public
function
getTitle
()
{
$new_value
=
$this
->
getNewValue
();
$status
=
DifferentialRevisionStatus
::
newForStatus
(
$new_value
);
return
pht
(
'This revision was not accepted when it landed; it landed in state %s.'
,
$this
->
renderValue
(
$status
->
getDisplayName
()));
}
public
function
shouldHideForFeed
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 12:28 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
101007
Default Alt Text
DifferentialRevisionWrongStateTransaction.php (850 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment