Public Member Functions | |
__construct () | |
allowRating ($sUserId, $sType, $sObjectId) | |
getRatingAverage ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
getRatingCount ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
Protected Member Functions | |
_insert () | |
Protected Attributes | |
$_blDisableShopCheck = true | |
$_sClassName = 'oxrating' |
Article rate manager. Performs loading, updating, inserting of article rates.
Definition at line 7 of file oxrating.php.
oxRating.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Reimplemented from oxBase.
Definition at line 26 of file oxrating.php.
oxRating._insert | ( | ) | [protected] |
Inserts object data fiels in DB. Returns true on success.
Reimplemented from oxBase.
Definition at line 37 of file oxrating.php.
oxRating.allowRating | ( | $ | sUserId, | |
$ | sType, | |||
$ | sObjectId | |||
) |
Checks if user can rate product.
string | $sUserId user id | |
string | $sType object type | |
string | $sObjectId object id |
Definition at line 54 of file oxrating.php.
oxRating.getRatingAverage | ( | $ | sObjectId, | |
$ | sType, | |||
$ | aIncludedObjectsIds = null | |||
) |
calculates and return objects rating
string | $sObjectId object id | |
string | $sType object type | |
array | $aIncludedObjectsIds array of ids |
Definition at line 81 of file oxrating.php.
oxRating.getRatingCount | ( | $ | sObjectId, | |
$ | sType, | |||
$ | aIncludedObjectsIds = null | |||
) |
calculates and return objects rating count
string | $sObjectId object id | |
string | $sType object type | |
array | $aIncludedObjectsIds array of ids |
Definition at line 118 of file oxrating.php.
oxRating.$_blDisableShopCheck = true [protected] |
Definition at line 14 of file oxrating.php.
oxRating.$_sClassName = 'oxrating' [protected] |
Reimplemented from oxBase.
Definition at line 21 of file oxrating.php.