Unclassified NewsBoard Code Reference

IPost.Change function

Update a post in the database

function IPost.Change ($id, $UserName, $Subject, $Msg, $Options, $EditUser = 0, $EditReason = '', $SpamRating = 0);

Parameters:

id
(int) post id to update
UserName
(string) author user name, for guests that are not logged in
Subject
(string) post subject
Msg
(string) post content
Options
(int) new post options/flags, see UNB_POST_* constants at the top of this file
EditUser  –  optional, default: 0
(int) last edit user id
EditReason  –  optional, default: ''
(string) reason why the post was editied
SpamRating  –  optional, default: 0
(int) new spam rating index

Return value:

(bool) success

Member of class: IPost

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

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