Unclassified NewsBoard Code Reference

IThread.Add function

Add a new forum to the database
After adding, all saved values are instantly accessible in this object

function IThread.Add ($Forum, $UserName, $Subject, $Options, $date = 0);

Parameters:

Forum
(int) forum id to create the thread in
UserName
(string) author user name
Subject
(string) thread subject
Options
(int) thread flags/options, see UNB_THREAD_* constants at the top of this file
date  –  optional, default: 0
(int) timestamp

Return value:

(bool) success

Member of class: IThread

Implementation file: unb_lib/thread.lib.php, line 447

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