OpenBroadcaster Documentation
models / timeslots_model.php

TimeslotsModel

Model

Model for timeslots.

public  collision_check ( data, id=false, edit_recurring=false )

Check for collisions on a timeslot.

Parameters
data
id Existing show ID. FALSE by default.
edit_recurring Whether editing a recurring existing show. FALSE by default.
Returns [is_colliding, msg]
public  delete_timeslot ( id, recurring=false )

Delete a timeslot.

Parameters
id
recurring Boolean for recurring item. Default FALSE.
public  get_timeslot_by_id ( id, recurring=false )

Get timeslot by ID.

Parameters
id
recurring Boolean for recurring item. Default FALSE.
Returns timeslot
public  get_timeslots ( start, end, player, not_entry=false, user_id=false )

Get timeslots associated with a player.

Parameters
start
end
player
not_entry Exclude a specific entry. Default FALSE.
user_id Limit timeslots to specific user ID. Default FALSE.
Returns timeslots
public  save_timeslot ( data, id=false, edit_recurring=false )

Save a timeslot.

Parameters
data
id Updating an existing timeslot. Default FALSE.
edit_recurring Whether editing a recurring item. Default FALSE.
public  validate_timeslot ( data, id=false )

Validate a timeslot

Parameters
data
id Updating an existing timeslot. Default FALSE.
Returns [is_valid, msg]