Render stars
If given a float for $stars, it will render partial stars. If given an int for $stars, it will only render whole stars.
Usage
// basic usage
$string = $commentStars->render();
// usage with all arguments
$string = $commentStars->render($stars = 0, bool $allowInput = false);
Arguments
Name | Type(s) | Description |
---|---|---|
stars (optional) | int, float, null | Number of stars that are in active state |
allowInput (optional) | bool | Whether to allow input of stars |
Return value
string
CommentStars methods and properties
API reference based on ProcessWire core version 3.0.236