Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99320476
AlmanacBindingDisableTransaction.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
Thu, Jan 23, 10:45
Size
609 B
Mime Type
text/x-php
Expires
Sat, Jan 25, 10:45 (2 d)
Engine
blob
Format
Raw Data
Handle
23771911
Attached To
rPH Phabricator
AlmanacBindingDisableTransaction.php
View Options
<?php
final
class
AlmanacBindingDisableTransaction
extends
AlmanacBindingTransactionType
{
const
TRANSACTIONTYPE
=
'almanac:binding:disable'
;
public
function
generateOldValue
(
$object
)
{
return
(
bool
)
$object
->
getIsDisabled
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsDisabled
((
int
)
$value
);
}
public
function
getTitle
()
{
if
(
$this
->
getNewValue
())
{
return
pht
(
'%s disabled this binding.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s enabled this binding.'
,
$this
->
renderAuthor
());
}
}
}
Event Timeline
Log In to Comment