Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F555694
DrydockBlueprintDisableTransaction.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
DrydockBlueprintDisableTransaction.php
View Options
<?php
final
class
DrydockBlueprintDisableTransaction
extends
DrydockBlueprintTransactionType
{
const
TRANSACTIONTYPE
=
'drydock:blueprint:disabled'
;
public
function
generateOldValue
(
$object
)
{
return
(
bool
)
$object
->
getIsDisabled
();
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
(
bool
)
$value
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsDisabled
((
int
)
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s disabled this blueprint.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s enabled this blueprint.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s disabled %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s enabled %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 6:45 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
107082
Default Alt Text
DrydockBlueprintDisableTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment