UNB Components Code Reference

UnbUi::MsgRating method

Prints the HTML code to visualise a message rating.

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

Parameters

msg
(UnbMessage) Message instance to rate
minCount  –  optional, default: 1
(int) Minimum number of ratings for this message to display the rating
width  –  optional, default: 50
(int) Width of the rating bar in pixels
cssClass  –  optional, default: ''
(string) HTML element CSS class attribute value
style  –  optional, default: ''
(string) HTML element style attribute value

Member of class: UnbUi

Implementation file: ui.class.php, line 1229

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.