[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhortuneCartTransaction 4 extends PhabricatorApplicationTransaction { 5 6 const TYPE_CREATED = 'cart:created'; 7 const TYPE_HOLD = 'cart:hold'; 8 const TYPE_REVIEW = 'cart:review'; 9 const TYPE_CANCEL = 'cart:cancel'; 10 const TYPE_REFUND = 'cart:refund'; 11 const TYPE_PURCHASED = 'cart:purchased'; 12 13 public function getApplicationName() { 14 return 'phortune'; 15 } 16 17 public function getApplicationTransactionType() { 18 return PhortuneCartPHIDType::TYPECONST; 19 } 20 21 public function getApplicationTransactionCommentObject() { 22 return null; 23 } 24 25 public function shouldHideForMail(array $xactions) { 26 switch ($this->getTransactionType()) { 27 case self::TYPE_CREATED: 28 return true; 29 } 30 31 return parent::shouldHideForMail($xactions); 32 } 33 34 public function getTitle() { 35 $old = $this->getOldValue(); 36 $new = $this->getNewValue(); 37 38 switch ($this->getTransactionType()) { 39 case self::TYPE_CREATED: 40 return pht('This order was created.'); 41 case self::TYPE_HOLD: 42 return pht('This order was put on hold until payment clears.'); 43 case self::TYPE_REVIEW: 44 return pht( 45 'This order was flagged for manual processing by the merchant.'); 46 case self::TYPE_CANCEL: 47 return pht('This order was cancelled.'); 48 case self::TYPE_REFUND: 49 return pht('This order was refunded.'); 50 case self::TYPE_PURCHASED: 51 return pht('Payment for this order was completed.'); 52 } 53 54 return parent::getTitle(); 55 } 56 57 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |