Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F979507
PholioTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
),
$old
,
$new
);
break
;
case
PholioTransactionType
::
TYPE_DESCRIPTION
:
return
pht
(
'%s updated the description of this mock. '
.
'The old description was: %s'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
);
}
return
parent
::
getTitle
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 12:06 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
236403
Default Alt Text
PholioTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment