Class RatingUtils
java.lang.Object
fr.paris.lutece.plugins.extend.modules.rating.util.constants.RatingUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfetchShowParameter(String strParameters) Fetch show parameter.static StringformatScore(double dScore, Locale locale) Formats a score with at most one decimal, without a trailing zero.static StringgetRatingTemplatePaht(String strType)
-
Field Details
-
TEMPLATE_SIMPLE_RATING_TYPE
- See Also:
-
TEMPLATE_STAR_RATING_TYPE
- See Also:
-
TEMPLATE_THUMB_RATING_TYPE
- See Also:
-
TEMPLATE_DEFAULT_RATING_TYPE
- See Also:
-
-
Method Details
-
fetchShowParameter
Fetch show parameter.- Parameters:
strParameters- the str parameters- Returns:
- the string
-
getRatingTemplatePaht
-
formatScore
Formats a score with at most one decimal, without a trailing zero.- Parameters:
dScore- the scorelocale- the locale of the decimal separator- Returns:
- the formatted score
-