You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > ContentRating Class > ContentRating Methods > GetContentRatingStatistics Method > GetContentRatingStatistics
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
ContentRating.GetContentRatingStatistics Method (Long, Long, String)

Returns a collection with keys as ordinal numbers and frequency as the value. That is, {1=>3,2=>7,...,9=>12}. Rating results are bounded by startDate and endDate. 

This function is overloaded. See Also: GetContentRatingStatistics(Long DateTime DateTime)

C#
public Collection GetContentRatingStatistics(Long contentid, Long user_id, String visitor_id);
Visual Basic
Public Function GetContentRatingStatistics(ByVal contentid As Long, ByVal user_id As Long, ByVal visitor_id As String) As Collection
Parameters 
Description 
contentid 
The numeric ID associated with the content block being rated. 

Returns a collection of data with keys "total" => number of ratings, "sum" => sum of all ratings, "r1, "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9".

Note that average rating = sum/total.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!