cc-2977: getting close!!!
This commit is contained in:
parent
905775552d
commit
61c5355e8a
|
@ -560,7 +560,7 @@ class ApiController extends Zend_Controller_Action
|
||||||
|
|
||||||
// update import timestamp
|
// update import timestamp
|
||||||
Application_Model_Preference::SetImportTimestamp();
|
Application_Model_Preference::SetImportTimestamp();
|
||||||
|
Logging::log("mode: ".$mode);
|
||||||
if ($mode == "create") {
|
if ($mode == "create") {
|
||||||
$filepath = $md['MDATA_KEY_FILEPATH'];
|
$filepath = $md['MDATA_KEY_FILEPATH'];
|
||||||
$filepath = str_replace("\\", "", $filepath);
|
$filepath = str_replace("\\", "", $filepath);
|
||||||
|
@ -569,10 +569,18 @@ class ApiController extends Zend_Controller_Action
|
||||||
|
|
||||||
if (is_null($file)) {
|
if (is_null($file)) {
|
||||||
$file = Application_Model_StoredFile::Insert($md);
|
$file = Application_Model_StoredFile::Insert($md);
|
||||||
|
Logging::log("file: ".print_r($file, true));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->view->error = "File already exists in Airtime.";
|
// path already exist
|
||||||
return;
|
if($file->getFileExistFlag()){
|
||||||
|
// file marked as exists
|
||||||
|
$this->view->error = "File already exists in Airtime.";
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
// file marked as not exists
|
||||||
|
$file->setFileExistFlag(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ($mode == "modify") {
|
else if ($mode == "modify") {
|
||||||
|
|
|
@ -40,24 +40,50 @@ class Application_Model_MusicDir {
|
||||||
$this->_dir->save();
|
$this->_dir->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setRemoved($flag){
|
||||||
|
$this->_dir->setRemoved($flag);
|
||||||
|
$this->_dir->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRemoved(){
|
||||||
|
return $this->_dir->getRemoved();
|
||||||
|
}
|
||||||
|
|
||||||
public function remove()
|
public function remove()
|
||||||
{
|
{
|
||||||
global $CC_DBC;
|
global $CC_DBC;
|
||||||
|
Logging::log("remove!!");
|
||||||
$music_dir_id = $this->getId();
|
$music_dir_id = $this->getId();
|
||||||
|
|
||||||
$sql = "SELECT DISTINCT s.instance_id from cc_music_dirs as md LEFT JOIN cc_files as f on f.directory = md.id
|
$sql = "SELECT DISTINCT s.instance_id from cc_music_dirs as md LEFT JOIN cc_files as f on f.directory = md.id
|
||||||
RIGHT JOIN cc_schedule as s on s.file_id = f.id WHERE md.id = $music_dir_id";
|
RIGHT JOIN cc_schedule as s on s.file_id = f.id WHERE md.id = $music_dir_id";
|
||||||
|
|
||||||
$show_instances = $CC_DBC->GetAll($sql);
|
$show_instances = $CC_DBC->GetAll($sql);
|
||||||
|
|
||||||
|
// get all the files on this dir
|
||||||
|
$sql = "SELECT f.id FROM cc_music_dirs as md LEFT JOIN cc_files as f on f.directory = md.id WHERE md.id = $music_dir_id";
|
||||||
|
$files = $CC_DBC->GetAll($sql);
|
||||||
|
|
||||||
|
// set file_exist flag to false
|
||||||
|
foreach( $files as $file_row ){
|
||||||
|
Logging::log(print_r($file_row['id'], true));
|
||||||
|
$temp_file = Application_Model_StoredFile::Recall($file_row['id']);
|
||||||
|
$temp_file->setFileExistFlag(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
Logging::log("remove!!222222");
|
||||||
|
Logging::log(print_r($this->_dir,true));
|
||||||
|
|
||||||
$this->_dir->delete();
|
// set Removed flat to true
|
||||||
|
self::setRemoved(true);
|
||||||
|
//$res = $this->_dir->delete();
|
||||||
|
|
||||||
|
Logging::log("remove!!44444");
|
||||||
foreach ($show_instances as $show_instance_row) {
|
foreach ($show_instances as $show_instance_row) {
|
||||||
$temp_show = new Application_Model_ShowInstance($show_instance_row["instance_id"]);
|
$temp_show = new Application_Model_ShowInstance($show_instance_row["instance_id"]);
|
||||||
$temp_show->updateScheduledTime();
|
$temp_show->updateScheduledTime();
|
||||||
}
|
}
|
||||||
|
Logging::log("remove end!!");
|
||||||
Application_Model_RabbitMq::PushSchedule();
|
Application_Model_RabbitMq::PushSchedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -93,7 +119,7 @@ class Application_Model_MusicDir {
|
||||||
public static function isPathValid($p_path){
|
public static function isPathValid($p_path){
|
||||||
$dirs = self::getWatchedDirs();
|
$dirs = self::getWatchedDirs();
|
||||||
$dirs[] = self::getStorDir();
|
$dirs[] = self::getStorDir();
|
||||||
|
Logging::log("dirs: ".print_r($dirs, true));
|
||||||
foreach ($dirs as $dirObj){
|
foreach ($dirs as $dirObj){
|
||||||
$dir = $dirObj->getDirectory();
|
$dir = $dirObj->getDirectory();
|
||||||
$diff = strlen($dir) - strlen($p_path);
|
$diff = strlen($dir) - strlen($p_path);
|
||||||
|
@ -118,7 +144,21 @@ class Application_Model_MusicDir {
|
||||||
if(!is_dir($p_path)){
|
if(!is_dir($p_path)){
|
||||||
return array("code"=>2, "error"=>"'$p_path' is not a valid directory.");
|
return array("code"=>2, "error"=>"'$p_path' is not a valid directory.");
|
||||||
}
|
}
|
||||||
$dir = new CcMusicDirs();
|
$real_path = realpath($p_path)."/";
|
||||||
|
if($real_path != "/"){
|
||||||
|
$p_path = $real_path;
|
||||||
|
}
|
||||||
|
Logging::log("dir:".print_r($p_path, true));
|
||||||
|
$exist_dir = self::getDirByPath($p_path);
|
||||||
|
Logging::log(print_r($exist_dir, true));
|
||||||
|
if( $exist_dir == NULL ){
|
||||||
|
Logging::log("new");
|
||||||
|
$dir = new CcMusicDirs();
|
||||||
|
}else{
|
||||||
|
Logging::log("exist");
|
||||||
|
$dir = $exist_dir;
|
||||||
|
}
|
||||||
|
|
||||||
$dir->setType($p_type);
|
$dir->setType($p_type);
|
||||||
$p_path = realpath($p_path)."/";
|
$p_path = realpath($p_path)."/";
|
||||||
|
|
||||||
|
@ -127,9 +167,12 @@ class Application_Model_MusicDir {
|
||||||
/* isPathValid() checks if path is a substring or a superstring of an
|
/* isPathValid() checks if path is a substring or a superstring of an
|
||||||
* existing dir and if not, throws NestedDirectoryException */
|
* existing dir and if not, throws NestedDirectoryException */
|
||||||
self::isPathValid($p_path);
|
self::isPathValid($p_path);
|
||||||
|
$dir->setRemoved(false);
|
||||||
$dir->setDirectory($p_path);
|
$dir->setDirectory($p_path);
|
||||||
|
Logging::log("dir obj:".print_r($dir, true));
|
||||||
$dir->save();
|
if( $exist_dir == NULL ){
|
||||||
|
$dir->save();
|
||||||
|
}
|
||||||
return array("code"=>0);
|
return array("code"=>0);
|
||||||
} catch (NestedDirectoryException $nde){
|
} catch (NestedDirectoryException $nde){
|
||||||
$msg = $nde->getMessage();
|
$msg = $nde->getMessage();
|
||||||
|
@ -200,6 +243,7 @@ class Application_Model_MusicDir {
|
||||||
|
|
||||||
public static function getDirByPath($p_path)
|
public static function getDirByPath($p_path)
|
||||||
{
|
{
|
||||||
|
Logging::log($p_path);
|
||||||
$dir = CcMusicDirsQuery::create()
|
$dir = CcMusicDirsQuery::create()
|
||||||
->filterByDirectory($p_path)
|
->filterByDirectory($p_path)
|
||||||
->findOne();
|
->findOne();
|
||||||
|
@ -219,6 +263,7 @@ class Application_Model_MusicDir {
|
||||||
|
|
||||||
$dirs = CcMusicDirsQuery::create()
|
$dirs = CcMusicDirsQuery::create()
|
||||||
->filterByType("watched")
|
->filterByType("watched")
|
||||||
|
->filterByRemoved(false)
|
||||||
->find();
|
->find();
|
||||||
|
|
||||||
foreach($dirs as $dir) {
|
foreach($dirs as $dir) {
|
||||||
|
@ -248,7 +293,6 @@ class Application_Model_MusicDir {
|
||||||
}
|
}
|
||||||
$dir = self::getStorDir();
|
$dir = self::getStorDir();
|
||||||
// if $p_dir doesn't exist in DB
|
// if $p_dir doesn't exist in DB
|
||||||
$p_dir = realpath($p_dir)."/";
|
|
||||||
$exist = $dir->getDirByPath($p_dir);
|
$exist = $dir->getDirByPath($p_dir);
|
||||||
if($exist == NULL){
|
if($exist == NULL){
|
||||||
$dir->setDirectory($p_dir);
|
$dir->setDirectory($p_dir);
|
||||||
|
@ -267,6 +311,7 @@ class Application_Model_MusicDir {
|
||||||
{
|
{
|
||||||
$dirs = CcMusicDirsQuery::create()
|
$dirs = CcMusicDirsQuery::create()
|
||||||
->filterByType(array("watched", "stor"))
|
->filterByType(array("watched", "stor"))
|
||||||
|
->filterByRemoved(false)
|
||||||
->find();
|
->find();
|
||||||
|
|
||||||
foreach($dirs as $dir) {
|
foreach($dirs as $dir) {
|
||||||
|
@ -286,6 +331,7 @@ class Application_Model_MusicDir {
|
||||||
$p_dir = $real_path;
|
$p_dir = $real_path;
|
||||||
}
|
}
|
||||||
$dir = Application_Model_MusicDir::getDirByPath($p_dir);
|
$dir = Application_Model_MusicDir::getDirByPath($p_dir);
|
||||||
|
Logging::log(print_r($dir,true));
|
||||||
if($dir == NULL){
|
if($dir == NULL){
|
||||||
return array("code"=>1,"error"=>"'$p_dir' doesn't exist in the watched list.");
|
return array("code"=>1,"error"=>"'$p_dir' doesn't exist in the watched list.");
|
||||||
}else{
|
}else{
|
||||||
|
@ -300,7 +346,7 @@ class Application_Model_MusicDir {
|
||||||
public static function splitFilePath($p_filepath)
|
public static function splitFilePath($p_filepath)
|
||||||
{
|
{
|
||||||
$mus_dir = self::getWatchedDirFromFilepath($p_filepath);
|
$mus_dir = self::getWatchedDirFromFilepath($p_filepath);
|
||||||
|
Logging::log("mus_dir:".print_r($mus_dir, true));
|
||||||
if(is_null($mus_dir)) {
|
if(is_null($mus_dir)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -310,8 +310,13 @@ class Application_Model_StoredFile {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Application_Model_Playlist::DeleteFileFromAllPlaylists($this->getId());
|
// don't delete from the playslist. We might want to put a flag
|
||||||
$this->_file->delete();
|
//Application_Model_Playlist::DeleteFileFromAllPlaylists($this->getId());
|
||||||
|
|
||||||
|
// set file_exist falg to false
|
||||||
|
$this->_file->setDbFileExist(false);
|
||||||
|
$this->_file->save();
|
||||||
|
//$this->_file->delete();
|
||||||
|
|
||||||
if (isset($res)) {
|
if (isset($res)) {
|
||||||
return $res;
|
return $res;
|
||||||
|
@ -426,6 +431,7 @@ class Application_Model_StoredFile {
|
||||||
public function setFilePath($p_filepath)
|
public function setFilePath($p_filepath)
|
||||||
{
|
{
|
||||||
$path_info = Application_Model_MusicDir::splitFilePath($p_filepath);
|
$path_info = Application_Model_MusicDir::splitFilePath($p_filepath);
|
||||||
|
Logging::log("path_info:".print_r($path_info, true));
|
||||||
if (is_null($path_info)) {
|
if (is_null($path_info)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -665,7 +671,7 @@ class Application_Model_StoredFile {
|
||||||
|
|
||||||
UNION
|
UNION
|
||||||
|
|
||||||
(".$fileSelect."id FROM ".$CC_CONFIG["filesTable"]." AS FILES)) AS RESULTS";
|
(".$fileSelect."id FROM ".$CC_CONFIG["filesTable"]." AS FILES WHERE file_exist = 'TRUE')) AS RESULTS";
|
||||||
|
|
||||||
return Application_Model_StoredFile::searchFiles($fromTable, $datatables);
|
return Application_Model_StoredFile::searchFiles($fromTable, $datatables);
|
||||||
|
|
||||||
|
@ -744,7 +750,7 @@ class Application_Model_StoredFile {
|
||||||
else {
|
else {
|
||||||
$sql = $selectorRows." FROM ".$fromTable." ORDER BY ".$orderby." OFFSET ".$data["iDisplayStart"]." LIMIT ".$data["iDisplayLength"];
|
$sql = $selectorRows." FROM ".$fromTable." ORDER BY ".$orderby." OFFSET ".$data["iDisplayStart"]." LIMIT ".$data["iDisplayLength"];
|
||||||
}
|
}
|
||||||
|
|
||||||
$results = $CC_DBC->getAll($sql);
|
$results = $CC_DBC->getAll($sql);
|
||||||
//echo $results;
|
//echo $results;
|
||||||
//echo $sql;
|
//echo $sql;
|
||||||
|
@ -955,6 +961,15 @@ class Application_Model_StoredFile {
|
||||||
public function getSoundCloudErrorMsg(){
|
public function getSoundCloudErrorMsg(){
|
||||||
return $this->_file->getDbSoundCloudErrorMsg();
|
return $this->_file->getDbSoundCloudErrorMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setFileExistFlag($flag){
|
||||||
|
$this->_file->setDbFileExist($flag)
|
||||||
|
->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFileExistFlag(){
|
||||||
|
return $this->_file->getDbFileExist();
|
||||||
|
}
|
||||||
|
|
||||||
public function uploadToSoundCloud()
|
public function uploadToSoundCloud()
|
||||||
{
|
{
|
||||||
|
|
|
@ -93,6 +93,7 @@ class CcFilesTableMap extends TableMap {
|
||||||
$this->addColumn('SUBJECT', 'DbSubject', 'VARCHAR', false, 512, null);
|
$this->addColumn('SUBJECT', 'DbSubject', 'VARCHAR', false, 512, null);
|
||||||
$this->addColumn('CONTRIBUTOR', 'DbContributor', 'VARCHAR', false, 512, null);
|
$this->addColumn('CONTRIBUTOR', 'DbContributor', 'VARCHAR', false, 512, null);
|
||||||
$this->addColumn('LANGUAGE', 'DbLanguage', 'VARCHAR', false, 512, null);
|
$this->addColumn('LANGUAGE', 'DbLanguage', 'VARCHAR', false, 512, null);
|
||||||
|
$this->addColumn('FILE_EXIST', 'DbFileExist', 'BOOLEAN', false, null, true);
|
||||||
$this->addColumn('SOUNDCLOUD_ID', 'DbSoundcloudId', 'INTEGER', false, null, null);
|
$this->addColumn('SOUNDCLOUD_ID', 'DbSoundcloudId', 'INTEGER', false, null, null);
|
||||||
$this->addColumn('SOUNDCLOUD_ERROR_CODE', 'DbSoundcloudErrorCode', 'INTEGER', false, null, null);
|
$this->addColumn('SOUNDCLOUD_ERROR_CODE', 'DbSoundcloudErrorCode', 'INTEGER', false, null, null);
|
||||||
$this->addColumn('SOUNDCLOUD_ERROR_MSG', 'DbSoundcloudErrorMsg', 'VARCHAR', false, 512, null);
|
$this->addColumn('SOUNDCLOUD_ERROR_MSG', 'DbSoundcloudErrorMsg', 'VARCHAR', false, 512, null);
|
||||||
|
@ -106,7 +107,7 @@ class CcFilesTableMap extends TableMap {
|
||||||
public function buildRelations()
|
public function buildRelations()
|
||||||
{
|
{
|
||||||
$this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('editedby' => 'id', ), null, null);
|
$this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('editedby' => 'id', ), null, null);
|
||||||
$this->addRelation('CcMusicDirs', 'CcMusicDirs', RelationMap::MANY_TO_ONE, array('directory' => 'id', ), 'CASCADE', null);
|
$this->addRelation('CcMusicDirs', 'CcMusicDirs', RelationMap::MANY_TO_ONE, array('directory' => 'id', ), null, null);
|
||||||
$this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
$this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
||||||
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
||||||
$this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
$this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
||||||
|
|
|
@ -41,6 +41,7 @@ class CcMusicDirsTableMap extends TableMap {
|
||||||
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
|
$this->addPrimaryKey('ID', 'Id', 'INTEGER', true, null, null);
|
||||||
$this->addColumn('DIRECTORY', 'Directory', 'LONGVARCHAR', false, null, null);
|
$this->addColumn('DIRECTORY', 'Directory', 'LONGVARCHAR', false, null, null);
|
||||||
$this->addColumn('TYPE', 'Type', 'VARCHAR', false, 255, null);
|
$this->addColumn('TYPE', 'Type', 'VARCHAR', false, 255, null);
|
||||||
|
$this->addColumn('REMOVED', 'Removed', 'BOOLEAN', false, null, false);
|
||||||
// validators
|
// validators
|
||||||
} // initialize()
|
} // initialize()
|
||||||
|
|
||||||
|
@ -49,7 +50,7 @@ class CcMusicDirsTableMap extends TableMap {
|
||||||
*/
|
*/
|
||||||
public function buildRelations()
|
public function buildRelations()
|
||||||
{
|
{
|
||||||
$this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'directory', ), 'CASCADE', null);
|
$this->addRelation('CcFiles', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'directory', ), null, null);
|
||||||
} // buildRelations()
|
} // buildRelations()
|
||||||
|
|
||||||
} // CcMusicDirsTableMap
|
} // CcMusicDirsTableMap
|
||||||
|
|
|
@ -360,6 +360,13 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $language;
|
protected $language;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the file_exist field.
|
||||||
|
* Note: this column has a database default value of: true
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
protected $file_exist;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the soundcloud_id field.
|
* The value for the soundcloud_id field.
|
||||||
* @var int
|
* @var int
|
||||||
|
@ -437,6 +444,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$this->filepath = '';
|
$this->filepath = '';
|
||||||
$this->state = 'empty';
|
$this->state = 'empty';
|
||||||
$this->currentlyaccessing = 0;
|
$this->currentlyaccessing = 0;
|
||||||
|
$this->file_exist = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1045,6 +1053,16 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
return $this->language;
|
return $this->language;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [file_exist] column value.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function getDbFileExist()
|
||||||
|
{
|
||||||
|
return $this->file_exist;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [soundcloud_id] column value.
|
* Get the [soundcloud_id] column value.
|
||||||
*
|
*
|
||||||
|
@ -2251,6 +2269,26 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
return $this;
|
return $this;
|
||||||
} // setDbLanguage()
|
} // setDbLanguage()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [file_exist] column.
|
||||||
|
*
|
||||||
|
* @param boolean $v new value
|
||||||
|
* @return CcFiles The current object (for fluent API support)
|
||||||
|
*/
|
||||||
|
public function setDbFileExist($v)
|
||||||
|
{
|
||||||
|
if ($v !== null) {
|
||||||
|
$v = (boolean) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->file_exist !== $v || $this->isNew()) {
|
||||||
|
$this->file_exist = $v;
|
||||||
|
$this->modifiedColumns[] = CcFilesPeer::FILE_EXIST;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
} // setDbFileExist()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [soundcloud_id] column.
|
* Set the value of [soundcloud_id] column.
|
||||||
*
|
*
|
||||||
|
@ -2365,6 +2403,10 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->file_exist !== true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// otherwise, everything was equal, so return TRUE
|
// otherwise, everything was equal, so return TRUE
|
||||||
return true;
|
return true;
|
||||||
} // hasOnlyDefaultValues()
|
} // hasOnlyDefaultValues()
|
||||||
|
@ -2442,10 +2484,11 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$this->subject = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
|
$this->subject = ($row[$startcol + 52] !== null) ? (string) $row[$startcol + 52] : null;
|
||||||
$this->contributor = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
|
$this->contributor = ($row[$startcol + 53] !== null) ? (string) $row[$startcol + 53] : null;
|
||||||
$this->language = ($row[$startcol + 54] !== null) ? (string) $row[$startcol + 54] : 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->file_exist = ($row[$startcol + 55] !== null) ? (boolean) $row[$startcol + 55] : null;
|
||||||
$this->soundcloud_error_code = ($row[$startcol + 56] !== null) ? (int) $row[$startcol + 56] : null;
|
$this->soundcloud_id = ($row[$startcol + 56] !== null) ? (int) $row[$startcol + 56] : null;
|
||||||
$this->soundcloud_error_msg = ($row[$startcol + 57] !== null) ? (string) $row[$startcol + 57] : null;
|
$this->soundcloud_error_code = ($row[$startcol + 57] !== null) ? (int) $row[$startcol + 57] : null;
|
||||||
$this->soundcloud_link_to_file = ($row[$startcol + 58] !== null) ? (string) $row[$startcol + 58] : null;
|
$this->soundcloud_error_msg = ($row[$startcol + 58] !== null) ? (string) $row[$startcol + 58] : null;
|
||||||
|
$this->soundcloud_link_to_file = ($row[$startcol + 59] !== null) ? (string) $row[$startcol + 59] : null;
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
@ -2454,7 +2497,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$this->ensureConsistency();
|
$this->ensureConsistency();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $startcol + 59; // 59 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 60; // 60 = CcFilesPeer::NUM_COLUMNS - CcFilesPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating CcFiles object", $e);
|
throw new PropelException("Error populating CcFiles object", $e);
|
||||||
|
@ -3018,15 +3061,18 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
return $this->getDbLanguage();
|
return $this->getDbLanguage();
|
||||||
break;
|
break;
|
||||||
case 55:
|
case 55:
|
||||||
return $this->getDbSoundcloudId();
|
return $this->getDbFileExist();
|
||||||
break;
|
break;
|
||||||
case 56:
|
case 56:
|
||||||
return $this->getDbSoundcloudErrorCode();
|
return $this->getDbSoundcloudId();
|
||||||
break;
|
break;
|
||||||
case 57:
|
case 57:
|
||||||
return $this->getDbSoundcloudErrorMsg();
|
return $this->getDbSoundcloudErrorCode();
|
||||||
break;
|
break;
|
||||||
case 58:
|
case 58:
|
||||||
|
return $this->getDbSoundcloudErrorMsg();
|
||||||
|
break;
|
||||||
|
case 59:
|
||||||
return $this->getDbSoundcloudLinkToFile();
|
return $this->getDbSoundcloudLinkToFile();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -3108,10 +3154,11 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$keys[52] => $this->getDbSubject(),
|
$keys[52] => $this->getDbSubject(),
|
||||||
$keys[53] => $this->getDbContributor(),
|
$keys[53] => $this->getDbContributor(),
|
||||||
$keys[54] => $this->getDbLanguage(),
|
$keys[54] => $this->getDbLanguage(),
|
||||||
$keys[55] => $this->getDbSoundcloudId(),
|
$keys[55] => $this->getDbFileExist(),
|
||||||
$keys[56] => $this->getDbSoundcloudErrorCode(),
|
$keys[56] => $this->getDbSoundcloudId(),
|
||||||
$keys[57] => $this->getDbSoundcloudErrorMsg(),
|
$keys[57] => $this->getDbSoundcloudErrorCode(),
|
||||||
$keys[58] => $this->getDbSoundcloudLinkToFile(),
|
$keys[58] => $this->getDbSoundcloudErrorMsg(),
|
||||||
|
$keys[59] => $this->getDbSoundcloudLinkToFile(),
|
||||||
);
|
);
|
||||||
if ($includeForeignObjects) {
|
if ($includeForeignObjects) {
|
||||||
if (null !== $this->aCcSubjs) {
|
if (null !== $this->aCcSubjs) {
|
||||||
|
@ -3317,15 +3364,18 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$this->setDbLanguage($value);
|
$this->setDbLanguage($value);
|
||||||
break;
|
break;
|
||||||
case 55:
|
case 55:
|
||||||
$this->setDbSoundcloudId($value);
|
$this->setDbFileExist($value);
|
||||||
break;
|
break;
|
||||||
case 56:
|
case 56:
|
||||||
$this->setDbSoundcloudErrorCode($value);
|
$this->setDbSoundcloudId($value);
|
||||||
break;
|
break;
|
||||||
case 57:
|
case 57:
|
||||||
$this->setDbSoundcloudErrorMsg($value);
|
$this->setDbSoundcloudErrorCode($value);
|
||||||
break;
|
break;
|
||||||
case 58:
|
case 58:
|
||||||
|
$this->setDbSoundcloudErrorMsg($value);
|
||||||
|
break;
|
||||||
|
case 59:
|
||||||
$this->setDbSoundcloudLinkToFile($value);
|
$this->setDbSoundcloudLinkToFile($value);
|
||||||
break;
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
|
@ -3407,10 +3457,11 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
if (array_key_exists($keys[52], $arr)) $this->setDbSubject($arr[$keys[52]]);
|
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[53], $arr)) $this->setDbContributor($arr[$keys[53]]);
|
||||||
if (array_key_exists($keys[54], $arr)) $this->setDbLanguage($arr[$keys[54]]);
|
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[55], $arr)) $this->setDbFileExist($arr[$keys[55]]);
|
||||||
if (array_key_exists($keys[56], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[56]]);
|
if (array_key_exists($keys[56], $arr)) $this->setDbSoundcloudId($arr[$keys[56]]);
|
||||||
if (array_key_exists($keys[57], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[57]]);
|
if (array_key_exists($keys[57], $arr)) $this->setDbSoundcloudErrorCode($arr[$keys[57]]);
|
||||||
if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[58]]);
|
if (array_key_exists($keys[58], $arr)) $this->setDbSoundcloudErrorMsg($arr[$keys[58]]);
|
||||||
|
if (array_key_exists($keys[59], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[59]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -3477,6 +3528,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcFilesPeer::SUBJECT)) $criteria->add(CcFilesPeer::SUBJECT, $this->subject);
|
if ($this->isColumnModified(CcFilesPeer::SUBJECT)) $criteria->add(CcFilesPeer::SUBJECT, $this->subject);
|
||||||
if ($this->isColumnModified(CcFilesPeer::CONTRIBUTOR)) $criteria->add(CcFilesPeer::CONTRIBUTOR, $this->contributor);
|
if ($this->isColumnModified(CcFilesPeer::CONTRIBUTOR)) $criteria->add(CcFilesPeer::CONTRIBUTOR, $this->contributor);
|
||||||
if ($this->isColumnModified(CcFilesPeer::LANGUAGE)) $criteria->add(CcFilesPeer::LANGUAGE, $this->language);
|
if ($this->isColumnModified(CcFilesPeer::LANGUAGE)) $criteria->add(CcFilesPeer::LANGUAGE, $this->language);
|
||||||
|
if ($this->isColumnModified(CcFilesPeer::FILE_EXIST)) $criteria->add(CcFilesPeer::FILE_EXIST, $this->file_exist);
|
||||||
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ID)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ID, $this->soundcloud_id);
|
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ID)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ID, $this->soundcloud_id);
|
||||||
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_CODE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $this->soundcloud_error_code);
|
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_CODE)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_CODE, $this->soundcloud_error_code);
|
||||||
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_MSG)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $this->soundcloud_error_msg);
|
if ($this->isColumnModified(CcFilesPeer::SOUNDCLOUD_ERROR_MSG)) $criteria->add(CcFilesPeer::SOUNDCLOUD_ERROR_MSG, $this->soundcloud_error_msg);
|
||||||
|
@ -3596,6 +3648,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$copyObj->setDbSubject($this->subject);
|
$copyObj->setDbSubject($this->subject);
|
||||||
$copyObj->setDbContributor($this->contributor);
|
$copyObj->setDbContributor($this->contributor);
|
||||||
$copyObj->setDbLanguage($this->language);
|
$copyObj->setDbLanguage($this->language);
|
||||||
|
$copyObj->setDbFileExist($this->file_exist);
|
||||||
$copyObj->setDbSoundcloudId($this->soundcloud_id);
|
$copyObj->setDbSoundcloudId($this->soundcloud_id);
|
||||||
$copyObj->setDbSoundcloudErrorCode($this->soundcloud_error_code);
|
$copyObj->setDbSoundcloudErrorCode($this->soundcloud_error_code);
|
||||||
$copyObj->setDbSoundcloudErrorMsg($this->soundcloud_error_msg);
|
$copyObj->setDbSoundcloudErrorMsg($this->soundcloud_error_msg);
|
||||||
|
@ -4254,6 +4307,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
||||||
$this->subject = null;
|
$this->subject = null;
|
||||||
$this->contributor = null;
|
$this->contributor = null;
|
||||||
$this->language = null;
|
$this->language = null;
|
||||||
|
$this->file_exist = null;
|
||||||
$this->soundcloud_id = null;
|
$this->soundcloud_id = null;
|
||||||
$this->soundcloud_error_code = null;
|
$this->soundcloud_error_code = null;
|
||||||
$this->soundcloud_error_msg = null;
|
$this->soundcloud_error_msg = null;
|
||||||
|
|
|
@ -26,7 +26,7 @@ abstract class BaseCcFilesPeer {
|
||||||
const TM_CLASS = 'CcFilesTableMap';
|
const TM_CLASS = 'CcFilesTableMap';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 59;
|
const NUM_COLUMNS = 60;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
@ -196,6 +196,9 @@ abstract class BaseCcFilesPeer {
|
||||||
/** the column name for the LANGUAGE field */
|
/** the column name for the LANGUAGE field */
|
||||||
const LANGUAGE = 'cc_files.LANGUAGE';
|
const LANGUAGE = 'cc_files.LANGUAGE';
|
||||||
|
|
||||||
|
/** the column name for the FILE_EXIST field */
|
||||||
|
const FILE_EXIST = 'cc_files.FILE_EXIST';
|
||||||
|
|
||||||
/** the column name for the SOUNDCLOUD_ID field */
|
/** the column name for the SOUNDCLOUD_ID field */
|
||||||
const SOUNDCLOUD_ID = 'cc_files.SOUNDCLOUD_ID';
|
const SOUNDCLOUD_ID = 'cc_files.SOUNDCLOUD_ID';
|
||||||
|
|
||||||
|
@ -224,12 +227,12 @@ abstract class BaseCcFilesPeer {
|
||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbGunid', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', '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', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', ),
|
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbGunid', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', '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', 'DbFileExist', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbGunid', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', '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', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbGunid', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', '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', 'dbFileExist', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', ),
|
||||||
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::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::SOUNDCLOUD_ID, self::SOUNDCLOUD_ERROR_CODE, self::SOUNDCLOUD_ERROR_MSG, self::SOUNDCLOUD_LINK_TO_FILE, ),
|
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::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_EXIST, self::SOUNDCLOUD_ID, self::SOUNDCLOUD_ERROR_CODE, self::SOUNDCLOUD_ERROR_MSG, self::SOUNDCLOUD_LINK_TO_FILE, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'GUNID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'STATE', 'CURRENTLYACCESSING', 'EDITEDBY', 'MTIME', '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', 'SOUNDCLOUD_ID', 'SOUNDCLOUD_ERROR_CODE', 'SOUNDCLOUD_ERROR_MSG', 'SOUNDCLOUD_LINK_TO_FILE', ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'GUNID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'STATE', 'CURRENTLYACCESSING', 'EDITEDBY', 'MTIME', '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_EXIST', 'SOUNDCLOUD_ID', 'SOUNDCLOUD_ERROR_CODE', 'SOUNDCLOUD_ERROR_MSG', 'SOUNDCLOUD_LINK_TO_FILE', ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id', 'gunid', 'name', 'mime', 'ftype', 'directory', 'filepath', 'state', 'currentlyaccessing', 'editedby', 'mtime', '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', 'soundcloud_id', 'soundcloud_error_code', 'soundcloud_error_msg', 'soundcloud_link_to_file', ),
|
BasePeer::TYPE_FIELDNAME => array ('id', 'gunid', 'name', 'mime', 'ftype', 'directory', 'filepath', 'state', 'currentlyaccessing', 'editedby', 'mtime', '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_exist', 'soundcloud_id', 'soundcloud_error_code', 'soundcloud_error_msg', 'soundcloud_link_to_file', ),
|
||||||
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, )
|
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, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -239,12 +242,12 @@ abstract class BaseCcFilesPeer {
|
||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
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, 'DbMd5' => 11, 'DbTrackTitle' => 12, 'DbArtistName' => 13, 'DbBitRate' => 14, 'DbSampleRate' => 15, 'DbFormat' => 16, 'DbLength' => 17, 'DbAlbumTitle' => 18, 'DbGenre' => 19, 'DbComments' => 20, 'DbYear' => 21, 'DbTrackNumber' => 22, 'DbChannels' => 23, 'DbUrl' => 24, 'DbBpm' => 25, 'DbRating' => 26, 'DbEncodedBy' => 27, 'DbDiscNumber' => 28, 'DbMood' => 29, 'DbLabel' => 30, 'DbComposer' => 31, 'DbEncoder' => 32, 'DbChecksum' => 33, 'DbLyrics' => 34, 'DbOrchestra' => 35, 'DbConductor' => 36, 'DbLyricist' => 37, 'DbOriginalLyricist' => 38, 'DbRadioStationName' => 39, 'DbInfoUrl' => 40, 'DbArtistUrl' => 41, 'DbAudioSourceUrl' => 42, 'DbRadioStationUrl' => 43, 'DbBuyThisUrl' => 44, 'DbIsrcNumber' => 45, 'DbCatalogNumber' => 46, 'DbOriginalArtist' => 47, 'DbCopyright' => 48, 'DbReportDatetime' => 49, 'DbReportLocation' => 50, 'DbReportOrganization' => 51, 'DbSubject' => 52, 'DbContributor' => 53, 'DbLanguage' => 54, 'DbSoundcloudId' => 55, 'DbSoundcloudErrorCode' => 56, 'DbSoundcloudErrorMsg' => 57, 'DbSoundcloudLinkToFile' => 58, ),
|
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, 'DbMd5' => 11, 'DbTrackTitle' => 12, 'DbArtistName' => 13, 'DbBitRate' => 14, 'DbSampleRate' => 15, 'DbFormat' => 16, 'DbLength' => 17, 'DbAlbumTitle' => 18, 'DbGenre' => 19, 'DbComments' => 20, 'DbYear' => 21, 'DbTrackNumber' => 22, 'DbChannels' => 23, 'DbUrl' => 24, 'DbBpm' => 25, 'DbRating' => 26, 'DbEncodedBy' => 27, 'DbDiscNumber' => 28, 'DbMood' => 29, 'DbLabel' => 30, 'DbComposer' => 31, 'DbEncoder' => 32, 'DbChecksum' => 33, 'DbLyrics' => 34, 'DbOrchestra' => 35, 'DbConductor' => 36, 'DbLyricist' => 37, 'DbOriginalLyricist' => 38, 'DbRadioStationName' => 39, 'DbInfoUrl' => 40, 'DbArtistUrl' => 41, 'DbAudioSourceUrl' => 42, 'DbRadioStationUrl' => 43, 'DbBuyThisUrl' => 44, 'DbIsrcNumber' => 45, 'DbCatalogNumber' => 46, 'DbOriginalArtist' => 47, 'DbCopyright' => 48, 'DbReportDatetime' => 49, 'DbReportLocation' => 50, 'DbReportOrganization' => 51, 'DbSubject' => 52, 'DbContributor' => 53, 'DbLanguage' => 54, 'DbFileExist' => 55, 'DbSoundcloudId' => 56, 'DbSoundcloudErrorCode' => 57, 'DbSoundcloudErrorMsg' => 58, 'DbSoundcloudLinkToFile' => 59, ),
|
||||||
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, 'dbMd5' => 11, 'dbTrackTitle' => 12, 'dbArtistName' => 13, 'dbBitRate' => 14, 'dbSampleRate' => 15, 'dbFormat' => 16, 'dbLength' => 17, 'dbAlbumTitle' => 18, 'dbGenre' => 19, 'dbComments' => 20, 'dbYear' => 21, 'dbTrackNumber' => 22, 'dbChannels' => 23, 'dbUrl' => 24, 'dbBpm' => 25, 'dbRating' => 26, 'dbEncodedBy' => 27, 'dbDiscNumber' => 28, 'dbMood' => 29, 'dbLabel' => 30, 'dbComposer' => 31, 'dbEncoder' => 32, 'dbChecksum' => 33, 'dbLyrics' => 34, 'dbOrchestra' => 35, 'dbConductor' => 36, 'dbLyricist' => 37, 'dbOriginalLyricist' => 38, 'dbRadioStationName' => 39, 'dbInfoUrl' => 40, 'dbArtistUrl' => 41, 'dbAudioSourceUrl' => 42, 'dbRadioStationUrl' => 43, 'dbBuyThisUrl' => 44, 'dbIsrcNumber' => 45, 'dbCatalogNumber' => 46, 'dbOriginalArtist' => 47, 'dbCopyright' => 48, 'dbReportDatetime' => 49, 'dbReportLocation' => 50, 'dbReportOrganization' => 51, 'dbSubject' => 52, 'dbContributor' => 53, 'dbLanguage' => 54, 'dbSoundcloudId' => 55, 'dbSoundcloudErrorCode' => 56, 'dbSoundcloudErrorMsg' => 57, 'dbSoundcloudLinkToFile' => 58, ),
|
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, 'dbMd5' => 11, 'dbTrackTitle' => 12, 'dbArtistName' => 13, 'dbBitRate' => 14, 'dbSampleRate' => 15, 'dbFormat' => 16, 'dbLength' => 17, 'dbAlbumTitle' => 18, 'dbGenre' => 19, 'dbComments' => 20, 'dbYear' => 21, 'dbTrackNumber' => 22, 'dbChannels' => 23, 'dbUrl' => 24, 'dbBpm' => 25, 'dbRating' => 26, 'dbEncodedBy' => 27, 'dbDiscNumber' => 28, 'dbMood' => 29, 'dbLabel' => 30, 'dbComposer' => 31, 'dbEncoder' => 32, 'dbChecksum' => 33, 'dbLyrics' => 34, 'dbOrchestra' => 35, 'dbConductor' => 36, 'dbLyricist' => 37, 'dbOriginalLyricist' => 38, 'dbRadioStationName' => 39, 'dbInfoUrl' => 40, 'dbArtistUrl' => 41, 'dbAudioSourceUrl' => 42, 'dbRadioStationUrl' => 43, 'dbBuyThisUrl' => 44, 'dbIsrcNumber' => 45, 'dbCatalogNumber' => 46, 'dbOriginalArtist' => 47, 'dbCopyright' => 48, 'dbReportDatetime' => 49, 'dbReportLocation' => 50, 'dbReportOrganization' => 51, 'dbSubject' => 52, 'dbContributor' => 53, 'dbLanguage' => 54, 'dbFileExist' => 55, 'dbSoundcloudId' => 56, 'dbSoundcloudErrorCode' => 57, 'dbSoundcloudErrorMsg' => 58, 'dbSoundcloudLinkToFile' => 59, ),
|
||||||
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::MD5 => 11, self::TRACK_TITLE => 12, self::ARTIST_NAME => 13, self::BIT_RATE => 14, self::SAMPLE_RATE => 15, self::FORMAT => 16, self::LENGTH => 17, self::ALBUM_TITLE => 18, self::GENRE => 19, self::COMMENTS => 20, self::YEAR => 21, self::TRACK_NUMBER => 22, self::CHANNELS => 23, self::URL => 24, self::BPM => 25, self::RATING => 26, self::ENCODED_BY => 27, self::DISC_NUMBER => 28, self::MOOD => 29, self::LABEL => 30, self::COMPOSER => 31, self::ENCODER => 32, self::CHECKSUM => 33, self::LYRICS => 34, self::ORCHESTRA => 35, self::CONDUCTOR => 36, self::LYRICIST => 37, self::ORIGINAL_LYRICIST => 38, self::RADIO_STATION_NAME => 39, self::INFO_URL => 40, self::ARTIST_URL => 41, self::AUDIO_SOURCE_URL => 42, self::RADIO_STATION_URL => 43, self::BUY_THIS_URL => 44, self::ISRC_NUMBER => 45, self::CATALOG_NUMBER => 46, self::ORIGINAL_ARTIST => 47, self::COPYRIGHT => 48, self::REPORT_DATETIME => 49, self::REPORT_LOCATION => 50, self::REPORT_ORGANIZATION => 51, self::SUBJECT => 52, self::CONTRIBUTOR => 53, self::LANGUAGE => 54, self::SOUNDCLOUD_ID => 55, self::SOUNDCLOUD_ERROR_CODE => 56, self::SOUNDCLOUD_ERROR_MSG => 57, self::SOUNDCLOUD_LINK_TO_FILE => 58, ),
|
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::MD5 => 11, self::TRACK_TITLE => 12, self::ARTIST_NAME => 13, self::BIT_RATE => 14, self::SAMPLE_RATE => 15, self::FORMAT => 16, self::LENGTH => 17, self::ALBUM_TITLE => 18, self::GENRE => 19, self::COMMENTS => 20, self::YEAR => 21, self::TRACK_NUMBER => 22, self::CHANNELS => 23, self::URL => 24, self::BPM => 25, self::RATING => 26, self::ENCODED_BY => 27, self::DISC_NUMBER => 28, self::MOOD => 29, self::LABEL => 30, self::COMPOSER => 31, self::ENCODER => 32, self::CHECKSUM => 33, self::LYRICS => 34, self::ORCHESTRA => 35, self::CONDUCTOR => 36, self::LYRICIST => 37, self::ORIGINAL_LYRICIST => 38, self::RADIO_STATION_NAME => 39, self::INFO_URL => 40, self::ARTIST_URL => 41, self::AUDIO_SOURCE_URL => 42, self::RADIO_STATION_URL => 43, self::BUY_THIS_URL => 44, self::ISRC_NUMBER => 45, self::CATALOG_NUMBER => 46, self::ORIGINAL_ARTIST => 47, self::COPYRIGHT => 48, self::REPORT_DATETIME => 49, self::REPORT_LOCATION => 50, self::REPORT_ORGANIZATION => 51, self::SUBJECT => 52, self::CONTRIBUTOR => 53, self::LANGUAGE => 54, self::FILE_EXIST => 55, self::SOUNDCLOUD_ID => 56, self::SOUNDCLOUD_ERROR_CODE => 57, self::SOUNDCLOUD_ERROR_MSG => 58, self::SOUNDCLOUD_LINK_TO_FILE => 59, ),
|
||||||
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, 'MD5' => 11, 'TRACK_TITLE' => 12, 'ARTIST_NAME' => 13, 'BIT_RATE' => 14, 'SAMPLE_RATE' => 15, 'FORMAT' => 16, 'LENGTH' => 17, 'ALBUM_TITLE' => 18, 'GENRE' => 19, 'COMMENTS' => 20, 'YEAR' => 21, 'TRACK_NUMBER' => 22, 'CHANNELS' => 23, 'URL' => 24, 'BPM' => 25, 'RATING' => 26, 'ENCODED_BY' => 27, 'DISC_NUMBER' => 28, 'MOOD' => 29, 'LABEL' => 30, 'COMPOSER' => 31, 'ENCODER' => 32, 'CHECKSUM' => 33, 'LYRICS' => 34, 'ORCHESTRA' => 35, 'CONDUCTOR' => 36, 'LYRICIST' => 37, 'ORIGINAL_LYRICIST' => 38, 'RADIO_STATION_NAME' => 39, 'INFO_URL' => 40, 'ARTIST_URL' => 41, 'AUDIO_SOURCE_URL' => 42, 'RADIO_STATION_URL' => 43, 'BUY_THIS_URL' => 44, 'ISRC_NUMBER' => 45, 'CATALOG_NUMBER' => 46, 'ORIGINAL_ARTIST' => 47, 'COPYRIGHT' => 48, 'REPORT_DATETIME' => 49, 'REPORT_LOCATION' => 50, 'REPORT_ORGANIZATION' => 51, 'SUBJECT' => 52, 'CONTRIBUTOR' => 53, 'LANGUAGE' => 54, 'SOUNDCLOUD_ID' => 55, 'SOUNDCLOUD_ERROR_CODE' => 56, 'SOUNDCLOUD_ERROR_MSG' => 57, 'SOUNDCLOUD_LINK_TO_FILE' => 58, ),
|
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, 'MD5' => 11, 'TRACK_TITLE' => 12, 'ARTIST_NAME' => 13, 'BIT_RATE' => 14, 'SAMPLE_RATE' => 15, 'FORMAT' => 16, 'LENGTH' => 17, 'ALBUM_TITLE' => 18, 'GENRE' => 19, 'COMMENTS' => 20, 'YEAR' => 21, 'TRACK_NUMBER' => 22, 'CHANNELS' => 23, 'URL' => 24, 'BPM' => 25, 'RATING' => 26, 'ENCODED_BY' => 27, 'DISC_NUMBER' => 28, 'MOOD' => 29, 'LABEL' => 30, 'COMPOSER' => 31, 'ENCODER' => 32, 'CHECKSUM' => 33, 'LYRICS' => 34, 'ORCHESTRA' => 35, 'CONDUCTOR' => 36, 'LYRICIST' => 37, 'ORIGINAL_LYRICIST' => 38, 'RADIO_STATION_NAME' => 39, 'INFO_URL' => 40, 'ARTIST_URL' => 41, 'AUDIO_SOURCE_URL' => 42, 'RADIO_STATION_URL' => 43, 'BUY_THIS_URL' => 44, 'ISRC_NUMBER' => 45, 'CATALOG_NUMBER' => 46, 'ORIGINAL_ARTIST' => 47, 'COPYRIGHT' => 48, 'REPORT_DATETIME' => 49, 'REPORT_LOCATION' => 50, 'REPORT_ORGANIZATION' => 51, 'SUBJECT' => 52, 'CONTRIBUTOR' => 53, 'LANGUAGE' => 54, 'FILE_EXIST' => 55, 'SOUNDCLOUD_ID' => 56, 'SOUNDCLOUD_ERROR_CODE' => 57, 'SOUNDCLOUD_ERROR_MSG' => 58, 'SOUNDCLOUD_LINK_TO_FILE' => 59, ),
|
||||||
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, 'md5' => 11, 'track_title' => 12, 'artist_name' => 13, 'bit_rate' => 14, 'sample_rate' => 15, 'format' => 16, 'length' => 17, 'album_title' => 18, 'genre' => 19, 'comments' => 20, 'year' => 21, 'track_number' => 22, 'channels' => 23, 'url' => 24, 'bpm' => 25, 'rating' => 26, 'encoded_by' => 27, 'disc_number' => 28, 'mood' => 29, 'label' => 30, 'composer' => 31, 'encoder' => 32, 'checksum' => 33, 'lyrics' => 34, 'orchestra' => 35, 'conductor' => 36, 'lyricist' => 37, 'original_lyricist' => 38, 'radio_station_name' => 39, 'info_url' => 40, 'artist_url' => 41, 'audio_source_url' => 42, 'radio_station_url' => 43, 'buy_this_url' => 44, 'isrc_number' => 45, 'catalog_number' => 46, 'original_artist' => 47, 'copyright' => 48, 'report_datetime' => 49, 'report_location' => 50, 'report_organization' => 51, 'subject' => 52, 'contributor' => 53, 'language' => 54, 'soundcloud_id' => 55, 'soundcloud_error_code' => 56, 'soundcloud_error_msg' => 57, 'soundcloud_link_to_file' => 58, ),
|
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, 'md5' => 11, 'track_title' => 12, 'artist_name' => 13, 'bit_rate' => 14, 'sample_rate' => 15, 'format' => 16, 'length' => 17, 'album_title' => 18, 'genre' => 19, 'comments' => 20, 'year' => 21, 'track_number' => 22, 'channels' => 23, 'url' => 24, 'bpm' => 25, 'rating' => 26, 'encoded_by' => 27, 'disc_number' => 28, 'mood' => 29, 'label' => 30, 'composer' => 31, 'encoder' => 32, 'checksum' => 33, 'lyrics' => 34, 'orchestra' => 35, 'conductor' => 36, 'lyricist' => 37, 'original_lyricist' => 38, 'radio_station_name' => 39, 'info_url' => 40, 'artist_url' => 41, 'audio_source_url' => 42, 'radio_station_url' => 43, 'buy_this_url' => 44, 'isrc_number' => 45, 'catalog_number' => 46, 'original_artist' => 47, 'copyright' => 48, 'report_datetime' => 49, 'report_location' => 50, 'report_organization' => 51, 'subject' => 52, 'contributor' => 53, 'language' => 54, 'file_exist' => 55, 'soundcloud_id' => 56, 'soundcloud_error_code' => 57, 'soundcloud_error_msg' => 58, 'soundcloud_link_to_file' => 59, ),
|
||||||
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, )
|
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, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -371,6 +374,7 @@ abstract class BaseCcFilesPeer {
|
||||||
$criteria->addSelectColumn(CcFilesPeer::SUBJECT);
|
$criteria->addSelectColumn(CcFilesPeer::SUBJECT);
|
||||||
$criteria->addSelectColumn(CcFilesPeer::CONTRIBUTOR);
|
$criteria->addSelectColumn(CcFilesPeer::CONTRIBUTOR);
|
||||||
$criteria->addSelectColumn(CcFilesPeer::LANGUAGE);
|
$criteria->addSelectColumn(CcFilesPeer::LANGUAGE);
|
||||||
|
$criteria->addSelectColumn(CcFilesPeer::FILE_EXIST);
|
||||||
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ID);
|
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ID);
|
||||||
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_CODE);
|
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_CODE);
|
||||||
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_MSG);
|
$criteria->addSelectColumn(CcFilesPeer::SOUNDCLOUD_ERROR_MSG);
|
||||||
|
@ -431,6 +435,7 @@ abstract class BaseCcFilesPeer {
|
||||||
$criteria->addSelectColumn($alias . '.SUBJECT');
|
$criteria->addSelectColumn($alias . '.SUBJECT');
|
||||||
$criteria->addSelectColumn($alias . '.CONTRIBUTOR');
|
$criteria->addSelectColumn($alias . '.CONTRIBUTOR');
|
||||||
$criteria->addSelectColumn($alias . '.LANGUAGE');
|
$criteria->addSelectColumn($alias . '.LANGUAGE');
|
||||||
|
$criteria->addSelectColumn($alias . '.FILE_EXIST');
|
||||||
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ID');
|
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ID');
|
||||||
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_CODE');
|
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_CODE');
|
||||||
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_MSG');
|
$criteria->addSelectColumn($alias . '.SOUNDCLOUD_ERROR_MSG');
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
* @method CcFilesQuery orderByDbSubject($order = Criteria::ASC) Order by the subject column
|
* @method CcFilesQuery orderByDbSubject($order = Criteria::ASC) Order by the subject column
|
||||||
* @method CcFilesQuery orderByDbContributor($order = Criteria::ASC) Order by the contributor column
|
* @method CcFilesQuery orderByDbContributor($order = Criteria::ASC) Order by the contributor column
|
||||||
* @method CcFilesQuery orderByDbLanguage($order = Criteria::ASC) Order by the language column
|
* @method CcFilesQuery orderByDbLanguage($order = Criteria::ASC) Order by the language column
|
||||||
|
* @method CcFilesQuery orderByDbFileExist($order = Criteria::ASC) Order by the file_exist column
|
||||||
* @method CcFilesQuery orderByDbSoundcloudId($order = Criteria::ASC) Order by the soundcloud_id column
|
* @method CcFilesQuery orderByDbSoundcloudId($order = Criteria::ASC) Order by the soundcloud_id column
|
||||||
* @method CcFilesQuery orderByDbSoundcloudErrorCode($order = Criteria::ASC) Order by the soundcloud_error_code column
|
* @method CcFilesQuery orderByDbSoundcloudErrorCode($order = Criteria::ASC) Order by the soundcloud_error_code column
|
||||||
* @method CcFilesQuery orderByDbSoundcloudErrorMsg($order = Criteria::ASC) Order by the soundcloud_error_msg column
|
* @method CcFilesQuery orderByDbSoundcloudErrorMsg($order = Criteria::ASC) Order by the soundcloud_error_msg column
|
||||||
|
@ -121,6 +122,7 @@
|
||||||
* @method CcFilesQuery groupByDbSubject() Group by the subject column
|
* @method CcFilesQuery groupByDbSubject() Group by the subject column
|
||||||
* @method CcFilesQuery groupByDbContributor() Group by the contributor column
|
* @method CcFilesQuery groupByDbContributor() Group by the contributor column
|
||||||
* @method CcFilesQuery groupByDbLanguage() Group by the language column
|
* @method CcFilesQuery groupByDbLanguage() Group by the language column
|
||||||
|
* @method CcFilesQuery groupByDbFileExist() Group by the file_exist column
|
||||||
* @method CcFilesQuery groupByDbSoundcloudId() Group by the soundcloud_id column
|
* @method CcFilesQuery groupByDbSoundcloudId() Group by the soundcloud_id column
|
||||||
* @method CcFilesQuery groupByDbSoundcloudErrorCode() Group by the soundcloud_error_code column
|
* @method CcFilesQuery groupByDbSoundcloudErrorCode() Group by the soundcloud_error_code column
|
||||||
* @method CcFilesQuery groupByDbSoundcloudErrorMsg() Group by the soundcloud_error_msg column
|
* @method CcFilesQuery groupByDbSoundcloudErrorMsg() Group by the soundcloud_error_msg column
|
||||||
|
@ -208,6 +210,7 @@
|
||||||
* @method CcFiles findOneByDbSubject(string $subject) Return the first CcFiles filtered by the subject column
|
* @method CcFiles findOneByDbSubject(string $subject) Return the first CcFiles filtered by the subject column
|
||||||
* @method CcFiles findOneByDbContributor(string $contributor) Return the first CcFiles filtered by the contributor column
|
* @method CcFiles findOneByDbContributor(string $contributor) Return the first CcFiles filtered by the contributor column
|
||||||
* @method CcFiles findOneByDbLanguage(string $language) Return the first CcFiles filtered by the language column
|
* @method CcFiles findOneByDbLanguage(string $language) Return the first CcFiles filtered by the language column
|
||||||
|
* @method CcFiles findOneByDbFileExist(boolean $file_exist) Return the first CcFiles filtered by the file_exist column
|
||||||
* @method CcFiles findOneByDbSoundcloudId(int $soundcloud_id) Return the first CcFiles filtered by the soundcloud_id column
|
* @method CcFiles findOneByDbSoundcloudId(int $soundcloud_id) Return the first CcFiles filtered by the soundcloud_id column
|
||||||
* @method CcFiles findOneByDbSoundcloudErrorCode(int $soundcloud_error_code) Return the first CcFiles filtered by the soundcloud_error_code column
|
* @method CcFiles findOneByDbSoundcloudErrorCode(int $soundcloud_error_code) Return the first CcFiles filtered by the soundcloud_error_code column
|
||||||
* @method CcFiles findOneByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return the first CcFiles filtered by the soundcloud_error_msg column
|
* @method CcFiles findOneByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return the first CcFiles filtered by the soundcloud_error_msg column
|
||||||
|
@ -268,6 +271,7 @@
|
||||||
* @method array findByDbSubject(string $subject) Return CcFiles objects filtered by the subject column
|
* @method array findByDbSubject(string $subject) Return CcFiles objects filtered by the subject column
|
||||||
* @method array findByDbContributor(string $contributor) Return CcFiles objects filtered by the contributor column
|
* @method array findByDbContributor(string $contributor) Return CcFiles objects filtered by the contributor column
|
||||||
* @method array findByDbLanguage(string $language) Return CcFiles objects filtered by the language column
|
* @method array findByDbLanguage(string $language) Return CcFiles objects filtered by the language column
|
||||||
|
* @method array findByDbFileExist(boolean $file_exist) Return CcFiles objects filtered by the file_exist column
|
||||||
* @method array findByDbSoundcloudId(int $soundcloud_id) Return CcFiles objects filtered by the soundcloud_id column
|
* @method array findByDbSoundcloudId(int $soundcloud_id) Return CcFiles objects filtered by the soundcloud_id column
|
||||||
* @method array findByDbSoundcloudErrorCode(int $soundcloud_error_code) Return CcFiles objects filtered by the soundcloud_error_code column
|
* @method array findByDbSoundcloudErrorCode(int $soundcloud_error_code) Return CcFiles objects filtered by the soundcloud_error_code column
|
||||||
* @method array findByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return CcFiles objects filtered by the soundcloud_error_msg column
|
* @method array findByDbSoundcloudErrorMsg(string $soundcloud_error_msg) Return CcFiles objects filtered by the soundcloud_error_msg column
|
||||||
|
@ -1649,6 +1653,23 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
||||||
return $this->addUsingAlias(CcFilesPeer::LANGUAGE, $dbLanguage, $comparison);
|
return $this->addUsingAlias(CcFilesPeer::LANGUAGE, $dbLanguage, $comparison);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the query on the file_exist column
|
||||||
|
*
|
||||||
|
* @param boolean|string $dbFileExist The value to use as filter.
|
||||||
|
* Accepts strings ('false', 'off', '-', 'no', 'n', and '0' are false, the rest is true)
|
||||||
|
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||||
|
*
|
||||||
|
* @return CcFilesQuery The current query, for fluid interface
|
||||||
|
*/
|
||||||
|
public function filterByDbFileExist($dbFileExist = null, $comparison = null)
|
||||||
|
{
|
||||||
|
if (is_string($dbFileExist)) {
|
||||||
|
$file_exist = in_array(strtolower($dbFileExist), array('false', 'off', '-', 'no', 'n', '0')) ? false : true;
|
||||||
|
}
|
||||||
|
return $this->addUsingAlias(CcFilesPeer::FILE_EXIST, $dbFileExist, $comparison);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the query on the soundcloud_id column
|
* Filter the query on the soundcloud_id column
|
||||||
*
|
*
|
||||||
|
|
|
@ -42,6 +42,13 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $type;
|
protected $type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the removed field.
|
||||||
|
* Note: this column has a database default value of: false
|
||||||
|
* @var boolean
|
||||||
|
*/
|
||||||
|
protected $removed;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array CcFiles[] Collection to store aggregation of CcFiles objects.
|
* @var array CcFiles[] Collection to store aggregation of CcFiles objects.
|
||||||
*/
|
*/
|
||||||
|
@ -61,6 +68,27 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $alreadyInValidation = false;
|
protected $alreadyInValidation = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Applies default values to this object.
|
||||||
|
* This method should be called from the object's constructor (or
|
||||||
|
* equivalent initialization method).
|
||||||
|
* @see __construct()
|
||||||
|
*/
|
||||||
|
public function applyDefaultValues()
|
||||||
|
{
|
||||||
|
$this->removed = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initializes internal state of BaseCcMusicDirs object.
|
||||||
|
* @see applyDefaults()
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->applyDefaultValues();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [id] column value.
|
* Get the [id] column value.
|
||||||
*
|
*
|
||||||
|
@ -91,6 +119,16 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
return $this->type;
|
return $this->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [removed] column value.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function getRemoved()
|
||||||
|
{
|
||||||
|
return $this->removed;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [id] column.
|
* Set the value of [id] column.
|
||||||
*
|
*
|
||||||
|
@ -151,6 +189,26 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
return $this;
|
return $this;
|
||||||
} // setType()
|
} // setType()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [removed] column.
|
||||||
|
*
|
||||||
|
* @param boolean $v new value
|
||||||
|
* @return CcMusicDirs The current object (for fluent API support)
|
||||||
|
*/
|
||||||
|
public function setRemoved($v)
|
||||||
|
{
|
||||||
|
if ($v !== null) {
|
||||||
|
$v = (boolean) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->removed !== $v || $this->isNew()) {
|
||||||
|
$this->removed = $v;
|
||||||
|
$this->modifiedColumns[] = CcMusicDirsPeer::REMOVED;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
} // setRemoved()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the columns in this object are only set to default values.
|
* Indicates whether the columns in this object are only set to default values.
|
||||||
*
|
*
|
||||||
|
@ -161,6 +219,10 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
public function hasOnlyDefaultValues()
|
public function hasOnlyDefaultValues()
|
||||||
{
|
{
|
||||||
|
if ($this->removed !== false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// otherwise, everything was equal, so return TRUE
|
// otherwise, everything was equal, so return TRUE
|
||||||
return true;
|
return true;
|
||||||
} // hasOnlyDefaultValues()
|
} // hasOnlyDefaultValues()
|
||||||
|
@ -186,6 +248,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
||||||
$this->directory = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
$this->directory = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||||
$this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
$this->type = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||||
|
$this->removed = ($row[$startcol + 3] !== null) ? (boolean) $row[$startcol + 3] : null;
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
@ -194,7 +257,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
$this->ensureConsistency();
|
$this->ensureConsistency();
|
||||||
}
|
}
|
||||||
|
|
||||||
return $startcol + 3; // 3 = CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS).
|
return $startcol + 4; // 4 = CcMusicDirsPeer::NUM_COLUMNS - CcMusicDirsPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating CcMusicDirs object", $e);
|
throw new PropelException("Error populating CcMusicDirs object", $e);
|
||||||
|
@ -520,6 +583,9 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
case 2:
|
case 2:
|
||||||
return $this->getType();
|
return $this->getType();
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
return $this->getRemoved();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
|
@ -546,6 +612,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
$keys[0] => $this->getId(),
|
$keys[0] => $this->getId(),
|
||||||
$keys[1] => $this->getDirectory(),
|
$keys[1] => $this->getDirectory(),
|
||||||
$keys[2] => $this->getType(),
|
$keys[2] => $this->getType(),
|
||||||
|
$keys[3] => $this->getRemoved(),
|
||||||
);
|
);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@ -586,6 +653,9 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
case 2:
|
case 2:
|
||||||
$this->setType($value);
|
$this->setType($value);
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
$this->setRemoved($value);
|
||||||
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -613,6 +683,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
|
if (array_key_exists($keys[0], $arr)) $this->setId($arr[$keys[0]]);
|
||||||
if (array_key_exists($keys[1], $arr)) $this->setDirectory($arr[$keys[1]]);
|
if (array_key_exists($keys[1], $arr)) $this->setDirectory($arr[$keys[1]]);
|
||||||
if (array_key_exists($keys[2], $arr)) $this->setType($arr[$keys[2]]);
|
if (array_key_exists($keys[2], $arr)) $this->setType($arr[$keys[2]]);
|
||||||
|
if (array_key_exists($keys[3], $arr)) $this->setRemoved($arr[$keys[3]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -627,6 +698,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcMusicDirsPeer::ID)) $criteria->add(CcMusicDirsPeer::ID, $this->id);
|
if ($this->isColumnModified(CcMusicDirsPeer::ID)) $criteria->add(CcMusicDirsPeer::ID, $this->id);
|
||||||
if ($this->isColumnModified(CcMusicDirsPeer::DIRECTORY)) $criteria->add(CcMusicDirsPeer::DIRECTORY, $this->directory);
|
if ($this->isColumnModified(CcMusicDirsPeer::DIRECTORY)) $criteria->add(CcMusicDirsPeer::DIRECTORY, $this->directory);
|
||||||
if ($this->isColumnModified(CcMusicDirsPeer::TYPE)) $criteria->add(CcMusicDirsPeer::TYPE, $this->type);
|
if ($this->isColumnModified(CcMusicDirsPeer::TYPE)) $criteria->add(CcMusicDirsPeer::TYPE, $this->type);
|
||||||
|
if ($this->isColumnModified(CcMusicDirsPeer::REMOVED)) $criteria->add(CcMusicDirsPeer::REMOVED, $this->removed);
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
|
@ -690,6 +762,7 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
{
|
{
|
||||||
$copyObj->setDirectory($this->directory);
|
$copyObj->setDirectory($this->directory);
|
||||||
$copyObj->setType($this->type);
|
$copyObj->setType($this->type);
|
||||||
|
$copyObj->setRemoved($this->removed);
|
||||||
|
|
||||||
if ($deepCopy) {
|
if ($deepCopy) {
|
||||||
// important: temporarily setNew(false) because this affects the behavior of
|
// important: temporarily setNew(false) because this affects the behavior of
|
||||||
|
@ -889,9 +962,11 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
||||||
$this->id = null;
|
$this->id = null;
|
||||||
$this->directory = null;
|
$this->directory = null;
|
||||||
$this->type = null;
|
$this->type = null;
|
||||||
|
$this->removed = null;
|
||||||
$this->alreadyInSave = false;
|
$this->alreadyInSave = false;
|
||||||
$this->alreadyInValidation = false;
|
$this->alreadyInValidation = false;
|
||||||
$this->clearAllReferences();
|
$this->clearAllReferences();
|
||||||
|
$this->applyDefaultValues();
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
$this->setNew(true);
|
$this->setNew(true);
|
||||||
$this->setDeleted(false);
|
$this->setDeleted(false);
|
||||||
|
|
|
@ -26,7 +26,7 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
const TM_CLASS = 'CcMusicDirsTableMap';
|
const TM_CLASS = 'CcMusicDirsTableMap';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 3;
|
const NUM_COLUMNS = 4;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
@ -40,6 +40,9 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
/** the column name for the TYPE field */
|
/** the column name for the TYPE field */
|
||||||
const TYPE = 'cc_music_dirs.TYPE';
|
const TYPE = 'cc_music_dirs.TYPE';
|
||||||
|
|
||||||
|
/** the column name for the REMOVED field */
|
||||||
|
const REMOVED = 'cc_music_dirs.REMOVED';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An identiy map to hold any loaded instances of CcMusicDirs objects.
|
* An identiy map to hold any loaded instances of CcMusicDirs objects.
|
||||||
* This must be public so that other peer classes can access this when hydrating from JOIN
|
* This must be public so that other peer classes can access this when hydrating from JOIN
|
||||||
|
@ -56,12 +59,12 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
private static $fieldNames = array (
|
private static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', ),
|
BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', 'Removed', ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', 'removed', ),
|
||||||
BasePeer::TYPE_COLNAME => array (self::ID, self::DIRECTORY, self::TYPE, ),
|
BasePeer::TYPE_COLNAME => array (self::ID, self::DIRECTORY, self::TYPE, self::REMOVED, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', 'REMOVED', ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', ),
|
BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', 'removed', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,12 +74,12 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
private static $fieldKeys = array (
|
private static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, ),
|
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, 'Removed' => 3, ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'removed' => 3, ),
|
||||||
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DIRECTORY => 1, self::TYPE => 2, ),
|
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DIRECTORY => 1, self::TYPE => 2, self::REMOVED => 3, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, 'REMOVED' => 3, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, ),
|
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'removed' => 3, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -151,10 +154,12 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
$criteria->addSelectColumn(CcMusicDirsPeer::ID);
|
$criteria->addSelectColumn(CcMusicDirsPeer::ID);
|
||||||
$criteria->addSelectColumn(CcMusicDirsPeer::DIRECTORY);
|
$criteria->addSelectColumn(CcMusicDirsPeer::DIRECTORY);
|
||||||
$criteria->addSelectColumn(CcMusicDirsPeer::TYPE);
|
$criteria->addSelectColumn(CcMusicDirsPeer::TYPE);
|
||||||
|
$criteria->addSelectColumn(CcMusicDirsPeer::REMOVED);
|
||||||
} else {
|
} else {
|
||||||
$criteria->addSelectColumn($alias . '.ID');
|
$criteria->addSelectColumn($alias . '.ID');
|
||||||
$criteria->addSelectColumn($alias . '.DIRECTORY');
|
$criteria->addSelectColumn($alias . '.DIRECTORY');
|
||||||
$criteria->addSelectColumn($alias . '.TYPE');
|
$criteria->addSelectColumn($alias . '.TYPE');
|
||||||
|
$criteria->addSelectColumn($alias . '.REMOVED');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,9 +353,6 @@ abstract class BaseCcMusicDirsPeer {
|
||||||
*/
|
*/
|
||||||
public static function clearRelatedInstancePool()
|
public static function clearRelatedInstancePool()
|
||||||
{
|
{
|
||||||
// Invalidate objects in CcFilesPeer instance pool,
|
|
||||||
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
|
|
||||||
CcFilesPeer::clearInstancePool();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,10 +9,12 @@
|
||||||
* @method CcMusicDirsQuery orderById($order = Criteria::ASC) Order by the id column
|
* @method CcMusicDirsQuery orderById($order = Criteria::ASC) Order by the id column
|
||||||
* @method CcMusicDirsQuery orderByDirectory($order = Criteria::ASC) Order by the directory column
|
* @method CcMusicDirsQuery orderByDirectory($order = Criteria::ASC) Order by the directory column
|
||||||
* @method CcMusicDirsQuery orderByType($order = Criteria::ASC) Order by the type column
|
* @method CcMusicDirsQuery orderByType($order = Criteria::ASC) Order by the type column
|
||||||
|
* @method CcMusicDirsQuery orderByRemoved($order = Criteria::ASC) Order by the removed column
|
||||||
*
|
*
|
||||||
* @method CcMusicDirsQuery groupById() Group by the id column
|
* @method CcMusicDirsQuery groupById() Group by the id column
|
||||||
* @method CcMusicDirsQuery groupByDirectory() Group by the directory column
|
* @method CcMusicDirsQuery groupByDirectory() Group by the directory column
|
||||||
* @method CcMusicDirsQuery groupByType() Group by the type column
|
* @method CcMusicDirsQuery groupByType() Group by the type column
|
||||||
|
* @method CcMusicDirsQuery groupByRemoved() Group by the removed column
|
||||||
*
|
*
|
||||||
* @method CcMusicDirsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
* @method CcMusicDirsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
||||||
* @method CcMusicDirsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
* @method CcMusicDirsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
||||||
|
@ -28,10 +30,12 @@
|
||||||
* @method CcMusicDirs findOneById(int $id) Return the first CcMusicDirs filtered by the id column
|
* @method CcMusicDirs findOneById(int $id) Return the first CcMusicDirs filtered by the id column
|
||||||
* @method CcMusicDirs findOneByDirectory(string $directory) Return the first CcMusicDirs filtered by the directory column
|
* @method CcMusicDirs findOneByDirectory(string $directory) Return the first CcMusicDirs filtered by the directory column
|
||||||
* @method CcMusicDirs findOneByType(string $type) Return the first CcMusicDirs filtered by the type column
|
* @method CcMusicDirs findOneByType(string $type) Return the first CcMusicDirs filtered by the type column
|
||||||
|
* @method CcMusicDirs findOneByRemoved(boolean $removed) Return the first CcMusicDirs filtered by the removed column
|
||||||
*
|
*
|
||||||
* @method array findById(int $id) Return CcMusicDirs objects filtered by the id column
|
* @method array findById(int $id) Return CcMusicDirs objects filtered by the id column
|
||||||
* @method array findByDirectory(string $directory) Return CcMusicDirs objects filtered by the directory column
|
* @method array findByDirectory(string $directory) Return CcMusicDirs objects filtered by the directory column
|
||||||
* @method array findByType(string $type) Return CcMusicDirs objects filtered by the type column
|
* @method array findByType(string $type) Return CcMusicDirs objects filtered by the type column
|
||||||
|
* @method array findByRemoved(boolean $removed) Return CcMusicDirs objects filtered by the removed column
|
||||||
*
|
*
|
||||||
* @package propel.generator.airtime.om
|
* @package propel.generator.airtime.om
|
||||||
*/
|
*/
|
||||||
|
@ -202,6 +206,23 @@ abstract class BaseCcMusicDirsQuery extends ModelCriteria
|
||||||
return $this->addUsingAlias(CcMusicDirsPeer::TYPE, $type, $comparison);
|
return $this->addUsingAlias(CcMusicDirsPeer::TYPE, $type, $comparison);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the query on the removed column
|
||||||
|
*
|
||||||
|
* @param boolean|string $removed The value to use as filter.
|
||||||
|
* Accepts strings ('false', 'off', '-', 'no', 'n', and '0' are false, the rest is true)
|
||||||
|
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||||
|
*
|
||||||
|
* @return CcMusicDirsQuery The current query, for fluid interface
|
||||||
|
*/
|
||||||
|
public function filterByRemoved($removed = null, $comparison = null)
|
||||||
|
{
|
||||||
|
if (is_string($removed)) {
|
||||||
|
$removed = in_array(strtolower($removed), array('false', 'off', '-', 'no', 'n', '0')) ? false : true;
|
||||||
|
}
|
||||||
|
return $this->addUsingAlias(CcMusicDirsPeer::REMOVED, $removed, $comparison);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the query by a related CcFiles object
|
* Filter the query by a related CcFiles object
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
|
<column name="id" phpName="Id" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
|
||||||
<column name="directory" phpName="Directory" type="LONGVARCHAR" required="false"/>
|
<column name="directory" phpName="Directory" type="LONGVARCHAR" required="false"/>
|
||||||
<column name="type" phpName="Type" type="VARCHAR" size="255" required="false"/>
|
<column name="type" phpName="Type" type="VARCHAR" size="255" required="false"/>
|
||||||
|
<column name="removed" phpName="Removed" type="BOOLEAN" required="false" defaultValue="false"/>
|
||||||
<unique name="cc_music_dir_unique">
|
<unique name="cc_music_dir_unique">
|
||||||
<unique-column name="directory"/>
|
<unique-column name="directory"/>
|
||||||
</unique>
|
</unique>
|
||||||
|
@ -88,6 +89,7 @@
|
||||||
<column name="subject" phpName="DbSubject" type="VARCHAR" size="512" required="false"/>
|
<column name="subject" phpName="DbSubject" type="VARCHAR" size="512" required="false"/>
|
||||||
<column name="contributor" phpName="DbContributor" type="VARCHAR" size="512" required="false"/>
|
<column name="contributor" phpName="DbContributor" type="VARCHAR" size="512" required="false"/>
|
||||||
<column name="language" phpName="DbLanguage" type="VARCHAR" size="512" required="false"/>
|
<column name="language" phpName="DbLanguage" type="VARCHAR" size="512" required="false"/>
|
||||||
|
<column name="file_exist" phpName="DbFileExist" type="BOOLEAN" required="false" defaultValue="true"/>
|
||||||
<column name="soundcloud_id" phpName="DbSoundcloudId" type="Integer" required="false"/>
|
<column name="soundcloud_id" phpName="DbSoundcloudId" type="Integer" required="false"/>
|
||||||
<column name="soundcloud_error_code" phpName="DbSoundcloudErrorCode" type="Integer" required="false"/>
|
<column name="soundcloud_error_code" phpName="DbSoundcloudErrorCode" type="Integer" required="false"/>
|
||||||
<column name="soundcloud_error_msg" phpName="DbSoundcloudErrorMsg" type="VARCHAR" size="512" required="false"/>
|
<column name="soundcloud_error_msg" phpName="DbSoundcloudErrorMsg" type="VARCHAR" size="512" required="false"/>
|
||||||
|
@ -95,7 +97,7 @@
|
||||||
<foreign-key foreignTable="cc_subjs" name="cc_files_editedby_fkey">
|
<foreign-key foreignTable="cc_subjs" name="cc_files_editedby_fkey">
|
||||||
<reference local="editedby" foreign="id"/>
|
<reference local="editedby" foreign="id"/>
|
||||||
</foreign-key>
|
</foreign-key>
|
||||||
<foreign-key foreignTable="cc_music_dirs" name="cc_music_dirs_folder_fkey" onDelete="CASCADE">
|
<foreign-key foreignTable="cc_music_dirs" name="cc_music_dirs_folder_fkey">
|
||||||
<reference local="directory" foreign="id"/>
|
<reference local="directory" foreign="id"/>
|
||||||
</foreign-key>
|
</foreign-key>
|
||||||
<unique name="cc_files_gunid_idx">
|
<unique name="cc_files_gunid_idx">
|
||||||
|
|
|
@ -42,6 +42,7 @@ CREATE TABLE "cc_music_dirs"
|
||||||
"id" serial NOT NULL,
|
"id" serial NOT NULL,
|
||||||
"directory" TEXT,
|
"directory" TEXT,
|
||||||
"type" VARCHAR(255),
|
"type" VARCHAR(255),
|
||||||
|
"removed" BOOLEAN default 'f',
|
||||||
PRIMARY KEY ("id"),
|
PRIMARY KEY ("id"),
|
||||||
CONSTRAINT "cc_music_dir_unique" UNIQUE ("directory")
|
CONSTRAINT "cc_music_dir_unique" UNIQUE ("directory")
|
||||||
);
|
);
|
||||||
|
@ -114,6 +115,7 @@ CREATE TABLE "cc_files"
|
||||||
"subject" VARCHAR(512),
|
"subject" VARCHAR(512),
|
||||||
"contributor" VARCHAR(512),
|
"contributor" VARCHAR(512),
|
||||||
"language" VARCHAR(512),
|
"language" VARCHAR(512),
|
||||||
|
"file_exist" BOOLEAN default 't',
|
||||||
"soundcloud_id" INTEGER,
|
"soundcloud_id" INTEGER,
|
||||||
"soundcloud_error_code" INTEGER,
|
"soundcloud_error_code" INTEGER,
|
||||||
"soundcloud_error_msg" VARCHAR(512),
|
"soundcloud_error_msg" VARCHAR(512),
|
||||||
|
@ -548,7 +550,7 @@ ALTER TABLE "cc_access" ADD CONSTRAINT "cc_access_owner_fkey" FOREIGN KEY ("owne
|
||||||
|
|
||||||
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_editedby_fkey" FOREIGN KEY ("editedby") 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") ON DELETE CASCADE;
|
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_music_dirs_folder_fkey" FOREIGN KEY ("directory") REFERENCES "cc_music_dirs" ("id");
|
||||||
|
|
||||||
ALTER TABLE "cc_perms" ADD CONSTRAINT "cc_perms_subj_fkey" FOREIGN KEY ("subj") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE;
|
ALTER TABLE "cc_perms" ADD CONSTRAINT "cc_perms_subj_fkey" FOREIGN KEY ("subj") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue