Unclassified NewsBoard Code Reference

UnbFindThreadsArray function

Read threads into an array, regarding access rights

function UnbFindThreadsArray ($where = null, $order = null, $limit = null, $showhidden = null);

Parameters:

where  –  optional, default: null
(string) SQL WHERE section
order  –  optional, default: null
(string) SQL ORDER BY section. If unset, "LastPostDate DESC" is applied
limit  –  optional, default: null
(int) number of threads to return. If unset, the first 10 threads are returned
showhidden  –  optional, default: null
(bool) include hidden threads in this search

Return value:

(array(array)) all thread record rows

Remarks:

Similar to IThread.FindArray but this respects access rights. If some of the
first n threads cannot be accessed, some more are fetched from the database,
until we have the specified number of threads. This function also filters out
'moved' type special threads.

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

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