3 final class DifferentialDiffTransaction
4 extends PhabricatorApplicationTransaction
{
6 const TYPE_DIFF_CREATE
= 'differential:diff:create';
8 public function getApplicationName() {
12 public function getApplicationTransactionType() {
13 return DifferentialDiffPHIDType
::TYPECONST
;
16 public function shouldHideForMail(array $xactions) {
20 public function getActionName() {
21 switch ($this->getTransactionType()) {
22 case self
::TYPE_DIFF_CREATE
;
23 return pht('Created');
26 return parent
::getActionName();
29 public function getTitle() {
30 $author_phid = $this->getAuthorPHID();
31 $author_handle = $this->renderHandleLink($author_phid);
33 $old = $this->getOldValue();
34 $new = $this->getNewValue();
36 switch ($this->getTransactionType()) {
37 case self
::TYPE_DIFF_CREATE
;
39 '%s created this diff.',
43 return parent
::getTitle();
46 public function getIcon() {
47 switch ($this->getTransactionType()) {
48 case self
::TYPE_DIFF_CREATE
:
52 return parent
::getIcon();
55 public function getColor() {
56 switch ($this->getTransactionType()) {
57 case self
::TYPE_DIFF_CREATE
:
58 return PhabricatorTransactions
::COLOR_SKY
;
61 return parent
::getColor();