Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97960657
PassphraseCredentialLockTransaction.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 8, 00:25
Size
806 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 00:25 (2 d)
Engine
blob
Format
Raw Data
Handle
23452653
Attached To
rPH Phabricator
PassphraseCredentialLockTransaction.php
View Options
<?php
final
class
PassphraseCredentialLockTransaction
extends
PassphraseCredentialTransactionType
{
const
TRANSACTIONTYPE
=
'passphrase:lock'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIsLocked
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setIsLocked
((
int
)
$value
);
}
public
function
shouldHide
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
===
null
)
{
return
true
;
}
return
false
;
}
public
function
getTitle
()
{
return
pht
(
'%s locked this credential.'
,
$this
->
renderAuthor
());
}
public
function
getTitleForFeed
()
{
return
pht
(
'%s locked credential %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
public
function
getIcon
()
{
return
'fa-lock'
;
}
}
Event Timeline
Log In to Comment