Merge branch '2.2.x' of dev.sourcefabric.org:airtime into 2.2.x

This commit is contained in:
Martin Konecny 2012-10-18 14:29:06 -04:00
commit daa7e8d263
8 changed files with 63 additions and 15 deletions

View File

@ -179,7 +179,14 @@ class Application_Form_AddShowWhen extends Zend_Form_SubForm
/* Check first show /* Check first show
* Continue if the first show does not overlap * Continue if the first show does not overlap
*/ */
$overlapping = Application_Model_Schedule::checkOverlappingShows($show_start, $show_end, $update, $instanceId); if ($update) {
$overlapping = Application_Model_Schedule::checkOverlappingShows(
$show_start, $show_end, $update, null, $formData["add_show_id"]);
} else {
$overlapping = Application_Model_Schedule::checkOverlappingShows(
$show_start, $show_end);
}
//$overlapping = Application_Model_Schedule::checkOverlappingShows($show_start, $show_end, $update, $instanceId);
/* Check if repeats overlap with previously scheduled shows /* Check if repeats overlap with previously scheduled shows
* Do this for each show day * Do this for each show day

View File

@ -63,7 +63,11 @@ class CcBlockcontents extends BaseCcBlockcontents {
} }
} }
if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond; $this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcBlockcontentsPeer::FADEIN; $this->modifiedColumns[] = CcBlockcontentsPeer::FADEIN;
return $this; return $this;
@ -96,7 +100,11 @@ class CcBlockcontents extends BaseCcBlockcontents {
} }
} }
if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond; $this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcBlockcontentsPeer::FADEOUT; $this->modifiedColumns[] = CcBlockcontentsPeer::FADEOUT;
return $this; return $this;

View File

@ -62,7 +62,11 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
} }
} }
if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond; $this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN; $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN;
return $this; return $this;
@ -95,7 +99,11 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
} }
} }
if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond; $this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT; $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT;
return $this; return $this;

View File

@ -125,7 +125,12 @@ class CcSchedule extends BaseCcSchedule {
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
} }
} }
$this->fade_in = $dt->format('H:i:s').".".$microsecond;
if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_IN; $this->modifiedColumns[] = CcSchedulePeer::FADE_IN;
return $this; return $this;
@ -158,7 +163,11 @@ class CcSchedule extends BaseCcSchedule {
} }
} }
$this->fade_in = $dt->format('H:i:s').".".$microsecond; if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_OUT; $this->modifiedColumns[] = CcSchedulePeer::FADE_OUT;
return $this; return $this;

View File

@ -85,7 +85,7 @@
font-size: 9px; font-size: 9px;
height: 15px; height: 15px;
/*right: 35px;*/ /*right: 35px;*/
width: 120px; width: 124px;
margin-top: 2px; margin-top: 2px;
cursor: pointer; cursor: pointer;
color: #fff; color: #fff;

View File

@ -62,7 +62,11 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
} }
} }
if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond; $this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN; $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN;
return $this; return $this;
@ -95,7 +99,11 @@ class CcPlaylistcontents extends BaseCcPlaylistcontents {
} }
} }
if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond; $this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT; $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT;
return $this; return $this;

View File

@ -125,7 +125,11 @@ class CcSchedule extends BaseCcSchedule {
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
} }
} }
$this->fade_in = $dt->format('H:i:s').".".$microsecond; if ($microsecond == 0) {
$this->fadein = $dt->format('H:i:s.u');
} else {
$this->fadein = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_IN; $this->modifiedColumns[] = CcSchedulePeer::FADE_IN;
return $this; return $this;
@ -158,7 +162,11 @@ class CcSchedule extends BaseCcSchedule {
} }
} }
$this->fade_out = $dt->format('H:i:s').".".$microsecond; if ($microsecond == 0) {
$this->fadeout = $dt->format('H:i:s.u');
} else {
$this->fadeout = $dt->format('H:i:s').".".$microsecond;
}
$this->modifiedColumns[] = CcSchedulePeer::FADE_OUT; $this->modifiedColumns[] = CcSchedulePeer::FADE_OUT;
return $this; return $this;