Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896241
PassphraseCredentialDestroyTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PassphraseCredentialDestroyTransaction.php
View Options
<?php
final
class
PassphraseCredentialDestroyTransaction
extends
PassphraseCredentialTransactionType
{
const
TRANSACTIONTYPE
=
'passphrase:destroy'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getIsDestroyed
(
)
;
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$is_destroyed
=
$value
;
$object
->
setIsDestroyed
(
$is_destroyed
)
;
if
(
$is_destroyed
)
{
$secret_id
=
$object
->
getSecretID
(
)
;
if
(
$secret_id
)
{
$this
->
destroySecret
(
$secret_id
)
;
$object
->
setSecretID
(
null
)
;
}
}
}
public
function
shouldHide
(
)
{
$new
=
$this
->
getNewValue
(
)
;
if
(
!
$new
)
{
return
true
;
}
}
public
function
getTitle
(
)
{
return
pht
(
'%s destroyed the secret for this credential.'
,
$this
->
renderAuthor
(
)
)
;
}
public
function
getTitleForFeed
(
)
{
return
pht
(
'%s destroyed the secret for credential %s.'
,
$this
->
renderAuthor
(
)
,
$this
->
renderObject
(
)
)
;
}
public
function
getIcon
(
)
{
return
'fa-ban'
;
}
public
function
getColor
(
)
{
return
'red'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 22:47 (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129545
Default Alt Text
PassphraseCredentialDestroyTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment