Function Module_topics->add_poll
Definitions
forum/pages/modules/topics.php
- The UI to add a poll.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $topic_id | ?AUTO_LINK | No | No | Null | N/A | N/A | The topic ID to add the poll to (null: we are adding a new topic at the same time, it's in the POST environment already and will be relayed to _add_poll) |
Returns
- The UI
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* The UI to add a poll.
*
* @param ?AUTO_LINK $topic_id The topic ID to add the poll to (null: we are adding a new topic at the same time, it's in the POST environment already and will be relayed to _add_poll)
* @return Tempcode The UI
*/
public function add_poll(?int $topic_id = null) : object
* The UI to add a poll.
*
* @param ?AUTO_LINK $topic_id The topic ID to add the poll to (null: we are adding a new topic at the same time, it's in the POST environment already and will be relayed to _add_poll)
* @return Tempcode The UI
*/
public function add_poll(?int $topic_id = null) : object

