OpenBroadcaster Documentation
models / emergencies_model.php

EmergenciesModel

Model

Manages emergency broadcasts, also commonly referred to as priorities or priority broadcasts.

public  delete ( args = [] )

Delete an emergency.

Parameters
id
public  get_for_player ( args = [] )

Get the emergencies associated with a player.

Parameters
player_id
Returns emergencies
public  get_init ( args = [] )

Set up the initial parts of a database query, selecting media and emergency items from the tables, and joining media items on the item ID in emergencies.

public  get_one ( args = [] )

Get an emergency and its associated media item.

Parameters
id
Returns emergency
public  save ( args = [] )

Update or insert an emergency.

Parameters
data
id FALSE by default, set when updating existing emergency.
public  validate ( args = [] )

Validate the data for updating or inserting an emergency.

Parameters
data
id FALSE by default, set when updating existing emergency.
Returns is_valid