CC-3174 : showbuilder
changing cues/cliplengths to be interval column type.
This commit is contained in:
parent
a9cdb512b9
commit
b7e5bfe4aa
10 changed files with 132 additions and 731 deletions
|
@ -15,11 +15,6 @@
|
|||
*/
|
||||
class CcSchedule extends BaseCcSchedule {
|
||||
|
||||
public function getDbClipLength($format = 'H:i:s.u')
|
||||
{
|
||||
return parent::getDbClipLength($format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [optionally formatted] temporal [starts] column value.
|
||||
*
|
||||
|
@ -104,28 +99,6 @@ class CcSchedule extends BaseCcSchedule {
|
|||
return parent::getDbFadeout($format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Just changing the default format to return subseconds
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
* @throws PropelException - if unable to parse/validate the date/time value.
|
||||
*/
|
||||
public function getDbCueIn($format = 'H:i:s.u')
|
||||
{
|
||||
return parent::getDbCuein($format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Just changing the default format to return subseconds
|
||||
*
|
||||
* @return mixed Formatted date/time value as string or DateTime object (if format is NULL), NULL if column is NULL
|
||||
* @throws PropelException - if unable to parse/validate the date/time value.
|
||||
*/
|
||||
public function getDbCueOut($format = 'H:i:s.u')
|
||||
{
|
||||
return parent::getDbCueout($format);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param String in format SS.uuuuuu, Datetime, or DateTime accepted string.
|
||||
|
@ -182,89 +155,6 @@ class CcSchedule extends BaseCcSchedule {
|
|||
return $this;
|
||||
} // setDbFadeout()
|
||||
|
||||
/**
|
||||
* Sets the value of [cuein] column to a normalized version of the date/time value specified.
|
||||
*
|
||||
* @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
|
||||
* be treated as NULL for temporal objects.
|
||||
* @return CcPlaylistcontents The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbCueIn($v)
|
||||
{
|
||||
if ($v instanceof DateTime) {
|
||||
$dt = $v;
|
||||
}
|
||||
else {
|
||||
try {
|
||||
$dt = new DateTime($v);
|
||||
}
|
||||
catch (Exception $x) {
|
||||
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
|
||||
}
|
||||
}
|
||||
|
||||
$this->cue_in = $dt->format('H:i:s.u');
|
||||
$this->modifiedColumns[] = CcSchedulePeer::CUE_IN;
|
||||
|
||||
return $this;
|
||||
} // setDbCuein()
|
||||
|
||||
/**
|
||||
* Sets the value of [cueout] column to a normalized version of the date/time value specified.
|
||||
*
|
||||
* @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
|
||||
* be treated as NULL for temporal objects.
|
||||
* @return CcPlaylistcontents The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbCueout($v)
|
||||
{
|
||||
if ($v instanceof DateTime) {
|
||||
$dt = $v;
|
||||
}
|
||||
else {
|
||||
try {
|
||||
$dt = new DateTime($v);
|
||||
}
|
||||
catch (Exception $x) {
|
||||
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
|
||||
}
|
||||
}
|
||||
|
||||
$this->cue_out = $dt->format('H:i:s.u');
|
||||
$this->modifiedColumns[] = CcSchedulePeer::CUE_OUT;
|
||||
|
||||
return $this;
|
||||
} // setDbCueout()
|
||||
|
||||
/**
|
||||
* Sets the value of [cliplength] column to a normalized version of the date/time value specified.
|
||||
*
|
||||
* @param mixed $v string, integer (timestamp), or DateTime value. Empty string will
|
||||
* be treated as NULL for temporal objects.
|
||||
* @return CcPlaylistcontents The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbClipLength($v)
|
||||
{
|
||||
if ($v instanceof DateTime) {
|
||||
$dt = $v;
|
||||
}
|
||||
else {
|
||||
|
||||
try {
|
||||
|
||||
$dt = new DateTime($v);
|
||||
|
||||
} catch (Exception $x) {
|
||||
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
|
||||
}
|
||||
}
|
||||
|
||||
$this->clip_length = $dt->format('H:i:s.u');
|
||||
$this->modifiedColumns[] = CcSchedulePeer::CLIP_LENGTH;
|
||||
|
||||
return $this;
|
||||
} // setDbCliplength()
|
||||
|
||||
/**
|
||||
* Sets the value of [starts] column to a normalized version of the date/time value specified.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue