3 final class PhabricatorAuthSSHKeyTransaction
4 extends PhabricatorApplicationTransaction
{
6 const TYPE_NAME
= 'sshkey.name';
7 const TYPE_KEY
= 'sshkey.key';
8 const TYPE_DEACTIVATE
= 'sshkey.deactivate';
10 public function getApplicationName() {
14 public function getApplicationTransactionType() {
15 return PhabricatorAuthSSHKeyPHIDType
::TYPECONST
;
18 public function getTitle() {
19 $author_phid = $this->getAuthorPHID();
21 $old = $this->getOldValue();
22 $new = $this->getNewValue();
24 switch ($this->getTransactionType()) {
25 case PhabricatorTransactions
::TYPE_CREATE
:
27 '%s created this key.',
28 $this->renderHandleLink($author_phid));
31 '%s renamed this key from "%s" to "%s".',
32 $this->renderHandleLink($author_phid),
37 '%s updated the public key material for this SSH key.',
38 $this->renderHandleLink($author_phid));
39 case self
::TYPE_DEACTIVATE
:
42 '%s revoked this key.',
43 $this->renderHandleLink($author_phid));
46 '%s reinstated this key.',
47 $this->renderHandleLink($author_phid));
52 return parent
::getTitle();