Function __global->cns_may_moderate_forum

Definitions

sources/cns_forums.php

  • Find whether a member may moderate a certain forum.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$forum_id ?AUTO_LINK No No required parameter N/A N/A The ID of the forum (null: private topics)
$member_id ?MEMBER No No Null N/A N/A The member ID (null: current member)

Returns

  • The answer
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a member may moderate a certain forum.
 *
 * @param  ?AUTO_LINK $forum_id The ID of the forum (null: private topics)
 * @param  ?MEMBER $member_id The member ID (null: current member)
 * @return boolean The answer
 */

function cns_may_moderate_forum(?int $forum_id, ?int $member_id = null) : bool