Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93152998
PhortuneMerchantTransaction.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, Nov 26, 14:59
Size
1002 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 14:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22584933
Attached To
rPH Phabricator
PhortuneMerchantTransaction.php
View Options
<?php
final
class
PhortuneMerchantTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'merchant:name'
;
public
function
getApplicationName
()
{
return
'phortune'
;
}
public
function
getApplicationTransactionType
()
{
return
PhortuneMerchantPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_NAME
:
if
(
$old
===
null
)
{
return
pht
(
'%s created this merchant.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s renamed this merchant from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
break
;
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment