Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99021141
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
Sat, Jan 18, 13:00
Size
705 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 13:00 (2 d)
Engine
blob
Format
Raw Data
Handle
23691851
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