Unclassified NewsBoard Code Reference

IPost.Add function

Add a new post to the database

function IPost.Add ($Thread, $ReplyTo, $UserName, $Subject, $Msg, $Options, $SpamRating);

Parameters:

Thread
(int) thread id to create the post in
ReplyTo
(int) reply-to post id
UserName
(string) user name, for guests that are not logged it
Subject
(string) post subject
Msg
(string) post content
Options
(int) post options/flags, see UNB_POST_* constants at the top of this file
SpamRating
(int) calculated post spam rating index

Return value:

(bool) success

Member of class: IPost

Implementation file: unb_lib/post.lib.php, line 343

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.