Inheritance diagram for oxRating:
Collaboration diagram for oxRating:Public Member Functions | |
| __construct () | |
| allowRating ($sUserId, $sType, $sObjectId) | |
| getRatingAverage ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
| getRatingCount ($sObjectId, $sType, $aIncludedObjectsIds=null) | |
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 27 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 42 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 69 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 106 of file oxrating.php.
oxRating.$_blDisableShopCheck = true [protected] |
Definition at line 15 of file oxrating.php.
oxRating.$_sClassName = 'oxrating' [protected] |
Reimplemented from oxBase.
Definition at line 22 of file oxrating.php.
1.7.1