UNB Components Code Reference

UnbMessageRevision::ReadInternal method

Reads a message revision from the database.

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

Parameters

messageId

(int/UnbMessage) Message or its ID to read

messageRevisionId

(int) Message revision ID

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::FindByRevisionId() and UnbMessageRevision::FindLatestByMessageId().

Only one of both parameters messageId and messageRevisionId must be passed since either one is unique on its own.

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 613

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