Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92233367
PassphraseCredentialConduitTransaction.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
Mon, Nov 18, 14:33
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Nov 20, 14:33 (2 d)
Engine
blob
Format
Raw Data
Handle
22395815
Attached To
rPH Phabricator
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'
;
}
}
}
Event Timeline
Log In to Comment