Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2896357
PhabricatorAuthSSHKeyPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
906 B
Referenced Files
None
Subscribers
None
PhabricatorAuthSSHKeyPHIDType.php
View Options
<?php
final
class
PhabricatorAuthSSHKeyPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'AKEY'
;
public
function
getTypeName
(
)
{
return
pht
(
'Public SSH Key'
)
;
}
public
function
newObject
(
)
{
return
new
PhabricatorAuthSSHKey
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorAuthApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorAuthSSHKeyQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$key
=
$objects
[
$phid
]
;
$handle
->
setName
(
pht
(
'SSH Key %d'
,
$key
->
getID
(
)
)
)
;
if
(
!
$key
->
getIsActive
(
)
)
{
$handle
->
setStatus
(
PhabricatorObjectHandle
::
STATUS_CLOSED
)
;
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 22:58 (6 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1129636
Default Alt Text
PhabricatorAuthSSHKeyPHIDType.php (906 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment