public function shouldHideForMail(array $xactions) { switch ($this->getTransactionType()) { case self::TYPE_CREATED: return true; } return parent::shouldHideForMail($xactions); }
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); }
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); }
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); }
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); }