Unclassified NewsBoard Code Reference

IUser.GetForumThreadFlag function

Get the current state of a forum/thread flag for a user.
Doesn't use the global cache but runs a new database query for each call.
Considered for internal use only.

function IUser.GetForumThreadFlag ($forumid, $threadid, $mask, $id = 0);

Parameters:

forumid
(int) Forum ID
threadid
(int) Thread ID. Only forum OR thread ID must be set!
mask
(int) Bitmask of flags. Only one bit must be set!
id  –  optional, default: 0
(int) User ID. 0: currently loaded user

Return value:

(int) non-zero value if flag is set, 0 otherwise.

Member of class: IUser

Implementation file: unb_lib/user.lib.php, line 1841

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