OXID eShop CE  4.10.7
 All Classes Namespaces Files Functions Variables Pages
oxTsProtection Class Reference
+ Inheritance diagram for oxTsProtection:
+ Collaboration diagram for oxTsProtection:

Public Member Functions

 getVat ()
 setVat ($dVat)
 getTsProducts ($dPrice)
 getTsProduct ($sTsId)
 requestForTsProtection ($aValues, $sPaymentId)
 checkCertificate ($iTrustedShopId, $blTsTestMode)
 executeSoap ($sSoapUrl, $sFunction, $sValues)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _getTsPaymentId ($sPaymentId)
 _getTsAllProducts ()
 _getTsProductCurrId ($sTsId, $sCurr)

Protected Attributes

 $_aAllProducts = null
 $_dVat = null
 $_sTsCurrencyProducts

Private Member Functions

 setNotCheckSSL ()

Private Attributes

 $blTsTestMode = false

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

TRusted shops protection product manager.

Deprecated:
since 5.3.0 (2016.04.19); Use Trusted Shops Module instead.

Definition at line 8 of file oxtsprotection.php.

Member Function Documentation

oxTsProtection::_getTsAllProducts ( )
protected

Returns TS protection product Ids

Returns
array

Definition at line 248 of file oxtsprotection.php.

oxTsProtection::_getTsPaymentId (   $sPaymentId)
protected

Returns TS payment id by shop payment id

Parameters
string$sPaymentIdpayment id
Returns
string

Definition at line 231 of file oxtsprotection.php.

oxTsProtection::_getTsProductCurrId (   $sTsId,
  $sCurr 
)
protected

Returns TS protection product id by currency

Parameters
string$sTsIdproduct id
string$sCurractive currency
Returns
array

Definition at line 274 of file oxtsprotection.php.

oxTsProtection::checkCertificate (   $iTrustedShopId,
  $blTsTestMode 
)

Executes TS certificate check

Parameters
integer$iTrustedShopIdTrusted shop Id
bool$blTsTestModeif test mode is on
Returns
object

Definition at line 172 of file oxtsprotection.php.

oxTsProtection::executeSoap (   $sSoapUrl,
  $sFunction,
  $sValues 
)

Executes SOAP call

Parameters
string$sSoapUrlsoap url
string$sFunctionsoap function
string$sValuesvalues sent per soap
Returns
object

Definition at line 201 of file oxtsprotection.php.

oxTsProtection::getTsProduct (   $sTsId)

Returns TS protection product by id

Parameters
string$sTsIdTS protection product id
Returns
oxTsProduct

Definition at line 91 of file oxtsprotection.php.

oxTsProtection::getTsProducts (   $dPrice)

Returns array of TS protection products according to order price

Parameters
float$dPriceorder price
Returns
array

Definition at line 69 of file oxtsprotection.php.

oxTsProtection::getVat ( )

Return VAT

Returns
float

Definition at line 47 of file oxtsprotection.php.

oxTsProtection::requestForTsProtection (   $aValues,
  $sPaymentId 
)

Executes TS protection

Parameters
array$aValuesOrder values
string$sPaymentIdOrder payment id
Returns
bool

Definition at line 107 of file oxtsprotection.php.

oxTsProtection::setNotCheckSSL ( )
private

Trusted Shop test page does not have a valid SSL certificate. This allow to skip the issue when running tests.

Returns
array

Definition at line 291 of file oxtsprotection.php.

oxTsProtection::setVat (   $dVat)

Set VAT

Parameters
float$dVat- vat

Definition at line 57 of file oxtsprotection.php.

Member Data Documentation

oxTsProtection::$_aAllProducts = null
protected

Definition at line 18 of file oxtsprotection.php.

oxTsProtection::$_dVat = null
protected

Definition at line 26 of file oxtsprotection.php.

oxTsProtection::$_sTsCurrencyProducts
protected
Initial value:
array(
"TS080501_500_30_EUR" => array("GBP" => "TS100629_500_30_GBP", "CHF" => "TS100629_500_30_CHF", "USD" => "TS080501_500_30_USD"),
"TS080501_1500_30_EUR" => array("GBP" => "TS100629_1500_30_GBP", "CHF" => "TS100629_1500_30_CHF", "USD" => "TS100629_1500_30_USD"),
"TS080501_2500_30_EUR" => array("GBP" => "TS100629_2500_30_GBP", "CHF" => "TS100629_2500_30_CHF", "USD" => "TS100629_2500_30_USD"),
"TS080501_5000_30_EUR" => array("GBP" => "TS100629_5000_30_GBP", "CHF" => "TS100629_5000_30_CHF", "USD" => "TS100629_5000_30_USD"),
"TS080501_10000_30_EUR" => array("GBP" => "TS100629_1000_30_GBP", "CHF" => "TS100629_10000_30_CHF", "USD" => "TS100629_10000_30_USD"),
"TS080501_20000_30_EUR" => array("GBP" => "TS100629_2000_30_GBP", "CHF" => "TS100629_20000_30_CHF", "USD" => "TS100629_20000_30_USD")
)

Definition at line 33 of file oxtsprotection.php.

oxTsProtection::$blTsTestMode = false
private

Definition at line 11 of file oxtsprotection.php.


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