Unclassified NewsBoard Code Reference

IThread.Find function

Find first thread. Loads thread into this object

function IThread.Find ($where = 0, $order = '', $limit = '');

Parameters:

where  –  optional, default: 0
(string) SQL WHERE section
order  –  optional, default: ''
(string) SQL ORDER BY section
limit  –  optional, default: ''
(string) SQL LIMIT section

Return value:

(bool) success

Remarks:

NOTE: This function also finds "moved note" threads!
You may want to filter them out with $where = "NOT (Options & 8)".

NOTE: This function ignores the thread ignoring flag.
Use FindArray if you don't want to find ignored threads.

Member of class: IThread

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

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