CC-1986: Configurable columns for media search

- added column 'utime' (upload time) and 'lptime' (last played time) in the tables cc_files and cc_playlist
This commit is contained in:
Yuchen Wang 2012-01-10 14:45:43 -05:00
parent 7d9aa3ca5d
commit d1d01e55ce
14 changed files with 879 additions and 281 deletions

View file

@ -96,6 +96,18 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $mtime;
/**
* The value for the utime field.
* @var string
*/
protected $utime;
/**
* The value for the lptime field.
* @var string
*/
protected $lptime;
/**
* The value for the md5 field.
* @var string
@ -582,6 +594,72 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
/**
* Get the [optionally formatted] temporal [utime] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the raw DateTime object will be returned.
* @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 getDbUtime($format = 'Y-m-d H:i:s')
{
if ($this->utime === null) {
return null;
}
try {
$dt = new DateTime($this->utime);
} catch (Exception $x) {
throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->utime, true), $x);
}
if ($format === null) {
// Because propel.useDateTimeClass is TRUE, we return a DateTime object.
return $dt;
} elseif (strpos($format, '%') !== false) {
return strftime($format, $dt->format('U'));
} else {
return $dt->format($format);
}
}
/**
* Get the [optionally formatted] temporal [lptime] column value.
*
*
* @param string $format The date/time format string (either date()-style or strftime()-style).
* If format is NULL, then the raw DateTime object will be returned.
* @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 getDbLPtime($format = 'Y-m-d H:i:s')
{
if ($this->lptime === null) {
return null;
}
try {
$dt = new DateTime($this->lptime);
} catch (Exception $x) {
throw new PropelException("Internally stored date/time/timestamp value could not be converted to DateTime: " . var_export($this->lptime, true), $x);
}
if ($format === null) {
// Because propel.useDateTimeClass is TRUE, we return a DateTime object.
return $dt;
} elseif (strpos($format, '%') !== false) {
return strftime($format, $dt->format('U'));
} else {
return $dt->format($format);
}
}
/**
* Get the [md5] column value.
*
@ -1342,6 +1420,104 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this;
} // setDbMtime()
/**
* Sets the value of [utime] 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 CcFiles The current object (for fluent API support)
*/
public function setDbUtime($v)
{
// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
// -- which is unexpected, to say the least.
if ($v === null || $v === '') {
$dt = null;
} elseif ($v instanceof DateTime) {
$dt = $v;
} else {
// some string/numeric value passed; we normalize that so that we can
// validate it.
try {
if (is_numeric($v)) { // if it's a unix timestamp
$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
// We have to explicitly specify and then change the time zone because of a
// DateTime bug: http://bugs.php.net/bug.php?id=43003
$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
} else {
$dt = new DateTime($v);
}
} catch (Exception $x) {
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
}
}
if ( $this->utime !== null || $dt !== null ) {
// (nested ifs are a little easier to read in this case)
$currNorm = ($this->utime !== null && $tmpDt = new DateTime($this->utime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
$newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
if ( ($currNorm !== $newNorm) // normalized values don't match
)
{
$this->utime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
$this->modifiedColumns[] = CcFilesPeer::UTIME;
}
} // if either are not null
return $this;
} // setDbUtime()
/**
* Sets the value of [lptime] 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 CcFiles The current object (for fluent API support)
*/
public function setDbLPtime($v)
{
// we treat '' as NULL for temporal objects because DateTime('') == DateTime('now')
// -- which is unexpected, to say the least.
if ($v === null || $v === '') {
$dt = null;
} elseif ($v instanceof DateTime) {
$dt = $v;
} else {
// some string/numeric value passed; we normalize that so that we can
// validate it.
try {
if (is_numeric($v)) { // if it's a unix timestamp
$dt = new DateTime('@'.$v, new DateTimeZone('UTC'));
// We have to explicitly specify and then change the time zone because of a
// DateTime bug: http://bugs.php.net/bug.php?id=43003
$dt->setTimeZone(new DateTimeZone(date_default_timezone_get()));
} else {
$dt = new DateTime($v);
}
} catch (Exception $x) {
throw new PropelException('Error parsing date/time value: ' . var_export($v, true), $x);
}
}
if ( $this->lptime !== null || $dt !== null ) {
// (nested ifs are a little easier to read in this case)
$currNorm = ($this->lptime !== null && $tmpDt = new DateTime($this->lptime)) ? $tmpDt->format('Y-m-d\\TH:i:sO') : null;
$newNorm = ($dt !== null) ? $dt->format('Y-m-d\\TH:i:sO') : null;
if ( ($currNorm !== $newNorm) // normalized values don't match
)
{
$this->lptime = ($dt ? $dt->format('Y-m-d\\TH:i:sO') : null);
$this->modifiedColumns[] = CcFilesPeer::LPTIME;
}
} // if either are not null
return $this;
} // setDbLPtime()
/**
* Set the value of [md5] column.
*
@ -2398,54 +2574,56 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->currentlyaccessing = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
$this->editedby = ($row[$startcol + 9] !== null) ? (int) $row[$startcol + 9] : null;
$this->mtime = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
$this->md5 = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
$this->track_title = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
$this->artist_name = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
$this->bit_rate = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
$this->sample_rate = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null;
$this->format = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null;
$this->length = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
$this->album_title = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
$this->genre = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
$this->comments = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
$this->year = ($row[$startcol + 21] !== null) ? (string) $row[$startcol + 21] : null;
$this->track_number = ($row[$startcol + 22] !== null) ? (int) $row[$startcol + 22] : null;
$this->channels = ($row[$startcol + 23] !== null) ? (int) $row[$startcol + 23] : null;
$this->url = ($row[$startcol + 24] !== null) ? (string) $row[$startcol + 24] : null;
$this->bpm = ($row[$startcol + 25] !== null) ? (string) $row[$startcol + 25] : null;
$this->rating = ($row[$startcol + 26] !== null) ? (string) $row[$startcol + 26] : null;
$this->encoded_by = ($row[$startcol + 27] !== null) ? (string) $row[$startcol + 27] : null;
$this->disc_number = ($row[$startcol + 28] !== null) ? (string) $row[$startcol + 28] : null;
$this->mood = ($row[$startcol + 29] !== null) ? (string) $row[$startcol + 29] : null;
$this->label = ($row[$startcol + 30] !== null) ? (string) $row[$startcol + 30] : null;
$this->composer = ($row[$startcol + 31] !== null) ? (string) $row[$startcol + 31] : null;
$this->encoder = ($row[$startcol + 32] !== null) ? (string) $row[$startcol + 32] : null;
$this->checksum = ($row[$startcol + 33] !== null) ? (string) $row[$startcol + 33] : null;
$this->lyrics = ($row[$startcol + 34] !== null) ? (string) $row[$startcol + 34] : null;
$this->orchestra = ($row[$startcol + 35] !== null) ? (string) $row[$startcol + 35] : null;
$this->conductor = ($row[$startcol + 36] !== null) ? (string) $row[$startcol + 36] : null;
$this->lyricist = ($row[$startcol + 37] !== null) ? (string) $row[$startcol + 37] : null;
$this->original_lyricist = ($row[$startcol + 38] !== null) ? (string) $row[$startcol + 38] : null;
$this->radio_station_name = ($row[$startcol + 39] !== null) ? (string) $row[$startcol + 39] : null;
$this->info_url = ($row[$startcol + 40] !== null) ? (string) $row[$startcol + 40] : null;
$this->artist_url = ($row[$startcol + 41] !== null) ? (string) $row[$startcol + 41] : null;
$this->audio_source_url = ($row[$startcol + 42] !== null) ? (string) $row[$startcol + 42] : null;
$this->radio_station_url = ($row[$startcol + 43] !== null) ? (string) $row[$startcol + 43] : null;
$this->buy_this_url = ($row[$startcol + 44] !== null) ? (string) $row[$startcol + 44] : null;
$this->isrc_number = ($row[$startcol + 45] !== null) ? (string) $row[$startcol + 45] : null;
$this->catalog_number = ($row[$startcol + 46] !== null) ? (string) $row[$startcol + 46] : null;
$this->original_artist = ($row[$startcol + 47] !== null) ? (string) $row[$startcol + 47] : null;
$this->copyright = ($row[$startcol + 48] !== null) ? (string) $row[$startcol + 48] : null;
$this->report_datetime = ($row[$startcol + 49] !== null) ? (string) $row[$startcol + 49] : null;
$this->report_location = ($row[$startcol + 50] !== null) ? (string) $row[$startcol + 50] : null;
$this->report_organization = ($row[$startcol + 51] !== null) ? (string) $row[$startcol + 51] : null;
$this->subject = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
$this->contributor = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
$this->language = ($row[$startcol + 54] !== null) ? (string) $row[$startcol + 54] : null;
$this->soundcloud_id = ($row[$startcol + 55] !== null) ? (int) $row[$startcol + 55] : null;
$this->soundcloud_error_code = ($row[$startcol + 56] !== null) ? (int) $row[$startcol + 56] : null;
$this->soundcloud_error_msg = ($row[$startcol + 57] !== null) ? (string) $row[$startcol + 57] : null;
$this->soundcloud_link_to_file = ($row[$startcol + 58] !== null) ? (string) $row[$startcol + 58] : null;
$this->utime = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
$this->lptime = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
$this->md5 = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
$this->track_title = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
$this->artist_name = ($row[$startcol + 15] !== null) ? (string) $row[$startcol + 15] : null;
$this->bit_rate = ($row[$startcol + 16] !== null) ? (string) $row[$startcol + 16] : null;
$this->sample_rate = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
$this->format = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
$this->length = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
$this->album_title = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
$this->genre = ($row[$startcol + 21] !== null) ? (string) $row[$startcol + 21] : null;
$this->comments = ($row[$startcol + 22] !== null) ? (string) $row[$startcol + 22] : null;
$this->year = ($row[$startcol + 23] !== null) ? (string) $row[$startcol + 23] : null;
$this->track_number = ($row[$startcol + 24] !== null) ? (int) $row[$startcol + 24] : null;
$this->channels = ($row[$startcol + 25] !== null) ? (int) $row[$startcol + 25] : null;
$this->url = ($row[$startcol + 26] !== null) ? (string) $row[$startcol + 26] : null;
$this->bpm = ($row[$startcol + 27] !== null) ? (string) $row[$startcol + 27] : null;
$this->rating = ($row[$startcol + 28] !== null) ? (string) $row[$startcol + 28] : null;
$this->encoded_by = ($row[$startcol + 29] !== null) ? (string) $row[$startcol + 29] : null;
$this->disc_number = ($row[$startcol + 30] !== null) ? (string) $row[$startcol + 30] : null;
$this->mood = ($row[$startcol + 31] !== null) ? (string) $row[$startcol + 31] : null;
$this->label = ($row[$startcol + 32] !== null) ? (string) $row[$startcol + 32] : null;
$this->composer = ($row[$startcol + 33] !== null) ? (string) $row[$startcol + 33] : null;
$this->encoder = ($row[$startcol + 34] !== null) ? (string) $row[$startcol + 34] : null;
$this->checksum = ($row[$startcol + 35] !== null) ? (string) $row[$startcol + 35] : null;
$this->lyrics = ($row[$startcol + 36] !== null) ? (string) $row[$startcol + 36] : null;
$this->orchestra = ($row[$startcol + 37] !== null) ? (string) $row[$startcol + 37] : null;
$this->conductor = ($row[$startcol + 38] !== null) ? (string) $row[$startcol + 38] : null;
$this->lyricist = ($row[$startcol + 39] !== null) ? (string) $row[$startcol + 39] : null;
$this->original_lyricist = ($row[$startcol + 40] !== null) ? (string) $row[$startcol + 40] : null;
$this->radio_station_name = ($row[$startcol + 41] !== null) ? (string) $row[$startcol + 41] : null;
$this->info_url = ($row[$startcol + 42] !== null) ? (string) $row[$startcol + 42] : null;
$this->artist_url = ($row[$startcol + 43] !== null) ? (string) $row[$startcol + 43] : null;
$this->audio_source_url = ($row[$startcol + 44] !== null) ? (string) $row[$startcol + 44] : null;
$this->radio_station_url = ($row[$startcol + 45] !== null) ? (string) $row[$startcol + 45] : null;
$this->buy_this_url = ($row[$startcol + 46] !== null) ? (string) $row[$startcol + 46] : null;
$this->isrc_number = ($row[$startcol + 47] !== null) ? (string) $row[$startcol + 47] : null;
$this->catalog_number = ($row[$startcol + 48] !== null) ? (string) $row[$startcol + 48] : null;
$this->original_artist = ($row[$startcol + 49] !== null) ? (string) $row[$startcol + 49] : null;
$this->copyright = ($row[$startcol + 50] !== null) ? (string) $row[$startcol + 50] : null;
$this->report_datetime = ($row[$startcol + 51] !== null) ? (string) $row[$startcol + 51] : null;
$this->report_location = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
$this->report_organization = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
$this->subject = ($row[$startcol + 54] !== null) ? (string) $row[$startcol + 54] : null;
$this->contributor = ($row[$startcol + 55] !== null) ? (string) $row[$startcol + 55] : null;
$this->language = ($row[$startcol + 56] !== null) ? (string) $row[$startcol + 56] : null;
$this->soundcloud_id = ($row[$startcol + 57] !== null) ? (int) $row[$startcol + 57] : null;
$this->soundcloud_error_code = ($row[$startcol + 58] !== null) ? (int) $row[$startcol + 58] : null;
$this->soundcloud_error_msg = ($row[$startcol + 59] !== null) ? (string) $row[$startcol + 59] : null;
$this->soundcloud_link_to_file = ($row[$startcol + 60] !== null) ? (string) $row[$startcol + 60] : null;
$this->resetModified();
$this->setNew(false);
@ -2454,7 +2632,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->ensureConsistency();
}
return $startcol + 59; // 59 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 61; // 61 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating CcFiles object", $e);
@ -2886,147 +3064,153 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->getDbMtime();
break;
case 11:
return $this->getDbMd5();
return $this->getDbUtime();
break;
case 12:
return $this->getDbTrackTitle();
return $this->getDbLPtime();
break;
case 13:
return $this->getDbArtistName();
return $this->getDbMd5();
break;
case 14:
return $this->getDbBitRate();
return $this->getDbTrackTitle();
break;
case 15:
return $this->getDbSampleRate();
return $this->getDbArtistName();
break;
case 16:
return $this->getDbFormat();
return $this->getDbBitRate();
break;
case 17:
return $this->getDbLength();
return $this->getDbSampleRate();
break;
case 18:
return $this->getDbAlbumTitle();
return $this->getDbFormat();
break;
case 19:
return $this->getDbGenre();
return $this->getDbLength();
break;
case 20:
return $this->getDbComments();
return $this->getDbAlbumTitle();
break;
case 21:
return $this->getDbYear();
return $this->getDbGenre();
break;
case 22:
return $this->getDbTrackNumber();
return $this->getDbComments();
break;
case 23:
return $this->getDbChannels();
return $this->getDbYear();
break;
case 24:
return $this->getDbUrl();
return $this->getDbTrackNumber();
break;
case 25:
return $this->getDbBpm();
return $this->getDbChannels();
break;
case 26:
return $this->getDbRating();
return $this->getDbUrl();
break;
case 27:
return $this->getDbEncodedBy();
return $this->getDbBpm();
break;
case 28:
return $this->getDbDiscNumber();
return $this->getDbRating();
break;
case 29:
return $this->getDbMood();
return $this->getDbEncodedBy();
break;
case 30:
return $this->getDbLabel();
return $this->getDbDiscNumber();
break;
case 31:
return $this->getDbComposer();
return $this->getDbMood();
break;
case 32:
return $this->getDbEncoder();
return $this->getDbLabel();
break;
case 33:
return $this->getDbChecksum();
return $this->getDbComposer();
break;
case 34:
return $this->getDbLyrics();
return $this->getDbEncoder();
break;
case 35:
return $this->getDbOrchestra();
return $this->getDbChecksum();
break;
case 36:
return $this->getDbConductor();
return $this->getDbLyrics();
break;
case 37:
return $this->getDbLyricist();
return $this->getDbOrchestra();
break;
case 38:
return $this->getDbOriginalLyricist();
return $this->getDbConductor();
break;
case 39:
return $this->getDbRadioStationName();
return $this->getDbLyricist();
break;
case 40:
return $this->getDbInfoUrl();
return $this->getDbOriginalLyricist();
break;
case 41:
return $this->getDbArtistUrl();
return $this->getDbRadioStationName();
break;
case 42:
return $this->getDbAudioSourceUrl();
return $this->getDbInfoUrl();
break;
case 43:
return $this->getDbRadioStationUrl();
return $this->getDbArtistUrl();
break;
case 44:
return $this->getDbBuyThisUrl();
return $this->getDbAudioSourceUrl();
break;
case 45:
return $this->getDbIsrcNumber();
return $this->getDbRadioStationUrl();
break;
case 46:
return $this->getDbCatalogNumber();
return $this->getDbBuyThisUrl();
break;
case 47:
return $this->getDbOriginalArtist();
return $this->getDbIsrcNumber();
break;
case 48:
return $this->getDbCopyright();
return $this->getDbCatalogNumber();
break;
case 49:
return $this->getDbReportDatetime();
return $this->getDbOriginalArtist();
break;
case 50:
return $this->getDbReportLocation();
return $this->getDbCopyright();
break;
case 51:
return $this->getDbReportOrganization();
return $this->getDbReportDatetime();
break;
case 52:
return $this->getDbSubject();
return $this->getDbReportLocation();
break;
case 53:
return $this->getDbContributor();
return $this->getDbReportOrganization();
break;
case 54:
return $this->getDbLanguage();
return $this->getDbSubject();
break;
case 55:
return $this->getDbSoundcloudId();
return $this->getDbContributor();
break;
case 56:
return $this->getDbSoundcloudErrorCode();
return $this->getDbLanguage();
break;
case 57:
return $this->getDbSoundcloudErrorMsg();
return $this->getDbSoundcloudId();
break;
case 58:
return $this->getDbSoundcloudErrorCode();
break;
case 59:
return $this->getDbSoundcloudErrorMsg();
break;
case 60:
return $this->getDbSoundcloudLinkToFile();
break;
default:
@ -3064,54 +3248,56 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$keys[8] => $this->getDbCurrentlyaccessing(),
$keys[9] => $this->getDbEditedby(),
$keys[10] => $this->getDbMtime(),
$keys[11] => $this->getDbMd5(),
$keys[12] => $this->getDbTrackTitle(),
$keys[13] => $this->getDbArtistName(),
$keys[14] => $this->getDbBitRate(),
$keys[15] => $this->getDbSampleRate(),
$keys[16] => $this->getDbFormat(),
$keys[17] => $this->getDbLength(),
$keys[18] => $this->getDbAlbumTitle(),
$keys[19] => $this->getDbGenre(),
$keys[20] => $this->getDbComments(),
$keys[21] => $this->getDbYear(),
$keys[22] => $this->getDbTrackNumber(),
$keys[23] => $this->getDbChannels(),
$keys[24] => $this->getDbUrl(),
$keys[25] => $this->getDbBpm(),
$keys[26] => $this->getDbRating(),
$keys[27] => $this->getDbEncodedBy(),
$keys[28] => $this->getDbDiscNumber(),
$keys[29] => $this->getDbMood(),
$keys[30] => $this->getDbLabel(),
$keys[31] => $this->getDbComposer(),
$keys[32] => $this->getDbEncoder(),
$keys[33] => $this->getDbChecksum(),
$keys[34] => $this->getDbLyrics(),
$keys[35] => $this->getDbOrchestra(),
$keys[36] => $this->getDbConductor(),
$keys[37] => $this->getDbLyricist(),
$keys[38] => $this->getDbOriginalLyricist(),
$keys[39] => $this->getDbRadioStationName(),
$keys[40] => $this->getDbInfoUrl(),
$keys[41] => $this->getDbArtistUrl(),
$keys[42] => $this->getDbAudioSourceUrl(),
$keys[43] => $this->getDbRadioStationUrl(),
$keys[44] => $this->getDbBuyThisUrl(),
$keys[45] => $this->getDbIsrcNumber(),
$keys[46] => $this->getDbCatalogNumber(),
$keys[47] => $this->getDbOriginalArtist(),
$keys[48] => $this->getDbCopyright(),
$keys[49] => $this->getDbReportDatetime(),
$keys[50] => $this->getDbReportLocation(),
$keys[51] => $this->getDbReportOrganization(),
$keys[52] => $this->getDbSubject(),
$keys[53] => $this->getDbContributor(),
$keys[54] => $this->getDbLanguage(),
$keys[55] => $this->getDbSoundcloudId(),
$keys[56] => $this->getDbSoundcloudErrorCode(),
$keys[57] => $this->getDbSoundcloudErrorMsg(),
$keys[58] => $this->getDbSoundcloudLinkToFile(),
$keys[11] => $this->getDbUtime(),
$keys[12] => $this->getDbLPtime(),
$keys[13] => $this->getDbMd5(),
$keys[14] => $this->getDbTrackTitle(),
$keys[15] => $this->getDbArtistName(),
$keys[16] => $this->getDbBitRate(),
$keys[17] => $this->getDbSampleRate(),
$keys[18] => $this->getDbFormat(),
$keys[19] => $this->getDbLength(),
$keys[20] => $this->getDbAlbumTitle(),
$keys[21] => $this->getDbGenre(),
$keys[22] => $this->getDbComments(),
$keys[23] => $this->getDbYear(),
$keys[24] => $this->getDbTrackNumber(),
$keys[25] => $this->getDbChannels(),
$keys[26] => $this->getDbUrl(),
$keys[27] => $this->getDbBpm(),
$keys[28] => $this->getDbRating(),
$keys[29] => $this->getDbEncodedBy(),
$keys[30] => $this->getDbDiscNumber(),
$keys[31] => $this->getDbMood(),
$keys[32] => $this->getDbLabel(),
$keys[33] => $this->getDbComposer(),
$keys[34] => $this->getDbEncoder(),
$keys[35] => $this->getDbChecksum(),
$keys[36] => $this->getDbLyrics(),
$keys[37] => $this->getDbOrchestra(),
$keys[38] => $this->getDbConductor(),
$keys[39] => $this->getDbLyricist(),
$keys[40] => $this->getDbOriginalLyricist(),
$keys[41] => $this->getDbRadioStationName(),
$keys[42] => $this->getDbInfoUrl(),
$keys[43] => $this->getDbArtistUrl(),
$keys[44] => $this->getDbAudioSourceUrl(),
$keys[45] => $this->getDbRadioStationUrl(),
$keys[46] => $this->getDbBuyThisUrl(),
$keys[47] => $this->getDbIsrcNumber(),
$keys[48] => $this->getDbCatalogNumber(),
$keys[49] => $this->getDbOriginalArtist(),
$keys[50] => $this->getDbCopyright(),
$keys[51] => $this->getDbReportDatetime(),
$keys[52] => $this->getDbReportLocation(),
$keys[53] => $this->getDbReportOrganization(),
$keys[54] => $this->getDbSubject(),
$keys[55] => $this->getDbContributor(),
$keys[56] => $this->getDbLanguage(),
$keys[57] => $this->getDbSoundcloudId(),
$keys[58] => $this->getDbSoundcloudErrorCode(),
$keys[59] => $this->getDbSoundcloudErrorMsg(),
$keys[60] => $this->getDbSoundcloudLinkToFile(),
);
if ($includeForeignObjects) {
if (null !== $this->aCcSubjs) {
@ -3185,147 +3371,153 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->setDbMtime($value);
break;
case 11:
$this->setDbMd5($value);
$this->setDbUtime($value);
break;
case 12:
$this->setDbTrackTitle($value);
$this->setDbLPtime($value);
break;
case 13:
$this->setDbArtistName($value);
$this->setDbMd5($value);
break;
case 14:
$this->setDbBitRate($value);
$this->setDbTrackTitle($value);
break;
case 15:
$this->setDbSampleRate($value);
$this->setDbArtistName($value);
break;
case 16:
$this->setDbFormat($value);
$this->setDbBitRate($value);
break;
case 17:
$this->setDbLength($value);
$this->setDbSampleRate($value);
break;
case 18:
$this->setDbAlbumTitle($value);
$this->setDbFormat($value);
break;
case 19:
$this->setDbGenre($value);
$this->setDbLength($value);
break;
case 20:
$this->setDbComments($value);
$this->setDbAlbumTitle($value);
break;
case 21:
$this->setDbYear($value);
$this->setDbGenre($value);
break;
case 22:
$this->setDbTrackNumber($value);
$this->setDbComments($value);
break;
case 23:
$this->setDbChannels($value);
$this->setDbYear($value);
break;
case 24:
$this->setDbUrl($value);
$this->setDbTrackNumber($value);
break;
case 25:
$this->setDbBpm($value);
$this->setDbChannels($value);
break;
case 26:
$this->setDbRating($value);
$this->setDbUrl($value);
break;
case 27:
$this->setDbEncodedBy($value);
$this->setDbBpm($value);
break;
case 28:
$this->setDbDiscNumber($value);
$this->setDbRating($value);
break;
case 29:
$this->setDbMood($value);
$this->setDbEncodedBy($value);
break;
case 30:
$this->setDbLabel($value);
$this->setDbDiscNumber($value);
break;
case 31:
$this->setDbComposer($value);
$this->setDbMood($value);
break;
case 32:
$this->setDbEncoder($value);
$this->setDbLabel($value);
break;
case 33:
$this->setDbChecksum($value);
$this->setDbComposer($value);
break;
case 34:
$this->setDbLyrics($value);
$this->setDbEncoder($value);
break;
case 35:
$this->setDbOrchestra($value);
$this->setDbChecksum($value);
break;
case 36:
$this->setDbConductor($value);
$this->setDbLyrics($value);
break;
case 37:
$this->setDbLyricist($value);
$this->setDbOrchestra($value);
break;
case 38:
$this->setDbOriginalLyricist($value);
$this->setDbConductor($value);
break;
case 39:
$this->setDbRadioStationName($value);
$this->setDbLyricist($value);
break;
case 40:
$this->setDbInfoUrl($value);
$this->setDbOriginalLyricist($value);
break;
case 41:
$this->setDbArtistUrl($value);
$this->setDbRadioStationName($value);
break;
case 42:
$this->setDbAudioSourceUrl($value);
$this->setDbInfoUrl($value);
break;
case 43:
$this->setDbRadioStationUrl($value);
$this->setDbArtistUrl($value);
break;
case 44:
$this->setDbBuyThisUrl($value);
$this->setDbAudioSourceUrl($value);
break;
case 45:
$this->setDbIsrcNumber($value);
$this->setDbRadioStationUrl($value);
break;
case 46:
$this->setDbCatalogNumber($value);
$this->setDbBuyThisUrl($value);
break;
case 47:
$this->setDbOriginalArtist($value);
$this->setDbIsrcNumber($value);
break;
case 48:
$this->setDbCopyright($value);
$this->setDbCatalogNumber($value);
break;
case 49:
$this->setDbReportDatetime($value);
$this->setDbOriginalArtist($value);
break;
case 50:
$this->setDbReportLocation($value);
$this->setDbCopyright($value);
break;
case 51:
$this->setDbReportOrganization($value);
$this->setDbReportDatetime($value);
break;
case 52:
$this->setDbSubject($value);
$this->setDbReportLocation($value);
break;
case 53:
$this->setDbContributor($value);
$this->setDbReportOrganization($value);
break;
case 54:
$this->setDbLanguage($value);
$this->setDbSubject($value);
break;
case 55:
$this->setDbSoundcloudId($value);
$this->setDbContributor($value);
break;
case 56:
$this->setDbSoundcloudErrorCode($value);
$this->setDbLanguage($value);
break;
case 57:
$this->setDbSoundcloudErrorMsg($value);
$this->setDbSoundcloudId($value);
break;
case 58:
$this->setDbSoundcloudErrorCode($value);
break;
case 59:
$this->setDbSoundcloudErrorMsg($value);
break;
case 60:
$this->setDbSoundcloudLinkToFile($value);
break;
} // switch()
@ -3363,54 +3555,56 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
if (array_key_exists($keys[8], $arr)) $this->setDbCurrentlyaccessing($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setDbEditedby($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setDbMtime($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setDbMd5($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbTrackTitle($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDbArtistName($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setDbBitRate($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setDbSampleRate($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setDbFormat($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setDbLength($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setDbAlbumTitle($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setDbGenre($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setDbComments($arr[$keys[20]]);
if (array_key_exists($keys[21], $arr)) $this->setDbYear($arr[$keys[21]]);
if (array_key_exists($keys[22], $arr)) $this->setDbTrackNumber($arr[$keys[22]]);
if (array_key_exists($keys[23], $arr)) $this->setDbChannels($arr[$keys[23]]);
if (array_key_exists($keys[24], $arr)) $this->setDbUrl($arr[$keys[24]]);
if (array_key_exists($keys[25], $arr)) $this->setDbBpm($arr[$keys[25]]);
if (array_key_exists($keys[26], $arr)) $this->setDbRating($arr[$keys[26]]);
if (array_key_exists($keys[27], $arr)) $this->setDbEncodedBy($arr[$keys[27]]);
if (array_key_exists($keys[28], $arr)) $this->setDbDiscNumber($arr[$keys[28]]);
if (array_key_exists($keys[29], $arr)) $this->setDbMood($arr[$keys[29]]);
if (array_key_exists($keys[30], $arr)) $this->setDbLabel($arr[$keys[30]]);
if (array_key_exists($keys[31], $arr)) $this->setDbComposer($arr[$keys[31]]);
if (array_key_exists($keys[32], $arr)) $this->setDbEncoder($arr[$keys[32]]);
if (array_key_exists($keys[33], $arr)) $this->setDbChecksum($arr[$keys[33]]);
if (array_key_exists($keys[34], $arr)) $this->setDbLyrics($arr[$keys[34]]);
if (array_key_exists($keys[35], $arr)) $this->setDbOrchestra($arr[$keys[35]]);
if (array_key_exists($keys[36], $arr)) $this->setDbConductor($arr[$keys[36]]);
if (array_key_exists($keys[37], $arr)) $this->setDbLyricist($arr[$keys[37]]);
if (array_key_exists($keys[38], $arr)) $this->setDbOriginalLyricist($arr[$keys[38]]);
if (array_key_exists($keys[39], $arr)) $this->setDbRadioStationName($arr[$keys[39]]);
if (array_key_exists($keys[40], $arr)) $this->setDbInfoUrl($arr[$keys[40]]);
if (array_key_exists($keys[41], $arr)) $this->setDbArtistUrl($arr[$keys[41]]);
if (array_key_exists($keys[42], $arr)) $this->setDbAudioSourceUrl($arr[$keys[42]]);
if (array_key_exists($keys[43], $arr)) $this->setDbRadioStationUrl($arr[$keys[43]]);
if (array_key_exists($keys[44], $arr)) $this->setDbBuyThisUrl($arr[$keys[44]]);
if (array_key_exists($keys[45], $arr)) $this->setDbIsrcNumber($arr[$keys[45]]);
if (array_key_exists($keys[46], $arr)) $this->setDbCatalogNumber($arr[$keys[46]]);
if (array_key_exists($keys[47], $arr)) $this->setDbOriginalArtist($arr[$keys[47]]);
if (array_key_exists($keys[48], $arr)) $this->setDbCopyright($arr[$keys[48]]);
if (array_key_exists($keys[49], $arr)) $this->setDbReportDatetime($arr[$keys[49]]);
if (array_key_exists($keys[50], $arr)) $this->setDbReportLocation($arr[$keys[50]]);
if (array_key_exists($keys[51], $arr)) $this->setDbReportOrganization($arr[$keys[51]]);
if (array_key_exists($keys[52], $arr)) $this->setDbSubject($arr[$keys[52]]);
if (array_key_exists($keys[53], $arr)) $this->setDbContributor($arr[$keys[53]]);
if (array_key_exists($keys[54], $arr)) $this->setDbLanguage($arr[$keys[54]]);
if (array_key_exists($keys[55], $arr)) $this->setDbSoundcloudId($arr[$keys[55]]);
if (array_key_exists($keys[56], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[56]]);
if (array_key_exists($keys[57], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[57]]);
if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[58]]);
if (array_key_exists($keys[11], $arr)) $this->setDbUtime($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbLPtime($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDbMd5($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setDbTrackTitle($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setDbArtistName($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setDbBitRate($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setDbSampleRate($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setDbFormat($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setDbLength($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setDbAlbumTitle($arr[$keys[20]]);
if (array_key_exists($keys[21], $arr)) $this->setDbGenre($arr[$keys[21]]);
if (array_key_exists($keys[22], $arr)) $this->setDbComments($arr[$keys[22]]);
if (array_key_exists($keys[23], $arr)) $this->setDbYear($arr[$keys[23]]);
if (array_key_exists($keys[24], $arr)) $this->setDbTrackNumber($arr[$keys[24]]);
if (array_key_exists($keys[25], $arr)) $this->setDbChannels($arr[$keys[25]]);
if (array_key_exists($keys[26], $arr)) $this->setDbUrl($arr[$keys[26]]);
if (array_key_exists($keys[27], $arr)) $this->setDbBpm($arr[$keys[27]]);
if (array_key_exists($keys[28], $arr)) $this->setDbRating($arr[$keys[28]]);
if (array_key_exists($keys[29], $arr)) $this->setDbEncodedBy($arr[$keys[29]]);
if (array_key_exists($keys[30], $arr)) $this->setDbDiscNumber($arr[$keys[30]]);
if (array_key_exists($keys[31], $arr)) $this->setDbMood($arr[$keys[31]]);
if (array_key_exists($keys[32], $arr)) $this->setDbLabel($arr[$keys[32]]);
if (array_key_exists($keys[33], $arr)) $this->setDbComposer($arr[$keys[33]]);
if (array_key_exists($keys[34], $arr)) $this->setDbEncoder($arr[$keys[34]]);
if (array_key_exists($keys[35], $arr)) $this->setDbChecksum($arr[$keys[35]]);
if (array_key_exists($keys[36], $arr)) $this->setDbLyrics($arr[$keys[36]]);
if (array_key_exists($keys[37], $arr)) $this->setDbOrchestra($arr[$keys[37]]);
if (array_key_exists($keys[38], $arr)) $this->setDbConductor($arr[$keys[38]]);
if (array_key_exists($keys[39], $arr)) $this->setDbLyricist($arr[$keys[39]]);
if (array_key_exists($keys[40], $arr)) $this->setDbOriginalLyricist($arr[$keys[40]]);
if (array_key_exists($keys[41], $arr)) $this->setDbRadioStationName($arr[$keys[41]]);
if (array_key_exists($keys[42], $arr)) $this->setDbInfoUrl($arr[$keys[42]]);
if (array_key_exists($keys[43], $arr)) $this->setDbArtistUrl($arr[$keys[43]]);
if (array_key_exists($keys[44], $arr)) $this->setDbAudioSourceUrl($arr[$keys[44]]);
if (array_key_exists($keys[45], $arr)) $this->setDbRadioStationUrl($arr[$keys[45]]);
if (array_key_exists($keys[46], $arr)) $this->setDbBuyThisUrl($arr[$keys[46]]);
if (array_key_exists($keys[47], $arr)) $this->setDbIsrcNumber($arr[$keys[47]]);
if (array_key_exists($keys[48], $arr)) $this->setDbCatalogNumber($arr[$keys[48]]);
if (array_key_exists($keys[49], $arr)) $this->setDbOriginalArtist($arr[$keys[49]]);
if (array_key_exists($keys[50], $arr)) $this->setDbCopyright($arr[$keys[50]]);
if (array_key_exists($keys[51], $arr)) $this->setDbReportDatetime($arr[$keys[51]]);
if (array_key_exists($keys[52], $arr)) $this->setDbReportLocation($arr[$keys[52]]);
if (array_key_exists($keys[53], $arr)) $this->setDbReportOrganization($arr[$keys[53]]);
if (array_key_exists($keys[54], $arr)) $this->setDbSubject($arr[$keys[54]]);
if (array_key_exists($keys[55], $arr)) $this->setDbContributor($arr[$keys[55]]);
if (array_key_exists($keys[56], $arr)) $this->setDbLanguage($arr[$keys[56]]);
if (array_key_exists($keys[57], $arr)) $this->setDbSoundcloudId($arr[$keys[57]]);
if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[58]]);
if (array_key_exists($keys[59], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[59]]);
if (array_key_exists($keys[60], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[60]]);
}
/**
@ -3433,6 +3627,8 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
if ($this->isColumnModified(CcFilesPeer::CURRENTLYACCESSING)) $criteria->add(CcFilesPeer::CURRENTLYACCESSING, $this->currentlyaccessing);
if ($this->isColumnModified(CcFilesPeer::EDITEDBY)) $criteria->add(CcFilesPeer::EDITEDBY, $this->editedby);
if ($this->isColumnModified(CcFilesPeer::MTIME)) $criteria->add(CcFilesPeer::MTIME, $this->mtime);
if ($this->isColumnModified(CcFilesPeer::UTIME)) $criteria->add(CcFilesPeer::UTIME, $this->utime);
if ($this->isColumnModified(CcFilesPeer::LPTIME)) $criteria->add(CcFilesPeer::LPTIME, $this->lptime);
if ($this->isColumnModified(CcFilesPeer::MD5)) $criteria->add(CcFilesPeer::MD5, $this->md5);
if ($this->isColumnModified(CcFilesPeer::TRACK_TITLE)) $criteria->add(CcFilesPeer::TRACK_TITLE, $this->track_title);
if ($this->isColumnModified(CcFilesPeer::ARTIST_NAME)) $criteria->add(CcFilesPeer::ARTIST_NAME, $this->artist_name);
@ -3552,6 +3748,8 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$copyObj->setDbCurrentlyaccessing($this->currentlyaccessing);
$copyObj->setDbEditedby($this->editedby);
$copyObj->setDbMtime($this->mtime);
$copyObj->setDbUtime($this->utime);
$copyObj->setDbLPtime($this->lptime);
$copyObj->setDbMd5($this->md5);
$copyObj->setDbTrackTitle($this->track_title);
$copyObj->setDbArtistName($this->artist_name);
@ -4210,6 +4408,8 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->currentlyaccessing = null;
$this->editedby = null;
$this->mtime = null;
$this->utime = null;
$this->lptime = null;
$this->md5 = null;
$this->track_title = null;
$this->artist_name = null;