Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / phame / storage / PhameBlogTransaction.php
blobc605510d7d9caad81dad7de4072e56699c3310af
1 <?php
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() {
11 return 'phame';
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;
28 break;
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;
38 break;
39 default:
40 $tags[] = self::MAILTAG_OTHER;
41 break;
43 return $tags;