本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}