Function __global->staff_checklist_time_ago_and_due
Definitions
sources/blocks/main_staff_checklist.php
- Work out when an action should happen, and last happened.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: array
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$seconds_ago | ?integer | required parameter | N/A | N/A | The number of seconds ago since it last happened (null: never happened) OR If $recur_hours is null then the number of seconds until it happens (null: won't happen) |
$recur_hours | ?integer | Null | N/A | N/A | It should be done every this many hours (null: never happened) |
Return
- A pair: Tempcode to display, and the number of seconds to go until the action should happen
- Type: array
- Set: N/A
- Range: N/A