Function __global->edit_download

Definitions

sources/downloads2.php

  • Edit a download.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$num_downloads ?integer No No Null N/A N/A The number of downloads that this download has had (null: do not change)
$null_is_literal boolean No No False N/A N/A Determines whether some nulls passed mean 'use a default' or literally mean 'set to null'
$url_redirect URLPATH No No Blank (empty string) N/A N/A The URL to redirect

Preview

Code (PHP)

/**
 * Edit a download.
 *
 * @param  ?integer $num_downloads The number of downloads that this download has had (null: do not change)
 * @param  boolean $null_is_literal Determines whether some nulls passed mean 'use a default' or literally mean 'set to null'
 * @param  URLPATH $url_redirect The URL to redirect
 */

function edit_download(?int $num_downloads = null, bool $null_is_literal = false, string $url_redirect = '')