Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F573804
PassphraseCredentialConduitTransaction.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
PassphraseCredentialConduitTransaction.php
View Options
<?php
final
class
PassphraseCredentialConduitTransaction
extends
PassphraseCredentialTransactionType
{
const
TRANSACTIONTYPE
=
'passphrase:conduit'
;
public
function
generateOldValue
(
$object
)
{
return
$object
->
getAllowConduit
();
}
public
function
applyInternalEffects
(
$object
,
$value
)
{
$object
->
setAllowConduit
((
int
)
$value
);
}
public
function
getTitle
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s allowed Conduit API access to this credential.'
,
$this
->
renderAuthor
());
}
else
{
return
pht
(
'%s disallowed Conduit API access to this credential.'
,
$this
->
renderAuthor
());
}
}
public
function
getTitleForFeed
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
pht
(
'%s allowed Conduit API access to credential %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
else
{
return
pht
(
'%s disallowed Conduit API access to credential %s.'
,
$this
->
renderAuthor
(),
$this
->
renderObject
());
}
}
public
function
getIcon
()
{
$new
=
$this
->
getNewValue
();
if
(
$new
)
{
return
'fa-tty'
;
}
else
{
return
'fa-ban'
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 13, 6:10 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125090
Default Alt Text
PassphraseCredentialConduitTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment