GetRatingResult
array CRatings::GetRatingResult( int Id, mixed entityId );
The method returns rating results for the rated entity with the entityId. Non-static method.
Method parameters
Parameter | Description |
---|---|
Id | Rating ID |
entityId | Rated object ID (several results can be selected, by specifying an IDs array in this parameter) |
See Also
Examples of use
<? $ratingId = 4; $entityId = 1; $arRatingResult = CRatings::GetRatingResult($ratingId, $entityId); if(!empty($arRatingResult )) echo '<pre>'.print_r($arRatingResult , true).'</pre>'; else echo "Specified ID is not included into the rating"; ?>
© «Bitrix24», 2001-2024