Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106131143
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, Mar 22, 21:54
Size
705 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 21:54 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25120244
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