controllers / emergency.php
Emergency
Controller
Manages emergency broadcasts, also commonly referred to as priorities or priority broadcasts.
public
delete
(
)
public
delete
(
)
Delete an emergency broadcast. Requries the 'manage_emergency_broadcasts' permission.
id |
public
get
(
)
public
get
(
)
Return data about a specific emergency ID. 'manage_emergency_broadcasts' is a required permission.
id |
emergency
public
get_last_player
(
)
public
get_last_player
(
)
Get the last selected player on the priority broadcasts page for the current user.
player
public
save
(
)
public
save
(
)
Save a new emergency broadcast. The 'user_id' is set to the currently logged in user for the new broadcast. Requires the 'manage_emergency_broadcasts' permission.
id |
ID of emergency broadcast. Update a pre-existing emergency if set. |
item_id |
ID of the media item linked to the emergency broadcast. |
player_id |
|
name |
|
frequency |
|
duration |
|
start |
|
stop |
public
search
(
)
public
search
(
)
Get all priority broadcasts for a specific player ID. 'manage_emergency_broadcasts' is a required permission.
player_id |
emergencies
public
set_last_player
(
)
public
set_last_player
(
)
Set the last selected player so we can view emergency broadcasts for that player immediately when loading the page again some other time. This will have to be generalized for other UI elements at some point. This is a user-specific setting, so no special permissions are necessary.
player |