Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18921292
DifferentialDiffTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
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
Tue, Nov 11, 1:57 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8115178
Default Alt Text
DifferentialDiffTransaction.php (1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment