Page MenuHomePhabricator

final class PhortuneSubscription
Phabricator Technical Documentation (Phortune)

A subscription bills users regularly.

Tasks

Configuring Storage

Other Methods

Methods

public static function pushStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

public static function popStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getDefaultStorageNamespace()
Inherited

This method is not documented.
Return
wild

public static function getStorageNamespace()
Inherited

This method is not documented.
Return
wild

public function setForcedStorageNamespace($namespace)
Inherited

This method is not documented.
Parameters
$namespace
Return
wild

protected function establishLiveConnection($mode)
Inherited

This method is not documented.
Parameters
$mode
Return
wild

private function newClusterConnection($application, $database, $mode)
Inherited

This method is not documented.
Parameters
$application
$database
$mode
Return
wild

private function raiseImproperWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseImpossibleWrite($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnconfigured($database)
Inherited

This method is not documented.
Parameters
$database
Return
wild

private function raiseUnreachable($database, $proxy)
Inherited

This method is not documented.
Parameters
$database
Exception$proxy
Return
wild

public function getTableName()
Inherited

This method is not documented.
Return
wild

public function getApplicationName()
Inherited

This method is not documented.
Return
wild

protected function getDatabaseName()
Inherited

This method is not documented.
Return
wild

public static function chunkSQL($fragments, $limit)
Inherited

PhabricatorLiskDAO

Break a list of escaped SQL statement fragments (e.g., VALUES lists for INSERT, previously built with qsprintf()) into chunks which will fit under the MySQL 'max_allowed_packet' limit.

If a statement is too large to fit within the limit, it is broken into its own chunk (but might fail when the query executes).

Parameters
array$fragments
$limit
Return
wild

protected function assertAttached($property)
Inherited

This method is not documented.
Parameters
$property
Return
wild

protected function assertAttachedKey($value, $key)
Inherited

This method is not documented.
Parameters
$value
$key
Return
wild

protected function detectEncodingForStorage($string)
Inherited

This method is not documented.
Parameters
$string
Return
wild

protected function getUTF8StringFromStorage($string, $encoding)
Inherited

This method is not documented.
Parameters
$string
$encoding
Return
wild

protected function willReadData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

protected function willWriteData(&$data)
Inherited

This method is not documented.
Parameters
array&$data
Return
wild

protected function getConfiguration()

This method is not documented.
Return
wild

public function getPHIDType()

This method is not documented.
Return
wild

public static function initializeNewSubscription($account, $merchant, $author, $implementation, $clock)

This method is not documented.
Parameters
PhortuneAccount$account
PhortuneMerchant$merchant
PhabricatorUser$author
PhortuneSubscriptionImplementation$implementation
PhabricatorTriggerClock$clock
Return
wild

public function attachImplementation($impl)

This method is not documented.
Parameters
PhortuneSubscriptionImplementation$impl
Return
wild

public function getImplementation()

This method is not documented.
Return
wild

public function attachAccount($account)

This method is not documented.
Parameters
PhortuneAccount$account
Return
wild

public function getAccount()

This method is not documented.
Return
wild

public function attachMerchant($merchant)

This method is not documented.
Parameters
PhortuneMerchant$merchant
Return
wild

public function getMerchant()

This method is not documented.
Return
wild

public function attachTrigger($trigger)

This method is not documented.
Parameters
PhabricatorWorkerTrigger$trigger
Return
wild

public function getTrigger()

This method is not documented.
Return
wild

public function save()

This method is not documented.
Return
wild

public function getSubscriptionName()

This method is not documented.
Return
wild

public function getSubscriptionFullName()

This method is not documented.
Return
wild

public function getSubscriptionCrumbName()

This method is not documented.
Return
wild

public function getCartName($cart)

This method is not documented.
Parameters
PhortuneCart$cart
Return
wild

public function getURI()

This method is not documented.
Return
wild

public function getEditURI()

This method is not documented.
Return
wild

public function getMerchantURI()

This method is not documented.
Return
wild

public function getCostForBillingPeriodAsCurrency($start_epoch, $end_epoch)

This method is not documented.
Parameters
$start_epoch
$end_epoch
Return
wild

public function shouldInvoiceForBillingPeriod($start_epoch, $end_epoch)

This method is not documented.
Parameters
$start_epoch
$end_epoch
Return
wild

public function getPurchaseName($product, $purchase)

This method is not documented.
Parameters
PhortuneProduct$product
PhortunePurchase$purchase
Return
wild

public function getPurchaseURI($product, $purchase)

This method is not documented.
Parameters
PhortuneProduct$product
PhortunePurchase$purchase
Return
wild

public function didPurchaseProduct($product, $purchase)

This method is not documented.
Parameters
PhortuneProduct$product
PhortunePurchase$purchase
Return
wild
This method is not documented.
Return
wild
This method is not documented.
Return
wild

public function getCapabilities()

This method is not documented.
Return
wild

public function getPolicy($capability)

This method is not documented.
Parameters
$capability
Return
wild

public function hasAutomaticCapability($capability, $viewer)

This method is not documented.
Parameters
$capability
PhabricatorUser$viewer
Return
wild

public function getExtendedPolicy($capability, $viewer)

This method is not documented.
Parameters
$capability
PhabricatorUser$viewer
Return
wild

public function newPolicyCodex()

This method is not documented.
Return
wild