UNB Components Code Reference

UnbMessageRevision::FindAllByMessageId method

Finds all message revisions by their message ID.

public static function UnbMessageRevision::FindAllByMessageId ($messageId, $includeDrafts = false);

Parameters

messageId

(int/UnbMessage) Message or its ID of which to read the revisions

includeDrafts  –  optional, default: false

(bool) Indicates whether drafts are included

Return value

Array of UnbMessageRevision objects, 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 874

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