Finds the latest accessible message revision instance by its message ID and moderation state.
public static function UnbMessageRevision::FindLatestByMessageId ($messageId, $contentLevel = null, $allowFallback = false);
(int/UnbMessage) Message or its ID of which to read the revision
(int) See UnbMessageRevision::FindByRevisionId()
(bool) Allow falling back to a lower content level if moderation restrictions require it
A UnbMessageRevision object, if successful, null
otherwise.
This method will not find message revisions that are a draft.
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 857
© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.