Function __global->cns_may_delete_topics_by

Definitions

sources/cns_topics.php

  • Find whether a member may delete topics in 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 forum the topic would be in (null: private topics)
$member_id MEMBER No No required parameter N/A N/A The member checking access for
$resource_owner ?MEMBER No No required parameter N/A N/A The member that owns this resource (null: none)

Returns

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

Preview

Code (PHP)

/**
 * Find whether a member may delete topics in a certain forum.
 *
 * @param  ?AUTO_LINK $forum_id The forum the topic would be in (null: private topics)
 * @param  MEMBER $member_id The member checking access for
 * @param  ?MEMBER $resource_owner The member that owns this resource (null: none)
 * @return boolean The answer
 */

function cns_may_delete_topics_by(?int $forum_id, int $member_id, ?int $resource_owner) : bool