Public Member Functions | |
__construct () | |
allowRating ($sUserId, $sType, $sObjectId) | |
getRatingAverage ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
getRatingCount ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
getObjectType () | |
getObjectId () | |
Protected Attributes | |
$_blDisableShopCheck = true | |
$_sClassName = 'oxrating' |
Article rate manager. Performs loading, updating, inserting of article rates.
Definition at line 8 of file oxrating.php.
oxRating.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Reimplemented from oxBase.
Definition at line 28 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 43 of file oxrating.php.
oxRating.getObjectId | ( | ) |
oxRating.getObjectType | ( | ) |
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 70 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 107 of file oxrating.php.
oxRating.$_blDisableShopCheck = true [protected] |
Definition at line 16 of file oxrating.php.
oxRating.$_sClassName = 'oxrating' [protected] |
Reimplemented from oxBase.
Definition at line 23 of file oxrating.php.