Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93905782
PhortuneSubscriptionImplementation.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
Mon, Dec 2, 10:08
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Dec 4, 10:08 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22722351
Attached To
rPH Phabricator
PhortuneSubscriptionImplementation.php
View Options
<?php
abstract
class
PhortuneSubscriptionImplementation
extends
Phobject
{
abstract
public
function
loadImplementationsForRefs
(
PhabricatorUser
$viewer
,
array
$refs
);
abstract
public
function
getRef
();
abstract
public
function
getName
(
PhortuneSubscription
$subscription
);
public
function
getFullName
(
PhortuneSubscription
$subscription
)
{
return
$this
->
getName
(
$subscription
);
}
public
function
getCrumbName
(
PhortuneSubscription
$subscription
)
{
return
$this
->
getName
(
$subscription
);
}
abstract
public
function
getCostForBillingPeriodAsCurrency
(
PhortuneSubscription
$subscription
,
$start_epoch
,
$end_epoch
);
public
function
shouldInvoiceForBillingPeriod
(
PhortuneSubscription
$subscription
,
$start_epoch
,
$end_epoch
)
{
return
true
;
}
public
function
getCartName
(
PhortuneSubscription
$subscription
,
PhortuneCart
$cart
)
{
return
pht
(
'Subscription'
);
}
public
function
getPurchaseName
(
PhortuneSubscription
$subscription
,
PhortuneProduct
$product
,
PhortunePurchase
$purchase
)
{
return
$product
->
getProductName
();
}
public
function
getPurchaseURI
(
PhortuneSubscription
$subscription
,
PhortuneProduct
$product
,
PhortunePurchase
$purchase
)
{
return
null
;
}
}
Event Timeline
Log In to Comment