Function __global->may_vote_in_poll
Definitions
sources/polls.php
- Find whether the current member may vote.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $poll_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The poll ID |
| $member_id | MEMBER | No | No | required parameter | N/A | N/A | Who to check for |
| $ip | IP | No | No | required parameter | N/A | N/A | The IP to check for |
Returns
- Whether the current member may vote
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether the current member may vote.
*
* @param AUTO_LINK $poll_id The poll ID
* @param MEMBER $member_id Who to check for
* @param IP $ip The IP to check for
* @return boolean Whether the current member may vote
*/
function may_vote_in_poll(int $poll_id, int $member_id, string $ip) : bool
* Find whether the current member may vote.
*
* @param AUTO_LINK $poll_id The poll ID
* @param MEMBER $member_id Who to check for
* @param IP $ip The IP to check for
* @return boolean Whether the current member may vote
*/
function may_vote_in_poll(int $poll_id, int $member_id, string $ip) : bool
