Function __global->create_selection_list_polls

Definitions

sources/polls.php

  • Get a list of polls.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$it ?AUTO_LINK No No Null N/A N/A The ID of the poll to select by default (null: first)
$only_owned ?MEMBER No No Null N/A N/A Only show polls owned by this member (null: no such restriction)

Returns

  • The list
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a list of polls.
 *
 * @param  ?AUTO_LINK $it The ID of the poll to select by default (null: first)
 * @param  ?MEMBER $only_owned Only show polls owned by this member (null: no such restriction)
 * @return Tempcode The list
 */

function create_selection_list_polls(?int $it = null, ?int $only_owned = null) : object