fadein = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEIN; 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->fadeout = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::FADEOUT; 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->cuein = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEIN; 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->cueout = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::CUEOUT; 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->cliplength = $dt->format('H:i:s.u'); $this->modifiedColumns[] = CcPlaylistcontentsPeer::CLIPLENGTH; return $this; } // setDbCliplength() } // CcPlaylistcontents