Function __global->create_selection_list_download_licences

Definitions

sources/downloads.php

  • Get a nice, formatted HTML list to select a download licence.
  • 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 currently selected licence (null: none selected)
$allow_na boolean No No False N/A N/A Whether to allow an N/A selection

Returns

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

Preview

Code (PHP)

/**
 * Get a nice, formatted HTML list to select a download licence.
 *
 * @param  ?AUTO_LINK $it The currently selected licence (null: none selected)
 * @param  boolean $allow_na Whether to allow an N/A selection
 * @return Tempcode The list of categories
 */

function create_selection_list_download_licences(?int $it = null, bool $allow_na = false) : object