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

Public Member Functions

 getTsId ()
 setTsId ($sId)
 getRatings ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Public Attributes

const CACHE_TTL = 43200
const TS_RATINGS = 'TS_RATINGS'

Protected Member Functions

 _executeCurl ($sUrl)

Protected Attributes

 $_aChannel = array()
 $_sTsId = null

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

Manages Trusted Shops ratings.

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

Definition at line 8 of file oxtsratings.php.

Member Function Documentation

oxTsRatings::_executeCurl (   $sUrl)
protected

Executes curl request to trusted shops

Parameters
string$sUrlTrusted shops url
Returns
string curl response text

Definition at line 63 of file oxtsratings.php.

oxTsRatings::getRatings ( )

Returns trusted shop ratings, if possible, if not returns array with key empty set to true

Returns
array

Definition at line 81 of file oxtsratings.php.

oxTsRatings::getTsId ( )

Returns trusted shop id

Returns
null

Definition at line 41 of file oxtsratings.php.

oxTsRatings::setTsId (   $sId)

Sets trusted shop id

Parameters
string$sIdTrusted shops id

Definition at line 51 of file oxtsratings.php.

Member Data Documentation

oxTsRatings::$_aChannel = array()
protected

Definition at line 27 of file oxtsratings.php.

oxTsRatings::$_sTsId = null
protected

Definition at line 34 of file oxtsratings.php.

const oxTsRatings::CACHE_TTL = 43200

timeout in seconds for regenerating data (3h)

Definition at line 14 of file oxtsratings.php.

const oxTsRatings::TS_RATINGS = 'TS_RATINGS'

data id for cache

Definition at line 19 of file oxtsratings.php.


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