PHP Classes

File: rpc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Sudhir Chauhan  >  Star rating  >  rpc.php  >  Download  
File: rpc.php
Role: Example script
Content type: text/plain
Description: the file used by ajax to send request to rating manage
Class: Star rating
Update votes and display rated content with stars
Author: By
Last change:
Date: 7 years ago
Size: 287 bytes


Class file image Download
$ratingManager = RatingManager::getInstance();
// $_REQUEST['j'] vote values
 // $_REQUEST['q'] product id voted
 // $_REQUEST['t'] IP address of the personal
$ratingManager->updateVote($_REQUEST['j'], $_REQUEST['q'], $_REQUEST['t']);