Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phlux/storage/PhluxTransaction.php
<?php | <?php | ||||
final class PhluxTransaction extends PhabricatorApplicationTransaction { | final class PhluxTransaction extends PhabricatorApplicationTransaction { | ||||
const TYPE_EDIT_KEY = 'phlux:key'; | const TYPE_EDIT_KEY = 'phlux:key'; | ||||
const TYPE_EDIT_VALUE = 'phlux:value'; | const TYPE_EDIT_VALUE = 'phlux:value'; | ||||
public function getApplicationName() { | public function getApplicationName() { | ||||
return 'phlux'; | return 'phlux'; | ||||
} | } | ||||
public function getApplicationTransactionType() { | public function getApplicationTransactionType() { | ||||
return PhluxVariablePHIDType::TYPECONST; | return PhluxVariablePHIDType::TYPECONST; | ||||
} | } | ||||
public function getApplicationTransactionCommentObject() { | |||||
return null; | |||||
} | |||||
public function getTitle() { | public function getTitle() { | ||||
$author_phid = $this->getAuthorPHID(); | $author_phid = $this->getAuthorPHID(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case self::TYPE_EDIT_KEY: | case self::TYPE_EDIT_KEY: | ||||
return pht( | return pht( | ||||
'%s created this variable.', | '%s created this variable.', | ||||
$this->renderHandleLink($author_phid)); | $this->renderHandleLink($author_phid)); | ||||
Show All 26 Lines |