fade_in = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcSchedulePeer::FADE_IN; return $this; } // setDbFadein() /** * * @param String in format SS.uuuuuu, Datetime, or DateTime accepted string. * * @return CcPlaylistcontents The current object (for fluent API support) */ public function setDbFadeOut($v) { if ($v instanceof DateTime) { $dt = $v; } else if (preg_match('/^[0-5][0-9](\.\d{1,6})?$/', $v)) { $dt = DateTime::createFromFormat("s.u", $v); } else { try { $dt = new DateTime($v); } catch (Exception $x) { throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x); } } $this->fadeIout = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADE_OUT; 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[] = CcPlaylistcontentsPeer::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[] = CcPlaylistcontentsPeer::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[] = CcPlaylistcontentsPeer::CLIP_LENGTH; return $this; } // setDbCliplength() } // CcSchedule