Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/storage/PhabricatorAuditTransaction.php
Show First 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | public function getBodyForMail() { | ||||
} | } | ||||
return parent::getBodyForMail(); | return parent::getBodyForMail(); | ||||
} | } | ||||
public function getMailTags() { | public function getMailTags() { | ||||
$tags = array(); | $tags = array(); | ||||
switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
case DiffusionCommitAcceptTransaction::TRANSACTIONTYPE: | |||||
$tags[] = self::MAILTAG_ACTION_ACCEPT; | |||||
break; | |||||
case DiffusionCommitConcernTransaction::TRANSACTIONTYPE: | |||||
$tags[] = self::MAILTAG_ACTION_CONCERN; | |||||
break; | |||||
case DiffusionCommitResignTransaction::TRANSACTIONTYPE: | |||||
$tags[] = self::MAILTAG_ACTION_RESIGN; | |||||
break; | |||||
case DiffusionCommitAuditorsTransaction::TRANSACTIONTYPE: | |||||
$tags[] = self::MAILTAG_ADD_AUDITORS; | |||||
break; | |||||
case PhabricatorAuditActionConstants::ACTION: | case PhabricatorAuditActionConstants::ACTION: | ||||
switch ($this->getNewValue()) { | switch ($this->getNewValue()) { | ||||
case PhabricatorAuditActionConstants::CONCERN: | case PhabricatorAuditActionConstants::CONCERN: | ||||
$tags[] = self::MAILTAG_ACTION_CONCERN; | $tags[] = self::MAILTAG_ACTION_CONCERN; | ||||
break; | break; | ||||
case PhabricatorAuditActionConstants::ACCEPT: | case PhabricatorAuditActionConstants::ACCEPT: | ||||
$tags[] = self::MAILTAG_ACTION_ACCEPT; | $tags[] = self::MAILTAG_ACTION_ACCEPT; | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |