Cheetah
|
Public Member Functions | |
__construct ($aModule) | |
getExtraJs ($sType) | |
getMoreWindow () | |
getManualOrderWindow () | |
getOrdersBlock ($sType, $iUserId=CH_PMT_EMPTY_ID) | |
serviceGetOrdersUrl () | |
actionGetItems ($iModuleId) | |
actionGetOrder () | |
actionGetOrders () | |
actionManualOrderSubmit () | |
actionOrdersSubmit ($sType) | |
getDetailsForm ($iUserId=CH_PMT_EMPTY_ID) | |
serviceGetCurrencyInfo () | |
serviceGetAdmins () | |
getSettingsForm ($mixedResult) | |
setSettings ($aData) | |
serviceUpdateDependentModules ($sModuleUri='all', $bInstall=true) | |
getCartHistory ($iVendorId) | |
getCartContent ($mixedVendor=null) | |
serviceGetCartJs ($bWrapped=true) | |
serviceGetAddToCartJs ($iVendorId, $mixedModuleId, $iItemId, $iItemCount, $bNeedRedirect=false, $bWrapped=true) | |
serviceGetAddToCartLink ($iVendorId, $mixedModuleId, $iItemId, $iItemCount, $bNeedRedirect=false) | |
serviceGetCartItemCount ($iUserId, $iOldCount=0) | |
serviceGetCartItems () | |
serviceGetCartUrl () | |
serviceGetCartItemDescriptor ($iVendorId, $iModuleId, $iItemId, $iItemCount) | |
actionCartSubmit () | |
actionAddToCart ($iVendorId, $iModuleId, $iItemId, $iItemCount) | |
serviceAddToCart ($iVendorId, $iModuleId, $iItemId, $iItemCount) | |
actionDeleteFromCart ($iVendorId, $iModuleId, $iItemId) | |
actionEmptyCart ($iVendorId) | |
serviceGetProviders ($iVendorId, $sProvider='') | |
serviceInitializeCheckout ($iVendorId, $sProvider, $aItems=array()) | |
initializeCheckout ($iVendorId, $sProvider, $aItems=array()) | |
actionFinalizeCheckout ($sProvider, $mixedVendorId="") | |
actionCheckoutFinished ($sProvider, $mixedVendorId="") | |
serviceGetTransactionsInfo ($aConditions) | |
serviceGetOption ($sOption) | |
serviceResponse ($oAlert) | |
performJoin ($iPendingId, $aPayment=array()) | |
actionJoin () | |
_onProfileJoin ($iProfileId) | |
_onResultAlert ($aResult) | |
_onResultInline ($aResult) | |
_onResultPage ($aResult) | |
![]() | |
isLogged () | |
getUserId () | |
getUserPassword () | |
getTitleKey ($sUri) | |
serviceGetBaseUrl () | |
Public Attributes | |
$_iUserId | |
$_oDetails | |
$_oCart | |
$_oOrders | |
$_aOrderTypes | |
$_sGeneralPrefix | |
$_sLangsPrefix | |
$_sEmailTemplatesPrefix | |
![]() | |
$_aModule | |
$_oDb | |
$_oTemplate | |
$_oConfig | |
Protected Attributes | |
$_sSessionKeyPending | |
$_sRequestKeyPending | |
Additional Inherited Members | |
![]() | |
static | getInstance ($sClassName) |
static | getTitle ($sUri) |
Payment module by Cheetah
This module is needed to work with payment providers and organize the process of some item purchasing. Shopping Cart and Orders Manager are included.
Integration notes: To integrate your module with this one, you need:
Spy: no spy events
Memberships/ACL: Doesn't depend on user's membership.
Service methods:
Is used to get "Add to cart" link for some item(s) in your module.
Check transaction(s) in database which satisty all conditions.
Get total count of items in Shopping Cart.
Get Shopping cart content.
Alerts: no alerts available
Definition at line 78 of file ChPmtModule.php.
ChPmtModule::__construct | ( | $aModule | ) |
ChPmtModule::_onProfileJoin | ( | $iProfileId | ) |
Private Methods of Common Usage
Definition at line 823 of file ChPmtModule.php.
ChPmtModule::_onResultAlert | ( | $aResult | ) |
Definition at line 842 of file ChPmtModule.php.
ChPmtModule::_onResultInline | ( | $aResult | ) |
Definition at line 846 of file ChPmtModule.php.
ChPmtModule::_onResultPage | ( | $aResult | ) |
Definition at line 858 of file ChPmtModule.php.
ChPmtModule::actionAddToCart | ( | $iVendorId, | |
$iModuleId, | |||
$iItemId, | |||
$iItemCount | |||
) |
Definition at line 511 of file ChPmtModule.php.
ChPmtModule::actionCartSubmit | ( | ) |
Definition at line 486 of file ChPmtModule.php.
ChPmtModule::actionCheckoutFinished | ( | $sProvider, | |
$mixedVendorId = "" |
|||
) |
Definition at line 672 of file ChPmtModule.php.
ChPmtModule::actionDeleteFromCart | ( | $iVendorId, | |
$iModuleId, | |||
$iItemId | |||
) |
Isn't used yet.
Definition at line 525 of file ChPmtModule.php.
ChPmtModule::actionEmptyCart | ( | $iVendorId | ) |
Isn't used yet.
Definition at line 535 of file ChPmtModule.php.
ChPmtModule::actionFinalizeCheckout | ( | $sProvider, | |
$mixedVendorId = "" |
|||
) |
Definition at line 638 of file ChPmtModule.php.
ChPmtModule::actionGetItems | ( | $iModuleId | ) |
Definition at line 173 of file ChPmtModule.php.
ChPmtModule::actionGetOrder | ( | ) |
Definition at line 186 of file ChPmtModule.php.
ChPmtModule::actionGetOrders | ( | ) |
Definition at line 202 of file ChPmtModule.php.
ChPmtModule::actionJoin | ( | ) |
Definition at line 754 of file ChPmtModule.php.
ChPmtModule::actionManualOrderSubmit | ( | ) |
Definition at line 235 of file ChPmtModule.php.
ChPmtModule::actionOrdersSubmit | ( | $sType | ) |
Definition at line 252 of file ChPmtModule.php.
ChPmtModule::getCartContent | ( | $mixedVendor = null | ) |
Definition at line 395 of file ChPmtModule.php.
ChPmtModule::getCartHistory | ( | $iVendorId | ) |
Cart Processing Methods
Definition at line 385 of file ChPmtModule.php.
ChPmtModule::getDetailsForm | ( | $iUserId = CH_PMT_EMPTY_ID | ) |
Payment Details Methods
Definition at line 302 of file ChPmtModule.php.
ChPmtModule::getExtraJs | ( | $sType | ) |
Public Methods of Common Usage
Definition at line 137 of file ChPmtModule.php.
ChPmtModule::getManualOrderWindow | ( | ) |
Definition at line 158 of file ChPmtModule.php.
ChPmtModule::getMoreWindow | ( | ) |
Manage Orders Methods
Definition at line 154 of file ChPmtModule.php.
ChPmtModule::getOrdersBlock | ( | $sType, | |
$iUserId = CH_PMT_EMPTY_ID |
|||
) |
Definition at line 162 of file ChPmtModule.php.
ChPmtModule::getSettingsForm | ( | $mixedResult | ) |
Admin Settings Methods
Definition at line 334 of file ChPmtModule.php.
ChPmtModule::initializeCheckout | ( | $iVendorId, | |
$sProvider, | |||
$aItems = array() |
|||
) |
Definition at line 570 of file ChPmtModule.php.
ChPmtModule::performJoin | ( | $iPendingId, | |
$aPayment = array() |
|||
) |
Join Methods
Definition at line 734 of file ChPmtModule.php.
ChPmtModule::serviceAddToCart | ( | $iVendorId, | |
$iModuleId, | |||
$iItemId, | |||
$iItemCount | |||
) |
Definition at line 518 of file ChPmtModule.php.
ChPmtModule::serviceGetAddToCartJs | ( | $iVendorId, | |
$mixedModuleId, | |||
$iItemId, | |||
$iItemCount, | |||
$bNeedRedirect = false , |
|||
$bWrapped = true |
|||
) |
Definition at line 422 of file ChPmtModule.php.
ChPmtModule::serviceGetAddToCartLink | ( | $iVendorId, | |
$mixedModuleId, | |||
$iItemId, | |||
$iItemCount, | |||
$bNeedRedirect = false |
|||
) |
Definition at line 435 of file ChPmtModule.php.
ChPmtModule::serviceGetAdmins | ( | ) |
Definition at line 313 of file ChPmtModule.php.
ChPmtModule::serviceGetCartItemCount | ( | $iUserId, | |
$iOldCount = 0 |
|||
) |
Definition at line 448 of file ChPmtModule.php.
ChPmtModule::serviceGetCartItemDescriptor | ( | $iVendorId, | |
$iModuleId, | |||
$iItemId, | |||
$iItemCount | |||
) |
Definition at line 482 of file ChPmtModule.php.
ChPmtModule::serviceGetCartItems | ( | ) |
Definition at line 464 of file ChPmtModule.php.
ChPmtModule::serviceGetCartJs | ( | $bWrapped = true | ) |
Definition at line 418 of file ChPmtModule.php.
ChPmtModule::serviceGetCartUrl | ( | ) |
Definition at line 475 of file ChPmtModule.php.
ChPmtModule::serviceGetCurrencyInfo | ( | ) |
Definition at line 306 of file ChPmtModule.php.
ChPmtModule::serviceGetOption | ( | $sOption | ) |
Definition at line 707 of file ChPmtModule.php.
ChPmtModule::serviceGetOrdersUrl | ( | ) |
Definition at line 166 of file ChPmtModule.php.
ChPmtModule::serviceGetProviders | ( | $iVendorId, | |
$sProvider = '' |
|||
) |
Payment Processing Methods
Definition at line 550 of file ChPmtModule.php.
ChPmtModule::serviceGetTransactionsInfo | ( | $aConditions | ) |
Check transaction(s) in database which satisty all conditions.
array | $aConditions | an array of pears('key' => 'value'). Available keys are the following: a. order_id - internal order ID (string) b. client_id - client's ID (integer) c. seller_id - seller's ID (integer) d. module_id - modules's where the purchased product is located. (integer) e. item_id - item id in the database. (integer) f. date - the date when the payment was processed(UNIXTIME STAMP) |
Definition at line 702 of file ChPmtModule.php.
ChPmtModule::serviceInitializeCheckout | ( | $iVendorId, | |
$sProvider, | |||
$aItems = array() |
|||
) |
Definition at line 563 of file ChPmtModule.php.
ChPmtModule::serviceResponse | ( | $oAlert | ) |
Definition at line 713 of file ChPmtModule.php.
ChPmtModule::serviceUpdateDependentModules | ( | $sModuleUri = 'all' , |
|
$bInstall = true |
|||
) |
Definition at line 363 of file ChPmtModule.php.
ChPmtModule::setSettings | ( | $aData | ) |
Definition at line 351 of file ChPmtModule.php.
ChPmtModule::$_aOrderTypes |
Definition at line 84 of file ChPmtModule.php.
ChPmtModule::$_iUserId |
Definition at line 80 of file ChPmtModule.php.
ChPmtModule::$_oCart |
Definition at line 82 of file ChPmtModule.php.
ChPmtModule::$_oDetails |
Definition at line 81 of file ChPmtModule.php.
ChPmtModule::$_oOrders |
Definition at line 83 of file ChPmtModule.php.
ChPmtModule::$_sEmailTemplatesPrefix |
Definition at line 87 of file ChPmtModule.php.
ChPmtModule::$_sGeneralPrefix |
Definition at line 85 of file ChPmtModule.php.
ChPmtModule::$_sLangsPrefix |
Definition at line 86 of file ChPmtModule.php.
|
protected |
Definition at line 90 of file ChPmtModule.php.
|
protected |
Definition at line 89 of file ChPmtModule.php.