Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112303108
PhabricatorAuthConduitTokenRevoker.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
Fri, May 9, 19:58
Size
705 B
Mime Type
text/x-php
Expires
Sun, May 11, 19:58 (2 d)
Engine
blob
Format
Raw Data
Handle
26052238
Attached To
rPH Phabricator
PhabricatorAuthConduitTokenRevoker.php
View Options
<?php
final
class
PhabricatorAuthConduitTokenRevoker
extends
PhabricatorAuthRevoker
{
const
REVOKERKEY
=
'conduit'
;
public
function
revokeAllCredentials
()
{
$table
=
id
(
new
PhabricatorConduitToken
());
$conn
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn
,
'DELETE FROM %T'
,
$table
->
getTableName
());
return
$conn
->
getAffectedRows
();
}
public
function
revokeCredentialsFrom
(
$object
)
{
$table
=
id
(
new
PhabricatorConduitToken
());
$conn
=
$table
->
establishConnection
(
'w'
);
queryfx
(
$conn
,
'DELETE FROM %T WHERE objectPHID = %s'
,
$table
->
getTableName
(),
$object
->
getPHID
());
return
$conn
->
getAffectedRows
();
}
}
Event Timeline
Log In to Comment