3 final class PhameBlogTransaction
4 extends PhabricatorModularTransaction
{
6 const MAILTAG_DETAILS
= 'phame-blog-details';
7 const MAILTAG_SUBSCRIBERS
= 'phame-blog-subscribers';
8 const MAILTAG_OTHER
= 'phame-blog-other';
10 public function getApplicationName() {
14 public function getApplicationTransactionType() {
15 return PhabricatorPhameBlogPHIDType
::TYPECONST
;
18 public function getBaseTransactionClass() {
19 return 'PhameBlogTransactionType';
22 public function getMailTags() {
23 $tags = parent
::getMailTags();
25 switch ($this->getTransactionType()) {
26 case PhabricatorTransactions
::TYPE_SUBSCRIBERS
:
27 $tags[] = self
::MAILTAG_SUBSCRIBERS
;
29 case PhameBlogNameTransaction
::TRANSACTIONTYPE
:
30 case PhameBlogSubtitleTransaction
::TRANSACTIONTYPE
:
31 case PhameBlogDescriptionTransaction
::TRANSACTIONTYPE
:
32 case PhameBlogFullDomainTransaction
::TRANSACTIONTYPE
:
33 case PhameBlogParentSiteTransaction
::TRANSACTIONTYPE
:
34 case PhameBlogParentDomainTransaction
::TRANSACTIONTYPE
:
35 case PhameBlogProfileImageTransaction
::TRANSACTIONTYPE
:
36 case PhameBlogHeaderImageTransaction
::TRANSACTIONTYPE
:
37 $tags[] = self
::MAILTAG_DETAILS
;
40 $tags[] = self
::MAILTAG_OTHER
;