Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92462193
NuanceSourceTransaction.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
Wed, Nov 20, 12:38
Size
905 B
Mime Type
text/x-php
Expires
Fri, Nov 22, 12:38 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22445018
Attached To
rPH Phabricator
NuanceSourceTransaction.php
View Options
<?php
final
class
NuanceSourceTransaction
extends
NuanceTransaction
{
const
TYPE_NAME
=
'name-source'
;
public
function
getApplicationTransactionType
()
{
return
NuancePHIDTypeSource
::
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
;
}
}
}
Event Timeline
Log In to Comment