UNB Components Code Reference

UnbMessageRevision::ReadInternal method

Reads a message revision from the database.

private static function UnbMessageRevision::ReadInternal ($messageId, $revisionNumber, $contentLevel, $allowFallback);

Parameters

messageId
(int/UnbMessage) Message or its ID to read
revisionNumber
(int) Revision number
contentLevel
allowFallback
(bool) Allow falling back to a lower content level if moderation restrictions require it

Remarks

This function is kind of a "service provider" for UnbMessageRevision::FindByMessageId() and UnbMessageRevision::FindLatestByMessageId().

Exceptions thrown

InvalidArgumentException On invalid argument type or value.
UnbDatabaseException No description available.

Privileges required

Need read access on the message. Additionally, message and message revision must not have a moderation lock of any kind. Exceptions are documented separately.

Member of class: UnbMessageRevision

Implementation file: messagerevision.class.php, line 533

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