cc-2167: now playing view with recording shows a gap
-implemented
This commit is contained in:
parent
1337efcdcd
commit
9638f6dd3e
5 changed files with 24 additions and 39 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue