inital attempt to add autoplaylist icon to calendar

This commit is contained in:
Robb Ebright 2017-11-28 15:12:27 -05:00
parent a4fdb9bc62
commit 01ec7ce797
3 changed files with 65 additions and 7 deletions

View file

@ -1023,6 +1023,8 @@ SQL;
$content_count = Application_Model_ShowInstance::getContentCount(
$p_start, $p_end);
$isFull = Application_Model_ShowInstance::getIsFull($p_start, $p_end);
$hasAutoPlaylist = Application_Model_ShowInstance::getShowHasAutoplaylist($p_start, $p_end);
$displayTimezone = new DateTimeZone(Application_Model_Preference::GetUserTimezone());
$utcTimezone = new DateTimeZone("UTC");
@ -1055,6 +1057,7 @@ SQL;
$startsDT->setTimezone($displayTimezone);
$endsDT->setTimezone($displayTimezone);
xdebug_break();
$options["show_empty"] = (array_key_exists($show['instance_id'],
$content_count)) ? 0 : 1;
@ -1064,6 +1067,11 @@ SQL;
} else {
$options["show_partial_filled"] = true;
}
if (array_key_exists($show['instance_id'], $hasAutoPlaylist)) {
$options["show_has_auto_playlist"] = !$hasAutoPlaylist[$show['instance_id']];
} else {
$options["show_has_auto_playlist"] = true;
}
$event = array();