class ProductRatingController extends Controller

Class ProductRatingController

Methods

JsonResponse
saveProductRatingForProductAction(ArrayCollection $productRatingSaveRatingForProduct)

JSON route for saving/updating product rating for logged user and provided product

JsonResponse
saveAdminReviewForProductAction(ArrayCollection $productRatingSaveAdminReviewForProduct)

JSON route for updating rating for product by admin

Response
getCommentsAndRatingForProductBackendAction(ArrayCollection $productRatingGetRatingForProduct, ArrayCollection $reviewGetForProductJSON)

JSON route for showing summary for reviews

Response
getReviewForProductBackendAction(ArrayCollection $reviewGetForProductJSON)

JSON route for listing reviews with pagination

JsonResponse
customerActivityLogLoadUsersJSONAction(ArrayCollection $productRatingLoadUsers)

JSON route for finding users that match criteria

Details

at line 39
JsonResponse saveProductRatingForProductAction(ArrayCollection $productRatingSaveRatingForProduct)

JSON route for saving/updating product rating for logged user and provided product

Parameters

ArrayCollection $productRatingSaveRatingForProduct

Return Value

JsonResponse

See also

ProductRatingSaveRatingForProductConverter

at line 54
JsonResponse saveAdminReviewForProductAction(ArrayCollection $productRatingSaveAdminReviewForProduct)

JSON route for updating rating for product by admin

Parameters

ArrayCollection $productRatingSaveAdminReviewForProduct

Return Value

JsonResponse

See also

ProductRatingSaveAdminReviewForProductConverter

at line 74
Response getCommentsAndRatingForProductBackendAction(ArrayCollection $productRatingGetRatingForProduct, ArrayCollection $reviewGetForProductJSON)

JSON route for showing summary for reviews

Parameters

ArrayCollection $productRatingGetRatingForProduct
ArrayCollection $reviewGetForProductJSON

Return Value

Response

Exceptions

Error

See also

ProductRatingGetRatingForProductConverter
ReviewGetForProductJSONConverter

at line 116
Response getReviewForProductBackendAction(ArrayCollection $reviewGetForProductJSON)

JSON route for listing reviews with pagination

Parameters

ArrayCollection $reviewGetForProductJSON

Return Value

Response

Exceptions

Error

See also

ReviewGetForProductJSONConverter

at line 151
JsonResponse customerActivityLogLoadUsersJSONAction(ArrayCollection $productRatingLoadUsers)

JSON route for finding users that match criteria

Parameters

ArrayCollection $productRatingLoadUsers

Return Value

JsonResponse

See also

ProductRatingLoadUsersConverter