Unclassified NewsBoard Code Reference

IAnnounce class

Represents an announcement and offers methods to operate on it

Methods:

Add Add an announcement
Stores the new data incl the new announcement ID in the object
Change Alter an announcement
Stores the new data in the object
Count Count the number of announcements meeting the criteria.
This function uses similar code as Find().
Find Find the first announcement that meets the criteria and load it into the
object.
FindNext Finds the next announcement after a previous Find() call and load it into
the object.
GetDate No description available.
GetForum No description available.
GetID No description available.
GetMsg No description available.
GetOptAccess No description available.
GetOptions No description available.
GetSubject No description available.
GetUser No description available.
IAnnounce No description available.
IsImportant No description available.
IsRead Determine whether an announcement is marked read by the current user
Load Read announcement ID id from the database and load it into the object.
LoadFromRecord Same as Load() but read data from a given recordset instead of the database.
ReadCount Count all users that have marked an announcement read
Remove Remove an announcement
RemoveAllReads Remove any read status relating to an announcement
RemoveAllUserReads Remove any read status relating to a user
Reset No description available.
SetRead Mark this announcement read/unread for the current user
SetUser Set the announcement's author user id

Private fields:

Date  –  default: 0
Forum  –  default: 0
ID  –  default: 0
Msg  –  default: ''
Options  –  default: 0
Subject  –  default: ''
User  –  default: 0
db
finddb

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

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