edits to show class to support resizing/dragging with overbooking.

This commit is contained in:
Naomi 2011-03-07 12:43:05 -05:00
parent 17e848c549
commit dc0ea0a532
5 changed files with 21 additions and 57 deletions

View file

@ -1558,10 +1558,11 @@ class StoredFile {
}
public static function searchPlaylistsForSchedule($p_length, $datatables) {
public static function searchPlaylistsForSchedule($datatables)
{
$fromTable = "cc_playlist AS pl LEFT JOIN cc_playlisttimes AS plt USING(id) LEFT JOIN cc_subjs AS sub ON pl.editedby = sub.id";
$datatables["optWhere"][] = "INTERVAL '{$p_length}' > INTERVAL '00:00:00'";
$datatables["optWhere"][] = "plt.length > INTERVAL '00:00:00'";
return StoredFile::searchFiles($fromTable, $datatables);
}