UNB Components Code Reference

UnbUi::MsgRating method

Prints the HTML code to visualise a message rating.

public static function UnbUi::MsgRating ($msg, $minCount = 1, $minWeight = 30, $width = 50, $style = '');

Parameters

msg

(UnbMessage) Message instance to rate

minCount  –  optional, default: 1

(int) Minimum number of ratings for this message to display the rating

minWeight  –  optional, default: 30

(int) Minimum rating weight sum for this message to display the rating

width  –  optional, default: 50

(int) Width of the rating bar in pixels

style  –  optional, default: ''

(string) HTML element style attribute value, see GetStyleClassAttr

Member of class: UnbUi

Implementation file: ui.class.php, line 1629

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.