Page MenuHomePhabricator

final class PhortuneCart
Phabricator Technical Documentation (Phortune)

This class is not documented.

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

public static function initializeNewCart($actor, $account, $merchant)

This method is not documented.
Parameters
PhabricatorUser$actor
PhortuneAccount$account
PhortuneMerchant$merchant
Return
wild

public function newPurchase($actor, $product)

This method is not documented.
Parameters
PhabricatorUser$actor
PhortuneProduct$product
Return
wild

public static function getStatusNameMap()

This method is not documented.
Return
wild

public static function getNameForStatus($status)

This method is not documented.
Parameters
$status
Return
wild

public function activateCart()

This method is not documented.
Return
wild

public function willApplyCharge($actor, $provider, $method)

This method is not documented.
Parameters
PhabricatorUser$actor
PhortunePaymentProvider$provider
PhortunePaymentMethod$method
Return
wild

public function didHoldCharge($charge)

This method is not documented.
Parameters
PhortuneCharge$charge
Return
wild

public function didApplyCharge($charge)

This method is not documented.
Parameters
PhortuneCharge$charge
Return
wild

public function willReviewCart()

This method is not documented.
Return
wild

public function didReviewCart()

This method is not documented.
Return
wild

public function didFailCharge($charge)

This method is not documented.
Parameters
PhortuneCharge$charge
Return
wild

public function willRefundCharge($actor, $provider, $charge, $amount)

This method is not documented.
Parameters
PhabricatorUser$actor
PhortunePaymentProvider$provider
PhortuneCharge$charge
PhortuneCurrency$amount
Return
wild

public function didRefundCharge($charge, $refund)

This method is not documented.
Parameters
PhortuneCharge$charge
PhortuneCharge$refund
Return
wild

public function didFailRefund($charge, $refund)

This method is not documented.
Parameters
PhortuneCharge$charge
PhortuneCharge$refund
Return
wild

private function recordCartTransaction($type)

This method is not documented.
Parameters
$type
Return
wild

public function getName()

This method is not documented.
Return
wild

public function getDoneURI()

This method is not documented.
Return
wild

public function getDoneActionName()

This method is not documented.
Return
wild

public function getCancelURI()

This method is not documented.
Return
wild

public function getDescription()

This method is not documented.
Return
wild

public function getDetailURI()

This method is not documented.
Return
wild

public function getCheckoutURI()

This method is not documented.
Return
wild

public function canCancelOrder()

This method is not documented.
Return
wild

public function canRefundOrder()

This method is not documented.
Return
wild

public function canVoidOrder()

This method is not documented.
Return
wild

public function assertCanCancelOrder()

This method is not documented.
Return
wild

public function assertCanRefundOrder()

This method is not documented.
Return
wild

public function assertCanVoidOrder()

This method is not documented.
Return
wild

protected function getConfiguration()

This method is not documented.
Return
wild

public function generatePHID()

This method is not documented.
Return
wild

public function save()

This method is not documented.
Return
wild

public function attachPurchases($purchases)

This method is not documented.
Parameters
array$purchases
Return
wild

public function getPurchases()

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 attachImplementation($implementation)

This method is not documented.
Parameters
PhortuneCartImplementation$implementation
Return
wild

public function getImplementation()

This method is not documented.
Return
wild

public function getTotalPriceAsCurrency()

This method is not documented.
Return
wild

public function setMetadataValue($key, $value)

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

public function getMetadataValue($key, $default)

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

public function getObjectName()

This method is not documented.
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