Functions


Functions Summary
void

cot_poll_check()

Check Poll form

bool

cot_poll_delete(int id, string type)

Delete Poll

bool

cot_poll_exists(int id, string type)

Checks if Poll exists

array

cot_poll_form(int id, string formlink, string theme, string type)

Generates Poll form

bool

cot_poll_lock(int id, int state, string type)

Lock Poll

bool

cot_poll_reset(int id, string type)

Reset Poll votes

bool

cot_poll_save(string type, int code)

Save Poll form

void

cot_poll_vote()

Poll function

Function Detail

modules\polls\inc\polls.functions.php at line 119

cot_poll_check

public void cot_poll_check()
Check Poll form

modules\polls\inc\polls.functions.php at line 391

cot_poll_delete

public bool cot_poll_delete(int id, string type)
Delete Poll
Parameters:
id - Poll ID or Poll Code if $type is not epmty
type - Poll type
Returns:
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 484

cot_poll_exists

public bool cot_poll_exists(int id, string type)
Checks if Poll exists
Parameters:
id - Poll ID or Poll Code if $type is not epmty
type - Poll type
Returns:
true if Poll exists
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 292

cot_poll_form

public array cot_poll_form(int id, string formlink, string theme, string type)
Generates Poll form
Parameters:
id - Poll ID or Poll Code if $type is not epmty
formlink - Poll form url
theme - Poll template name
type - Poll type
Returns:
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 430

cot_poll_lock

public bool cot_poll_lock(int id, int state, string type)
Lock Poll
Parameters:
id - Poll ID or Poll code if $type is not epmty
state - Poll lock status: 0 - unlocked, 1 - locked, 3 - toggle lock status
type - Poll type
Returns:
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 458

cot_poll_reset

public bool cot_poll_reset(int id, string type)
Reset Poll votes
Parameters:
id - Poll ID or Poll Code if $type is not epmty
type - Poll type
Returns:
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 177

cot_poll_save

public bool cot_poll_save(string type, int code)
Save Poll form
Parameters:
type - Poll type
code - Poll Code
Returns:
Global:
CotDB $db

modules\polls\inc\polls.functions.php at line 239

cot_poll_vote

public void cot_poll_vote()
Poll function
Global:
CotDB $db