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 |
---|
\MEMBER
The member that is being charged
integer
The amount being charged
\SHORT_TEXT
The reason for the charging
\?TIME
The time this is recorded to have happened (null: use current time)
available_points(\MEMBER $member) : integer
package | points |
---|
\MEMBER
The member
integer
The number of points the member hascalculate_latest_leader_board(boolean $retrieve = true
) : \?array
package | points |
---|
boolean
Whether to retrieve results too (no retrieve -> faster call)
\?array
A 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 |
---|
\MEMBER
The member that is being charged
integer
The amount being charged
\SHORT_TEXT
The reason for the charging
get_gift_points_to_give(\MEMBER $member) : integer
package | points |
---|
\MEMBER
The member we want it for
integer
The number of gifts points to give that the given member hasget_gift_points_used(\MEMBER $member) : integer
package | points |
---|
\MEMBER
The member we want it for
integer
The 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 |
---|
integer
The amount being given
\MEMBER
The member receiving the points
\MEMBER
The member sending the points
\SHORT_TEXT
The reason for the gift
boolean
Does the sender want to remain anonymous?
boolean
Whether to send out an email about it
has_leader_board_since(\TIME $cutoff) : boolean
point_info(\MEMBER $member) : array
package | points |
---|
\MEMBER
The member the point info is of
array
The 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_TEXT
The type of transactions we are looking for
\MEMBER
Who we are looking at transactions for
\MEMBER
Who we are looking at transactions using the account of
\Tempcode
The UIpoints_profile(\MEMBER $member_id_of, \?MEMBER $member_id_viewing) : \Tempcode
package | points |
---|
\MEMBER
The ID of the member who is being viewed
\?MEMBER
The ID of the member who is doing the viewing (null: current member)
\Tempcode
The UIpoints_used(\MEMBER $member) : integer
package | points |
---|
\MEMBER
The member
integer
The number of points the member has spentsystem_gift_transfer(\SHORT_TEXT $reason, integer $amount, \MEMBER $member_id)
package | points |
---|
\SHORT_TEXT
The reason for the transfer
integer
The size of the transfer
\MEMBER
The member the transfer is to
total_points(\MEMBER $member, \?TIME $timestamp = null
) : integer
package | points |
---|
\MEMBER
The member
\?TIME
Time to get for (null: now)
integer
The number of points the member has