Function __global->vote_in_poll
Definitions
sources/polls.php
- Vote in a poll.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$poll_id | AUTO_LINK | required parameter | N/A | N/A | The poll ID |
$cast | ?integer | required parameter | N/A | N/A | Vote to cast (null: forfeit vote) |
$myrow | ?array | Null | N/A | N/A | Poll row (null: lookup from DB) |
$member_id | ?MEMBER | Null | N/A | N/A | Who to vote (null: current user) |
$ip | ?IP | Null | N/A | N/A | The IP to vote (null: no IP check) |
Return
- Amended poll row
- Type: array
- Set: N/A
- Range: N/A