add_to_charge_log
available_points
calculate_latest_leader_board
charge_member
get_gift_points_to_give
get_gift_points_used
get_price
give_points
has_leader_board_since
point_info
points_get_transactions
points_profile
points_used
system_gift_transfer
total_points
add_to_charge_log(\MEMBER $member_id, integer $amount, \SHORT_TEXT $reason, \?TIME $time = null)
| package | points |
|---|
\MEMBERThe member that is being charged
integerThe amount being charged
\SHORT_TEXTThe reason for the charging
\?TIMEThe time this is recorded to have happened (null: use current time)
available_points(\MEMBER $member) : integer
| package | points |
|---|
\MEMBERThe member
integerThe number of points the member hascalculate_latest_leader_board(boolean $retrieve = true) : \?array
| package | points |
|---|
booleanWhether to retrieve results too (no retrieve -> faster call)
\?arrayA map of member-IDs to points, sorted by leader-board status (null: not retrieving)charge_member(\MEMBER $member_id, integer $amount, \SHORT_TEXT $reason)
| package | points |
|---|
\MEMBERThe member that is being charged
integerThe amount being charged
\SHORT_TEXTThe reason for the charging
get_gift_points_to_give(\MEMBER $member) : integer
| package | points |
|---|
\MEMBERThe member we want it for
integerThe number of gifts points to give that the given member hasget_gift_points_used(\MEMBER $member) : integer
| package | points |
|---|
\MEMBERThe member we want it for
integerThe number of gift points used by the memberget_price(\ID_TEXT $item) : integer
give_points(integer $amount, \MEMBER $recipient_id, \MEMBER $sender_id, \SHORT_TEXT $reason, boolean $anonymous= false, boolean $send_email= true)
| package | points |
|---|
integerThe amount being given
\MEMBERThe member receiving the points
\MEMBERThe member sending the points
\SHORT_TEXTThe reason for the gift
booleanDoes the sender want to remain anonymous?
booleanWhether to send out an email about it
has_leader_board_since(\TIME $cutoff) : boolean
point_info(\MEMBER $member) : array
| package | points |
|---|
\MEMBERThe member the point info is of
arrayThe map containing the members point info (fields as enumerated in description)points_get_transactions(\ID_TEXT $type, \MEMBER $member_id_of, \MEMBER $member_id_viewing) : \Tempcode
| package | points |
|---|---|
| set | from to |
\ID_TEXTThe type of transactions we are looking for
\MEMBERWho we are looking at transactions for
\MEMBERWho we are looking at transactions using the account of
\TempcodeThe UIpoints_profile(\MEMBER $member_id_of, \?MEMBER $member_id_viewing) : \Tempcode
| package | points |
|---|
\MEMBERThe ID of the member who is being viewed
\?MEMBERThe ID of the member who is doing the viewing (null: current member)
\TempcodeThe UIpoints_used(\MEMBER $member) : integer
| package | points |
|---|
\MEMBERThe member
integerThe number of points the member has spentsystem_gift_transfer(\SHORT_TEXT $reason, integer $amount, \MEMBER $member_id)
| package | points |
|---|
\SHORT_TEXTThe reason for the transfer
integerThe size of the transfer
\MEMBERThe member the transfer is to
total_points(\MEMBER $member, \?TIME $timestamp = null) : integer
| package | points |
|---|
\MEMBERThe member
\?TIMETime to get for (null: now)
integerThe number of points the member has