cc-2167: now playing view with recording shows a gap

-implemented
This commit is contained in:
mkonecny 2011-05-05 16:45:13 -04:00
parent 1337efcdcd
commit 9638f6dd3e
5 changed files with 24 additions and 39 deletions

View file

@ -32,6 +32,10 @@ class Application_Model_Nowplaying
public static function CreateGapRow($p_gapTime){
return array("g", $p_gapTime, "", "", "", "", "", "", "", "", "");
}
public static function CreateRecordingRow($p_showInstance){
return array("r", $p_showInstance->getName(), "", "", "", "", "", "", "", "", "");
}
public static function GetDataGridData($viewType, $dateString){
@ -73,7 +77,9 @@ class Application_Model_Nowplaying
//append show gap time row
$gapTime = $si->getShowEndGapTime();
if ($gapTime > 0)
if ($si->isRecorded())
$data[] = Application_Model_Nowplaying::CreateRecordingRow($si);
else if ($gapTime > 0)
$data[] = Application_Model_Nowplaying::CreateGapRow($gapTime);
}