Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98165088
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
Fri, Jan 10, 11:48
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Jan 12, 11:48 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23521926
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
(
'keyHash'
=>
'bytes32'
,
'keyComment'
=>
'text255?'
,
// T6203/NULLABILITY
// These seem like they should not be nullable.
'name'
=>
'text255?'
,
'keyType'
=>
'text255?'
,
'keyBody'
=>
'text?'
,
),
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