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_TEXT
The title
\LONG_TEXT
The description
integer
How many points are given to the awardee
\ID_TEXT
The content type the award type is for
\BINARY
Whether to not show the awardee when displaying this award
integer
The approximate time in hours between awards (e.g. 168 for a week)
\AUTO_LINK
The 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_LINK
The ID
\SHORT_TEXT
The title
\LONG_TEXT
The description
integer
How many points are given to the awardee
\ID_TEXT
The content type the award type is for
\BINARY
Whether to not show the awardee when displaying this award
integer
The 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_TEXT
The award content type
\ID_TEXT
The content ID
array
List of awards wonget_award_fields(\ID_TEXT $content_type, \?ID_TEXT $id = null
) : \Tempcode
package | awards |
---|
\ID_TEXT
The content type
\?ID_TEXT
The content ID (null: not added yet - therefore can't be holding the award yet)
\Tempcode
The fieldsgive_award(\AUTO_LINK $award_id, \ID_TEXT $content_id, \?TIME $time = null
)
package | awards |
---|
\AUTO_LINK
The award ID
\ID_TEXT
The content ID
\?TIME
Time the award was given (null: now)
handle_award_setting(\ID_TEXT $content_type, \ID_TEXT $id)