Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106643237
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
Sat, Mar 29, 05:34
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Mar 31, 06:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25235986
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