Function __global->find_member_content

Definitions

sources/cns_warnings.php

  • Find a member's content.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A Member ID
$days ?integer No No Null N/A N/A Only consider content posted in the last specified days (null: do not consider)
$max ?integer No No 30 N/A N/A Maximum results (null: no maximum; you should specify $days in this case)

Returns

  • List of content rows
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find a member's content.
 *
 * @param  MEMBER $member_id Member ID
 * @param  ?integer $days Only consider content posted in the last specified days (null: do not consider)
 * @param  ?integer $max Maximum results (null: no maximum; you should specify $days in this case)
 * @return array List of content rows
 */

function find_member_content(int $member_id, ?int $days = null, ?int $max = 30) : array