[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: rating.php

Source Location: /plugins/rating.php

Page Details

rating -- Supports an image and album rating system

Author:  Malte Müller (acrylian) and Stephen Billard (sbillard)
Version:  1.0.1
Classes
Class Description
rating
Includes
require_once (dirname(dirname(__FILE__)).'/functions.php') [line 8]
[ Top ]

require_once ('rating/functions-rating.php') [line 20]
[ Top ]


Functions
getAlbumRating  [line 195]

Returns the rating of the designated album

Parameters:
string   $option:  'totalvalue' or 'totalvotes'
int   $id:  Record id for the album


int getAlbumRating( string $option, int $id  )

[ Top ]
getAlbumRatingCurrent  [line 179]

Returns the average rating of the album

Parameters:
int   $id:  Record id for the album


real getAlbumRatingCurrent( int $id  )

[ Top ]
getImageRating  [line 52]

Returns the rating of the designated image

Parameters:
string   $option:  'totalvalue' or 'totalvotes'
int   $id:  Record id for the image


int getImageRating( string $option, int $id  )

[ Top ]
getImageRatingCurrent  [line 62]

Returns the average rating of the image

Parameters:
int   $id:  the id of the image


real getImageRatingCurrent( int $id  )

[ Top ]
getRating  [line 140]

Get the rating for an image or album,

Parameters:
string   $option:  'totalvalue' or 'totalvotes'
string   $option2:  'image' or 'album'
int   $id:  id of the image or album

API Tags:
See:  getImageRating() and getAlbumRating()


unknown getRating( string $option, string $option2, int $id  )

[ Top ]
printAlbumRating  [line 169]

Prints the image rating information for the current image


void printAlbumRating( )

[ Top ]
printImageRating  [line 75]

Prints the image rating information for the current image


void printImageRating( )

[ Top ]
printRating  [line 86]

Prints the rating accordingly to option, it's a combined function for image and album rating

Parameters:
string   $option:  "image" for image rating, "album" for album rating.

API Tags:
See:  printImageRating() and printAlbumRating()


void printRating( string $option  )

[ Top ]


Documentation generated on Tue, 30 Sep 2008 20:23:28 +0200 by phpDocumentor 1.4.1