Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81507109
PhabricatorAuthAuthFactorPHIDType.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, Sep 6, 10:50
Size
718 B
Mime Type
text/x-php
Expires
Sun, Sep 8, 10:50 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20587628
Attached To
rPH Phabricator
PhabricatorAuthAuthFactorPHIDType.php
View Options
<?php
final
class
PhabricatorAuthAuthFactorPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'AFTR'
;
public
function
getTypeName
()
{
return
pht
(
'Auth Factor'
);
}
public
function
newObject
()
{
return
new
PhabricatorAuthFactorConfig
();
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
// TODO: Maybe we need this eventually?
throw
new
PhutilMethodNotImplementedException
();
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$factor
=
$objects
[
$phid
];
$handle
->
setName
(
$factor
->
getFactorName
());
}
}
}
Event Timeline
Log In to Comment