Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F552178
PassphraseCredentialSecretIDTransaction.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
PassphraseCredentialSecretIDTransaction.php
View Options
<?php
final
class
PassphraseCredentialSecretIDTransaction
extends
PassphraseCredentialTransactionType
{
const
TRANSACTIONTYPE
=
'passphrase:secretID'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getSecretID
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$old_id
=
$object
->
getSecretID
();
if
(
$old_id
)
{
$this
->
destroySecret
(
$old_id
);
}
$object
->
setSecretID
(
$value
);
}
public
function
getTitle
()
{
$old
=
$this
->
getOldValue
();
if
(!
$old
)
{
return
pht
(
'%s attached a new secret to this credential.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s updated the secret for this credential.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
$old
=
$this
->
getOldValue
();
if
(
$old
===
null
)
{
return
pht
(
'%s attached a new secret to %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s updated the secret for %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
public
function
getIcon
()
{
return
'fa-key'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 4:11 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
123436
Default Alt Text
PassphraseCredentialSecretIDTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment