Creates a new message instance.
public static function UnbMessage::Create ($subject, $content, $contentType = null, $data = null, $dataFileName = null, $writeToFile = null, $entryPoint = false, $primaryRef = null, $draft = false);
(string) Subject of the message's first revision or null
(max. 255 characters)
(string) Content of the message's first revision (max. 16,777,215 characters)
(string) MIME content type of attached file data (max. 255 characters, ignored if no data is specified)
(string) Attached file data contents or null
(string) Local file name for attached file data or null
(do not use together with data
)
(bool) Write the attached file data into a file instead of the database or null
for automatic decision
(bool) Specifies whether the new message shall be a discussion entry point.
(UnbMessage) Primary message reference for the new message
(int) Message ID of the primary reference for the new message
(bool) Declare the new message revision as draft
The newly created UnbMessage object
The newly created message instance is also stored in the database.
Exceptions from UnbMessageRevision::Create() are passed through.
UnbSecurityException | If not logged in. |
UnbDatabaseException | No description available. |
Exception | If the input file could not be read or copied. |
Must be logged in
Member of class: UnbMessage
Implementation file: message.class.php, line 118
© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.