\PageRaterExtension_Controller
Synopsis
class PageRaterExtension_Controller
extends Extension
{
- // members
- private static integer $items_per_page = 8;
- private static string $field_title = "Click on any star to rate:";
- private static string $field_right_title = "On a scale from 1 to 5, with 5 being the best";
- private static boolean $show_average_rating_in_rating_field = false;
- private static boolean $only_show_approved = false;
- private static array $allowed_actions = ;
- // methods
- public void rateagain()
- public Form PageRatingForm()
- public void dopagerating()
- public void removedefaultpageratings()
- public void removeallpageratings()
- public ArrayList PageRatingResults()
- public ArrayList CurrentUserRating()
- public ArrayList PageRaterListOfAllForPage()
- public void PageRaterListAll()
- protected ArrayList turnPageRaterSQLIntoArrayList()
- public boolean PageHasBeenRatedByUser()
- public int NumberOfPageRatings()
- protected void onlyShowApprovedPageRatings()
- public Double getStarRating()
Hierarchy
Extends
- Extension
Members
private
- $allowed_actions
- $field_right_title — string
- $field_title — string
- $items_per_page
—
boolean
add the default rating to each page ... - $only_show_approved — boolean
- $show_average_rating_in_rating_field — boolean
Methods
protected
public
- CurrentUserRating() — rating of this page by this user ...
- NumberOfPageRatings()
- PageHasBeenRatedByUser()
- PageRaterListAll()
- PageRaterListOfAllForPage() — list of all rated pages ...
- PageRatingForm()
- PageRatingResults() — rating for this page ...
- dopagerating() — action Page Rating Form
- getStarRating() — return the average rating...
- rateagain() — action to allow use to rate again...
- removeallpageratings()
- removedefaultpageratings()