Reads a message revision from the database.
private static function UnbMessageRevision::ReadInternal ($messageId, $messageRevisionId, $contentLevel, $allowFallback);
(int/UnbMessage) Message or its ID to read
(int) Message revision ID
(int) See UnbMessageRevision::FindByRevisionId()
(bool) Allow falling back to a lower content level if moderation restrictions require it
This function is kind of a "service provider" for UnbMessageRevision::FindByRevisionId() and UnbMessageRevision::FindLatestByMessageId().
Only one of both parameters messageId and messageRevisionId must be passed since either one is unique on its own.
InvalidArgumentException | On invalid argument type or value. |
UnbDatabaseException | No description available. |
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 619
© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.