Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75511080
PholioTransaction.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
Fri, Aug 2, 16:28
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Aug 4, 16:28 (2 d)
Engine
blob
Format
Raw Data
Handle
19558546
Attached To
rPH Phabricator
PholioTransaction.php
View Options
<?php
/**
* @group pholio
*/
final
class
PholioTransaction
extends
PhabricatorApplicationTransaction
{
public
function
getApplicationName
()
{
return
'pholio'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorPHIDConstants
::
PHID_TYPE_MOCK
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
new
PholioTransactionComment
();
}
public
function
getApplicationObjectTypeName
()
{
return
pht
(
'mock'
);
}
public
function
shouldHide
()
{
$old
=
$this
->
getOldValue
();
switch
(
$this
->
getTransactionType
())
{
case
PholioTransactionType
::
TYPE_NAME
:
case
PholioTransactionType
::
TYPE_DESCRIPTION
:
return
(
$old
===
null
);
}
return
parent
::
shouldHide
();
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
PholioTransactionType
::
TYPE_NAME
:
return
pht
(
'%s renamed this mock from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
phutil_escape_html
(
$old
),
phutil_escape_html
(
$new
));
break
;
case
PholioTransactionType
::
TYPE_DESCRIPTION
:
return
pht
(
'%s updated the description of this mock. '
.
'The old description was: %s'
,
$this
->
renderHandleLink
(
$author_phid
),
phutil_escape_html
(
$old
));
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment