getTransactionType()) { case self::TYPE_CREATED: return true; } return parent::shouldHideForMail($xactions); } public function getTitle() { $old = $this->getOldValue(); $new = $this->getNewValue(); switch ($this->getTransactionType()) { case self::TYPE_CREATED: return pht('This order was created.'); case self::TYPE_HOLD: return pht('This order was put on hold until payment clears.'); case self::TYPE_REVIEW: return pht( 'This order was flagged for manual processing by the merchant.'); case self::TYPE_CANCEL: return pht('This order was cancelled.'); case self::TYPE_REFUND: return pht('This order was refunded.'); case self::TYPE_PURCHASED: return pht('Payment for this order was completed.'); } return parent::getTitle(); } }