Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896360
DifferentialDiffTransaction.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
1 KB
Referenced Files
None
Subscribers
None
DifferentialDiffTransaction.php
View Options
<?php
final
class
DifferentialDiffTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_DIFF_CREATE
=
'differential:diff:create'
;
public
function
getApplicationName
(
)
{
return
'differential'
;
}
public
function
getApplicationTransactionType
(
)
{
return
DifferentialDiffPHIDType
::
TYPECONST
;
}
public
function
shouldHideForMail
(
array
$xactions
)
{
return
true
;
}
public
function
getActionName
(
)
{
switch
(
$this
->
getTransactionType
(
)
)
{
case
self
::
TYPE_DIFF_CREATE
;
return
pht
(
'Created'
)
;
}
return
parent
::
getActionName
(
)
;
}
public
function
getTitle
(
)
{
$author_phid
=
$this
->
getAuthorPHID
(
)
;
$author_handle
=
$this
->
renderHandleLink
(
$author_phid
)
;
$old
=
$this
->
getOldValue
(
)
;
$new
=
$this
->
getNewValue
(
)
;
switch
(
$this
->
getTransactionType
(
)
)
{
case
self
::
TYPE_DIFF_CREATE
;
return
pht
(
'%s created this diff.'
,
$author_handle
)
;
}
return
parent
::
getTitle
(
)
;
}
public
function
getIcon
(
)
{
switch
(
$this
->
getTransactionType
(
)
)
{
case
self
::
TYPE_DIFF_CREATE
:
return
'fa-refresh'
;
}
return
parent
::
getIcon
(
)
;
}
public
function
getColor
(
)
{
switch
(
$this
->
getTransactionType
(
)
)
{
case
self
::
TYPE_DIFF_CREATE
:
return
PhabricatorTransactions
::
COLOR_SKY
;
}
return
parent
::
getColor
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 22:58 (6 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129638
Default Alt Text
DifferentialDiffTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment