Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98202729
PhortuneCartTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 11, 00:34
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jan 13, 00:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23532990
Attached To
rPH Phabricator
PhortuneCartTransaction.php
View Options
<?php
final
class
PhortuneCartTransaction
extends
PhabricatorApplicationTransaction
{
const
TYPE_CREATED
=
'cart:created'
;
const
TYPE_HOLD
=
'cart:hold'
;
const
TYPE_REVIEW
=
'cart:review'
;
const
TYPE_CANCEL
=
'cart:cancel'
;
const
TYPE_REFUND
=
'cart:refund'
;
const
TYPE_PURCHASED
=
'cart:purchased'
;
public
function
getApplicationName
()
{
return
'phortune'
;
}
public
function
getApplicationTransactionType
()
{
return
PhortuneCartPHIDType
::
TYPECONST
;
}
public
function
getApplicationTransactionCommentObject
()
{
return
null
;
}
public
function
shouldHideForMail
(
array
$xactions
)
{
switch
(
$this
->
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
();
}
}
Event Timeline
Log In to Comment