Function __global->give_award
Definitions
sources/awards.php
- Give an award.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $award_id | AUTO_LINK | No | No | required parameter | N/A | N/A | The award ID |
| $content_id | ID_TEXT | No | No | required parameter | N/A | N/A | The content ID |
| $time | ?TIME | No | No | Null | N/A | N/A | Time the award was given (null: now) |
Preview
Code (PHP)
/**
* Give an award.
*
* @param AUTO_LINK $award_id The award ID
* @param ID_TEXT $content_id The content ID
* @param ?TIME $time Time the award was given (null: now)
*/
function give_award(int $award_id, string $content_id, ?int $time = null)
* Give an award.
*
* @param AUTO_LINK $award_id The award ID
* @param ID_TEXT $content_id The content ID
* @param ?TIME $time Time the award was given (null: now)
*/
function give_award(int $award_id, string $content_id, ?int $time = null)
