Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539883
PhabricatorAuthSSHKeyTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorAuthSSHKeyTransaction.php
View Options
<?php
final
class
PhabricatorAuthSSHKeyTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_NAME
=
'sshkey.name'
;
const
TYPE_KEY
=
'sshkey.key'
;
const
TYPE_DEACTIVATE
=
'sshkey.deactivate'
;
public
function
getApplicationName
()
{
return
'auth'
;
}
public
function
getApplicationTransactionType
()
{
return
PhabricatorAuthSSHKeyPHIDType
::
TYPECONST
;
}
public
function
getTitle
()
{
$author_phid
=
$this
->
getAuthorPHID
();
$old
=
$this
->
getOldValue
();
$new
=
$this
->
getNewValue
();
switch
(
$this
->
getTransactionType
())
{
case
PhabricatorTransactions
::
TYPE_CREATE
:
return
pht
(
'%s created this key.'
,
$this
->
renderHandleLink
(
$author_phid
));
case
self
::
TYPE_NAME
:
return
pht
(
'%s renamed this key from "%s" to "%s".'
,
$this
->
renderHandleLink
(
$author_phid
),
$old
,
$new
);
case
self
::
TYPE_KEY
:
return
pht
(
'%s updated the public key material for this SSH key.'
,
$this
->
renderHandleLink
(
$author_phid
));
case
self
::
TYPE_DEACTIVATE
:
if
(
$new
)
{
return
pht
(
'%s revoked this key.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
else
{
return
pht
(
'%s reinstated this key.'
,
$this
->
renderHandleLink
(
$author_phid
));
}
}
return
parent
::
getTitle
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:21 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
99576
Default Alt Text
PhabricatorAuthSSHKeyTransaction.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment