Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92732830
DrydockBlueprintTransaction.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
Sat, Nov 23, 06:07
Size
900 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:07 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22500224
Attached To
rPH Phabricator
DrydockBlueprintTransaction.php
View Options
<?php
final
class
DrydockBlueprintTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'drydock:blueprint:name'
;
public
function
getApplicationName
()
{
return
'drydock'
;
}
public
function
getApplicationTransactionType
()
{
return
DrydockBlueprintPHIDType
::
TYPECONST
;
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
$author_handle
=
$this
->
renderHandleLink
(
$this
->
getAuthorPHID
());
switch
(
$this
->
getTransactionType
())
{
case
self
::
TYPE_NAME
:
if
(!
strlen
(
$old
))
{
return
pht
(
'%s created this blueprint.'
,
$author_handle
);
}
else
{
return
pht
(
'%s renamed this blueprint from "%s" to "%s".'
,
$author_handle
,
$old
,
$new
);
}
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment