Unclassified NewsBoard Code Reference

IThread.HasUserVoted function

Tell whether current user has already voted at a poll

function IThread.HasUserVoted ($id = 0);

Parameters:

id  –  optional, default: 0
(int) thread id, 0 for currently loaded thread

Remarks:

return false: not voted
true: has already voted, but the option is unknown
(int) >0: vote option ID

Member of class: IThread

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

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