Function __global->cns_is_poll_open
Definitions
sources/cns_polls_action2.php
- Check if a poll is open by looking at the is_open property and checking if the closing_time has passed.
- 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_info | array | No | No | required parameter | N/A | N/A | The cns_poll_get_results map of the poll |
Returns
- Whether the poll is open and voting is allowed
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Check if a poll is open by looking at the is_open property and checking if the closing_time has passed.
*
* @param array $poll_info The cns_poll_get_results map of the poll
* @return boolean Whether the poll is open and voting is allowed
*/
function cns_is_poll_open(array $poll_info) : bool
* Check if a poll is open by looking at the is_open property and checking if the closing_time has passed.
*
* @param array $poll_info The cns_poll_get_results map of the poll
* @return boolean Whether the poll is open and voting is allowed
*/
function cns_is_poll_open(array $poll_info) : bool
