Function __global->render_poll_box
Definitions
sources/polls.php
- Show an actual poll box.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $results | boolean | No | No | required parameter | N/A | N/A | Whether to show results (if we've already voted, this will be overridden) |
| $myrow | array | No | No | required parameter | N/A | N/A | The poll row |
| $zone | ID_TEXT | No | No | _SEARCH | N/A | N/A | The zone our poll module is in |
| $include_manage_links | boolean | No | No | False | N/A | N/A | Whether to include extra management links (e.g. editing, choosing, archive, etc) |
| $give_context | boolean | No | No | True | N/A | N/A | Whether to include context (i.e. say WHAT this is, not just show the actual content) |
| $guid | ID_TEXT | No | No | Blank (empty string) | N/A | N/A | Overridden GUID to send to templates (blank: none) |
Returns
- The box
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Show an actual poll box.
*
* @param boolean $results Whether to show results (if we've already voted, this will be overridden)
* @param array $myrow The poll row
* @param ID_TEXT $zone The zone our poll module is in
* @param boolean $include_manage_links Whether to include extra management links (e.g. editing, choosing, archive, etc)
* @param boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
* @param ID_TEXT $guid Overridden GUID to send to templates (blank: none)
* @return Tempcode The box
*/
function render_poll_box(bool $results, array $myrow, string $zone = '_SEARCH', bool $include_manage_links = false, bool $give_context = true, string $guid = '') : object
* Show an actual poll box.
*
* @param boolean $results Whether to show results (if we've already voted, this will be overridden)
* @param array $myrow The poll row
* @param ID_TEXT $zone The zone our poll module is in
* @param boolean $include_manage_links Whether to include extra management links (e.g. editing, choosing, archive, etc)
* @param boolean $give_context Whether to include context (i.e. say WHAT this is, not just show the actual content)
* @param ID_TEXT $guid Overridden GUID to send to templates (blank: none)
* @return Tempcode The box
*/
function render_poll_box(bool $results, array $myrow, string $zone = '_SEARCH', bool $include_manage_links = false, bool $give_context = true, string $guid = '') : object

