OpenBroadcaster Documentation
models / alerts_model.php

AlertsModel

Model

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

public  delete ( args = [] )

Delete an alert.

Parameters
id
public  get_for_player ( args = [] )

Get the alerts associated with a player.

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

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

public  get_one ( args = [] )

Get an alert and its associated media item.

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

Update or insert an alert.

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

Validate the data for updating or inserting an alert.

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