Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97577732
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
Sun, Jan 5, 10:04
Size
900 B
Mime Type
text/x-php
Expires
Tue, Jan 7, 10:04 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23430016
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