Cheetah
Public Member Functions | Public Attributes | List of all members
ChPmtDb Class Reference
Inheritance diagram for ChPmtDb:
ChWsbModuleDb ChWsbDb

Public Member Functions

 __construct (&$oConfig)
 
 insertData ($aData)
 
 deleteData ($aData)
 
 getForm ()
 
 getFormData ($iUserId)
 
 updateOption ($iUserId, $iOptionId, $sValue)
 
 getCartItems ($iId)
 
 setCartItems ($iId, $sItems)
 
 getVendorId ($sUsername)
 
 getVendorInfoProfile ($iId)
 
 getVendorInfoProviders ($iId, $sProvider='')
 
 getFirstAdminId ()
 
 getAdminsIds ()
 
 getProviders ($sName='')
 
 getOptions ($iUserId=CH_PMT_EMPTY_ID, $iProviderId=0)
 
 getPending ($aParams)
 
 insertPending ($iClientId, $sProviderName, $aCartInfo)
 
 updatePending ($iId, $aValues)
 
 insertTransaction ($aInfo)
 
 updateTransaction ($iId, $aValues)
 
 getProcessed ($aParams)
 
 getHistory ($aParams)
 
 userExists ($sName)
 
 getModules ()
 
 getPendingOrders ($aParams)
 
 getPendingOrdersCount ($aParams)
 
 getProcessedOrders ($aParams)
 
 getProcessedOrdersCount ($aParams)
 
 getHistoryOrders ($aParams)
 
 getHistoryOrdersCount ($aParams)
 
 reportPendingOrders ($aOrders)
 
 reportProcessedOrders ($aOrders)
 
 cancelPendingOrders ($aOrders)
 
 cancelProcessedOrders ($aOrders)
 
 onProfileDelete ($iId)
 
- Public Member Functions inherited from ChWsbModuleDb
 __construct ($oConfig=null)
 
 getPrefix ()
 
 getModulesBy ($aParams=array())
 
 getModuleById ($iId)
 
 getModuleByUri ($sUri)
 
 isModule ($sUri)
 
 isModuleParamsUsed ($sUri, $sPath, $sPrefixDb, $sPrefixClass)
 
 getDependent ($sUri)
 
 getSettingsCategoryId ($sCatName)
 
- Public Member Functions inherited from ChWsbDb
 setTimezone ($sTimezone)
 
 getLink ()
 
 res ($sQuery, $aBindings=[], $bReplaying=false)
 
 getAll ($sQuery, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
 
 getRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC)
 
 getColumn ($sQuery, $aBindings=[])
 
 getOne ($sQuery, $aBindings=[], $iIndex=0)
 
 getFirstRow ($sQuery, $aBindings=[], $iFetchStyle=PDO::FETCH_ASSOC)
 
 getNextRow ()
 
 getAllWithKey ($sQuery, $sFieldKey, $aBindings=[], $iFetchType=PDO::FETCH_ASSOC)
 
 getPairs ($sQuery, $sFieldKey, $sFieldValue, $aBindings=[])
 
 query ($sQuery, $aBindings=[])
 
 getNumRows ($oStmt=null)
 
 getAffectedRows ($oStmt=null)
 
 fillArray ($oStmt, $iFetchType=PDO::FETCH_ASSOC)
 
 lastId ()
 
 getParam ($sName, $bCache=true)
 
 setParam ($sName, $sValue)
 
 listTables ()
 
 getFields ($sTable)
 
 isFieldExists ($sTable, $sFieldName)
 
 fetchField ($mixedQuery, $iField, $aBindings=[])
 
 getDbCacheObject ()
 
 genDbCacheKey ($sName)
 
 fromCache ($sName, $sFunc)
 
 cleanCache ($sName)
 
fromMemory ($sName, $sFunc)
 
 cleanMemory ($sName)
 
 arrayToSQL ($a, $sDiv=',')
 
 escape ($sText, $bReal=true)
 
 implode_escape ($mixed)
 
 unescape ($mixed)
 

Public Attributes

 $_oConfig
 
- Public Attributes inherited from ChWsbModuleDb
 $_sPrefix
 
- Public Attributes inherited from ChWsbDb
 $port
 
 $socket
 
 $dbname
 
 $user
 
 $password
 
 $oParams = null
 
 $oDbCacheObject = null
 

Additional Inherited Members

- Static Public Member Functions inherited from ChWsbDb
static getInstance ()
 
- Protected Member Functions inherited from ChWsbDb
 __construct ()
 
 connect ()
 
 disconnect ()
 
- Protected Attributes inherited from ChWsbDb
 $host
 
 $link
 
 $oCurrentStmt
 
 $iCurrentFetchStyle
 
- Static Protected Attributes inherited from ChWsbDb
static $instance
 

Detailed Description

Definition at line 10 of file ChPmtDb.php.

Constructor & Destructor Documentation

◆ __construct()

ChPmtDb::__construct ( $oConfig)

Definition at line 16 of file ChPmtDb.php.

Member Function Documentation

◆ cancelPendingOrders()

ChPmtDb::cancelPendingOrders (   $aOrders)

Definition at line 519 of file ChPmtDb.php.

◆ cancelProcessedOrders()

ChPmtDb::cancelProcessedOrders (   $aOrders)

Definition at line 524 of file ChPmtDb.php.

◆ deleteData()

ChPmtDb::deleteData (   $aData)

Definition at line 28 of file ChPmtDb.php.

◆ getAdminsIds()

ChPmtDb::getAdminsIds ( )

Definition at line 171 of file ChPmtDb.php.

◆ getCartItems()

ChPmtDb::getCartItems (   $iId)

Shopping cart methods.

Definition at line 78 of file ChPmtDb.php.

◆ getFirstAdminId()

ChPmtDb::getFirstAdminId ( )

Definition at line 167 of file ChPmtDb.php.

◆ getForm()

ChPmtDb::getForm ( )

Payment details methods

Definition at line 36 of file ChPmtDb.php.

◆ getFormData()

ChPmtDb::getFormData (   $iUserId)

Definition at line 59 of file ChPmtDb.php.

◆ getHistory()

ChPmtDb::getHistory (   $aParams)

Definition at line 343 of file ChPmtDb.php.

◆ getHistoryOrders()

ChPmtDb::getHistoryOrders (   $aParams)

Definition at line 463 of file ChPmtDb.php.

◆ getHistoryOrdersCount()

ChPmtDb::getHistoryOrdersCount (   $aParams)

Definition at line 491 of file ChPmtDb.php.

◆ getModules()

ChPmtDb::getModules ( )

Reimplemented from ChWsbModuleDb.

Definition at line 353 of file ChPmtDb.php.

◆ getOptions()

ChPmtDb::getOptions (   $iUserId = CH_PMT_EMPTY_ID,
  $iProviderId = 0 
)

Definition at line 201 of file ChPmtDb.php.

◆ getPending()

ChPmtDb::getPending (   $aParams)

Definition at line 224 of file ChPmtDb.php.

◆ getPendingOrders()

ChPmtDb::getPendingOrders (   $aParams)

Definition at line 365 of file ChPmtDb.php.

◆ getPendingOrdersCount()

ChPmtDb::getPendingOrdersCount (   $aParams)

Definition at line 401 of file ChPmtDb.php.

◆ getProcessed()

ChPmtDb::getProcessed (   $aParams)

Definition at line 303 of file ChPmtDb.php.

◆ getProcessedOrders()

ChPmtDb::getProcessedOrders (   $aParams)

Definition at line 417 of file ChPmtDb.php.

◆ getProcessedOrdersCount()

ChPmtDb::getProcessedOrdersCount (   $aParams)

Definition at line 445 of file ChPmtDb.php.

◆ getProviders()

ChPmtDb::getProviders (   $sName = '')

Process payment methods

Definition at line 179 of file ChPmtDb.php.

◆ getVendorId()

ChPmtDb::getVendorId (   $sUsername)

Definition at line 92 of file ChPmtDb.php.

◆ getVendorInfoProfile()

ChPmtDb::getVendorInfoProfile (   $iId)

Definition at line 99 of file ChPmtDb.php.

◆ getVendorInfoProviders()

ChPmtDb::getVendorInfoProviders (   $iId,
  $sProvider = '' 
)

Definition at line 137 of file ChPmtDb.php.

◆ insertData()

ChPmtDb::insertData (   $aData)

Definition at line 23 of file ChPmtDb.php.

◆ insertPending()

ChPmtDb::insertPending (   $iClientId,
  $sProviderName,
  $aCartInfo 
)

Definition at line 256 of file ChPmtDb.php.

◆ insertTransaction()

ChPmtDb::insertTransaction (   $aInfo)

Definition at line 283 of file ChPmtDb.php.

◆ onProfileDelete()

ChPmtDb::onProfileDelete (   $iId)

Definition at line 529 of file ChPmtDb.php.

◆ reportPendingOrders()

ChPmtDb::reportPendingOrders (   $aOrders)

Definition at line 509 of file ChPmtDb.php.

◆ reportProcessedOrders()

ChPmtDb::reportProcessedOrders (   $aOrders)

Definition at line 514 of file ChPmtDb.php.

◆ setCartItems()

ChPmtDb::setCartItems (   $iId,
  $sItems 
)

Definition at line 82 of file ChPmtDb.php.

◆ updateOption()

ChPmtDb::updateOption (   $iUserId,
  $iOptionId,
  $sValue 
)

Definition at line 69 of file ChPmtDb.php.

◆ updatePending()

ChPmtDb::updatePending (   $iId,
  $aValues 
)

Definition at line 272 of file ChPmtDb.php.

◆ updateTransaction()

ChPmtDb::updateTransaction (   $iId,
  $aValues 
)

Definition at line 291 of file ChPmtDb.php.

◆ userExists()

ChPmtDb::userExists (   $sName)

Definition at line 348 of file ChPmtDb.php.

Member Data Documentation

◆ $_oConfig

ChPmtDb::$_oConfig

Definition at line 12 of file ChPmtDb.php.


The documentation for this class was generated from the following file: