Function __global->points_credit_member

Definitions

sources/points2.php

  • Credit points to a member from the system (use points_refund for refunds).
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$member_id MEMBER required parameter N/A N/A The member to credit
$reason SHORT_TEXT required parameter N/A N/A The reason for this credit in the logs
$total_points integer required parameter N/A N/A The total points to credit (including gift points when applicable)
$anonymous BINARY 0 N/A N/A Whether this transaction should be anonymous
$send_notifications ?boolean True N/A N/A Whether to send notifications for this transaction (false: only the staff get it) (true: both the member and staff get it) (null: neither the member nor staff get it)
$locked BINARY 0 N/A N/A Whether this transaction is irreversible (Ignored / always 1 when $amount_gift_points is > 0)
$t_type ID_TEXT Blank (empty string) N/A N/A An identifier to relate this transaction with other transactions of the same $type (e.g. content type)
$t_subtype ID_TEXT Blank (empty string) N/A N/A An identifier to relate this transaction with other transactions of the same $type and $subtype (e.g. an action performed on the $type)
$t_type_id ID_TEXT Blank (empty string) N/A N/A Some content or row ID of the specified $type
$time ?TIME Null N/A N/A The time this transaction occurred (null: now)
$is_ranked boolean True N/A N/A Whether the points should also be added to the receiving member's rank points

Return

  • The ID of the point transaction (null: no transaction took place)
  • Type: ?AUTO_LINK
  • Set: N/A
  • Range: N/A