Function __global->may_enter_download_category

Definitions

sources/downloads.php

  • See if a member may access a download category.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

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

Returns

  • Whether they can
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * See if a member may access a download category.
 *
 * @param  MEMBER $member_id The member
 * @param  AUTO_LINK $category_id The category
 * @return boolean Whether they can
 */

function may_enter_download_category(int $member_id, int $category_id) : bool