Unclassified NewsBoard Code Reference

IAnnounce.Count function

Count the number of announcements meeting the criteria.
This function uses similar code as Find().

function IAnnounce.Count ($forumid, $inthread = false);

Parameters:

forumid
(int) Forum ID
inthread  –  optional, default: false
(bool) We're in a thread page, so only count those
announcements that shall be displayed there, too

Return value:

(int) number of found records
(bool) false: database error

Member of class: IAnnounce

Implementation file: unb_lib/announce.lib.php, line 176

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