UNB Components Code Reference

UnbMessageRevision::FindLatestByMessageId method

Finds the latest accessible message revision instance by its message ID and moderation state.

public static function UnbMessageRevision::FindLatestByMessageId ($messageId, $contentLevel = null, $allowFallback = false);

Parameters

messageId
(int/UnbMessage) Message or its ID of which to read the revision
contentLevel  –  optional, default: null
allowFallback  –  optional, default: false
(bool) Allow falling back to a lower content level if moderation restrictions require it

Return value

A UnbMessageRevision object, if successful, null otherwise.

Exceptions thrown

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 748

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