Function __global->cns_may_edit_poll_by

Definitions

sources/cns_polls.php

  • Find whether a member can alter a poll owned by a certain member 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 (null: private topics)
$poll_owner MEMBER No No required parameter N/A N/A The poll owner
$member_id ?MEMBER No No Null N/A N/A The member we are checking for (null: current member)

Returns

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

Preview

Code (PHP)

/**
 * Find whether a member can alter a poll owned by a certain member in a certain forum.
 *
 * @param  ?AUTO_LINK $forum_id The forum (null: private topics)
 * @param  MEMBER $poll_owner The poll owner
 * @param  ?MEMBER $member_id The member we are checking for (null: current member)
 * @return boolean The answer
 */

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