add_award_type
delete_award_type
edit_award_type
find_awards_for
get_award_fields
give_award
handle_award_setting
add_award_type(\SHORT_TEXT $title, \LONG_TEXT $description, integer $points, \ID_TEXT $content_type, \BINARY $hide_awardee, integer $update_time_hours) : \AUTO_LINK
| package | awards |
|---|
\SHORT_TEXTThe title
\LONG_TEXTThe description
integerHow many points are given to the awardee
\ID_TEXTThe content type the award type is for
\BINARYWhether to not show the awardee when displaying this award
integerThe approximate time in hours between awards (e.g. 168 for a week)
\AUTO_LINKThe IDdelete_award_type(\AUTO_LINK $id)
edit_award_type(\AUTO_LINK $id, \SHORT_TEXT $title, \LONG_TEXT $description, integer $points, \ID_TEXT $content_type, \BINARY $hide_awardee, integer $update_time_hours)
| package | awards |
|---|
\AUTO_LINKThe ID
\SHORT_TEXTThe title
\LONG_TEXTThe description
integerHow many points are given to the awardee
\ID_TEXTThe content type the award type is for
\BINARYWhether to not show the awardee when displaying this award
integerThe approximate time in hours between awards (e.g. 168 for a week)
find_awards_for(\ID_TEXT $content_type, \ID_TEXT $id) : array
| package | awards |
|---|
\ID_TEXTThe award content type
\ID_TEXTThe content ID
arrayList of awards wonget_award_fields(\ID_TEXT $content_type, \?ID_TEXT $id = null) : \Tempcode
| package | awards |
|---|
\ID_TEXTThe content type
\?ID_TEXTThe content ID (null: not added yet - therefore can't be holding the award yet)
\TempcodeThe fieldsgive_award(\AUTO_LINK $award_id, \ID_TEXT $content_id, \?TIME $time = null)
| package | awards |
|---|
\AUTO_LINKThe award ID
\ID_TEXTThe content ID
\?TIMETime the award was given (null: now)
handle_award_setting(\ID_TEXT $content_type, \ID_TEXT $id)