Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99187786
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
Wed, Jan 22, 04:18
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 04:18 (2 d)
Engine
blob
Format
Raw Data
Handle
23726743
Attached To
rPH Phabricator
DrydockBlueprintTransaction.php
View Options
<?php
final
class
DrydockBlueprintTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'drydock:blueprint:name'
;
const
TYPE_DISABLED
=
'drydock:blueprint:disabled'
;
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
);
}
case
self
::
TYPE_DISABLED
:
if
(
$new
)
{
return
pht
(
'%s disabled this blueprint.'
,
$author_handle
);
}
else
{
return
pht
(
'%s enabled this blueprint.'
,
$author_handle
);
}
}
return
parent
::
getTitle
();
}
}
Event Timeline
Log In to Comment