本文整理汇总了PHP中PhabricatorApplicationTransaction::shouldHideForMail方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransaction::shouldHideForMail方法的具体用法?PHP PhabricatorApplicationTransaction::shouldHideForMail怎么用?PHP PhabricatorApplicationTransaction::shouldHideForMail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PhabricatorApplicationTransaction
的用法示例。
在下文中一共展示了PhabricatorApplicationTransaction::shouldHideForMail方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: shouldHideForMail
public function shouldHideForMail(array $xactions)
{
switch ($this->getTransactionType()) {
case self::TYPE_CREATED:
return true;
}
return parent::shouldHideForMail($xactions);
}
示例2: shouldHideForMail
public function shouldHideForMail(array $xactions)
{
switch ($this->getTransactionType()) {
case self::TYPE_HASWORKBOARD:
case self::TYPE_DEFAULT_SORT:
case self::TYPE_DEFAULT_FILTER:
return true;
}
return parent::shouldHideForMail($xactions);
}
示例3: shouldHideForMail
public function shouldHideForMail(array $xactions)
{
switch ($this->getTransactionType()) {
case self::TYPE_MOVE_TO:
case self::TYPE_MOVE_AWAY:
return true;
case self::TYPE_TITLE:
return $this->getMetadataValue('stub:create:phid', false);
}
return parent::shouldHideForMail($xactions);
}
示例4: shouldHideForMail
public function shouldHideForMail(array $xactions)
{
switch ($this->getTransactionType()) {
case self::TYPE_INLINE:
// Hide inlines when rendering mail transactions if any other
// transaction type exists.
foreach ($xactions as $xaction) {
if ($xaction->getTransactionType() != self::TYPE_INLINE) {
return true;
}
}
// If only inline transactions exist, we just render the first one.
return $this !== head($xactions);
}
return parent::shouldHideForMail($xactions);
}
示例5: shouldHideForMail
public function shouldHideForMail(array $xactions)
{
$type_inline = PhabricatorAuditActionConstants::INLINE;
switch ($this->getTransactionType()) {
case $type_inline:
foreach ($xactions as $xaction) {
if ($xaction->getTransactionType() != $type_inline) {
return true;
}
}
return $this !== head($xactions);
}
return parent::shouldHideForMail($xactions);
}