phpDocumentor Rating
Classes
[ class tree: Rating ] [ index: Rating ] [ all elements ]

Class: RatingHelper

Source Location: /modules/rating/classes/RatingHelper.class

Class RatingHelper

Class Overview

Retrieves information for ratings.

Located in /modules/rating/classes/RatingHelper.class [line 35]



		
		
		
		

Methods

[ Top ]
Method Summary
array   fetchRatings()   Return the average rating of the given itemId
array   rateItem()   Sets rating in database, returns new ratings.

[ Top ]
Methods
fetchRatings  [line 46]

  array fetchRatings( int $itemIds, int $userId  )

Return the average rating of the given itemId

Parameters:
int   $itemIds:  GalleryItem id
int   $userId:  User id to fetch rating of

API Tags:
Return:  GalleryStatus a status code array double latest average rating int count of total ratings


[ Top ]
rateItem  [line 132]

  array rateItem( int $itemId, int $rating, int $userId  )

Sets rating in database, returns new ratings.

Parameters:
int   $itemId:  GalleryItem id
int   $rating:  Rating score
int   $userId: 

API Tags:
Return:  GalleryStatus a status code array double new avg rating for itemId int total votes for itemId


[ Top ]

Documentation generated on Fri, 08 Oct 2010 05:48:28 -0700 by phpDocumentor 1.3.0RC6