jquery_rating
in package
Option handler class
Table of Contents
Properties
- $ratingstate : mixed
Methods
- __construct() : jquery_rating
- class instantiation function
- getCurrentPageObject() : object
- returns the $object for the current loaded page
- getOptionsSupported() : array<string|int, mixed>
- Reports the supported options
- getRatingByIP() : float
- Returns the last vote rating from an IP or false if no vote on record
- handleOption() : mixed
- id() : mixed
- returns an "ID" tag for rating records
- optionVoteStatus() : string
- Option filter handler for images and albums
- optionVoteStatusSave() : mixed
- Option save handler for the filter
- rating_purgebutton() : mixed
- ratingJS() : mixed
Properties
$ratingstate
public
mixed
$ratingstate
Methods
__construct()
class instantiation function
public
__construct() : jquery_rating
Return values
jquery_ratinggetCurrentPageObject()
returns the $object for the current loaded page
public
static getCurrentPageObject() : object
Return values
objectgetOptionsSupported()
Reports the supported options
public
getOptionsSupported() : array<string|int, mixed>
Return values
array<string|int, mixed>getRatingByIP()
Returns the last vote rating from an IP or false if no vote on record
public
static getRatingByIP(string $ip, array<string|int, mixed> $usedips, float $ratingAverage) : float
Parameters
- $ip : string
- $usedips : array<string|int, mixed>
- $ratingAverage : float
Return values
floathandleOption()
public
handleOption(mixed $option, mixed $currentValue) : mixed
Parameters
- $option : mixed
- $currentValue : mixed
id()
returns an "ID" tag for rating records
public
static id() : mixed
optionVoteStatus()
Option filter handler for images and albums
public
static optionVoteStatus(string $prior, object $object, string $prefix) : string
Parameters
- $prior : string
-
HTML from prior filters
- $object : object
-
object being rated
- $prefix : string
-
indicator if admin is processing multiple objects
Return values
string —Combined HTML
optionVoteStatusSave()
Option save handler for the filter
public
static optionVoteStatusSave(object $object, string $prefix) : mixed
Parameters
- $object : object
-
object being rated
- $prefix : string
-
indicator if admin is processing multiple objects
rating_purgebutton()
public
static rating_purgebutton(mixed $buttons) : mixed
Parameters
- $buttons : mixed
ratingJS()
public
static ratingJS() : mixed