Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2359011
NuanceSourceTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
905 B
Referenced Files
None
Subscribers
None
NuanceSourceTransaction.php
View Options
<?php
final
class
NuanceSourceTransaction
extends
NuanceTransaction
{
const
TYPE_NAME
=
'name-source'
;
public
function
getApplicationTransactionType
()
{
return
NuanceSourcePHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
new
NuanceSourceTransactionComment
();
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
$author_phid
=
$this
->
getAuthorPHID
();
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_NAME
:
if
(
$old
===
null
)
{
return
pht
(
'%s created this source.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s renamed this source from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
}
break
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 3:08 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
388641
Default Alt Text
NuanceSourceTransaction.php (905 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment