Function __global->get_download_category_purchase_url

Definitions

sources/downloads.php

  • Get the URL to purchase access to a download category.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$category_id AUTO_LINK No No required parameter N/A N/A The category

Returns

  • The purchase URL (null: cannot be purchased)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the URL to purchase access to a download category.
 *
 * @param  AUTO_LINK $category_id The category
 * @return ?Tempcode The purchase URL (null: cannot be purchased)
 */

function get_download_category_purchase_url(int $category_id) : ?object