Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F114440977
PhabricatorUserSSHKey.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
Sun, May 25, 22:12
Size
944 B
Mime Type
text/x-php
Expires
Tue, May 27, 22:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26388580
Attached To
rPH Phabricator
PhabricatorUserSSHKey.php
View Options
<?php
final
class
PhabricatorUserSSHKey
extends
PhabricatorUserDAO
{
protected
$userPHID
;
protected
$name
;
protected
$keyType
;
protected
$keyBody
;
protected
$keyHash
;
protected
$keyComment
;
public
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'name'
=>
'text255'
,
'keyType'
=>
'text255'
,
'keyBody'
=>
'text'
,
'keyHash'
=>
'bytes32'
,
'keyComment'
=>
'text255?'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'userPHID'
=>
array
(
'columns'
=>
array
(
'userPHID'
),
),
'keyHash'
=>
array
(
'columns'
=>
array
(
'keyHash'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getEntireKey
()
{
$parts
=
array
(
$this
->
getKeyType
(),
$this
->
getKeyBody
(),
$this
->
getKeyComment
(),
);
return
trim
(
implode
(
' '
,
$parts
));
}
}
Event Timeline
Log In to Comment