OpenBroadcaster Documentation
models / timeslots_model.php

TimeslotsModel

Model

Model for timeslots.

public  collision_check ( data, id = false )

Check for collisions on a timeslot.

Parameters
data
id Existing show ID. 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 )

Get timeslot by ID.

Parameters
id
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 )

Save a timeslot.

Parameters
data
id Updating an existing timeslot. Default FALSE.
public  validate_timeslot ( data, id = false )

Validate a timeslot

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