当前位置: 首页>>代码示例>>PHP>>正文


PHP PhabricatorApplicationTransaction::getMailTags方法代码示例

本文整理汇总了PHP中PhabricatorApplicationTransaction::getMailTags方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransaction::getMailTags方法的具体用法?PHP PhabricatorApplicationTransaction::getMailTags怎么用?PHP PhabricatorApplicationTransaction::getMailTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhabricatorApplicationTransaction的用法示例。


在下文中一共展示了PhabricatorApplicationTransaction::getMailTags方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_SUBSCRIBERS:
             $tags[] = self::MAILTAG_SUBSCRIBERS;
             break;
         case self::TYPE_NAME:
         case self::TYPE_DESCRIPTION:
         case self::TYPE_DOMAIN:
             $tags[] = self::MAILTAG_DETAILS;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:pugong,项目名称:phabricator,代码行数:18,代码来源:PhameBlogTransaction.php

示例2: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_COMMENT:
             $tags[] = self::MAILTAG_COMMENT;
             break;
         case self::TYPE_TITLE:
         case self::TYPE_EPOCH:
         case self::TYPE_DESCRIPTION:
             $tags[] = self::MAILTAG_DETAILS;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:rchicoli,项目名称:phabricator,代码行数:18,代码来源:PhabricatorCountdownTransaction.php

示例3: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_COMMENT:
             $tags[] = self::MAILTAG_COMMENT;
             break;
         case PhabricatorTransactions::TYPE_SUBSCRIBERS:
             $tags[] = self::MAILTAG_SUBSCRIBERS;
             break;
         case self::TYPE_TITLE:
         case self::TYPE_BODY:
             $tags[] = self::MAILTAG_CONTENT;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:truSense,项目名称:phabricator,代码行数:20,代码来源:PhamePostTransaction.php

示例4: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case PhabricatorTransactions::TYPE_COMMENT:
             $tags[] = self::MAILTAG_COMMENT;
             break;
         case self::TYPE_NAME:
         case self::TYPE_DESCRIPTION:
         case self::TYPE_FLAVOR:
         case self::TYPE_ICON:
         case self::TYPE_STATUS:
         case self::TYPE_QUALITY:
             $tags[] = self::MAILTAG_DETAILS;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:fuding,项目名称:phabricator,代码行数:21,代码来源:PhabricatorBadgesTransaction.php

示例5: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case self::TYPE_QUESTION:
         case self::TYPE_DESCRIPTION:
         case self::TYPE_SHUFFLE:
         case self::TYPE_CLOSE:
             $tags[] = self::MAILTAG_DETAILS;
             break;
         case self::TYPE_RESPONSES:
             $tags[] = self::MAILTAG_RESPONSES;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:pugong,项目名称:phabricator,代码行数:19,代码来源:PhabricatorSlowvoteTransaction.php

示例6: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case self::TYPE_STATUS:
             $tags[] = self::MAILTAG_STATUS;
             break;
         case self::TYPE_BACKER:
         case self::TYPE_REFUND:
             $tags[] = self::MAILTAG_BACKER;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:pugong,项目名称:phabricator,代码行数:17,代码来源:FundInitiativeTransaction.php

示例7: getMailTags

 public function getMailTags()
 {
     $tags = parent::getMailTags();
     switch ($this->getTransactionType()) {
         case self::TYPE_TITLE:
             $tags[] = self::MAILTAG_TITLE;
             break;
         case self::TYPE_EPOCH:
             $tags[] = self::MAILTAG_EPOCH;
             break;
         case self::TYPE_DESCRIPTION:
             $tags[] = self::MAILTAG_DESCRIPTION;
             break;
         default:
             $tags[] = self::MAILTAG_OTHER;
             break;
     }
     return $tags;
 }
开发者ID:JohnnyEstilles,项目名称:phabricator,代码行数:19,代码来源:PhabricatorCountdownTransaction.php


注:本文中的PhabricatorApplicationTransaction::getMailTags方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。