Path: blob/master/src/applications/countdown/storage/PhabricatorCountdownTransaction.php
13442 views
<?php12final class PhabricatorCountdownTransaction3extends PhabricatorModularTransaction {45const MAILTAG_DETAILS = 'countdown:details';6const MAILTAG_COMMENT = 'countdown:comment';7const MAILTAG_OTHER = 'countdown:other';89public function getApplicationName() {10return 'countdown';11}1213public function getApplicationTransactionType() {14return PhabricatorCountdownCountdownPHIDType::TYPECONST;15}1617public function getApplicationTransactionCommentObject() {18return new PhabricatorCountdownTransactionComment();19}2021public function getBaseTransactionClass() {22return 'PhabricatorCountdownTransactionType';23}2425public function getMailTags() {26$tags = parent::getMailTags();2728switch ($this->getTransactionType()) {29case PhabricatorTransactions::TYPE_COMMENT:30$tags[] = self::MAILTAG_COMMENT;31break;32case PhabricatorCountdownTitleTransaction::TRANSACTIONTYPE:33case PhabricatorCountdownEpochTransaction::TRANSACTIONTYPE:34case PhabricatorCountdownDescriptionTransaction::TRANSACTIONTYPE:35$tags[] = self::MAILTAG_DETAILS;36break;37default:38$tags[] = self::MAILTAG_OTHER;39break;40}4142return $tags;43}44}454647