Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93902470
PhortuneAccountTransaction.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
Mon, Dec 2, 09:27
Size
1000 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 09:27 (2 d)
Engine
blob
Format
Raw Data
Handle
22721778
Attached To
rPH Phabricator
PhortuneAccountTransaction.php
View Options
<?php
final
class
PhortuneAccountTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'phortune:name'
;
public
function
getApplicationName
()
{
return
'phortune'
;
}
public
function
getApplicationTransactionType
()
{
return
PhortuneAccountPHIDType
::
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 account.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s renamed this account from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
break
;
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment