Unclassified NewsBoard Code Reference

IAnnounce.Find function

Find the first announcement that meets the criteria and load it into the
object.

function IAnnounce.Find ($id, $newonly = false, $inthread = false);

Parameters:

id
(int) Forum ID
newonly  –  optional, default: false
(bool) Only find announcements that are unread by this user
inthread  –  optional, default: false
(bool) We're in a thread page, so only return those
announcements that shall be displayed there, too

Return value:

(bool) loading of the record succeeded

Member of class: IAnnounce

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

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