-remove cc_access table and gunid usage

This commit is contained in:
Martin Konecny 2012-07-22 16:12:34 -04:00
parent b283b5b55e
commit 3735579378
16 changed files with 383 additions and 790 deletions

View File

@ -1,13 +1,6 @@
<?php
// This file generated by Propel 1.5.2 convert-conf target
return array (
'CcAccessTableMap' => 'airtime/map/CcAccessTableMap.php',
'CcAccessPeer' => 'airtime/CcAccessPeer.php',
'CcAccess' => 'airtime/CcAccess.php',
'CcAccessQuery' => 'airtime/CcAccessQuery.php',
'BaseCcAccessPeer' => 'airtime/om/BaseCcAccessPeer.php',
'BaseCcAccess' => 'airtime/om/BaseCcAccess.php',
'BaseCcAccessQuery' => 'airtime/om/BaseCcAccessQuery.php',
'CcMusicDirsTableMap' => 'airtime/map/CcMusicDirsTableMap.php',
'CcMusicDirsPeer' => 'airtime/CcMusicDirsPeer.php',
'CcMusicDirs' => 'airtime/CcMusicDirs.php',

View File

@ -113,54 +113,51 @@ class ApiController extends Zend_Controller_Action
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$fileID = $this->_getParam("file");
$file_id = substr($fileID, 0, strpos($fileID, "."));
$fileId = $this->_getParam("file");
if (ctype_alnum($file_id) && strlen($file_id) == 32) {
$media = Application_Model_StoredFile::RecallByGunid($file_id);
if ($media != null) {
$media = Application_Model_StoredFile::Recall($fileId);
if ($media != null) {
$filepath = $media->getFilePath();
if (is_file($filepath)) {
$full_path = $media->getPropelOrm()->getDbFilepath();
$filepath = $media->getFilePath();
if (is_file($filepath)) {
$full_path = $media->getPropelOrm()->getDbFilepath();
$file_base_name = strrchr($full_path, '/');
/* If $full_path does not contain a '/', strrchr will return false,
* in which case we can use $full_path as the base name.
*/
if (!$file_base_name) {
$file_base_name = $full_path;
} else {
$file_base_name = substr($file_base_name, 1);
}
// possibly use fileinfo module here in the future.
// http://www.php.net/manual/en/book.fileinfo.php
$ext = pathinfo($fileID, PATHINFO_EXTENSION);
//Download user left clicks a track and selects Download.
if ("true" == $this->_getParam('download')) {
//path_info breaks up a file path into seperate pieces of informaiton.
//We just want the basename which is the file name with the path
//information stripped away. We are using Content-Disposition to specify
//to the browser what name the file should be saved as.
//
// By james.moon:
// I'm removing pathinfo() since it strips away UTF-8 characters.
// Using manualy parsing
header('Content-Disposition: attachment; filename="'.$file_base_name.'"');
} else {
//user clicks play button for track and downloads it.
header('Content-Disposition: inline; filename="'.$file_base_name.'"');
}
if (strtolower($ext) === 'mp3') {
$this->smartReadFile($filepath, 'audio/mpeg');
} else {
$this->smartReadFile($filepath, 'audio/'.$ext);
}
exit;
$file_base_name = strrchr($full_path, '/');
/* If $full_path does not contain a '/', strrchr will return false,
* in which case we can use $full_path as the base name.
*/
if (!$file_base_name) {
$file_base_name = $full_path;
} else {
header ("HTTP/1.1 404 Not Found");
$file_base_name = substr($file_base_name, 1);
}
// possibly use fileinfo module here in the future.
// http://www.php.net/manual/en/book.fileinfo.php
$ext = pathinfo($file_base_name, PATHINFO_EXTENSION);
//Download user left clicks a track and selects Download.
if ("true" == $this->_getParam('download')) {
//path_info breaks up a file path into seperate pieces of informaiton.
//We just want the basename which is the file name with the path
//information stripped away. We are using Content-Disposition to specify
//to the browser what name the file should be saved as.
//
// By james.moon:
// I'm removing pathinfo() since it strips away UTF-8 characters.
// Using manualy parsing
header('Content-Disposition: attachment; filename="'.$file_base_name.'"');
} else {
//user clicks play button for track and downloads it.
header('Content-Disposition: inline; filename="'.$file_base_name.'"');
}
if (strtolower($ext) === 'mp3') {
$this->smartReadFile($filepath, 'audio/mpeg');
} else {
$this->smartReadFile($filepath, 'audio/'.$ext);
}
exit;
} else {
header ("HTTP/1.1 404 Not Found");
}
}

View File

@ -99,18 +99,18 @@ class AudiopreviewController extends Zend_Controller_Action
$pl = new Application_Model_Playlist($playlistID);
$result = Array();
foreach ( $pl->getContents(true) as $track ) {
foreach ($pl->getContents(true) as $track) {
$elementMap = array( 'element_title' => isset($track['track_title'])?$track['track_title']:"",
'element_artist' => isset($track['artist_name'])?$track['artist_name']:"",
'element_id' => isset($track['id'])?$track['id']:"",
'element_position' => isset($track['position'])?$track['position']:"",
);
$fileExtension = pathinfo($track['filepath'], PATHINFO_EXTENSION);
$fileExtension = pathinfo($track['path'], PATHINFO_EXTENSION);
if (strtolower($fileExtension) === 'mp3') {
$elementMap['element_mp3'] = $track['gunid'].'.'.$fileExtension;
} elseif (strtolower($fileExtension) === 'ogg') {
$elementMap['element_oga'] = $track['gunid'].'.'.$fileExtension;
$elementMap['element_mp3'] = $track['item_id'];
} else if (strtolower($fileExtension) === 'ogg') {
$elementMap['element_oga'] = $track['item_id'];
} else {
//the media was neither mp3 or ogg
}
@ -183,9 +183,9 @@ class AudiopreviewController extends Zend_Controller_Action
$fileExtension = pathinfo($track['filepath'], PATHINFO_EXTENSION);
if (strtolower($fileExtension) === 'mp3') {
$elementMap['element_mp3'] = $track['gunid'].'.'.$fileExtension;
$elementMap['element_mp3'] = $track['item_id'];
} elseif (strtolower($fileExtension) === 'ogg') {
$elementMap['element_oga'] = $track['gunid'].'.'.$fileExtension;
$elementMap['element_oga'] = $track['item_id'];
} else {
//the media was neither mp3 or ogg
}

View File

@ -173,35 +173,17 @@ class Application_Model_Playlist
*/
$sql = <<<"EOT"
((SELECT pc.id as id, pc.type, pc.position, pc.cliplength as length, pc.cuein, pc.cueout, pc.fadein, pc.fadeout,
f.track_title, f.artist_name as creator, f.file_exists as exists, f.filepath as path FROM cc_playlistcontents AS pc
f.id as item_id, f.track_title, f.artist_name as creator, f.file_exists as exists, f.filepath as path FROM cc_playlistcontents AS pc
LEFT JOIN cc_files AS f ON pc.file_id=f.id WHERE pc.playlist_id = {$this->id} AND type = 0)
UNION ALL
(SELECT pc.id as id, pc.type, pc.position, pc.cliplength as length, pc.cuein, pc.cueout, pc.fadein, pc.fadeout,
(ws.name || ': ' || ws.url) as title, ws.login as creator, 't'::boolean as exists, ws.url as path FROM cc_playlistcontents AS pc
ws.id as item_id, (ws.name || ': ' || ws.url) as title, ws.login as creator, 't'::boolean as exists, ws.url as path FROM cc_playlistcontents AS pc
LEFT JOIN cc_webstream AS ws on pc.file_id=ws.id WHERE pc.playlist_id = {$this->id} AND type = 1));
EOT;
Logging::debug($sql);
$con = Propel::getConnection();
$rows = $con->query($sql)->fetchAll();
Logging::debug($rows);
/*
#id
#cliplength
#cuein
#cueout
#fadeout
#fadein
gunid
#file_exists
filepath
#track_title
#artist_name
album_title
#length
*/
$offset = 0;
foreach ($rows as &$row) {
Logging::log($row);

View File

@ -604,7 +604,7 @@ class Application_Model_Schedule
$start = Application_Model_Schedule::AirtimeTimeToPypoTime($item["start"]);
$data["media"][$start] = array(
'id' => $storedFile->getGunid(),
'id' => $storedFile->getId(),
'type' => "file",
'row_id' => $item["id"],
'uri' => $uri,

View File

@ -60,11 +60,6 @@ class Application_Model_StoredFile
return $this->_file->getDbId();
}
public function getGunId()
{
return $this->_file->getDbGunid();
}
public function getFormat()
{
return $this->_file->getDbFtype();
@ -441,9 +436,7 @@ class Application_Model_StoredFile
private function constructGetFileUrl($p_serverName, $p_serverPort)
{
Logging::log("getting media! - 2");
return "http://$p_serverName:$p_serverPort/api/get-media/file/".$this->getGunId().".".$this->getFileExtension();
return "http://$p_serverName:$p_serverPort/api/get-media/file/".$this->getId().".".$this->getFileExtension();
}
/**
@ -454,13 +447,12 @@ Logging::log("getting media! - 2");
{
Logging::log("getting media!");
return $baseUrl."/api/get-media/file/".$this->getGunId().".".$this->getFileExtension();
return $baseUrl."/api/get-media/file/".$this->getId().".".$this->getFileExtension();
}
public static function Insert($md=null)
{
$file = new CcFiles();
$file->setDbGunid(md5(uniqid("", true)));
$file->setDbUtime(new DateTime("now", new DateTimeZone("UTC")));
$file->setDbMtime(new DateTime("now", new DateTimeZone("UTC")));
@ -492,7 +484,7 @@ Logging::log("getting media! - 2");
*
* @param int $p_id
* local id
* @param string $p_gunid
* @param string $p_gunid - TODO: Remove this!
* global unique id of file
* @param string $p_md5sum
* MD5 sum of the file
@ -505,10 +497,6 @@ Logging::log("getting media! - 2");
{
if (isset($p_id)) {
$file = CcFilesQuery::create()->findPK(intval($p_id));
} elseif (isset($p_gunid)) {
$file = CcFilesQuery::create()
->filterByDbGunid($p_gunid)
->findOne();
} elseif (isset($p_md5sum)) {
if ($exist) {
$file = CcFilesQuery::create()
@ -553,20 +541,6 @@ Logging::log("getting media! - 2");
return $info['filename'];
}
/**
* Create instance of StoreFile object and recall existing file
* by gunid.
*
* @param string $p_gunid
* global unique id of file
* @return Application_Model_StoredFile|NULL
*/
public static function RecallByGunid($p_gunid)
{
return Application_Model_StoredFile::Recall(null, $p_gunid);
}
/**
* Fetch the Application_Model_StoredFile by looking up the MD5 value.
*
@ -619,7 +593,7 @@ Logging::log("getting media! - 2");
$displayColumns = array("id", "track_title", "artist_name", "album_title", "genre", "length",
"year", "utime", "mtime", "ftype", "track_number", "mood", "bpm", "composer", "info_url",
"bit_rate", "sample_rate", "isrc_number", "encoded_by", "label", "copyright", "mime",
"language", "gunid", "filepath"
"language", "filepath"
);
$plSelect = array();
@ -743,8 +717,10 @@ Logging::log("getting media! - 2");
//datatable stuff really needs to be pulled out and generalized within the project
//access to zend view methods to access url helpers is needed.
if ($type == "au") {//&& isset( $audioResults )) {
$row['audioFile'] = $row['gunid'].".".pathinfo($row['filepath'], PATHINFO_EXTENSION);
if ($type == "au") {
//TODO:
Logging::log("row id: ".$row['id']);
$row['audioFile'] = $row['id'].".".pathinfo($row['filepath'], PATHINFO_EXTENSION);
$row['image'] = '<img title="Track preview" src="/css/images/icon_audioclip.png">';
} else {
$row['image'] = '<img title="Playlist preview" src="/css/images/icon_playlist.png">';

View File

@ -39,7 +39,6 @@ class CcFilesTableMap extends TableMap {
$this->setPrimaryKeyMethodInfo('cc_files_id_seq');
// columns
$this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
$this->addColumn('GUNID', 'DbGunid', 'CHAR', true, 32, null);
$this->addColumn('NAME', 'DbName', 'VARCHAR', true, 255, '');
$this->addColumn('MIME', 'DbMime', 'VARCHAR', true, 255, '');
$this->addColumn('FTYPE', 'DbFtype', 'VARCHAR', true, 128, '');

View File

@ -59,7 +59,6 @@ class CcSubjsTableMap extends TableMap {
*/
public function buildRelations()
{
$this->addRelation('CcAccess', 'CcAccess', RelationMap::ONE_TO_MANY, array('id' => 'owner', ), null, null);
$this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'editedby', ), null, null);
$this->addRelation('CcPerms', 'CcPerms', RelationMap::ONE_TO_MANY, array('id' => 'subj', ), 'CASCADE', null);
$this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'subjs_id', ), 'CASCADE', null);

View File

@ -30,12 +30,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $id;
/**
* The value for the gunid field.
* @var string
*/
protected $gunid;
/**
* The value for the name field.
* Note: this column has a database default value of: ''
@ -498,16 +492,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->id;
}
/**
* Get the [gunid] column value.
*
* @return string
*/
public function getDbGunid()
{
return $this->gunid;
}
/**
* Get the [name] column value.
*
@ -1240,26 +1224,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this;
} // setDbId()
/**
* Set the value of [gunid] column.
*
* @param string $v new value
* @return CcFiles The current object (for fluent API support)
*/
public function setDbGunid($v)
{
if ($v !== null) {
$v = (string) $v;
}
if ($this->gunid !== $v) {
$this->gunid = $v;
$this->modifiedColumns[] = CcFilesPeer::GUNID;
}
return $this;
} // setDbGunid()
/**
* Set the value of [name] column.
*
@ -2689,69 +2653,68 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
try {
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->gunid = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->name = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->mime = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
$this->ftype = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
$this->directory = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
$this->filepath = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
$this->state = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
$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->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) ? (int) $row[$startcol + 16] : null;
$this->sample_rate = ($row[$startcol + 17] !== null) ? (int) $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->file_exists = ($row[$startcol + 57] !== null) ? (boolean) $row[$startcol + 57] : null;
$this->soundcloud_id = ($row[$startcol + 58] !== null) ? (int) $row[$startcol + 58] : null;
$this->soundcloud_error_code = ($row[$startcol + 59] !== null) ? (int) $row[$startcol + 59] : null;
$this->soundcloud_error_msg = ($row[$startcol + 60] !== null) ? (string) $row[$startcol + 60] : null;
$this->soundcloud_link_to_file = ($row[$startcol + 61] !== null) ? (string) $row[$startcol + 61] : null;
$this->soundcloud_upload_time = ($row[$startcol + 62] !== null) ? (string) $row[$startcol + 62] : null;
$this->replay_gain = ($row[$startcol + 63] !== null) ? (string) $row[$startcol + 63] : null;
$this->name = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->mime = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->ftype = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
$this->directory = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->filepath = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
$this->state = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
$this->currentlyaccessing = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
$this->editedby = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
$this->mtime = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
$this->utime = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
$this->lptime = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
$this->md5 = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
$this->track_title = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
$this->artist_name = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
$this->bit_rate = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
$this->sample_rate = ($row[$startcol + 16] !== null) ? (int) $row[$startcol + 16] : null;
$this->format = ($row[$startcol + 17] !== null) ? (string) $row[$startcol + 17] : null;
$this->length = ($row[$startcol + 18] !== null) ? (string) $row[$startcol + 18] : null;
$this->album_title = ($row[$startcol + 19] !== null) ? (string) $row[$startcol + 19] : null;
$this->genre = ($row[$startcol + 20] !== null) ? (string) $row[$startcol + 20] : null;
$this->comments = ($row[$startcol + 21] !== null) ? (string) $row[$startcol + 21] : null;
$this->year = ($row[$startcol + 22] !== null) ? (string) $row[$startcol + 22] : null;
$this->track_number = ($row[$startcol + 23] !== null) ? (int) $row[$startcol + 23] : null;
$this->channels = ($row[$startcol + 24] !== null) ? (int) $row[$startcol + 24] : null;
$this->url = ($row[$startcol + 25] !== null) ? (string) $row[$startcol + 25] : null;
$this->bpm = ($row[$startcol + 26] !== null) ? (string) $row[$startcol + 26] : null;
$this->rating = ($row[$startcol + 27] !== null) ? (string) $row[$startcol + 27] : null;
$this->encoded_by = ($row[$startcol + 28] !== null) ? (string) $row[$startcol + 28] : null;
$this->disc_number = ($row[$startcol + 29] !== null) ? (string) $row[$startcol + 29] : null;
$this->mood = ($row[$startcol + 30] !== null) ? (string) $row[$startcol + 30] : null;
$this->label = ($row[$startcol + 31] !== null) ? (string) $row[$startcol + 31] : null;
$this->composer = ($row[$startcol + 32] !== null) ? (string) $row[$startcol + 32] : null;
$this->encoder = ($row[$startcol + 33] !== null) ? (string) $row[$startcol + 33] : null;
$this->checksum = ($row[$startcol + 34] !== null) ? (string) $row[$startcol + 34] : null;
$this->lyrics = ($row[$startcol + 35] !== null) ? (string) $row[$startcol + 35] : null;
$this->orchestra = ($row[$startcol + 36] !== null) ? (string) $row[$startcol + 36] : null;
$this->conductor = ($row[$startcol + 37] !== null) ? (string) $row[$startcol + 37] : null;
$this->lyricist = ($row[$startcol + 38] !== null) ? (string) $row[$startcol + 38] : null;
$this->original_lyricist = ($row[$startcol + 39] !== null) ? (string) $row[$startcol + 39] : null;
$this->radio_station_name = ($row[$startcol + 40] !== null) ? (string) $row[$startcol + 40] : null;
$this->info_url = ($row[$startcol + 41] !== null) ? (string) $row[$startcol + 41] : null;
$this->artist_url = ($row[$startcol + 42] !== null) ? (string) $row[$startcol + 42] : null;
$this->audio_source_url = ($row[$startcol + 43] !== null) ? (string) $row[$startcol + 43] : null;
$this->radio_station_url = ($row[$startcol + 44] !== null) ? (string) $row[$startcol + 44] : null;
$this->buy_this_url = ($row[$startcol + 45] !== null) ? (string) $row[$startcol + 45] : null;
$this->isrc_number = ($row[$startcol + 46] !== null) ? (string) $row[$startcol + 46] : null;
$this->catalog_number = ($row[$startcol + 47] !== null) ? (string) $row[$startcol + 47] : null;
$this->original_artist = ($row[$startcol + 48] !== null) ? (string) $row[$startcol + 48] : null;
$this->copyright = ($row[$startcol + 49] !== null) ? (string) $row[$startcol + 49] : null;
$this->report_datetime = ($row[$startcol + 50] !== null) ? (string) $row[$startcol + 50] : null;
$this->report_location = ($row[$startcol + 51] !== null) ? (string) $row[$startcol + 51] : null;
$this->report_organization = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
$this->subject = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
$this->contributor = ($row[$startcol + 54] !== null) ? (string) $row[$startcol + 54] : null;
$this->language = ($row[$startcol + 55] !== null) ? (string) $row[$startcol + 55] : null;
$this->file_exists = ($row[$startcol + 56] !== null) ? (boolean) $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->soundcloud_upload_time = ($row[$startcol + 61] !== null) ? (string) $row[$startcol + 61] : null;
$this->replay_gain = ($row[$startcol + 62] !== null) ? (string) $row[$startcol + 62] : null;
$this->resetModified();
$this->setNew(false);
@ -2760,7 +2723,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->ensureConsistency();
}
return $startcol + 64; // 64 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 63; // 63 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating CcFiles object", $e);
@ -3180,192 +3143,189 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->getDbId();
break;
case 1:
return $this->getDbGunid();
break;
case 2:
return $this->getDbName();
break;
case 3:
case 2:
return $this->getDbMime();
break;
case 4:
case 3:
return $this->getDbFtype();
break;
case 5:
case 4:
return $this->getDbDirectory();
break;
case 6:
case 5:
return $this->getDbFilepath();
break;
case 7:
case 6:
return $this->getDbState();
break;
case 8:
case 7:
return $this->getDbCurrentlyaccessing();
break;
case 9:
case 8:
return $this->getDbEditedby();
break;
case 10:
case 9:
return $this->getDbMtime();
break;
case 11:
case 10:
return $this->getDbUtime();
break;
case 12:
case 11:
return $this->getDbLPtime();
break;
case 13:
case 12:
return $this->getDbMd5();
break;
case 14:
case 13:
return $this->getDbTrackTitle();
break;
case 15:
case 14:
return $this->getDbArtistName();
break;
case 16:
case 15:
return $this->getDbBitRate();
break;
case 17:
case 16:
return $this->getDbSampleRate();
break;
case 18:
case 17:
return $this->getDbFormat();
break;
case 19:
case 18:
return $this->getDbLength();
break;
case 20:
case 19:
return $this->getDbAlbumTitle();
break;
case 21:
case 20:
return $this->getDbGenre();
break;
case 22:
case 21:
return $this->getDbComments();
break;
case 23:
case 22:
return $this->getDbYear();
break;
case 24:
case 23:
return $this->getDbTrackNumber();
break;
case 25:
case 24:
return $this->getDbChannels();
break;
case 26:
case 25:
return $this->getDbUrl();
break;
case 27:
case 26:
return $this->getDbBpm();
break;
case 28:
case 27:
return $this->getDbRating();
break;
case 29:
case 28:
return $this->getDbEncodedBy();
break;
case 30:
case 29:
return $this->getDbDiscNumber();
break;
case 31:
case 30:
return $this->getDbMood();
break;
case 32:
case 31:
return $this->getDbLabel();
break;
case 33:
case 32:
return $this->getDbComposer();
break;
case 34:
case 33:
return $this->getDbEncoder();
break;
case 35:
case 34:
return $this->getDbChecksum();
break;
case 36:
case 35:
return $this->getDbLyrics();
break;
case 37:
case 36:
return $this->getDbOrchestra();
break;
case 38:
case 37:
return $this->getDbConductor();
break;
case 39:
case 38:
return $this->getDbLyricist();
break;
case 40:
case 39:
return $this->getDbOriginalLyricist();
break;
case 41:
case 40:
return $this->getDbRadioStationName();
break;
case 42:
case 41:
return $this->getDbInfoUrl();
break;
case 43:
case 42:
return $this->getDbArtistUrl();
break;
case 44:
case 43:
return $this->getDbAudioSourceUrl();
break;
case 45:
case 44:
return $this->getDbRadioStationUrl();
break;
case 46:
case 45:
return $this->getDbBuyThisUrl();
break;
case 47:
case 46:
return $this->getDbIsrcNumber();
break;
case 48:
case 47:
return $this->getDbCatalogNumber();
break;
case 49:
case 48:
return $this->getDbOriginalArtist();
break;
case 50:
case 49:
return $this->getDbCopyright();
break;
case 51:
case 50:
return $this->getDbReportDatetime();
break;
case 52:
case 51:
return $this->getDbReportLocation();
break;
case 53:
case 52:
return $this->getDbReportOrganization();
break;
case 54:
case 53:
return $this->getDbSubject();
break;
case 55:
case 54:
return $this->getDbContributor();
break;
case 56:
case 55:
return $this->getDbLanguage();
break;
case 57:
case 56:
return $this->getDbFileExists();
break;
case 58:
case 57:
return $this->getDbSoundcloudId();
break;
case 59:
case 58:
return $this->getDbSoundcloudErrorCode();
break;
case 60:
case 59:
return $this->getDbSoundcloudErrorMsg();
break;
case 61:
case 60:
return $this->getDbSoundcloudLinkToFile();
break;
case 62:
case 61:
return $this->getDbSoundCloundUploadTime();
break;
case 63:
case 62:
return $this->getDbReplayGain();
break;
default:
@ -3393,69 +3353,68 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$keys = CcFilesPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getDbId(),
$keys[1] => $this->getDbGunid(),
$keys[2] => $this->getDbName(),
$keys[3] => $this->getDbMime(),
$keys[4] => $this->getDbFtype(),
$keys[5] => $this->getDbDirectory(),
$keys[6] => $this->getDbFilepath(),
$keys[7] => $this->getDbState(),
$keys[8] => $this->getDbCurrentlyaccessing(),
$keys[9] => $this->getDbEditedby(),
$keys[10] => $this->getDbMtime(),
$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->getDbFileExists(),
$keys[58] => $this->getDbSoundcloudId(),
$keys[59] => $this->getDbSoundcloudErrorCode(),
$keys[60] => $this->getDbSoundcloudErrorMsg(),
$keys[61] => $this->getDbSoundcloudLinkToFile(),
$keys[62] => $this->getDbSoundCloundUploadTime(),
$keys[63] => $this->getDbReplayGain(),
$keys[1] => $this->getDbName(),
$keys[2] => $this->getDbMime(),
$keys[3] => $this->getDbFtype(),
$keys[4] => $this->getDbDirectory(),
$keys[5] => $this->getDbFilepath(),
$keys[6] => $this->getDbState(),
$keys[7] => $this->getDbCurrentlyaccessing(),
$keys[8] => $this->getDbEditedby(),
$keys[9] => $this->getDbMtime(),
$keys[10] => $this->getDbUtime(),
$keys[11] => $this->getDbLPtime(),
$keys[12] => $this->getDbMd5(),
$keys[13] => $this->getDbTrackTitle(),
$keys[14] => $this->getDbArtistName(),
$keys[15] => $this->getDbBitRate(),
$keys[16] => $this->getDbSampleRate(),
$keys[17] => $this->getDbFormat(),
$keys[18] => $this->getDbLength(),
$keys[19] => $this->getDbAlbumTitle(),
$keys[20] => $this->getDbGenre(),
$keys[21] => $this->getDbComments(),
$keys[22] => $this->getDbYear(),
$keys[23] => $this->getDbTrackNumber(),
$keys[24] => $this->getDbChannels(),
$keys[25] => $this->getDbUrl(),
$keys[26] => $this->getDbBpm(),
$keys[27] => $this->getDbRating(),
$keys[28] => $this->getDbEncodedBy(),
$keys[29] => $this->getDbDiscNumber(),
$keys[30] => $this->getDbMood(),
$keys[31] => $this->getDbLabel(),
$keys[32] => $this->getDbComposer(),
$keys[33] => $this->getDbEncoder(),
$keys[34] => $this->getDbChecksum(),
$keys[35] => $this->getDbLyrics(),
$keys[36] => $this->getDbOrchestra(),
$keys[37] => $this->getDbConductor(),
$keys[38] => $this->getDbLyricist(),
$keys[39] => $this->getDbOriginalLyricist(),
$keys[40] => $this->getDbRadioStationName(),
$keys[41] => $this->getDbInfoUrl(),
$keys[42] => $this->getDbArtistUrl(),
$keys[43] => $this->getDbAudioSourceUrl(),
$keys[44] => $this->getDbRadioStationUrl(),
$keys[45] => $this->getDbBuyThisUrl(),
$keys[46] => $this->getDbIsrcNumber(),
$keys[47] => $this->getDbCatalogNumber(),
$keys[48] => $this->getDbOriginalArtist(),
$keys[49] => $this->getDbCopyright(),
$keys[50] => $this->getDbReportDatetime(),
$keys[51] => $this->getDbReportLocation(),
$keys[52] => $this->getDbReportOrganization(),
$keys[53] => $this->getDbSubject(),
$keys[54] => $this->getDbContributor(),
$keys[55] => $this->getDbLanguage(),
$keys[56] => $this->getDbFileExists(),
$keys[57] => $this->getDbSoundcloudId(),
$keys[58] => $this->getDbSoundcloudErrorCode(),
$keys[59] => $this->getDbSoundcloudErrorMsg(),
$keys[60] => $this->getDbSoundcloudLinkToFile(),
$keys[61] => $this->getDbSoundCloundUploadTime(),
$keys[62] => $this->getDbReplayGain(),
);
if ($includeForeignObjects) {
if (null !== $this->aCcSubjs) {
@ -3499,192 +3458,189 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->setDbId($value);
break;
case 1:
$this->setDbGunid($value);
break;
case 2:
$this->setDbName($value);
break;
case 3:
case 2:
$this->setDbMime($value);
break;
case 4:
case 3:
$this->setDbFtype($value);
break;
case 5:
case 4:
$this->setDbDirectory($value);
break;
case 6:
case 5:
$this->setDbFilepath($value);
break;
case 7:
case 6:
$this->setDbState($value);
break;
case 8:
case 7:
$this->setDbCurrentlyaccessing($value);
break;
case 9:
case 8:
$this->setDbEditedby($value);
break;
case 10:
case 9:
$this->setDbMtime($value);
break;
case 11:
case 10:
$this->setDbUtime($value);
break;
case 12:
case 11:
$this->setDbLPtime($value);
break;
case 13:
case 12:
$this->setDbMd5($value);
break;
case 14:
case 13:
$this->setDbTrackTitle($value);
break;
case 15:
case 14:
$this->setDbArtistName($value);
break;
case 16:
case 15:
$this->setDbBitRate($value);
break;
case 17:
case 16:
$this->setDbSampleRate($value);
break;
case 18:
case 17:
$this->setDbFormat($value);
break;
case 19:
case 18:
$this->setDbLength($value);
break;
case 20:
case 19:
$this->setDbAlbumTitle($value);
break;
case 21:
case 20:
$this->setDbGenre($value);
break;
case 22:
case 21:
$this->setDbComments($value);
break;
case 23:
case 22:
$this->setDbYear($value);
break;
case 24:
case 23:
$this->setDbTrackNumber($value);
break;
case 25:
case 24:
$this->setDbChannels($value);
break;
case 26:
case 25:
$this->setDbUrl($value);
break;
case 27:
case 26:
$this->setDbBpm($value);
break;
case 28:
case 27:
$this->setDbRating($value);
break;
case 29:
case 28:
$this->setDbEncodedBy($value);
break;
case 30:
case 29:
$this->setDbDiscNumber($value);
break;
case 31:
case 30:
$this->setDbMood($value);
break;
case 32:
case 31:
$this->setDbLabel($value);
break;
case 33:
case 32:
$this->setDbComposer($value);
break;
case 34:
case 33:
$this->setDbEncoder($value);
break;
case 35:
case 34:
$this->setDbChecksum($value);
break;
case 36:
case 35:
$this->setDbLyrics($value);
break;
case 37:
case 36:
$this->setDbOrchestra($value);
break;
case 38:
case 37:
$this->setDbConductor($value);
break;
case 39:
case 38:
$this->setDbLyricist($value);
break;
case 40:
case 39:
$this->setDbOriginalLyricist($value);
break;
case 41:
case 40:
$this->setDbRadioStationName($value);
break;
case 42:
case 41:
$this->setDbInfoUrl($value);
break;
case 43:
case 42:
$this->setDbArtistUrl($value);
break;
case 44:
case 43:
$this->setDbAudioSourceUrl($value);
break;
case 45:
case 44:
$this->setDbRadioStationUrl($value);
break;
case 46:
case 45:
$this->setDbBuyThisUrl($value);
break;
case 47:
case 46:
$this->setDbIsrcNumber($value);
break;
case 48:
case 47:
$this->setDbCatalogNumber($value);
break;
case 49:
case 48:
$this->setDbOriginalArtist($value);
break;
case 50:
case 49:
$this->setDbCopyright($value);
break;
case 51:
case 50:
$this->setDbReportDatetime($value);
break;
case 52:
case 51:
$this->setDbReportLocation($value);
break;
case 53:
case 52:
$this->setDbReportOrganization($value);
break;
case 54:
case 53:
$this->setDbSubject($value);
break;
case 55:
case 54:
$this->setDbContributor($value);
break;
case 56:
case 55:
$this->setDbLanguage($value);
break;
case 57:
case 56:
$this->setDbFileExists($value);
break;
case 58:
case 57:
$this->setDbSoundcloudId($value);
break;
case 59:
case 58:
$this->setDbSoundcloudErrorCode($value);
break;
case 60:
case 59:
$this->setDbSoundcloudErrorMsg($value);
break;
case 61:
case 60:
$this->setDbSoundcloudLinkToFile($value);
break;
case 62:
case 61:
$this->setDbSoundCloundUploadTime($value);
break;
case 63:
case 62:
$this->setDbReplayGain($value);
break;
} // switch()
@ -3712,69 +3668,68 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$keys = CcFilesPeer::getFieldNames($keyType);
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
if (array_key_exists($keys[1], $arr)) $this->setDbGunid($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setDbName($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDbMime($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDbFtype($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDbDirectory($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDbFilepath($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDbState($arr[$keys[7]]);
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->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->setDbFileExists($arr[$keys[57]]);
if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudId($arr[$keys[58]]);
if (array_key_exists($keys[59], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[59]]);
if (array_key_exists($keys[60], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[60]]);
if (array_key_exists($keys[61], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[61]]);
if (array_key_exists($keys[62], $arr)) $this->setDbSoundCloundUploadTime($arr[$keys[62]]);
if (array_key_exists($keys[63], $arr)) $this->setDbReplayGain($arr[$keys[63]]);
if (array_key_exists($keys[1], $arr)) $this->setDbName($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setDbMime($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDbFtype($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDbDirectory($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDbFilepath($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDbState($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDbCurrentlyaccessing($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setDbEditedby($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setDbMtime($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setDbUtime($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setDbLPtime($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbMd5($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDbTrackTitle($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setDbArtistName($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setDbBitRate($arr[$keys[15]]);
if (array_key_exists($keys[16], $arr)) $this->setDbSampleRate($arr[$keys[16]]);
if (array_key_exists($keys[17], $arr)) $this->setDbFormat($arr[$keys[17]]);
if (array_key_exists($keys[18], $arr)) $this->setDbLength($arr[$keys[18]]);
if (array_key_exists($keys[19], $arr)) $this->setDbAlbumTitle($arr[$keys[19]]);
if (array_key_exists($keys[20], $arr)) $this->setDbGenre($arr[$keys[20]]);
if (array_key_exists($keys[21], $arr)) $this->setDbComments($arr[$keys[21]]);
if (array_key_exists($keys[22], $arr)) $this->setDbYear($arr[$keys[22]]);
if (array_key_exists($keys[23], $arr)) $this->setDbTrackNumber($arr[$keys[23]]);
if (array_key_exists($keys[24], $arr)) $this->setDbChannels($arr[$keys[24]]);
if (array_key_exists($keys[25], $arr)) $this->setDbUrl($arr[$keys[25]]);
if (array_key_exists($keys[26], $arr)) $this->setDbBpm($arr[$keys[26]]);
if (array_key_exists($keys[27], $arr)) $this->setDbRating($arr[$keys[27]]);
if (array_key_exists($keys[28], $arr)) $this->setDbEncodedBy($arr[$keys[28]]);
if (array_key_exists($keys[29], $arr)) $this->setDbDiscNumber($arr[$keys[29]]);
if (array_key_exists($keys[30], $arr)) $this->setDbMood($arr[$keys[30]]);
if (array_key_exists($keys[31], $arr)) $this->setDbLabel($arr[$keys[31]]);
if (array_key_exists($keys[32], $arr)) $this->setDbComposer($arr[$keys[32]]);
if (array_key_exists($keys[33], $arr)) $this->setDbEncoder($arr[$keys[33]]);
if (array_key_exists($keys[34], $arr)) $this->setDbChecksum($arr[$keys[34]]);
if (array_key_exists($keys[35], $arr)) $this->setDbLyrics($arr[$keys[35]]);
if (array_key_exists($keys[36], $arr)) $this->setDbOrchestra($arr[$keys[36]]);
if (array_key_exists($keys[37], $arr)) $this->setDbConductor($arr[$keys[37]]);
if (array_key_exists($keys[38], $arr)) $this->setDbLyricist($arr[$keys[38]]);
if (array_key_exists($keys[39], $arr)) $this->setDbOriginalLyricist($arr[$keys[39]]);
if (array_key_exists($keys[40], $arr)) $this->setDbRadioStationName($arr[$keys[40]]);
if (array_key_exists($keys[41], $arr)) $this->setDbInfoUrl($arr[$keys[41]]);
if (array_key_exists($keys[42], $arr)) $this->setDbArtistUrl($arr[$keys[42]]);
if (array_key_exists($keys[43], $arr)) $this->setDbAudioSourceUrl($arr[$keys[43]]);
if (array_key_exists($keys[44], $arr)) $this->setDbRadioStationUrl($arr[$keys[44]]);
if (array_key_exists($keys[45], $arr)) $this->setDbBuyThisUrl($arr[$keys[45]]);
if (array_key_exists($keys[46], $arr)) $this->setDbIsrcNumber($arr[$keys[46]]);
if (array_key_exists($keys[47], $arr)) $this->setDbCatalogNumber($arr[$keys[47]]);
if (array_key_exists($keys[48], $arr)) $this->setDbOriginalArtist($arr[$keys[48]]);
if (array_key_exists($keys[49], $arr)) $this->setDbCopyright($arr[$keys[49]]);
if (array_key_exists($keys[50], $arr)) $this->setDbReportDatetime($arr[$keys[50]]);
if (array_key_exists($keys[51], $arr)) $this->setDbReportLocation($arr[$keys[51]]);
if (array_key_exists($keys[52], $arr)) $this->setDbReportOrganization($arr[$keys[52]]);
if (array_key_exists($keys[53], $arr)) $this->setDbSubject($arr[$keys[53]]);
if (array_key_exists($keys[54], $arr)) $this->setDbContributor($arr[$keys[54]]);
if (array_key_exists($keys[55], $arr)) $this->setDbLanguage($arr[$keys[55]]);
if (array_key_exists($keys[56], $arr)) $this->setDbFileExists($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]]);
if (array_key_exists($keys[61], $arr)) $this->setDbSoundCloundUploadTime($arr[$keys[61]]);
if (array_key_exists($keys[62], $arr)) $this->setDbReplayGain($arr[$keys[62]]);
}
/**
@ -3787,7 +3742,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$criteria = new Criteria(CcFilesPeer::DATABASE_NAME);
if ($this->isColumnModified(CcFilesPeer::ID)) $criteria->add(CcFilesPeer::ID, $this->id);
if ($this->isColumnModified(CcFilesPeer::GUNID)) $criteria->add(CcFilesPeer::GUNID, $this->gunid);
if ($this->isColumnModified(CcFilesPeer::NAME)) $criteria->add(CcFilesPeer::NAME, $this->name);
if ($this->isColumnModified(CcFilesPeer::MIME)) $criteria->add(CcFilesPeer::MIME, $this->mime);
if ($this->isColumnModified(CcFilesPeer::FTYPE)) $criteria->add(CcFilesPeer::FTYPE, $this->ftype);
@ -3911,7 +3865,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
public function copyInto($copyObj, $deepCopy = false)
{
$copyObj->setDbGunid($this->gunid);
$copyObj->setDbName($this->name);
$copyObj->setDbMime($this->mime);
$copyObj->setDbFtype($this->ftype);
@ -4739,7 +4692,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
public function clear()
{
$this->id = null;
$this->gunid = null;
$this->name = null;
$this->mime = null;
$this->ftype = null;

View File

@ -26,7 +26,7 @@ abstract class BaseCcFilesPeer {
const TM_CLASS = 'CcFilesTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 64;
const NUM_COLUMNS = 63;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@ -34,9 +34,6 @@ abstract class BaseCcFilesPeer {
/** the column name for the ID field */
const ID = 'cc_files.ID';
/** the column name for the GUNID field */
const GUNID = 'cc_files.GUNID';
/** the column name for the NAME field */
const NAME = 'cc_files.NAME';
@ -239,12 +236,12 @@ abstract class BaseCcFilesPeer {
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbGunid', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMd5', 'DbTrackTitle', 'DbArtistName', 'DbBitRate', 'DbSampleRate', 'DbFormat', 'DbLength', 'DbAlbumTitle', 'DbGenre', 'DbComments', 'DbYear', 'DbTrackNumber', 'DbChannels', 'DbUrl', 'DbBpm', 'DbRating', 'DbEncodedBy', 'DbDiscNumber', 'DbMood', 'DbLabel', 'DbComposer', 'DbEncoder', 'DbChecksum', 'DbLyrics', 'DbOrchestra', 'DbConductor', 'DbLyricist', 'DbOriginalLyricist', 'DbRadioStationName', 'DbInfoUrl', 'DbArtistUrl', 'DbAudioSourceUrl', 'DbRadioStationUrl', 'DbBuyThisUrl', 'DbIsrcNumber', 'DbCatalogNumber', 'DbOriginalArtist', 'DbCopyright', 'DbReportDatetime', 'DbReportLocation', 'DbReportOrganization', 'DbSubject', 'DbContributor', 'DbLanguage', 'DbFileExists', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', 'DbSoundCloundUploadTime', 'DbReplayGain', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbGunid', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMd5', 'dbTrackTitle', 'dbArtistName', 'dbBitRate', 'dbSampleRate', 'dbFormat', 'dbLength', 'dbAlbumTitle', 'dbGenre', 'dbComments', 'dbYear', 'dbTrackNumber', 'dbChannels', 'dbUrl', 'dbBpm', 'dbRating', 'dbEncodedBy', 'dbDiscNumber', 'dbMood', 'dbLabel', 'dbComposer', 'dbEncoder', 'dbChecksum', 'dbLyrics', 'dbOrchestra', 'dbConductor', 'dbLyricist', 'dbOriginalLyricist', 'dbRadioStationName', 'dbInfoUrl', 'dbArtistUrl', 'dbAudioSourceUrl', 'dbRadioStationUrl', 'dbBuyThisUrl', 'dbIsrcNumber', 'dbCatalogNumber', 'dbOriginalArtist', 'dbCopyright', 'dbReportDatetime', 'dbReportLocation', 'dbReportOrganization', 'dbSubject', 'dbContributor', 'dbLanguage', 'dbFileExists', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', 'dbSoundCloundUploadTime', 'dbReplayGain', ),
BasePeer::TYPE_COLNAME => array (self::ID, self::GUNID, self::NAME, self::MIME, self::FTYPE, self::DIRECTORY, self::FILEPATH, self::STATE, self::CURRENTLYACCESSING, self::EDITEDBY, self::MTIME, self::UTIME, self::LPTIME, self::MD5, self::TRACK_TITLE, self::ARTIST_NAME, self::BIT_RATE, self::SAMPLE_RATE, self::FORMAT, self::LENGTH, self::ALBUM_TITLE, self::GENRE, self::COMMENTS, self::YEAR, self::TRACK_NUMBER, self::CHANNELS, self::URL, self::BPM, self::RATING, self::ENCODED_BY, self::DISC_NUMBER, self::MOOD, self::LABEL, self::COMPOSER, self::ENCODER, self::CHECKSUM, self::LYRICS, self::ORCHESTRA, self::CONDUCTOR, self::LYRICIST, self::ORIGINAL_LYRICIST, self::RADIO_STATION_NAME, self::INFO_URL, self::ARTIST_URL, self::AUDIO_SOURCE_URL, self::RADIO_STATION_URL, self::BUY_THIS_URL, self::ISRC_NUMBER, self::CATALOG_NUMBER, self::ORIGINAL_ARTIST, self::COPYRIGHT, self::REPORT_DATETIME, self::REPORT_LOCATION, self::REPORT_ORGANIZATION, self::SUBJECT, self::CONTRIBUTOR, self::LANGUAGE, self::FILE_EXISTS, self::SOUNDCLOUD_ID, self::SOUNDCLOUD_ERROR_CODE, self::SOUNDCLOUD_ERROR_MSG, self::SOUNDCLOUD_LINK_TO_FILE, self::SOUNDCLOUD_UPLOAD_TIME, self::REPLAY_GAIN, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'GUNID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'STATE', 'CURRENTLYACCESSING', 'EDITEDBY', 'MTIME', 'UTIME', 'LPTIME', 'MD5', 'TRACK_TITLE', 'ARTIST_NAME', 'BIT_RATE', 'SAMPLE_RATE', 'FORMAT', 'LENGTH', 'ALBUM_TITLE', 'GENRE', 'COMMENTS', 'YEAR', 'TRACK_NUMBER', 'CHANNELS', 'URL', 'BPM', 'RATING', 'ENCODED_BY', 'DISC_NUMBER', 'MOOD', 'LABEL', 'COMPOSER', 'ENCODER', 'CHECKSUM', 'LYRICS', 'ORCHESTRA', 'CONDUCTOR', 'LYRICIST', 'ORIGINAL_LYRICIST', 'RADIO_STATION_NAME', 'INFO_URL', 'ARTIST_URL', 'AUDIO_SOURCE_URL', 'RADIO_STATION_URL', 'BUY_THIS_URL', 'ISRC_NUMBER', 'CATALOG_NUMBER', 'ORIGINAL_ARTIST', 'COPYRIGHT', 'REPORT_DATETIME', 'REPORT_LOCATION', 'REPORT_ORGANIZATION', 'SUBJECT', 'CONTRIBUTOR', 'LANGUAGE', 'FILE_EXISTS', 'SOUNDCLOUD_ID', 'SOUNDCLOUD_ERROR_CODE', 'SOUNDCLOUD_ERROR_MSG', 'SOUNDCLOUD_LINK_TO_FILE', 'SOUNDCLOUD_UPLOAD_TIME', 'REPLAY_GAIN', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'gunid', 'name', 'mime', 'ftype', 'directory', 'filepath', 'state', 'currentlyaccessing', 'editedby', 'mtime', 'utime', 'lptime', 'md5', 'track_title', 'artist_name', 'bit_rate', 'sample_rate', 'format', 'length', 'album_title', 'genre', 'comments', 'year', 'track_number', 'channels', 'url', 'bpm', 'rating', 'encoded_by', 'disc_number', 'mood', 'label', 'composer', 'encoder', 'checksum', 'lyrics', 'orchestra', 'conductor', 'lyricist', 'original_lyricist', 'radio_station_name', 'info_url', 'artist_url', 'audio_source_url', 'radio_station_url', 'buy_this_url', 'isrc_number', 'catalog_number', 'original_artist', 'copyright', 'report_datetime', 'report_location', 'report_organization', 'subject', 'contributor', 'language', 'file_exists', 'soundcloud_id', 'soundcloud_error_code', 'soundcloud_error_msg', 'soundcloud_link_to_file', 'soundcloud_upload_time', 'replay_gain', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, )
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMd5', 'DbTrackTitle', 'DbArtistName', 'DbBitRate', 'DbSampleRate', 'DbFormat', 'DbLength', 'DbAlbumTitle', 'DbGenre', 'DbComments', 'DbYear', 'DbTrackNumber', 'DbChannels', 'DbUrl', 'DbBpm', 'DbRating', 'DbEncodedBy', 'DbDiscNumber', 'DbMood', 'DbLabel', 'DbComposer', 'DbEncoder', 'DbChecksum', 'DbLyrics', 'DbOrchestra', 'DbConductor', 'DbLyricist', 'DbOriginalLyricist', 'DbRadioStationName', 'DbInfoUrl', 'DbArtistUrl', 'DbAudioSourceUrl', 'DbRadioStationUrl', 'DbBuyThisUrl', 'DbIsrcNumber', 'DbCatalogNumber', 'DbOriginalArtist', 'DbCopyright', 'DbReportDatetime', 'DbReportLocation', 'DbReportOrganization', 'DbSubject', 'DbContributor', 'DbLanguage', 'DbFileExists', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', 'DbSoundCloundUploadTime', 'DbReplayGain', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMd5', 'dbTrackTitle', 'dbArtistName', 'dbBitRate', 'dbSampleRate', 'dbFormat', 'dbLength', 'dbAlbumTitle', 'dbGenre', 'dbComments', 'dbYear', 'dbTrackNumber', 'dbChannels', 'dbUrl', 'dbBpm', 'dbRating', 'dbEncodedBy', 'dbDiscNumber', 'dbMood', 'dbLabel', 'dbComposer', 'dbEncoder', 'dbChecksum', 'dbLyrics', 'dbOrchestra', 'dbConductor', 'dbLyricist', 'dbOriginalLyricist', 'dbRadioStationName', 'dbInfoUrl', 'dbArtistUrl', 'dbAudioSourceUrl', 'dbRadioStationUrl', 'dbBuyThisUrl', 'dbIsrcNumber', 'dbCatalogNumber', 'dbOriginalArtist', 'dbCopyright', 'dbReportDatetime', 'dbReportLocation', 'dbReportOrganization', 'dbSubject', 'dbContributor', 'dbLanguage', 'dbFileExists', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', 'dbSoundCloundUploadTime', 'dbReplayGain', ),
BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::MIME, self::FTYPE, self::DIRECTORY, self::FILEPATH, self::STATE, self::CURRENTLYACCESSING, self::EDITEDBY, self::MTIME, self::UTIME, self::LPTIME, self::MD5, self::TRACK_TITLE, self::ARTIST_NAME, self::BIT_RATE, self::SAMPLE_RATE, self::FORMAT, self::LENGTH, self::ALBUM_TITLE, self::GENRE, self::COMMENTS, self::YEAR, self::TRACK_NUMBER, self::CHANNELS, self::URL, self::BPM, self::RATING, self::ENCODED_BY, self::DISC_NUMBER, self::MOOD, self::LABEL, self::COMPOSER, self::ENCODER, self::CHECKSUM, self::LYRICS, self::ORCHESTRA, self::CONDUCTOR, self::LYRICIST, self::ORIGINAL_LYRICIST, self::RADIO_STATION_NAME, self::INFO_URL, self::ARTIST_URL, self::AUDIO_SOURCE_URL, self::RADIO_STATION_URL, self::BUY_THIS_URL, self::ISRC_NUMBER, self::CATALOG_NUMBER, self::ORIGINAL_ARTIST, self::COPYRIGHT, self::REPORT_DATETIME, self::REPORT_LOCATION, self::REPORT_ORGANIZATION, self::SUBJECT, self::CONTRIBUTOR, self::LANGUAGE, self::FILE_EXISTS, self::SOUNDCLOUD_ID, self::SOUNDCLOUD_ERROR_CODE, self::SOUNDCLOUD_ERROR_MSG, self::SOUNDCLOUD_LINK_TO_FILE, self::SOUNDCLOUD_UPLOAD_TIME, self::REPLAY_GAIN, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'STATE', 'CURRENTLYACCESSING', 'EDITEDBY', 'MTIME', 'UTIME', 'LPTIME', 'MD5', 'TRACK_TITLE', 'ARTIST_NAME', 'BIT_RATE', 'SAMPLE_RATE', 'FORMAT', 'LENGTH', 'ALBUM_TITLE', 'GENRE', 'COMMENTS', 'YEAR', 'TRACK_NUMBER', 'CHANNELS', 'URL', 'BPM', 'RATING', 'ENCODED_BY', 'DISC_NUMBER', 'MOOD', 'LABEL', 'COMPOSER', 'ENCODER', 'CHECKSUM', 'LYRICS', 'ORCHESTRA', 'CONDUCTOR', 'LYRICIST', 'ORIGINAL_LYRICIST', 'RADIO_STATION_NAME', 'INFO_URL', 'ARTIST_URL', 'AUDIO_SOURCE_URL', 'RADIO_STATION_URL', 'BUY_THIS_URL', 'ISRC_NUMBER', 'CATALOG_NUMBER', 'ORIGINAL_ARTIST', 'COPYRIGHT', 'REPORT_DATETIME', 'REPORT_LOCATION', 'REPORT_ORGANIZATION', 'SUBJECT', 'CONTRIBUTOR', 'LANGUAGE', 'FILE_EXISTS', 'SOUNDCLOUD_ID', 'SOUNDCLOUD_ERROR_CODE', 'SOUNDCLOUD_ERROR_MSG', 'SOUNDCLOUD_LINK_TO_FILE', 'SOUNDCLOUD_UPLOAD_TIME', 'REPLAY_GAIN', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mime', 'ftype', 'directory', 'filepath', 'state', 'currentlyaccessing', 'editedby', 'mtime', 'utime', 'lptime', 'md5', 'track_title', 'artist_name', 'bit_rate', 'sample_rate', 'format', 'length', 'album_title', 'genre', 'comments', 'year', 'track_number', 'channels', 'url', 'bpm', 'rating', 'encoded_by', 'disc_number', 'mood', 'label', 'composer', 'encoder', 'checksum', 'lyrics', 'orchestra', 'conductor', 'lyricist', 'original_lyricist', 'radio_station_name', 'info_url', 'artist_url', 'audio_source_url', 'radio_station_url', 'buy_this_url', 'isrc_number', 'catalog_number', 'original_artist', 'copyright', 'report_datetime', 'report_location', 'report_organization', 'subject', 'contributor', 'language', 'file_exists', 'soundcloud_id', 'soundcloud_error_code', 'soundcloud_error_msg', 'soundcloud_link_to_file', 'soundcloud_upload_time', 'replay_gain', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, )
);
/**
@ -254,12 +251,12 @@ abstract class BaseCcFilesPeer {
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbGunid' => 1, 'DbName' => 2, 'DbMime' => 3, 'DbFtype' => 4, 'DbDirectory' => 5, 'DbFilepath' => 6, 'DbState' => 7, 'DbCurrentlyaccessing' => 8, 'DbEditedby' => 9, 'DbMtime' => 10, 'DbUtime' => 11, 'DbLPtime' => 12, 'DbMd5' => 13, 'DbTrackTitle' => 14, 'DbArtistName' => 15, 'DbBitRate' => 16, 'DbSampleRate' => 17, 'DbFormat' => 18, 'DbLength' => 19, 'DbAlbumTitle' => 20, 'DbGenre' => 21, 'DbComments' => 22, 'DbYear' => 23, 'DbTrackNumber' => 24, 'DbChannels' => 25, 'DbUrl' => 26, 'DbBpm' => 27, 'DbRating' => 28, 'DbEncodedBy' => 29, 'DbDiscNumber' => 30, 'DbMood' => 31, 'DbLabel' => 32, 'DbComposer' => 33, 'DbEncoder' => 34, 'DbChecksum' => 35, 'DbLyrics' => 36, 'DbOrchestra' => 37, 'DbConductor' => 38, 'DbLyricist' => 39, 'DbOriginalLyricist' => 40, 'DbRadioStationName' => 41, 'DbInfoUrl' => 42, 'DbArtistUrl' => 43, 'DbAudioSourceUrl' => 44, 'DbRadioStationUrl' => 45, 'DbBuyThisUrl' => 46, 'DbIsrcNumber' => 47, 'DbCatalogNumber' => 48, 'DbOriginalArtist' => 49, 'DbCopyright' => 50, 'DbReportDatetime' => 51, 'DbReportLocation' => 52, 'DbReportOrganization' => 53, 'DbSubject' => 54, 'DbContributor' => 55, 'DbLanguage' => 56, 'DbFileExists' => 57, 'DbSoundcloudId' => 58, 'DbSoundcloudErrorCode' => 59, 'DbSoundcloudErrorMsg' => 60, 'DbSoundcloudLinkToFile' => 61, 'DbSoundCloundUploadTime' => 62, 'DbReplayGain' => 63, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbGunid' => 1, 'dbName' => 2, 'dbMime' => 3, 'dbFtype' => 4, 'dbDirectory' => 5, 'dbFilepath' => 6, 'dbState' => 7, 'dbCurrentlyaccessing' => 8, 'dbEditedby' => 9, 'dbMtime' => 10, 'dbUtime' => 11, 'dbLPtime' => 12, 'dbMd5' => 13, 'dbTrackTitle' => 14, 'dbArtistName' => 15, 'dbBitRate' => 16, 'dbSampleRate' => 17, 'dbFormat' => 18, 'dbLength' => 19, 'dbAlbumTitle' => 20, 'dbGenre' => 21, 'dbComments' => 22, 'dbYear' => 23, 'dbTrackNumber' => 24, 'dbChannels' => 25, 'dbUrl' => 26, 'dbBpm' => 27, 'dbRating' => 28, 'dbEncodedBy' => 29, 'dbDiscNumber' => 30, 'dbMood' => 31, 'dbLabel' => 32, 'dbComposer' => 33, 'dbEncoder' => 34, 'dbChecksum' => 35, 'dbLyrics' => 36, 'dbOrchestra' => 37, 'dbConductor' => 38, 'dbLyricist' => 39, 'dbOriginalLyricist' => 40, 'dbRadioStationName' => 41, 'dbInfoUrl' => 42, 'dbArtistUrl' => 43, 'dbAudioSourceUrl' => 44, 'dbRadioStationUrl' => 45, 'dbBuyThisUrl' => 46, 'dbIsrcNumber' => 47, 'dbCatalogNumber' => 48, 'dbOriginalArtist' => 49, 'dbCopyright' => 50, 'dbReportDatetime' => 51, 'dbReportLocation' => 52, 'dbReportOrganization' => 53, 'dbSubject' => 54, 'dbContributor' => 55, 'dbLanguage' => 56, 'dbFileExists' => 57, 'dbSoundcloudId' => 58, 'dbSoundcloudErrorCode' => 59, 'dbSoundcloudErrorMsg' => 60, 'dbSoundcloudLinkToFile' => 61, 'dbSoundCloundUploadTime' => 62, 'dbReplayGain' => 63, ),
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::GUNID => 1, self::NAME => 2, self::MIME => 3, self::FTYPE => 4, self::DIRECTORY => 5, self::FILEPATH => 6, self::STATE => 7, self::CURRENTLYACCESSING => 8, self::EDITEDBY => 9, self::MTIME => 10, self::UTIME => 11, self::LPTIME => 12, self::MD5 => 13, self::TRACK_TITLE => 14, self::ARTIST_NAME => 15, self::BIT_RATE => 16, self::SAMPLE_RATE => 17, self::FORMAT => 18, self::LENGTH => 19, self::ALBUM_TITLE => 20, self::GENRE => 21, self::COMMENTS => 22, self::YEAR => 23, self::TRACK_NUMBER => 24, self::CHANNELS => 25, self::URL => 26, self::BPM => 27, self::RATING => 28, self::ENCODED_BY => 29, self::DISC_NUMBER => 30, self::MOOD => 31, self::LABEL => 32, self::COMPOSER => 33, self::ENCODER => 34, self::CHECKSUM => 35, self::LYRICS => 36, self::ORCHESTRA => 37, self::CONDUCTOR => 38, self::LYRICIST => 39, self::ORIGINAL_LYRICIST => 40, self::RADIO_STATION_NAME => 41, self::INFO_URL => 42, self::ARTIST_URL => 43, self::AUDIO_SOURCE_URL => 44, self::RADIO_STATION_URL => 45, self::BUY_THIS_URL => 46, self::ISRC_NUMBER => 47, self::CATALOG_NUMBER => 48, self::ORIGINAL_ARTIST => 49, self::COPYRIGHT => 50, self::REPORT_DATETIME => 51, self::REPORT_LOCATION => 52, self::REPORT_ORGANIZATION => 53, self::SUBJECT => 54, self::CONTRIBUTOR => 55, self::LANGUAGE => 56, self::FILE_EXISTS => 57, self::SOUNDCLOUD_ID => 58, self::SOUNDCLOUD_ERROR_CODE => 59, self::SOUNDCLOUD_ERROR_MSG => 60, self::SOUNDCLOUD_LINK_TO_FILE => 61, self::SOUNDCLOUD_UPLOAD_TIME => 62, self::REPLAY_GAIN => 63, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'GUNID' => 1, 'NAME' => 2, 'MIME' => 3, 'FTYPE' => 4, 'DIRECTORY' => 5, 'FILEPATH' => 6, 'STATE' => 7, 'CURRENTLYACCESSING' => 8, 'EDITEDBY' => 9, 'MTIME' => 10, 'UTIME' => 11, 'LPTIME' => 12, 'MD5' => 13, 'TRACK_TITLE' => 14, 'ARTIST_NAME' => 15, 'BIT_RATE' => 16, 'SAMPLE_RATE' => 17, 'FORMAT' => 18, 'LENGTH' => 19, 'ALBUM_TITLE' => 20, 'GENRE' => 21, 'COMMENTS' => 22, 'YEAR' => 23, 'TRACK_NUMBER' => 24, 'CHANNELS' => 25, 'URL' => 26, 'BPM' => 27, 'RATING' => 28, 'ENCODED_BY' => 29, 'DISC_NUMBER' => 30, 'MOOD' => 31, 'LABEL' => 32, 'COMPOSER' => 33, 'ENCODER' => 34, 'CHECKSUM' => 35, 'LYRICS' => 36, 'ORCHESTRA' => 37, 'CONDUCTOR' => 38, 'LYRICIST' => 39, 'ORIGINAL_LYRICIST' => 40, 'RADIO_STATION_NAME' => 41, 'INFO_URL' => 42, 'ARTIST_URL' => 43, 'AUDIO_SOURCE_URL' => 44, 'RADIO_STATION_URL' => 45, 'BUY_THIS_URL' => 46, 'ISRC_NUMBER' => 47, 'CATALOG_NUMBER' => 48, 'ORIGINAL_ARTIST' => 49, 'COPYRIGHT' => 50, 'REPORT_DATETIME' => 51, 'REPORT_LOCATION' => 52, 'REPORT_ORGANIZATION' => 53, 'SUBJECT' => 54, 'CONTRIBUTOR' => 55, 'LANGUAGE' => 56, 'FILE_EXISTS' => 57, 'SOUNDCLOUD_ID' => 58, 'SOUNDCLOUD_ERROR_CODE' => 59, 'SOUNDCLOUD_ERROR_MSG' => 60, 'SOUNDCLOUD_LINK_TO_FILE' => 61, 'SOUNDCLOUD_UPLOAD_TIME' => 62, 'REPLAY_GAIN' => 63, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'gunid' => 1, 'name' => 2, 'mime' => 3, 'ftype' => 4, 'directory' => 5, 'filepath' => 6, 'state' => 7, 'currentlyaccessing' => 8, 'editedby' => 9, 'mtime' => 10, 'utime' => 11, 'lptime' => 12, 'md5' => 13, 'track_title' => 14, 'artist_name' => 15, 'bit_rate' => 16, 'sample_rate' => 17, 'format' => 18, 'length' => 19, 'album_title' => 20, 'genre' => 21, 'comments' => 22, 'year' => 23, 'track_number' => 24, 'channels' => 25, 'url' => 26, 'bpm' => 27, 'rating' => 28, 'encoded_by' => 29, 'disc_number' => 30, 'mood' => 31, 'label' => 32, 'composer' => 33, 'encoder' => 34, 'checksum' => 35, 'lyrics' => 36, 'orchestra' => 37, 'conductor' => 38, 'lyricist' => 39, 'original_lyricist' => 40, 'radio_station_name' => 41, 'info_url' => 42, 'artist_url' => 43, 'audio_source_url' => 44, 'radio_station_url' => 45, 'buy_this_url' => 46, 'isrc_number' => 47, 'catalog_number' => 48, 'original_artist' => 49, 'copyright' => 50, 'report_datetime' => 51, 'report_location' => 52, 'report_organization' => 53, 'subject' => 54, 'contributor' => 55, 'language' => 56, 'file_exists' => 57, 'soundcloud_id' => 58, 'soundcloud_error_code' => 59, 'soundcloud_error_msg' => 60, 'soundcloud_link_to_file' => 61, 'soundcloud_upload_time' => 62, 'replay_gain' => 63, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, )
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMime' => 2, 'DbFtype' => 3, 'DbDirectory' => 4, 'DbFilepath' => 5, 'DbState' => 6, 'DbCurrentlyaccessing' => 7, 'DbEditedby' => 8, 'DbMtime' => 9, 'DbUtime' => 10, 'DbLPtime' => 11, 'DbMd5' => 12, 'DbTrackTitle' => 13, 'DbArtistName' => 14, 'DbBitRate' => 15, 'DbSampleRate' => 16, 'DbFormat' => 17, 'DbLength' => 18, 'DbAlbumTitle' => 19, 'DbGenre' => 20, 'DbComments' => 21, 'DbYear' => 22, 'DbTrackNumber' => 23, 'DbChannels' => 24, 'DbUrl' => 25, 'DbBpm' => 26, 'DbRating' => 27, 'DbEncodedBy' => 28, 'DbDiscNumber' => 29, 'DbMood' => 30, 'DbLabel' => 31, 'DbComposer' => 32, 'DbEncoder' => 33, 'DbChecksum' => 34, 'DbLyrics' => 35, 'DbOrchestra' => 36, 'DbConductor' => 37, 'DbLyricist' => 38, 'DbOriginalLyricist' => 39, 'DbRadioStationName' => 40, 'DbInfoUrl' => 41, 'DbArtistUrl' => 42, 'DbAudioSourceUrl' => 43, 'DbRadioStationUrl' => 44, 'DbBuyThisUrl' => 45, 'DbIsrcNumber' => 46, 'DbCatalogNumber' => 47, 'DbOriginalArtist' => 48, 'DbCopyright' => 49, 'DbReportDatetime' => 50, 'DbReportLocation' => 51, 'DbReportOrganization' => 52, 'DbSubject' => 53, 'DbContributor' => 54, 'DbLanguage' => 55, 'DbFileExists' => 56, 'DbSoundcloudId' => 57, 'DbSoundcloudErrorCode' => 58, 'DbSoundcloudErrorMsg' => 59, 'DbSoundcloudLinkToFile' => 60, 'DbSoundCloundUploadTime' => 61, 'DbReplayGain' => 62, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMime' => 2, 'dbFtype' => 3, 'dbDirectory' => 4, 'dbFilepath' => 5, 'dbState' => 6, 'dbCurrentlyaccessing' => 7, 'dbEditedby' => 8, 'dbMtime' => 9, 'dbUtime' => 10, 'dbLPtime' => 11, 'dbMd5' => 12, 'dbTrackTitle' => 13, 'dbArtistName' => 14, 'dbBitRate' => 15, 'dbSampleRate' => 16, 'dbFormat' => 17, 'dbLength' => 18, 'dbAlbumTitle' => 19, 'dbGenre' => 20, 'dbComments' => 21, 'dbYear' => 22, 'dbTrackNumber' => 23, 'dbChannels' => 24, 'dbUrl' => 25, 'dbBpm' => 26, 'dbRating' => 27, 'dbEncodedBy' => 28, 'dbDiscNumber' => 29, 'dbMood' => 30, 'dbLabel' => 31, 'dbComposer' => 32, 'dbEncoder' => 33, 'dbChecksum' => 34, 'dbLyrics' => 35, 'dbOrchestra' => 36, 'dbConductor' => 37, 'dbLyricist' => 38, 'dbOriginalLyricist' => 39, 'dbRadioStationName' => 40, 'dbInfoUrl' => 41, 'dbArtistUrl' => 42, 'dbAudioSourceUrl' => 43, 'dbRadioStationUrl' => 44, 'dbBuyThisUrl' => 45, 'dbIsrcNumber' => 46, 'dbCatalogNumber' => 47, 'dbOriginalArtist' => 48, 'dbCopyright' => 49, 'dbReportDatetime' => 50, 'dbReportLocation' => 51, 'dbReportOrganization' => 52, 'dbSubject' => 53, 'dbContributor' => 54, 'dbLanguage' => 55, 'dbFileExists' => 56, 'dbSoundcloudId' => 57, 'dbSoundcloudErrorCode' => 58, 'dbSoundcloudErrorMsg' => 59, 'dbSoundcloudLinkToFile' => 60, 'dbSoundCloundUploadTime' => 61, 'dbReplayGain' => 62, ),
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::MIME => 2, self::FTYPE => 3, self::DIRECTORY => 4, self::FILEPATH => 5, self::STATE => 6, self::CURRENTLYACCESSING => 7, self::EDITEDBY => 8, self::MTIME => 9, self::UTIME => 10, self::LPTIME => 11, self::MD5 => 12, self::TRACK_TITLE => 13, self::ARTIST_NAME => 14, self::BIT_RATE => 15, self::SAMPLE_RATE => 16, self::FORMAT => 17, self::LENGTH => 18, self::ALBUM_TITLE => 19, self::GENRE => 20, self::COMMENTS => 21, self::YEAR => 22, self::TRACK_NUMBER => 23, self::CHANNELS => 24, self::URL => 25, self::BPM => 26, self::RATING => 27, self::ENCODED_BY => 28, self::DISC_NUMBER => 29, self::MOOD => 30, self::LABEL => 31, self::COMPOSER => 32, self::ENCODER => 33, self::CHECKSUM => 34, self::LYRICS => 35, self::ORCHESTRA => 36, self::CONDUCTOR => 37, self::LYRICIST => 38, self::ORIGINAL_LYRICIST => 39, self::RADIO_STATION_NAME => 40, self::INFO_URL => 41, self::ARTIST_URL => 42, self::AUDIO_SOURCE_URL => 43, self::RADIO_STATION_URL => 44, self::BUY_THIS_URL => 45, self::ISRC_NUMBER => 46, self::CATALOG_NUMBER => 47, self::ORIGINAL_ARTIST => 48, self::COPYRIGHT => 49, self::REPORT_DATETIME => 50, self::REPORT_LOCATION => 51, self::REPORT_ORGANIZATION => 52, self::SUBJECT => 53, self::CONTRIBUTOR => 54, self::LANGUAGE => 55, self::FILE_EXISTS => 56, self::SOUNDCLOUD_ID => 57, self::SOUNDCLOUD_ERROR_CODE => 58, self::SOUNDCLOUD_ERROR_MSG => 59, self::SOUNDCLOUD_LINK_TO_FILE => 60, self::SOUNDCLOUD_UPLOAD_TIME => 61, self::REPLAY_GAIN => 62, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MIME' => 2, 'FTYPE' => 3, 'DIRECTORY' => 4, 'FILEPATH' => 5, 'STATE' => 6, 'CURRENTLYACCESSING' => 7, 'EDITEDBY' => 8, 'MTIME' => 9, 'UTIME' => 10, 'LPTIME' => 11, 'MD5' => 12, 'TRACK_TITLE' => 13, 'ARTIST_NAME' => 14, 'BIT_RATE' => 15, 'SAMPLE_RATE' => 16, 'FORMAT' => 17, 'LENGTH' => 18, 'ALBUM_TITLE' => 19, 'GENRE' => 20, 'COMMENTS' => 21, 'YEAR' => 22, 'TRACK_NUMBER' => 23, 'CHANNELS' => 24, 'URL' => 25, 'BPM' => 26, 'RATING' => 27, 'ENCODED_BY' => 28, 'DISC_NUMBER' => 29, 'MOOD' => 30, 'LABEL' => 31, 'COMPOSER' => 32, 'ENCODER' => 33, 'CHECKSUM' => 34, 'LYRICS' => 35, 'ORCHESTRA' => 36, 'CONDUCTOR' => 37, 'LYRICIST' => 38, 'ORIGINAL_LYRICIST' => 39, 'RADIO_STATION_NAME' => 40, 'INFO_URL' => 41, 'ARTIST_URL' => 42, 'AUDIO_SOURCE_URL' => 43, 'RADIO_STATION_URL' => 44, 'BUY_THIS_URL' => 45, 'ISRC_NUMBER' => 46, 'CATALOG_NUMBER' => 47, 'ORIGINAL_ARTIST' => 48, 'COPYRIGHT' => 49, 'REPORT_DATETIME' => 50, 'REPORT_LOCATION' => 51, 'REPORT_ORGANIZATION' => 52, 'SUBJECT' => 53, 'CONTRIBUTOR' => 54, 'LANGUAGE' => 55, 'FILE_EXISTS' => 56, 'SOUNDCLOUD_ID' => 57, 'SOUNDCLOUD_ERROR_CODE' => 58, 'SOUNDCLOUD_ERROR_MSG' => 59, 'SOUNDCLOUD_LINK_TO_FILE' => 60, 'SOUNDCLOUD_UPLOAD_TIME' => 61, 'REPLAY_GAIN' => 62, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mime' => 2, 'ftype' => 3, 'directory' => 4, 'filepath' => 5, 'state' => 6, 'currentlyaccessing' => 7, 'editedby' => 8, 'mtime' => 9, 'utime' => 10, 'lptime' => 11, 'md5' => 12, 'track_title' => 13, 'artist_name' => 14, 'bit_rate' => 15, 'sample_rate' => 16, 'format' => 17, 'length' => 18, 'album_title' => 19, 'genre' => 20, 'comments' => 21, 'year' => 22, 'track_number' => 23, 'channels' => 24, 'url' => 25, 'bpm' => 26, 'rating' => 27, 'encoded_by' => 28, 'disc_number' => 29, 'mood' => 30, 'label' => 31, 'composer' => 32, 'encoder' => 33, 'checksum' => 34, 'lyrics' => 35, 'orchestra' => 36, 'conductor' => 37, 'lyricist' => 38, 'original_lyricist' => 39, 'radio_station_name' => 40, 'info_url' => 41, 'artist_url' => 42, 'audio_source_url' => 43, 'radio_station_url' => 44, 'buy_this_url' => 45, 'isrc_number' => 46, 'catalog_number' => 47, 'original_artist' => 48, 'copyright' => 49, 'report_datetime' => 50, 'report_location' => 51, 'report_organization' => 52, 'subject' => 53, 'contributor' => 54, 'language' => 55, 'file_exists' => 56, 'soundcloud_id' => 57, 'soundcloud_error_code' => 58, 'soundcloud_error_msg' => 59, 'soundcloud_link_to_file' => 60, 'soundcloud_upload_time' => 61, 'replay_gain' => 62, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, )
);
/**
@ -332,7 +329,6 @@ abstract class BaseCcFilesPeer {
{
if (null === $alias) {
$criteria->addSelectColumn(CcFilesPeer::ID);
$criteria->addSelectColumn(CcFilesPeer::GUNID);
$criteria->addSelectColumn(CcFilesPeer::NAME);
$criteria->addSelectColumn(CcFilesPeer::MIME);
$criteria->addSelectColumn(CcFilesPeer::FTYPE);
@ -397,7 +393,6 @@ abstract class BaseCcFilesPeer {
$criteria->addSelectColumn(CcFilesPeer::REPLAY_GAIN);
} else {
$criteria->addSelectColumn($alias . '.ID');
$criteria->addSelectColumn($alias . '.GUNID');
$criteria->addSelectColumn($alias . '.NAME');
$criteria->addSelectColumn($alias . '.MIME');
$criteria->addSelectColumn($alias . '.FTYPE');

View File

@ -7,7 +7,6 @@
*
*
* @method CcFilesQuery orderByDbId($order = Criteria::ASC) Order by the id column
* @method CcFilesQuery orderByDbGunid($order = Criteria::ASC) Order by the gunid column
* @method CcFilesQuery orderByDbName($order = Criteria::ASC) Order by the name column
* @method CcFilesQuery orderByDbMime($order = Criteria::ASC) Order by the mime column
* @method CcFilesQuery orderByDbFtype($order = Criteria::ASC) Order by the ftype column
@ -72,7 +71,6 @@
* @method CcFilesQuery orderByDbReplayGain($order = Criteria::ASC) Order by the replay_gain column
*
* @method CcFilesQuery groupByDbId() Group by the id column
* @method CcFilesQuery groupByDbGunid() Group by the gunid column
* @method CcFilesQuery groupByDbName() Group by the name column
* @method CcFilesQuery groupByDbMime() Group by the mime column
* @method CcFilesQuery groupByDbFtype() Group by the ftype column
@ -168,7 +166,6 @@
* @method CcFiles findOneOrCreate(PropelPDO $con = null) Return the first CcFiles matching the query, or a new CcFiles object populated from the query conditions when no match is found
*
* @method CcFiles findOneByDbId(int $id) Return the first CcFiles filtered by the id column
* @method CcFiles findOneByDbGunid(string $gunid) Return the first CcFiles filtered by the gunid column
* @method CcFiles findOneByDbName(string $name) Return the first CcFiles filtered by the name column
* @method CcFiles findOneByDbMime(string $mime) Return the first CcFiles filtered by the mime column
* @method CcFiles findOneByDbFtype(string $ftype) Return the first CcFiles filtered by the ftype column
@ -233,7 +230,6 @@
* @method CcFiles findOneByDbReplayGain(string $replay_gain) Return the first CcFiles filtered by the replay_gain column
*
* @method array findByDbId(int $id) Return CcFiles objects filtered by the id column
* @method array findByDbGunid(string $gunid) Return CcFiles objects filtered by the gunid column
* @method array findByDbName(string $name) Return CcFiles objects filtered by the name column
* @method array findByDbMime(string $mime) Return CcFiles objects filtered by the mime column
* @method array findByDbFtype(string $ftype) Return CcFiles objects filtered by the ftype column
@ -422,28 +418,6 @@ abstract class BaseCcFilesQuery extends ModelCriteria
return $this->addUsingAlias(CcFilesPeer::ID, $dbId, $comparison);
}
/**
* Filter the query on the gunid column
*
* @param string $dbGunid The value to use as filter.
* Accepts wildcards (* and % trigger a LIKE)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByDbGunid($dbGunid = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbGunid)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbGunid)) {
$dbGunid = str_replace('*', '%', $dbGunid);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcFilesPeer::GUNID, $dbGunid, $comparison);
}
/**
* Filter the query on the name column
*

View File

@ -108,11 +108,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
*/
protected $login_attempts;
/**
* @var array CcAccess[] Collection to store aggregation of CcAccess objects.
*/
protected $collCcAccesss;
/**
* @var array CcFiles[] Collection to store aggregation of CcFiles objects.
*/
@ -826,8 +821,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
if ($deep) { // also de-associate any related objects?
$this->collCcAccesss = null;
$this->collCcFiless = null;
$this->collCcPermss = null;
@ -977,14 +970,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
}
if ($this->collCcAccesss !== null) {
foreach ($this->collCcAccesss as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
if ($this->collCcFiless !== null) {
foreach ($this->collCcFiless as $referrerFK) {
if (!$referrerFK->isDeleted()) {
@ -1120,14 +1105,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
}
if ($this->collCcAccesss !== null) {
foreach ($this->collCcAccesss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
if ($this->collCcFiless !== null) {
foreach ($this->collCcFiless as $referrerFK) {
if (!$referrerFK->validate($columns)) {
@ -1510,12 +1487,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
// the getter/setter methods for fkey referrer objects.
$copyObj->setNew(false);
foreach ($this->getCcAccesss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcAccess($relObj->copy($deepCopy));
}
}
foreach ($this->getCcFiless() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcFiles($relObj->copy($deepCopy));
@ -1609,115 +1580,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
return self::$peer;
}
/**
* Clears out the collCcAccesss collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcAccesss()
*/
public function clearCcAccesss()
{
$this->collCcAccesss = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcAccesss collection.
*
* By default this just sets the collCcAccesss collection to an empty array (like clearcollCcAccesss());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcAccesss()
{
$this->collCcAccesss = new PropelObjectCollection();
$this->collCcAccesss->setModel('CcAccess');
}
/**
* Gets an array of CcAccess objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcSubjs is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcAccess[] List of CcAccess objects
* @throws PropelException
*/
public function getCcAccesss($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcAccesss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcAccesss) {
// return empty collection
$this->initCcAccesss();
} else {
$collCcAccesss = CcAccessQuery::create(null, $criteria)
->filterByCcSubjs($this)
->find($con);
if (null !== $criteria) {
return $collCcAccesss;
}
$this->collCcAccesss = $collCcAccesss;
}
}
return $this->collCcAccesss;
}
/**
* Returns the number of related CcAccess objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcAccess objects.
* @throws PropelException
*/
public function countCcAccesss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcAccesss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcAccesss) {
return 0;
} else {
$query = CcAccessQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcSubjs($this)
->count($con);
}
} else {
return count($this->collCcAccesss);
}
}
/**
* Method called to associate a CcAccess object to this object
* through the CcAccess foreign key attribute.
*
* @param CcAccess $l CcAccess
* @return void
* @throws PropelException
*/
public function addCcAccess(CcAccess $l)
{
if ($this->collCcAccesss === null) {
$this->initCcAccesss();
}
if (!$this->collCcAccesss->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcAccesss[]= $l;
$l->setCcSubjs($this);
}
}
/**
* Clears out the collCcFiless collection
*
@ -2679,11 +2541,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
public function clearAllReferences($deep = false)
{
if ($deep) {
if ($this->collCcAccesss) {
foreach ((array) $this->collCcAccesss as $o) {
$o->clearAllReferences($deep);
}
}
if ($this->collCcFiless) {
foreach ((array) $this->collCcFiless as $o) {
$o->clearAllReferences($deep);
@ -2726,7 +2583,6 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
}
} // if ($deep)
$this->collCcAccesss = null;
$this->collCcFiless = null;
$this->collCcPermss = null;
$this->collCcShowHostss = null;

View File

@ -38,10 +38,6 @@
* @method CcSubjsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method CcSubjsQuery innerJoin($relation) Adds a INNER JOIN clause to the query
*
* @method CcSubjsQuery leftJoinCcAccess($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcAccess relation
* @method CcSubjsQuery rightJoinCcAccess($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcAccess relation
* @method CcSubjsQuery innerJoinCcAccess($relationAlias = '') Adds a INNER JOIN clause to the query using the CcAccess relation
*
* @method CcSubjsQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation
* @method CcSubjsQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation
* @method CcSubjsQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation
@ -521,70 +517,6 @@ abstract class BaseCcSubjsQuery extends ModelCriteria
return $this->addUsingAlias(CcSubjsPeer::LOGIN_ATTEMPTS, $dbLoginAttempts, $comparison);
}
/**
* Filter the query by a related CcAccess object
*
* @param CcAccess $ccAccess the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcSubjsQuery The current query, for fluid interface
*/
public function filterByCcAccess($ccAccess, $comparison = null)
{
return $this
->addUsingAlias(CcSubjsPeer::ID, $ccAccess->getOwner(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcAccess relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcSubjsQuery The current query, for fluid interface
*/
public function joinCcAccess($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcAccess');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcAccess');
}
return $this;
}
/**
* Use the CcAccess relation CcAccess object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcAccessQuery A secondary query class using the current class as primary query
*/
public function useCcAccessQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcAccess($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcAccess', 'CcAccessQuery');
}
/**
* Filter the query by a related CcFiles object
*

View File

@ -3,11 +3,11 @@ $items = $this->obj->getContents();
if (count($items)) : ?>
<?php $i = 0; ?>
<?php foreach($items as $item) : ?>
<li class="ui-state-default" id="spl_<?php echo $item["id"] ?>" unqid="<?php echo $item["gunid"]."_".$item["id"]; ?>">
<li class="ui-state-default" id="spl_<?php echo $item["id"] ?>" unqid="<?php echo $item["id"]; ?>">
<div class="list-item-container">
<?php if ($item['exists']):?>
<div class="big_play" audioFile="<?php echo $item["gunid"].".".pathinfo($item['path'], PATHINFO_EXTENSION); ?>">
<div class="big_play" audioFile="<?php echo $item["id"]; ?>">
<span class="ui-icon ui-icon-play"></span>
</div>
<?php else: ?>

View File

@ -1,29 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Autogenerated by PropelSchemaReverseTask class.-->
<database name="airtime" defaultIdMethod="native">
<table name="cc_access" phpName="CcAccess">
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="gunid" phpName="Gunid" type="CHAR" size="32" required="false"/>
<column name="token" phpName="Token" type="BIGINT" required="false"/>
<column name="chsum" phpName="Chsum" type="CHAR" size="32" required="true" defaultValue=""/>
<column name="ext" phpName="Ext" type="VARCHAR" size="128" required="true" defaultValue=""/>
<column name="type" phpName="Type" type="VARCHAR" size="20" required="true" defaultValue=""/>
<column name="parent" phpName="Parent" type="BIGINT" required="false"/>
<column name="owner" phpName="Owner" type="INTEGER" required="false"/>
<column name="ts" phpName="Ts" type="TIMESTAMP" required="false"/>
<foreign-key foreignTable="cc_subjs" name="cc_access_owner_fkey">
<reference local="owner" foreign="id"/>
</foreign-key>
<index name="cc_access_gunid_idx">
<index-column name="gunid"/>
</index>
<index name="cc_access_parent_idx">
<index-column name="parent"/>
</index>
<index name="cc_access_token_idx">
<index-column name="token"/>
</index>
</table>
<table name="cc_music_dirs" phpName="CcMusicDirs">
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="directory" phpName="Directory" type="LONGVARCHAR" required="false"/>
@ -36,7 +13,6 @@
</table>
<table name="cc_files" phpName="CcFiles">
<column name="id" phpName="DbId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
<column name="gunid" phpName="DbGunid" type="char" size="32" required="true"/>
<column name="name" phpName="DbName" type="VARCHAR" size="255" required="true" defaultValue=""/>
<column name="mime" phpName="DbMime" type="VARCHAR" size="255" required="true" defaultValue=""/>
<column name="ftype" phpName="DbFtype" type="VARCHAR" size="128" required="true" defaultValue=""/>
@ -105,9 +81,6 @@
<foreign-key foreignTable="cc_music_dirs" name="cc_music_dirs_folder_fkey">
<reference local="directory" foreign="id"/>
</foreign-key>
<unique name="cc_files_gunid_idx">
<unique-column name="gunid"/>
</unique>
<index name="cc_files_md5_idx">
<index-column name="md5"/>
</index>

View File

@ -1,35 +1,4 @@
-----------------------------------------------------------------------------
-- cc_access
-----------------------------------------------------------------------------
DROP TABLE "cc_access" CASCADE;
CREATE TABLE "cc_access"
(
"id" serial NOT NULL,
"gunid" CHAR(32),
"token" INT8,
"chsum" CHAR(32) default '' NOT NULL,
"ext" VARCHAR(128) default '' NOT NULL,
"type" VARCHAR(20) default '' NOT NULL,
"parent" INT8,
"owner" INTEGER,
"ts" TIMESTAMP,
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_access" IS '';
SET search_path TO public;
CREATE INDEX "cc_access_gunid_idx" ON "cc_access" ("gunid");
CREATE INDEX "cc_access_parent_idx" ON "cc_access" ("parent");
CREATE INDEX "cc_access_token_idx" ON "cc_access" ("token");
-----------------------------------------------------------------------------
-- cc_music_dirs
-----------------------------------------------------------------------------
@ -62,7 +31,6 @@ DROP TABLE "cc_files" CASCADE;
CREATE TABLE "cc_files"
(
"id" serial NOT NULL,
"gunid" CHAR(32) NOT NULL,
"name" VARCHAR(255) default '' NOT NULL,
"mime" VARCHAR(255) default '' NOT NULL,
"ftype" VARCHAR(128) default '' NOT NULL,
@ -125,8 +93,7 @@ CREATE TABLE "cc_files"
"soundcloud_link_to_file" VARCHAR(4096),
"soundcloud_upload_time" TIMESTAMP(6),
"replay_gain" VARCHAR(16),
PRIMARY KEY ("id"),
CONSTRAINT "cc_files_gunid_idx" UNIQUE ("gunid")
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_files" IS '';
@ -676,8 +643,6 @@ COMMENT ON TABLE "cc_webstream" IS '';
SET search_path TO public;
ALTER TABLE "cc_access" ADD CONSTRAINT "cc_access_owner_fkey" FOREIGN KEY ("owner") REFERENCES "cc_subjs" ("id");
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_editedby_fkey" FOREIGN KEY ("editedby") REFERENCES "cc_subjs" ("id");
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_music_dirs_folder_fkey" FOREIGN KEY ("directory") REFERENCES "cc_music_dirs" ("id");