Function __global->cns_ping_topic_read

Definitions

sources/cns_topics.php

  • Mark a topic as read by the current member.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$topic_id AUTO_LINK No No required parameter N/A N/A The ID of the topic to mark as read
$member_id ?MEMBER No No Null N/A N/A The member to do this for (null: current member)
$timestamp ?TIME No No Null N/A N/A Mark read timestamp (null: now)

Preview

Code (PHP)

/**
 * Mark a topic as read by the current member.
 *
 * @param  AUTO_LINK $topic_id The ID of the topic to mark as read
 * @param  ?MEMBER $member_id The member to do this for (null: current member)
 * @param  ?TIME $timestamp Mark read timestamp (null: now)
 */

function cns_ping_topic_read(int $topic_id, ?int $member_id = null, ?int $timestamp = null)