UNB Components Code Reference

UnbMessage::IsReadAllowedById method

Gets a value indicating whether reading a message specified by its message ID is allowed to the current session user.

public static function UnbMessage::IsReadAllowedById ($messageId);

Parameters

messageId

(int/UnbMessage) Message or its ID to check.

Return value

(bool)

Remarks

This does not regard moderation flags. It also won't give any exceptional access, like for administrators or the message owner. These exceptions need to be handled by the code that calls this method, according to the UNB access specification.

Exceptions thrown

InvalidArgumentException No description available.
UnbDatabaseException No description available.

Member of class: UnbMessage

Implementation file: message.class.php, line 1749

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