Function __global->cns_has_replied_topic

Definitions

sources/cns_topics.php

  • Find whether a member has replied to a certain topic.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$topic_id AUTO_LINK No No required parameter N/A N/A The topic
$member_id ?MEMBER No No Null N/A N/A The member (null: current member)

Returns

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

Preview

Code (PHP)

/**
 * Find whether a member has replied to a certain topic.
 *
 * @param  AUTO_LINK $topic_id The topic
 * @param  ?MEMBER $member_id The member (null: current member)
 * @return boolean The answer
 */

function cns_has_replied_topic(int $topic_id, ?int $member_id = null) : bool