UNB Components Code Reference

UnbMessage::SetRating method

Sets the user's rating for this message.

public function UnbMessage::SetRating ($rating);

Parameters

rating

(int) Rating value, where 0 is a neutral rating, positive values are good, negative are bad. Valid ratings are in the range from -10 to 10 (inclusive).

Return value

true, if successful, false otherwise.

Exceptions thrown

InvalidArgumentException 

On invalid argument type or value.

UnbSecurityException 

If not logged in or rating own messages.

UnbDatabaseException No description available.

Privileges required

Must be logged in

Member of class: UnbMessage

Implementation file: message.class.php, line 1638

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